30.01.2016, 15:44
PHP код:
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[AdminLevel:%i] (%i): %s",Name,PlayerInfo[i][pAdmin], playerid, result);
foreach(Player,i)
{
if(PlayerInfo[i][pAdmin] < 1)
{
SendClientMessage(i,0x00FF00FF,string);
}
}
}
return 1;
}