09.12.2013, 12:40
pawn Код:
dcmd_a(playerid, params[]) {
new string[128], str[128], sendername[MAX_PLAYER_NAME];
if(sscanf(params, "s", str)) return SendClientMessage(playerid, -1,"USAGE: /a <message>");
//if(YourAdminVariable[playerid] == 0) you are not admin bla ba
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[AdminChat]%s: %s", sendername, str);
SendAdminMessage(COLOR_WHITE,string);
return 1;
}