Станус
Новичок
Не могу создать МП на сервере, появляется панель МП, но начать мероприятие, огласить победителя, раздать или забрать патроны не получается.
PHP:
else if(strcmp(cmd, "/mp", true) == 0)
{
if(PlayerInfo[playerid][pAdmInections] < 1) return true;
SPD(playerid, 5343, DIALOG_STYLE_LIST,"Создание МП", "{0080FF}1. Создать мероприятие\t\t{FF0000}[6 LVL]\n{0080FF}2. Раздать оружие(В радиусе 50)\t{FF0000}[6 LVL]\n{0080FF}3. Раздать жизни(В радиусе 50)\t{FF0000}[1 LVL]\n{0080FF}4. Обезаружить всех(В радиусе 50)\t{FF0000}[1 LVL]\n/mpwin огласить победителя\t{FF0000}[1lvl]", "Выбрать", "Отмена");
}
else if(strcmp(cmd, "/gotomark", true) == 0)
{
if (PlayerInfo[playerid][pAdmInections] >= 3)
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehicleEE(tmpcar, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
}
else { SetPPos(playerid, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]); }
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!");
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
return true;
