25.12.2013, 18:15
pawn Код:
CMD:a(playerid, params[])
{
new sendername[MAX_PLAYER_NAME], string[160];
if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_RED, "GRESKA: "COL_WHITE"Nemas prava za koristenje ove komande.");
if(isnull(params)) return SCM(playerid, COLOR_CYAN,"KORISTI: "COL_WHITE"/a [text]");
GetPlayerName(playerid,sendername,sizeof(sendername));
sendername[strfind(sendername,"_")] = ' ';
format(string,160,"*AC* Admin %s: %s", sendername, params);
SendAdminMessage(COLOR_GOLD, string);
return 1;
}