lord_lolicon
Дебютант
Ребят, у меня такая вот проблема. Суть команды заключается в том, что при наборе команды (/ahelp (1-7), показывались определенные сообщения. Но, при вводе команды в игре, она их не отображает
PHP:
if(!strcmp(cmd,"/ahelp",true))
{
if(pData[playerid][pAdmin] <= 1) return true;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))return SendClientMessage(playerid, COLOR_GRAD2, "/ahelp [LVL администрирования]");
new level;
tmp = strtok(cmdtext, idx);
level = strval(tmp);
SendClientMessage(playerid, COLOR_YELLOW, "Доступные команды:");
if(pData[playerid][pAdmin] <= 1) if(level == 1) SendClientMessage(playerid, 0xC99700ff, "/sp [ID] - Режим слежки за игроком");
if(pData[playerid][pAdmin] <= 1) if(level == 1) SendClientMessage(playerid, 0xC99700ff, "/weap [ID] - Проверка на оружие у игрока");
if(pData[playerid][pAdmin] <= 1) if(level == 1) SendClientMessage(playerid, 0xC99700ff, "/stats [ID] - Проверка статистики игрока");
if(pData[playerid][pAdmin] <= 1) if(level == 1) SendClientMessage(playerid, 0xC99700ff, "/money [ID] - Проверить количество денег у игрока");
if(pData[playerid][pAdmin] <= 1) if(level == 1) SendClientMessage(playerid, 0xC99700ff, "/a [Сообщение] - Написать в админ-чат");
if(pData[playerid][pAdmin] <= 1) if(level == 1) SendClientMessage(playerid, 0xC99700ff, "/pm [ID] [Ответ] - Ответить игроку");
if(pData[playerid][pAdmin] <= 1) if(level == 1) SendClientMessage(playerid, 0xC99700ff, "/admins - Список администрации");
if(pData[playerid][pAdmin] <= 2) if(level == 1) SendClientMessage(playerid, 0xC99700ff, "Следующий уровень команд /ahelp 2");
}
