27.06.2009, 00:22
Something like this, building off of your first post example:
pawn Код:
public OnPlayerSpawn(playerid)
{
if(GetPlayerJobID == 1 && gTeam[playerid] != TEAM_POLICE) // if they're cop job and their team ISN'T police.
{
SendClientMessage(playerid, color, "You are not allowed to spawn with the police force while not being a police officer!");
Kick(playerid);
return 1;
}
return 1;
}

