how to SendClientMessage if player is cop and try to rob
#8

Holy shit. Why in gods name are you redefining SendClientMessage(); as SCM?

Your gTeam needs to be global since it looks like you're using it as an indication of the players team (i feel you've copied and pasted this from somewhere. You've used hungarian notation yet, you're not using it globally).

pawn Код:
new gTeam[MAX_PLAYERS];
Under where you're setting the team:

pawn Код:
gTeam[playerid] = some_team_id;
Team checking:
pawn Код:
if(gTeam[playerid] == someval)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)