Quote:
Originally Posted by Donya
maybe this
pawn Код:
COMMAND:radio(playerid, params[]) { if (!strlen(params[0])) return SendClientMessage(playerid,White,"Usage: /radio [Message]"); new pname[MAX_PLAYER_NAME],string[128]; GetPlayerName(playerid,pname,sizeof(pname)); if(Leader[playerid] == 3) { format(string,sizeof (string), "** Command Chief Master %s: %s, over **",pname, params[0]); SendClientMessageToAll(0x8F8F8FFF,string); } else if(Member[playerid] == 3) { format(string, sizeof (string), "** Member %s: %s, over **",pname, params[0]); SendClientMessageToAll(0x8F8F8FFF,string); } return 1; }
|
It works perfect! but "SendClientMessageToAll" must be changed to something else, bc everyone on the server gets the message, not just the team.