11.08.2012, 22:00
Hello i managed to lock classes but for some reason its locked all clases :O
pawn Code:
public OnPlayerRequestSpawn(playerid)
{
if(gTeam[playerid] == ARMY || gTeam[playerid] == SWAT || gTeam[playerid] == STAT && PlayerInfo[playerid][Parmy] == 0 || PlayerInfo[playerid][Pswat] == 0 || PlayerInfo[playerid][Pstat] == 0)
{
SendClientMessage(playerid, COLOR_RED, "This class is only for people with rights. Visit sf-cnr.co.uk/forum to apply for this class");
return 0;
}
return 1;
}