HDD |
Дата: Среда, 20.08.2014, 19:03 | Сообщение # 1
|
Любитель
Сообщений: 36
Статус: Offline
|
Всем привет! От нечего делать накидал для вас 1 номер евровидения Advance-RP Установка к себе в мод: 1. Ставим к себе в мод систему концертного зала: http://cheat-master.ru/forum/117-366284-1 2. Скачиваем архив с папкой npcmodes и закидываем ее в папку с вашим модом, подтвердив замену. 3. В файле server.cfg, в строке maxnpc ставим количество 5 4. Ставим систему евровидения: Ко всем переменным: Код new euroobj[13], euronomobj[30], euronomveh[2], bool:nomstart = false;
Ко всем пабликам: Код forward endnomone(); public endnomone() { DestroyObject(euronomobj[0]); DestroyObject(euronomobj[1]); DestroyObject(euronomobj[2]); DestroyObject(euronomobj[3]); DestroyObject(euronomobj[4]); DestroyObject(euronomobj[5]); DestroyObject(euronomobj[6]); DestroyObject(euronomobj[7]); DestroyObject(euronomobj[8]); DestroyObject(euronomobj[9]); DestroyObject(euronomobj[10]); DestroyObject(euronomobj[11]); DestroyObject(euronomobj[12]); DestroyObject(euronomobj[13]); DestroyObject(euronomobj[14]); DestroyObject(euronomobj[15]); DestroyObject(euronomobj[16]); DestroyObject(euronomobj[17]); DestroyObject(euronomobj[18]); DestroyObject(euronomobj[19]); DestroyObject(euronomobj[20]); DestroyObject(euronomobj[21]); DestroyObject(euronomobj[22]); DestroyObject(euronomobj[23]); DestroyObject(euronomobj[24]); DestroyObject(euronomobj[25]); DestroyObject(euronomobj[26]); DestroyObject(euronomobj[27]); DestroyObject(euronomobj[28]); DestroyObject(euronomobj[29]); DestroyVehicle(euronomveh[0]); DestroyVehicle(euronomveh[1]); SetObjectMaterialText(euroobj[12], "{000000}Eurovision\nSong Contest", 0, OBJECT_MATERIAL_SIZE_512x512,"Tahoma", 50, 1, 0x000000AA, 0xFFFFFFAA, OBJECT_MATERIAL_TEXT_ALIGN_CENTER); MoveObject(zanaves[0],-477.8515625,-2567.9114062,1491.2590332, 2); MoveObject(zanaves[1],-455.4511719,-2567.9184766,1491.2590332, 2); statzanaves = false; musichall = false; for(new i=0; i<GetMaxPlayers(); i++) { if(audiostr[i] == true) { StopAudioStreamForPlayer(i); audiostr[i] = false; } } nomstart = false; for(new i=0; i<GetMaxPlayers(); i++) { if(IsPlayerNPC(i)) Kick(i); } return true; }
В public OnDialogResponse Код case 1005: { if(response) { switch(listitem) { case 0: { if(eurostart == false) return ShowPlayerDialog(playerid,1006,DIALOG_STYLE_INPUT,"Концертный зал | Билеты","Введите цену за билет на концерт.","Далее","Отмена"); else { ticketprice = 0; eurostart = false; SendClientMessage(playerid,0x33AA33AA,"Вы закончили евровидение."); DestroyObject(euroobj[0]); DestroyObject(euroobj[1]); DestroyObject(euroobj[2]); DestroyObject(euroobj[3]); DestroyObject(euroobj[4]); DestroyObject(euroobj[5]); DestroyObject(euroobj[6]); DestroyObject(euroobj[7]); DestroyObject(euroobj[8]); DestroyObject(euroobj[9]); DestroyObject(euroobj[10]); DestroyObject(euroobj[11]); DestroyObject(euroobj[12]); } } case 1: { if(eurostart == false) return SendClientMessage(playerid,0xFFFFFFFF,"{FF0000}x{FFFFFF} Сначала необходимо начать евровидение."); euronomobj[0] = CreateObject(18761, -469.16681, -2556.14087, 1488.30884, 0.00000, 0.00000, 0.00000); euronomobj[1] = CreateObject(3117, -485.00461, -2567.77246, 1486.78918, 0.00000, 90.00000, -60.00000); SetObjectMaterial(euronomobj[1],0,7035,"vgnretail6","LAgreenwall",0); euronomobj[2] = CreateObject(3117, -482.90460, -2566.17236, 1486.78918, 0.00000, 90.00000, -60.00000); SetObjectMaterial(euronomobj[2],0,7035,"vgnretail6","LAgreenwall",0); euronomobj[3] = CreateObject(3117, -480.84460, -2564.57227, 1486.78918, 0.00000, 90.00000, -60.00000); SetObjectMaterial(euronomobj[3],0,7035,"vgnretail6","LAgreenwall",0); euronomobj[4] = CreateObject(3117, -478.84460, -2562.97217, 1486.78918, 0.00000, 90.00000, -60.00000); SetObjectMaterial(euronomobj[4],0,7035,"vgnretail6","LAgreenwall",0); euronomobj[5] = CreateObject(3117, -485.00461, -2567.71240, 1490.80920, 0.00000, 90.00000, -60.00000); SetObjectMaterial(euronomobj[5],0,7035,"vgnretail6","LAgreenwall",0); euronomobj[6] = CreateObject(3117, -482.90460, -2566.17236, 1490.80920, 0.00000, 90.00000, -60.00000); SetObjectMaterial(euronomobj[6],0,7035,"vgnretail6","LAgreenwall",0); euronomobj[7] = CreateObject(3117, -480.84460, -2564.57227, 1490.80920, 0.00000, 90.00000, -60.00000); SetObjectMaterial(euronomobj[7],0,7035,"vgnretail6","LAgreenwall",0); euronomobj[8] = CreateObject(3117, -478.84460, -2562.97217, 1490.80920, 0.00000, 90.00000, -60.00000); SetObjectMaterial(euronomobj[8],0,7035,"vgnretail6","LAgreenwall",0); euronomobj[9] = CreateObject(3117, -453.63120, -2567.77246, 1486.78918, 0.00000, 90.00000, 60.00000); SetObjectMaterial(euronomobj[9],0,7035,"vgnretail6","LAgreenwall",0); euronomobj[10] = CreateObject(3117, -455.63120, -2566.17236, 1486.78918, 0.00000, 90.00000, 60.00000); SetObjectMaterial(euronomobj[10],0,7035,"vgnretail6","LAgreenwall",0); euronomobj[11] = CreateObject(3117, -457.69119, -2564.57227, 1486.78918, 0.00000, 90.00000, 60.00000); SetObjectMaterial(euronomobj[11],0,7035,"vgnretail6","LAgreenwall",0); euronomobj[12] = CreateObject(3117, -459.69119, -2562.97217, 1486.78918, 0.00000, 90.00000, 60.00000); SetObjectMaterial(euronomobj[12],0,7035,"vgnretail6","LAgreenwall",0); euronomobj[13] = CreateObject(3117, -453.63120, -2567.77246, 1490.80920, 0.00000, 90.00000, 60.00000); SetObjectMaterial(euronomobj[13],0,7035,"vgnretail6","LAgreenwall",0); euronomobj[14] = CreateObject(3117, -455.63120, -2566.17236, 1490.80920, 0.00000, 90.00000, 60.00000); SetObjectMaterial(euronomobj[14],0,7035,"vgnretail6","LAgreenwall",0); euronomobj[15] = CreateObject(3117, -457.69119, -2564.57227, 1490.80920, 0.00000, 90.00000, 60.00000); SetObjectMaterial(euronomobj[15],0,7035,"vgnretail6","LAgreenwall",0); euronomobj[16] = CreateObject(3117, -459.69119, -2562.97217, 1490.80920, 0.00000, 90.00000, 60.00000); SetObjectMaterial(euronomobj[16],0,7035,"vgnretail6","LAgreenwall",0); euronomobj[17] = CreateObject(1217, -472.82861, -2560.29712, 1484.92798, 0.00000, 0.00000, 0.00000); euronomobj[18] = CreateObject(1218, -470.55359, -2561.22729, 1484.99304, 0.00000, 0.00000, 0.00000); euronomobj[19] = CreateObject(1217, -471.78860, -2561.41699, 1484.92798, 0.00000, 0.00000, 0.00000); euronomobj[20] = CreateObject(1218, -468.53360, -2560.98730, 1484.99304, 0.00000, 0.00000, 0.00000); euronomobj[21] = CreateObject(1217, -467.50861, -2560.13696, 1484.92798, 0.00000, 0.00000, 0.00000); euronomobj[22] = CreateObject(1218, -470.55359, -2561.22729, 1484.99304, 0.00000, 0.00000, 0.00000); euronomobj[23] = CreateObject(1218, -465.53360, -2560.20728, 1484.99304, 0.00000, 0.00000, 0.00000); euronomobj[24] = CreateObject(3263, -469.53760, -2568.56885, 1486.19495, 0.00000, 180.00000, 0.00000); euronomobj[25] = CreateObject(3263, -471.53760, -2566.56885, 1486.19495, 0.00000, 180.00000, 0.00000); euronomobj[26] = CreateObject(3263, -470.47760, -2565.24878, 1486.19495, 0.00000, 180.00000, 0.00000); euronomobj[27] = CreateObject(18641, -469.54361, -2568.48779, 1486.21545, 110.00000, 0.00000, 0.00000); euronomobj[28] = CreateObject(18641, -471.62360, -2566.52783, 1486.19556, 110.00000, 90.00000, -30.00000); euronomobj[29] = CreateObject(18641, -470.58359, -2565.18774, 1486.19556, 110.00000, 90.00000, -30.00000); SetObjectMaterialText(euroobj[12], "{000000}Михаил\nБоярский", 0, OBJECT_MATERIAL_SIZE_512x512,"Tahoma", 50, 1, 0x000000AA, 0xFFFFFFAA, OBJECT_MATERIAL_TEXT_ALIGN_CENTER); SetObjectMaterial(fonhall,0,4186,"pershingsq","pershing1_LAn",0); euronomveh[0] = AddStaticVehicle(438,-463.6685,-2564.1541,1485.5428,163.9422,16,16); euronomveh[1] = AddStaticVehicle(420,-475.3936,-2564.5808,1485.3177,195.0776,16,16); LinkVehicleToInterior(euronomveh[0], 1); LinkVehicleToInterior(euronomveh[1], 1); SetVehicleVirtualWorld(euronomveh[0], 3); SetVehicleVirtualWorld(euronomveh[1], 3); if(statzanaves == false) { MoveObject(zanaves[0],-477.8515625,-2567.9114062,1498.2590332, 2); MoveObject(zanaves[1],-455.4511719,-2567.9184766,1498.2590332, 2); statzanaves = true; } strmid(urlaudiostrhall, "http://www.audiopoisk.com/files/mihail-boarskii/zelenoglazoe-taksi-4775.mp3?listen=1", 0, strlen("http://www.audiopoisk.com/files/mihail-boarskii/zelenoglazoe-taksi-4775.mp3?listen=1"), 400); musichall = true; for(new i=0; i<GetMaxPlayers(); i++) { if(PlayerToPoint(50.0,playerid,-470.1566,-2566.8118,1485.5391) && GetPlayerVirtualWorld(i) == 3) { StopAudioStreamForPlayer(i); PlayAudioStreamForPlayer(i,"http://www.audiopoisk.com/files/mihail-boarskii/zelenoglazoe-taksi-4775.mp3?listen=1", -470.1566,-2566.8118,1485.5391, 50.0,true); audiostr[i] = true; } } SetTimer("endnomone", 321000, 0); nomstart = true; ConnectNPC("npc1","npc11"); ConnectNPC("npc2","npc22"); ConnectNPC("npc3","npc33"); ConnectNPC("npc4","npc44"); } } } else if(!response) return 1; } case 1006: { if(response) { if(!strlen(inputtext)) return ShowPlayerDialog(playerid,1006,DIALOG_STYLE_INPUT,"Концертный зал | Билеты","Введите цену за билет.","Далее","Отмена"); if(strval(inputtext) < 1 || strval(inputtext) > 25000) return SendClientMessage(playerid,0xFFFFFFFF,"{FF0000}x{FFFFFF} Цена билета не может быть меньше 1$ и больше 25000$."); ticketprice = strval(inputtext); eurostart = true; euroobj[0] = CreateObject(982, 1101.30847, -1145.33081, 23.32540, 0.00000, 0.00000, 0.00000); euroobj[1] = CreateObject(982, 1141.54846, -1145.33081, 23.32540, 0.00000, 0.00000, 0.00000); euroobj[2] = CreateObject(7900, 1122.68604, -1130.87354, 32.13540, 0.00000, 0.00000, 0.00000); SetObjectMaterialText(euroobj[2], "{000000}Eurovision\nSong Contest", 0, OBJECT_MATERIAL_SIZE_512x512,"Tahoma", 50, 1, 0x000000AA, 0xFFFFFFAA, OBJECT_MATERIAL_TEXT_ALIGN_CENTER); euroobj[3] = CreateObject(7900, -492.48849, -2594.25879, 1489.93848, 0.00000, 0.00000, -90.00000); SetObjectMaterialText(euroobj[3], "{000000}Eurovision\nSong Contest", 0, OBJECT_MATERIAL_SIZE_512x512,"Tahoma", 50, 1, 0x000000AA, 0xFFFFFFAA, OBJECT_MATERIAL_TEXT_ALIGN_CENTER); euroobj[4] = CreateObject(2773, -493.88580, -2589.84375, 1483.49939, 0.00000, 0.00000, 90.00000); euroobj[5] = CreateObject(2773, -493.88580, -2592.00391, 1483.49939, 0.00000, 0.00000, 90.00000); euroobj[6] = CreateObject(2773, -493.88580, -2597.14380, 1483.49939, 0.00000, 0.00000, 90.00000); euroobj[7] = CreateObject(2773, -493.88580, -2599.24390, 1483.49939, 0.00000, 0.00000, 90.00000); euroobj[8] = CreateObject(2773, -495.80579, -2589.84375, 1483.49939, 0.00000, 0.00000, 90.00000); euroobj[9] = CreateObject(2773, -495.80579, -2592.00391, 1483.49939, 0.00000, 0.00000, 90.00000); euroobj[10] = CreateObject(2773, -495.80579, -2597.14380, 1483.49939, 0.00000, 0.00000, 90.00000); euroobj[11] = CreateObject(2773, -495.80579, -2599.24390, 1483.49939, 0.00000, 0.00000, 90.00000); euroobj[12] = CreateObject(7900, -469.14090, -2555.63208, 1487.96899, 0.00000, 0.00000, 0.00000); SetObjectMaterialText(euroobj[12], "{000000}Eurovision\nSong Contest", 0, OBJECT_MATERIAL_SIZE_512x512,"Tahoma", 50, 1, 0x000000AA, 0xFFFFFFAA, OBJECT_MATERIAL_TEXT_ALIGN_CENTER); SetObjectMaterial(fonhall,0,4186,"pershingsq","pershing1_LAn",0); if(statzanaves == true) { MoveObject(zanaves[0],-477.8515625,-2567.9114062,1491.2590332, 2); MoveObject(zanaves[1],-455.4511719,-2567.9184766,1491.2590332, 2); statzanaves = false; } new string[55]; format(string,sizeof(string),"Вы начали евровидение, цена билета: %d$",strval(inputtext)); SendClientMessage(playerid,0x33AA33AA,string); } else if(!response) return 1; }
В public OnPlayerCommandText Код if(!strcmp(cmd,"/eurovision",true)) { if(PlayerInfo[playerid][pAdmin] >= 5) { if(nomstart == true) return SendClientMessage(playerid,0xFFFFFFFF,"{FF0000}x{FFFFFF} Дождитесь окончания номера."); ShowPlayerDialog(playerid,1005,DIALOG_STYLE_LIST,"Концертный зал","Начать/Закончить евровидение\n1. Михаил Боярский \"Зеленоглазое такси\"","Далее","Отмена"); return 1; } else return SendClientMessage(playerid,0xFFFFFFFF,"{FF0000}x{FFFFFF} Вы не работник концертного зала."); }
P.S. Если вам понравится, сделаю еще 1-2 номера!
Автор: HDD
Сообщение отредактировал HDD - Среда, 20.08.2014, 19:06 |
|
|
|