30.01.2016, 15:55
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)
SendClientMessage(pInfo[playerid][pAdmin],-1,string);
}
return 1;
}
{
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)
SendClientMessage(pInfo[playerid][pAdmin],-1,string);
}
return 1;
}