К new
Code
new Popa[MAX_PLAYERS];
В команды
Code
if(strcmp(cmdtext, "/Царь мира", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 1)//Проверка на админа
if(Popa[playerid] == 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "[Сервер]: Вы стали бессмертным!");
SetPlayerHealth(playerid, 9999);
Popa[playerid] = 1;
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "[Сервер]: Вы стали смертным(");
SetPlayerHealth(playerid, 100);
Popa[playerid] = 0;
}
return 1;
}