30.03.2016, 16:11
(
Последний раз редактировалось CSLangdale; 31.03.2016 в 03:22.
)
Код:
CMD:achat(playerid, params[]) { new string[128], text[128], pname[MAX_PLAYER_NAME+1]; GetPlayerName(playerid, pname, sizeof(pname)); if(sscanf(params, "s[128]", text)) return SendClientMessage(playerid, 0x46E850FF, "SERVER:{FFFFFF} /a(chat) [text]"); if(pInfo[playerid][Admin] == 0) return SendClientMessage(playerid, 0x46E850FF, "SERVER:{FFFFFF} You're not an administrator!"); format(string, sizeof(string), "[LVL: %d]{FFFFFF} %s: %s", pInfo[playerid][Admin], pname, text); SendAdminMessage(0x46E850FF, string); return 1; }