10.07.2012, 09:45
Quote:
Use a function like this(Need to edit it):
pawn Код:
|
Код:
forward SendMessageToCops(color, const string[]); public SendMessageToCops(color,const string[]) //create the callback, including color and string { for(new i = 0; i < MAX_PLAYERS; i++) //set a for-loop and loop through all the cops { if(IsPlayerConnected(i) == 1) //the cop gotta be connected if(PlayerInfo[playerid][pFac] == 1)// You need to change this to whatever the cop var is SendClientMessage(i, COLOR_GREEN, string); //send this message now to every cop online, with color + string! } return 1; }