30.01.2016, 15:31
Quote:
COMMAND:a(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] < 1) { new result[128]; if(sscanf(params,"s[128]",result)) return SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: /a [msg]"); new string[128],Name[MAX_PLAYER_NAME]; GetPlayerName(playerid,Name,sizeof(Name)); format(string,sizeof(string),"[A-CHAT] %s (%d): %s",Name,playerid,result); foreach(Player,i) if(PlayerInfo[playerid][pAdmin] < 1) SendClientMessage(i,0x00FF00FF,string); } return 1; } |