20.01.2013, 03:55
Try This
Код:
public OnPlayerText(playerid, text[]) { if(text[0] == '#' ||text[0] == '@' && IsPlayerAdmin(playerid)) { new string[128]; GetPlayerName(playerid,string,sizeof(string)); format(string,sizeof(string),"<Admin Chat>: %s: %s",string,text[1]); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && IsPlayerAdmin(playerid)){ SendClientMessage(i, 0xFF00E6C8, string); } } return 0; } }