15.08.2018, 14:04
So, i have a problem blocking the player from choosing cop team if wanted.
I placed this on OnPlayerRequestSpawn:
But doesn't work. Basically, i don't want players use cop team if they have a wanted level. Thanks.
I placed this on OnPlayerRequestSpawn:
pawn Код:
if(GetPlayerWantedLevel(playerid) >= 1 && gTeam[playerid][TEAM_COP]) return SendClientMessage(playerid, COLOR_RED, "* You can't be a Law Enforcement Officer while wanted.");