M@steR
Новичок
Привет, уважаемые пользователи pawno-info
Вот моя 2 работа: Отключение репорта
Для начало переменная
Теперь в public OnPlayerCommandText(playerid, cmdtext[])
И теперь находим команду /report и вставляем туда:
Вот моя 2 работа: Отключение репорта
Для начало переменная
PHP:
new offreport;
PHP:
if(strcmp(cmd, "/noreport", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] > 5)
{
if (offreport == 0)
{
offreport = 1;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Вы отключили репорт");
}
else if (offreport == 1)
{
offreport = 0;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Вы включили репорт!");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "* Вы не админ!");
return 1;
}
}
return 1;
}
PHP:
if(offreport == 1)
{
SendClientMessage(playerid, COLOR_GREY, "Админ отключил репорт!");
return 1;
}
Последнее редактирование:
