05.04.2011, 17:20
Hey scripters.
so I have this command
so im a cop.
I want that when I use this command and im a cop it will sendclientmessage to every cop in the game, exept me.
so will this work ?
if(PlayerInfo[i][pCop] > 0 && i != playerid)
so I have this command
pawn Код:
if(strcmp(cmd,"/back",true) == 0)
{
if(PlayerInfo[playerid][pCop] < 1) return SendClientMessage(playerid,COLOR_AFOR,"idiot !");
if(PlayerInfo[playerid][pCop] > 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pCop] > 0 && i != playerid)
{
SendClientMessage(i,COLOR_BLUE,"Wassaup nigga!");
}
}
}
return 1;
}
I want that when I use this command and im a cop it will sendclientmessage to every cop in the game, exept me.
so will this work ?
if(PlayerInfo[i][pCop] > 0 && i != playerid)