24.08.2011, 10:32
pawn Code:
CMD:a(playerid, params[])
{
new sendername[MAX_PLAYER_NAME];
if(!PlayerInfo[playerid][pAdmin] >= 1) return SCM(playerid, COLOR_GREY,"You are not authorized to use this command");
if(isnull(params)) return SCM(playerid,COLOR_GOLD,"USAGE: /a [chat]");
GetPlayerName(playerid,sendername,sizeof(sendername));
format(string,160,"*%d Admin %s: %s",PlayerInfo[playerid][pAdmin],sendername,params);
SendAdminMessage(COLOR_GOLD, string);
return 1;
}