Locking some classes locks ALL classes
#1

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)