03.04.2010, 07:23
SetPlayerTeam sets a player in a team server sided, meaning only the server knows which player is in which team and you can get his team only with GetPlayerTeam.
gTeam is in your script nothing else, It's just a variable. It's like doing
With gTeam you're assigning a player to a team script wise, which means that you can get his team only in that script. SetPlayerTeam and gTeam have nothing in common, except they're both used for assigning a player to a team. But I can easily change the gTeam variable to like eg. PlayersTeam.
You need to set the players gTeam variable to civilian in order for that SendMessageToLaw function to work
gTeam is in your script nothing else, It's just a variable. It's like doing
pawn Код:
new a;
a=5;
if (a == 5) SendClientMessage();
You need to set the players gTeam variable to civilian in order for that SendMessageToLaw function to work