05.01.2011, 23:22
Код:
if(!strcmp(strget(cmdtext,0),"/c")) { if(Spieler[playerid][AdminLevel] >=2) { if(!strlen(strget(cmdtext,1))) return SendClientMessage(playerid,COLOR_GREY,"Use: /c [Text]"); new string[256]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); format(string,sizeof(string), "Server - AdminChat [%d] %s: %s",playerid, name, cmdtext); print(string); { for(new i = 0; i < MAX_PLAYERS; i++) { if(Spieler[i][AdminLevel] >=2) { PlayerPlaySound(i,1057 ,0,0,0); SendClientMessage(i,COLOR_LIGHTGREEN,string); }}}} return 1; }
]B4E[kengston