- Регистрация
- 13 Июл 2014
- Сообщения
- 74
- Лучшие ответы
- 0
- Репутация
- 3
Почему показывает обычных игроков? должно только админов
PHP:
else if(strcmp(cmd, "/admins", true) == 0)
{
if(pInfo[playerid][pAdmin] >= 1 || pInfo[playerid][pLeader] >= 1)
{
SendClientMessage(playerid, COLOR_YELLOW, "Админы Online:");
foreach(new i : Player)
{
if(!gPlayerLogged[i] || pInfo[i][pAdmin] > 1 && pInfo[i][pAdmin] < 5) continue;
new mes[64]; format(mes,sizeof(mes),"%s | ID:%d | lvl %i", pInfo[i][pNickname], i, pInfo[i][pAdmin]);
if(pTemp[i][pAFK] >= 3) format(mes,sizeof(mes),"%s {9ACD32}[AFK: %s]", mes, ConvertSeconds(pTemp[i][pAFK]));
SendClientMessage(playerid,COLOR_WHITE,mes);
}
}
return true;
}