02.09.2013, 01:46
You should use playerid id in CMD:ac and not i.
Код:
CMD:ac(playerid, params[]) { if(PlayerInfo[playerid][pAdminLevel] == 0)return SendClientMessage(playerid,-1,"{FF0000}[ERROR]:{FAF5F5}You are not{FF0000} Administrator {FAF5F5}to use admin chat"); new name[1024], text[126]; if(sscanf(params, "s[126]", text))return SendClientMessage(playerid,-1,"{FF0000}[System Usage]:{FAF5F5}/ac [text]"); GetPlayerName(playerid, name, sizeof(name)); format(text, sizeof(text), "{FFD700}[%s] %s: %s", GetPlayerAdminRank(playerid),name ,text); SendMessageToAdmins(text); return 1; }