02.11.2009, 17:26
in a command or OnPlayerText with a check for a certain char
Код:
new str[128],pName[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,sizeof(pName)); format(str,sizeof(str),"TeamMsg (%s): %s",pName,cmdtext/text); for(new i = 0; i < MAX_PLAYERS; i++) { if(gTeam[i] == gTeam[playerid]) { SendClientMessage(i,COLOR,str); } }