public OnPlayerRequestSpawn(playerid){ new SkinID = GetPlayerSkin(playerid); if(SkinID == 280 || SkinID == 281 || SkinID == 282 || SkinID == 283 || SkinID == 265 || SkinID == 266 || SkinID == 288) { if(IsPlayerAdmin(playerid) == 1) { GameTextForPlayer(playerid, \"~r~Csak Adminoknak Engedelyezett!\",2000,3); return 0; }} //printf(\"OnPlayerRequestSpawn(%d)\",playerid); return 1;}
public OnPlayerRequestClass(playerid, classid){iSpawnSet[playerid] = 0;SetupPlayerForClassSelection(playerid);return 1;}public SetupPlayerForClassSelection(playerid){ new SkinID = GetPlayerSkin(playerid); if(SkinID == 280 || SkinID == 281 || SkinID == 282 || SkinID == 283 || SkinID == 265 || SkinID == 266 || SkinID == 288) { if(IsPlayerAdmin(playerid) == 1) { GameTextForPlayer(playerid, \"~r~Csak Adminoknak Enged3lyezett!\",2000,3); }}SetPlayerInterior(playerid,14);SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);SetPlayerFacingAngle(playerid, 270.0);SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);}
public SetupPlayerForClassSelection(playerid){ new SkinID = GetPlayerSkin(playerid); if(SkinID == 280 || SkinID == 281 || SkinID == 282 || SkinID == 283 || SkinID == 265 || SkinID == 266 || SkinID == 288) { if(!IsPlayerAdmin(playerid)) { GameTextForPlayer(playerid, \"~r~Csak Adminoknak Enged3lyezett!\",2000,3); } else { GameTextForPlayer(playerid, \"~r~Admin vagy, ~w~jo jatekot!\",2000,3); } } return 1;}
dcmd(pd,2,cmdtext);
public OnPlayerRequestSpawn(playerid){ new SkinID = GetPlayerSkin(playerid); if(SkinID == 280 || SkinID == 281 || SkinID == 282 || SkinID == 283 || SkinID == 265 || SkinID == 266 || SkinID == 288) { if(PlayerInfo[playerid][Level] >= 1) { GameTextForPlayer(playerid, \"~r~Admin vagy!\",2000,3); } else { GameTextForPlayer(playerid, \"~r~Nem vagy Admin!\",2000,3); ForceClassSelection(playerid); SetPlayerHealth(playerid,0.0); } } return 1;}