How to get it to check if in certain team
#1

Just like on a /goto or /gethere command for exmaple, You have:
pawn Код:
if(id == playerid)
To check if the player is trying to goto/gethere himself,
Well i want to do that, But to check if someones trying to arrest a fellow cop,
So i want the same code, But instead of checking on playerid, It checks for team,
How would i do that
Reply
#2

Just try it like that

Код:
if(gTeam[id] != gTeam[playerid])
{
  //do some stuff here
}
It's only an example.

or

Код:
if(gTeam[id] == gTeam[playerid])
{
  SendClientMessage(playerid,COLOR,"You bitch you are trying to arrest you fellah cop! no COOKIES"
}

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)