Játékmódomba:
public OnPlayerSpawn(playerid)
{
SetPlayerInterior(playerid,0);
TogglePlayerClock(playerid,1);
new skinid = GetPlayerSkin(playerid);
if(skinid == 280 || 282 || 283)
{
if(!IsPlayerLuxAdmin(playerid))
{
SendClientMessage(playerid,0xff0000AA, \"Nem vagy admin!\");
SetPlayerHealth(playerid, 0);
}
}
return 1;
}
stock IsPlayerLuxAdmin(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
new file[256], tmp, tmp2;
format(file,256,\"/LuxAdmin/Accounts/%s.sav\",udb_encode(name));
tmp = dini_Int(file,\"Level\");
tmp2 = dini_Int(file,\"Loggedin\");
if( (IsPlayerConnected(playerid)) && (tmp > 0) && (tmp2 == 1) )
return true;
else return false;
}