vitalik6243
Умник
Всем привет я вот решил выложить 2 команды.
Таких команд я не видел не где и решил сделать сам.
Вот сами команды:
Далее ко все case
И еще тоже с case
Автор: Я
Таких команд я не видел не где и решил сделать сам.
Вот сами команды:
PHP:
if(strcmp(cmd, "/buyint", true) == 0)
{
if(PlayerInfo[playerid][pPHousekey] == 255) return SendClientMessage(playerid, COLOR_GREY, "У вас нет дома");
if(!PlayerToPoint(15.0,playerid,1400.9524,-1683.7290,19.6723)) return SendClientMessage(playerid,COLOR_GREY,"Вы не банке!");
ShowPlayerDialog(playerid, 2081, DIALOG_STYLE_LIST, "Выберите интеръер для вашего дома", "[1] Деревянный - 5млн$\n[2] Мрамор - 4.5млн$\n[3] Дворец - 4млн$\n[4] Обычный стиль - 3.5млн$\n[5] Обычное дерево - 3млн$\n[6] Обычный стиль - 2.5млн$\n[7] Красное деверо - 2млн$\n[8] Обычный стиль - 1.5млн$\n[9] Дешовый стиль - 1млн$", "Ок", "закрыть");
return true;
}
if(strcmp(cmd, "/buyklass", true) == 0)
{
if(PlayerInfo[playerid][pPHousekey] == 255) return SendClientMessage(playerid, COLOR_GREY, "У вас нет дома");
if(!PlayerToPoint(15.0,playerid,1400.9524,-1683.7290,19.6723)) return SendClientMessage(playerid,COLOR_GREY,"Вы не банке!");
ShowPlayerDialog(playerid, 2091, DIALOG_STYLE_LIST, "Выберите класс для вашего дома", "[1] S Класс - 600т. $\n[2] A Класс - 500т. $\n[3] B Класс - 400т. $\n[4] C Класс - 300т. $\n[5] D Класс - 200т. $\n[6] Nope Класс - 100т. $", "Ок", "закрыть");
return true;
}
PHP:
case 2091:
{
if(response)
{
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, 2092, DIALOG_STYLE_INPUT, "S Класс","Введите номер Вашего дома", "Ок", "Отмена");
case 1: ShowPlayerDialog(playerid, 2093, DIALOG_STYLE_INPUT, "A Класс","Введите номер Вашего дома", "Ок", "Отмена");
case 2: ShowPlayerDialog(playerid, 2094, DIALOG_STYLE_INPUT, "B Класс","Введите номер Вашего дома", "Ок", "Отмена");
case 3: ShowPlayerDialog(playerid, 2095, DIALOG_STYLE_INPUT, "C Класс","Введите номер Вашего дома", "Ок", "Отмена");
case 4: ShowPlayerDialog(playerid, 2096, DIALOG_STYLE_INPUT, "D Класс","Введите номер Вашего дома", "Ок", "Отмена");
case 5: ShowPlayerDialog(playerid, 2097, DIALOG_STYLE_INPUT, "Nope Класс","Введите номер Вашего дома", "Ок", "Отмена");
}
}
else
{
return true;
}
}
case 2081:
{
if(response)
{
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, 2082, DIALOG_STYLE_INPUT, "Деревянный стиль","Введите номер Вашего дома", "Ок", "Отмена");
case 1: ShowPlayerDialog(playerid, 2083, DIALOG_STYLE_INPUT, "Мрамор","Введите номер Вашего дома", "Ок", "Отмена");
case 2: ShowPlayerDialog(playerid, 2084, DIALOG_STYLE_INPUT, "Дворец","Введите номер Вашего дома", "Ок", "Отмена");
case 3: ShowPlayerDialog(playerid, 2085, DIALOG_STYLE_INPUT, "Обычный стиль","Введите номер Вашего дома", "Ок", "Отмена");
case 4: ShowPlayerDialog(playerid, 2086, DIALOG_STYLE_INPUT, "Обычное дерево","Введите номер Вашего дома", "Ок", "Отмена");
case 5: ShowPlayerDialog(playerid, 2087, DIALOG_STYLE_INPUT, "Обычный инт","Введите номер Вашего дома", "Ок", "Отмена");
case 6: ShowPlayerDialog(playerid, 2088, DIALOG_STYLE_INPUT, "Красное дерево","Введите номер Вашего дома", "Ок", "Отмена");
case 7: ShowPlayerDialog(playerid, 2089, DIALOG_STYLE_INPUT, "Обычный инт 3","Введите номер Вашего дома", "Ок", "Отмена");
case 8: ShowPlayerDialog(playerid, 2090, DIALOG_STYLE_INPUT, "Бомж стиль","Введите номер Вашего дома", "Ок", "Отмена");
}
}
else
{
return true;
}
}
PHP:
case 2082:
{
if(response)
{
if(PlayerInfo[playerid][pBank] <= 5000000) return SendClientMessage(playerid, COLOR_RED, "На вашем банковском счете не достаточно средств!");
new house = strval(inputtext);
HouseInfo[house][hInt] = 4, HouseInfo[house][hExitx] = -261.9759, HouseInfo[house][hExity] = 1456.8844, HouseInfo[house][hExitz] = 1084.3672, PlayerInfo[playerid][pBank] -= 5000000, SendClientMessage(playerid, COLOR_GREEN, "Вы купили интерьер!");
}
return true;
}
case 2083:
{
if(response)
{
if(PlayerInfo[playerid][pBank] <= 4500000) return SendClientMessage(playerid, COLOR_RED, "На вашем банковском счете не достаточно средств!");
new house = strval(inputtext);
HouseInfo[house][hInt] = 6, HouseInfo[house][hExitx] = 234.1571, HouseInfo[house][hExity] = 1064.9569, HouseInfo[house][hExitz] = 1084.2104, PlayerInfo[playerid][pBank] -= 4500000, SendClientMessage(playerid, COLOR_GREEN, "Вы купили интерьер!");
}
return true;
}
case 2084:
{
if(response)
{
if(PlayerInfo[playerid][pBank] <= 4000000) return SendClientMessage(playerid, COLOR_RED, "На вашем банковском счете не достаточно средств!");
new house = strval(inputtext);
HouseInfo[house][hInt] = 5, HouseInfo[house][hExitx] = 140.9131, HouseInfo[house][hExity] = 1367.9713, HouseInfo[house][hExitz] = 1083.8621, PlayerInfo[playerid][pBank] -= 4000000, SendClientMessage(playerid, COLOR_GREEN, "Вы купили интерьер!");
}
return true;
}
case 2085:
{
if(response)
{
if(PlayerInfo[playerid][pBank] <= 3500000) return SendClientMessage(playerid, COLOR_RED, "На вашем банковском счете не достаточно средств!");
new house = strval(inputtext);
HouseInfo[house][hInt] = 5, HouseInfo[house][hExitx] = 22.7783, HouseInfo[house][hExity] = 1404.9600, HouseInfo[house][hExitz] = 1084.4297, PlayerInfo[playerid][pBank] -= 3500000, SendClientMessage(playerid, COLOR_GREEN, "Вы купили интерьер!");
}
return true;
}
case 2086:
{
if(response)
{
if(PlayerInfo[playerid][pBank] <= 3000000) return SendClientMessage(playerid, COLOR_RED, "На вашем банковском счете не достаточно средств!");
new house = strval(inputtext);
HouseInfo[house][hInt] = 10, HouseInfo[house][hExitx] = 23.8334, HouseInfo[house][hExity] = 1340.4812, HouseInfo[house][hExitz] = 1084.3750, PlayerInfo[playerid][pBank] -= 3000000, SendClientMessage(playerid, COLOR_GREEN, "Вы купили интерьер!");
}
return true;
}
case 2087:
{
if(response)
{
if(PlayerInfo[playerid][pBank] <= 2500000) return SendClientMessage(playerid, COLOR_RED, "На вашем банковском счете не достаточно средств!");
new house = strval(inputtext);
HouseInfo[house][hInt] = 4, HouseInfo[house][hExitx] = 261.0654, HouseInfo[house][hExity] = 1284.2991, HouseInfo[house][hExitz] = 1080.2578, PlayerInfo[playerid][pBank] -= 2500000, SendClientMessage(playerid, COLOR_GREEN, "Вы купили интерьер!");
}
return true;
}
case 2088:
{
if(response)
{
if(PlayerInfo[playerid][pBank] <= 2000000) return SendClientMessage(playerid, COLOR_RED, "На вашем банковском счете не достаточно средств!");
new house = strval(inputtext);
HouseInfo[house][hInt] = 2, HouseInfo[house][hExitx] = 491.0190, HouseInfo[house][hExity] = 1399.0691, HouseInfo[house][hExitz] = 1080.2578, PlayerInfo[playerid][pBank] -= 2000000, SendClientMessage(playerid, COLOR_GREEN, "Вы купили интерьер!");
}
return true;
}
case 2089:
{
if(response)
{
if(PlayerInfo[playerid][pBank] <= 1500000) return SendClientMessage(playerid, COLOR_RED, "На вашем банковском счете не достаточно средств!");
new house = strval(inputtext);
HouseInfo[house][hInt] = 2, HouseInfo[house][hExitx] = 225.9761, HouseInfo[house][hExity] = 1239.9126, HouseInfo[house][hExitz] = 1082.1406, PlayerInfo[playerid][pBank] -= 1500000, SendClientMessage(playerid, COLOR_GREEN, "Вы купили интерьер!");
}
return true;
}
case 2090:
{
if(response)
{
if(PlayerInfo[playerid][pBank] <= 1000000) return SendClientMessage(playerid, COLOR_RED, "На вашем банковском счете не достаточно средств!");
new house = strval(inputtext);
HouseInfo[house][hInt] = 10, HouseInfo[house][hExitx] = 2261.3103, HouseInfo[house][hExity] = -1136.4467, HouseInfo[house][hExitz] = 1050.6328, PlayerInfo[playerid][pBank] -= 1000000, SendClientMessage(playerid, COLOR_GREEN, "Вы купили интерьер!");
}
return true;
}
case 2092:
{
if(response)
{
if(PlayerInfo[playerid][pBank] <= 600000) return SendClientMessage(playerid, COLOR_RED, "На вашем банковском счете не достаточно средств!");
new house = strval(inputtext);
HouseInfo[house][hClass] = 5, PlayerInfo[playerid][pBank] -= 600000, SendClientMessage(playerid, COLOR_GREEN, "Вы купили класс S!");
}
return true;
}
case 2093:
{
if(response)
{
if(PlayerInfo[playerid][pBank] <= 500000) return SendClientMessage(playerid, COLOR_RED, "На вашем банковском счете не достаточно средств!");
new house = strval(inputtext);
HouseInfo[house][hClass] = 4, PlayerInfo[playerid][pBank] -= 500000, SendClientMessage(playerid, COLOR_GREEN, "Вы купили класс A!");
}
return true;
}
case 2094:
{
if(response)
{
if(PlayerInfo[playerid][pBank] <= 400000) return SendClientMessage(playerid, COLOR_RED, "На вашем банковском счете не достаточно средств!");
new house = strval(inputtext);
HouseInfo[house][hClass] = 3, PlayerInfo[playerid][pBank] -= 400000, SendClientMessage(playerid, COLOR_GREEN, "Вы купили класс B!");
}
return true;
}
case 2095:
{
if(response)
{
if(PlayerInfo[playerid][pBank] <= 300000) return SendClientMessage(playerid, COLOR_RED, "На вашем банковском счете не достаточно средств!");
new house = strval(inputtext);
HouseInfo[house][hClass] = 2, PlayerInfo[playerid][pBank] -= 300000, SendClientMessage(playerid, COLOR_GREEN, "Вы купили класс C!");
}
return true;
}
case 2096:
{
if(response)
{
if(PlayerInfo[playerid][pBank] <= 200000) return SendClientMessage(playerid, COLOR_RED, "На вашем банковском счете не достаточно средств!");
new house = strval(inputtext);
HouseInfo[house][hClass] = 1, PlayerInfo[playerid][pBank] -= 200000, SendClientMessage(playerid, COLOR_GREEN, "Вы купили класс D!");
}
return true;
}
case 2097:
{
if(response)
{
if(PlayerInfo[playerid][pBank] <= 100000) return SendClientMessage(playerid, COLOR_RED, "На вашем банковском счете не достаточно средств!");
new house = strval(inputtext);
HouseInfo[house][hClass] = 0, PlayerInfo[playerid][pBank] -= 100000, SendClientMessage(playerid, COLOR_GREEN, "Вы купили класс Nope!");
}
return true;
}
Последнее редактирование:
