05.04.2014, 10:25
Код HTML:
#include <a_samp> #if !defined IsValidVehicle native IsValidVehicle(vehicleid); #endif #define COLOR_DARKGOLD 0x808000AA #define COLOR_RED 0xFF0000AA #define COLOR_YELLOW 0xFFFF00AA #define Checkpoint1 -256.0010,-1542.3809,3.9930 #define Checkpoint2 -231.8289,-1467.9810,4.9421 #define Checkpoint3 -193.9747,-1375.2502,4.7856 #define Checkpoint4 -246.0348,-1326.1063,8.9300 #define Checkpoint5 -407.1459,-1371.5518,23.6588 #define Checkpoint6 -564.7697,-1302.4977,22.5511 #define Checkpoint7 -569.0633,-1508.3352,9.1518 new combinejobrunning = 0; forward GivePlayerOneExp(playerid); new Text3D:sclad; new pickup_rabota,pickup_driver,str[4],riba[MAX_PLAYERS],riba_gotova,pickup_lovla,pickup_dostavka,pickup_chistka,pickup_money,na_zp[MAX_PLAYERS]; new car_riba[3],riba_gruz[MAX_PLAYERS]; new Text3D:car_riba_text[2]; new Object[MAX_VEHICLES][6]; new ObjectMove; new VehicleJOB; new VehicleJOB1; new RacePoint[MAX_PLAYERS]; new Timer[MAX_PLAYERS]; new TimerCount[MAX_PLAYERS]; new Text:TextWarn; new TimerWarnVar[MAX_PLAYERS]; new TimerWarn[MAX_PLAYERS]; new Vehicle; new Vehicle1; new bool:ItCanContinue[MAX_PLAYERS]; public OnFilterScriptInit() { AddStaticVehicleEx(532,-370.1018,-1463.1403,26.6953,287.0754,0,0,10); // combine 1 AddStaticVehicleEx(532,-364.2571,-1479.7140,26.7041,285.6486,0,0,10); // combine 2 AddStaticVehicleEx(532,-361.6030,-1501.2618,24.8698,285.8201,0,0,10); // combine 3 Create3DTextLabel("Введите /Combine чтобы начать работать", COLOR_YELLOW,-370.1018,-1463.1403,26.6953,100.0, 0); Create3DTextLabel("Введите /Combine чтобы начать работать", COLOR_YELLOW,-364.2571,-1479.7140,26.7041,100.0, 0); Create3DTextLabel("Введите /Combine чтобы начать работать", COLOR_YELLOW,-361.6030,-1501.2618,24.8698,100.0, 0); //********************************* //=================== Пикапы and 3DText===================================== pickup_rabota = CreatePickup(19130,2,-9.7639,-1112.2391,8.0362); Create3DTextLabel("{FF4500}Работа: Рыбная промышленность\n{FFFF00}Чтобы устроится станьте на пикап",0xFFFF00FF,-9.7639,-1112.2391,8.0362,20.0,0); pickup_driver = CreatePickup(19130,2,-19.8515,-1111.7498,8.3651); Create3DTextLabel("{FF4500}Работа: Развоздчик рыбы\n{FFFF00}Чтобы устроится станьте на пикап",0xFFFF00FF,-19.8515,-1111.7498,8.3651,20.0,0); sclad = Create3DTextLabel("{FF4500}Склад: {FFFF00}Готовой рыбы = 0",0x008080FF,1.4924,-1153.1840,8.1584,40.0,0); pickup_money = CreatePickup(1274,23,-7.4677,-1132.1028,7.5675); Create3DTextLabel("{FF4500}Зарплата:{FFFF00}Станьте чтобы получить её",0x008080FF,-7.4677,-1132.1028,7.5675,40.0,0); car_riba_text[0] = Create3DTextLabel("{00FF00}Грузовик для доставки рыбы\n{FFFF00}За рулем {FF4500}[ПУСТО]\n{FFFF00}Рыбы загружено {FF4500}[ПУСТО]", 0xFF0000AA, 7.77, 7.77, 7.77, 25.0, 0, 1 ); car_riba_text[1] = Create3DTextLabel("{00FF00}Грузовик для доставки рыбы\n{FFFF00}За рулем {FF4500}[ПУСТО]\n{FFFF00}Рыбы загружено {FF4500}[ПУСТО]", 0xFF0000AA, 7.77, 7.77, 7.77, 25.0, 0, 1 ); //========================================================================== car_riba[0] = CreateVehicle(414,-21.4497566,-1107.3653564,8.4691639,268.0000000,6,1,240); //Mule Attach3DTextLabelToVehicle(car_riba_text[0], car_riba[0], 0.0, 0.0, 2.0 ); car_riba[1] = CreateVehicle(414,-21.5115509,-1103.0000000,8.4691639,267.9949951,6,1,240); // Attach3DTextLabelToVehicle(car_riba_text[1], car_riba[1], 0.0, 0.0, 2.0 ); //========================================================================== CreateObject(12990,31.8424034,-1121.5148926,1.4049788,0.0000000,0.0000000,116.0000000); //object(sw_jetty) (1) CreateObject(3569,-1.6346602,-1144.8240967,4.6715536,0.0000000,0.0000000,22.0000000); //object(lasntrk3) (1) CreateObject(3569,1.3556615,-1143.5238037,4.6715536,0.0000000,0.0000000,21.9946289); //object(lasntrk3) (2) CreateObject(3569,4.3931842,-1142.3411865,4.6715536,0.0000000,0.0000000,21.9946289); //object(lasntrk3) (3) CreateObject(3569,7.4302959,-1141.1585693,4.6715536,0.0000000,0.0000000,21.9946289); //object(lasntrk3) (4) CreateObject(3569,10.5233316,-1140.0438232,4.6715536,0.0000000,0.0000000,21.9946289); //object(lasntrk3) (5) CreateObject(3569,8.8657455,-1151.3939209,4.6715536,0.0000000,0.0000000,293.9946289); //object(lasntrk3) (6) CreateObject(8076,13.6654863,-1159.2508545,9.7367887,0.0000000,0.0000000,116.0000000); //object(vgsfrates05) (1) CreateObject(3796,13.1784344,-1148.1715088,6.1584249,0.0000000,0.0000000,22.0000000); //object(acbox1_sfs) (1) CreateObject(1601,13.6064358,-1147.9824219,7.3004684,0.0000000,0.0000000,18.0000000); //object(fish3s) (1) CreateObject(1600,12.6379938,-1148.5947266,7.1584249,0.0000000,0.0000000,0.0000000); //object(fish2single) (1) CreateObject(1331,-9.7354431,-1154.2518311,7.2510490,0.0000000,0.0000000,274.0000000); //object(binnt01_la) (1) CreateObject(910,-10.4943352,-1151.6308594,7.6189528,0.0000000,0.0000000,116.0000000); //object(bust_cabinet_4) (1) CreateObject(1264,12.6310043,-1149.1781006,7.6305690,0.0000000,0.0000000,0.0000000); //object(blackbag1) (1) CreateObject(1264,12.6354084,-1147.5008545,7.1305690,0.0000000,0.0000000,0.0000000); //object(blackbag1) (2) CreateObject(1594,-5.6772475,-1133.2309570,6.9354138,0.0000000,0.0000000,0.0000000); //object(chairsntable) (1) CreateObject(3504,-8.3562975,-1125.4653320,8.1631603,0.0000000,0.0000000,282.0000000); //object(vgsn_portaloo) (1) CreateObject(3504,-8.8868608,-1122.6455078,8.1631603,0.0000000,0.0000000,283.9951172); //object(vgsn_portaloo) (2) CreateObject(3170,-7.0510988,-1112.3035889,6.5865326,0.0000000,0.0000000,184.0000000); //object(trailer_large3_01) (1) CreateObject(803,-5.1918297,-1103.9746094,6.3912520,0.0000000,0.0000000,0.0000000); //object(genveg_bush09) (1) CreateObject(803,-8.8876352,-1103.5866699,6.8912520,0.0000000,0.0000000,0.0000000); //object(genveg_bush09) (2) CreateObject(617,33.4282684,-1152.2462158,6.9909248,0.0000000,0.0000000,0.0000000); //object(veg_treeb1) (1) CreateObject(617,6.7303767,-1182.0732422,4.9909248,0.0000000,0.0000000,0.0000000); //object(veg_treeb1) (2) CreateObject(687,34.9679718,-1181.6066895,4.3830662,0.0000000,0.0000000,0.0000000); //object(sm_fir_) (1) CreateObject(1594,-6.5875502,-1130.3051758,6.9354138,0.0000000,0.0000000,0.0000000); //object(chairsntable) (2) CreateObject(2222,-6.6151066,-1130.3125000,7.4813886,0.0000000,0.0000000,0.0000000); //object(rustyhigh) (1) CreateObject(2222,-5.8667426,-1133.3229980,7.4813886,0.0000000,0.0000000,7.7500000); //object(rustyhigh) (2) CreateObject(1391,-16.0058594,-1145.2978516,3.7966857,0.0000000,0.0000000,21.4952393); //object(twrcrane_s_03) (1) CreateObject(3675,-10.4286814,-1143.5123291,15.1561451,271.9999695,0.0000000,288.0000000); //object(laxrf_refinerypipe) (1) CreateObject(2917,-7.7841063,-1142.7644043,13.1909599,0.0000000,0.0000000,18.0000000); //object(a51_crane) (2) CreateObject(1232,-11.0666084,-1106.6171875,9.0437870,0.0000000,0.0000000,0.0000000); //object(streetlamp1) (1) CreateObject(1232,-8.0669661,-1127.9460449,9.0437870,0.0000000,0.0000000,0.0000000); //object(streetlamp1) (2) CreateObject(1232,8.5670919,-1132.2172852,9.0437870,0.0000000,0.0000000,0.0000000); //object(streetlamp1) (3) CreateObject(2971,8.3349361,-1134.3409424,7.1084247,0.0000000,0.0000000,0.0000000); //object(k_smashboxes) (1) CreateObject(1448,9.7932177,-1142.4635010,7.2258058,0.0000000,0.0000000,0.0000000); //object(dyn_crate_1) (1) CreateObject(923,13.1396132,-1143.5490723,8.0381117,0.0000000,0.0000000,290.0000000); //object(packing_carates2) (1) CreateObject(1440,-11.5503120,-1149.4822998,6.8049955,0.0000000,0.0000000,0.0000000); //object(dyn_box_pile_3) (1) CreateObject(1338,2.9268136,-1154.1560059,7.8697348,0.0000000,0.0000000,0.0000000); //object(binnt08_la) (1) CreateObject(2315,-1.0138236,-1142.8787842,7.1584249,0.0000000,0.0000000,0.0000000); //object(cj_tv_table4) (1) CreateObject(2315,-1.0492404,-1141.8475342,7.1584249,0.0000000,0.0000000,0.0000000); //object(cj_tv_table4) (2) CreateObject(2315,-1.0076244,-1140.8168945,7.1584249,0.0000000,0.0000000,0.0000000); //object(cj_tv_table4) (3) CreateObject(2315,-0.9656322,-1139.7866211,7.1584249,0.0000000,0.0000000,0.0000000); //object(cj_tv_table4) (4) CreateObject(5130,-0.7663282,-1128.6748047,4.0261674,0.0000000,0.0000000,68.0000000); //object(imcompstrs02) (1) CreateObject(1607,-0.3855351,-1142.2141113,8.8289242,0.0000000,0.0000000,0.0000000); //object(dolphin) (2) CreateObject(2907,0.5824878,-1141.4232178,7.8140931,0.0000000,0.0000000,0.0000000); //object(kmb_deadtorso) (1) CreateObject(2907,0.0455052,-1142.0032959,7.8140931,0.0000000,0.0000000,322.0000000); //object(kmb_deadtorso) (2) CreateObject(2907,0.4065377,-1142.6599121,7.8140931,0.0000000,0.0000000,37.9982910); //object(kmb_deadtorso) (3) CreateObject(18220,40.3837128,-1131.6072998,-0.7500000,0.0000000,0.0000000,44.0000000); //object(mtbfence10) (1) CreateObject(1601,30.1957226,-1127.7617188,0.0000000,0.0000000,0.0000000,56.0000000); //object(fish3s) (2) CreateObject(1601,32.2970352,-1129.1152344,0.0000000,0.0000000,0.0000000,55.9973145); //object(fish3s) (3) CreateObject(1601,28.7360573,-1126.7031250,0.0000000,0.0000000,0.0000000,55.9973145); //object(fish3s) (4) CreateObject(892,20.2060928,-1141.7702637,5.7398086,0.0000000,0.0000000,0.0000000); //object(hazelweetree_po) (1) CreateObject(700,-12.6598282,-1156.6424561,5.6314344,0.0000000,0.0000000,0.0000000); //object(sm_veg_tree6) (1) CreateObject(700,-20.0522327,-1131.6464844,3.8814344,0.0000000,0.0000000,0.0000000); //object(sm_veg_tree6) (2) CreateObject(10843,-221.3158875,-218.3576355,8.5160446,0.0000000,0.0000000,90.0000000); //object(bigshed_sfse01) (1) CreateObject(18257,-211.6882172,-243.2566376,0.4218750,0.0000000,0.0000000,90.0000000); //object(crates) (1) CreateObject(4100,-210.4979706,-264.6452942,1.8735447,0.0000000,0.0000000,50.0000000); //object(meshfence1_lan) (1) CreateObject(4100,-215.8048401,-275.9200439,1.8735447,0.0000000,0.0000000,357.9987793); //object(meshfence1_lan) (2) CreateObject(4100,-225.4179688,-275.1640625,1.8735447,0.0000000,0.0000000,269.9949951); //object(meshfence1_lan) (3) CreateObject(4100,-244.0417328,-251.3281555,1.8735447,0.0000000,0.0000000,267.9949951); //object(meshfence1_lan) (4) CreateObject(8042,-234.5924377,-262.1698303,6.2892685,0.0000000,0.0000000,234.0000000); //object(apbarriergate07_lvs) (1) CreateObject(16446,-234.1049194,-236.6978607,5.6453314,0.0000000,0.0000000,0.0000000); //object(quarry_weecrushr) (1) CreateObject(16003,-23.5955029,-1111.3389893,8.4915142,0.0000000,0.0000000,268.0000000); //object(drvin_ticket) (1) CreateObject(2973,-235.7152100,-241.4815063,0.4218750,0.0000000,0.0000000,0.0000000); //object(k_cargo2) (1) CreateObject(2973,-235.7165833,-244.4918823,0.4218750,0.0000000,0.0000000,0.0000000); //object(k_cargo2) (2) //************************* TextWarn = TextDrawCreate(155.000000, 388.000000, " "); TextDrawBackgroundColor(TextWarn, 255); TextDrawFont(TextWarn, 1); TextDrawLetterSize(TextWarn, 0.500000, 1.700000); TextDrawColor(TextWarn, -1); TextDrawSetOutline(TextWarn, 0); TextDrawSetProportional(TextWarn, 1); TextDrawSetShadow(TextWarn, 1); VehicleJOB = CreateVehicle(578, -2227.0730, 295.5872, 35.7419, 0.0777, 32,17, 30); Vehicle = CreateVehicle(506, -2227.0730, 295.5871, 35.7421, 0.0777, 32,17, -1); VehicleJOB1 = CreateVehicle(578, -2210.2983, 295.1306, 35.7416, 359.0443, 32,17, 30); Vehicle1 = CreateVehicle(506, -2210.2983,295.1305,35.7418, 0.0777, 32,17, -1); //* Object[VehicleJOB][0] = CreateObject(11474,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Object[VehicleJOB][0], VehicleJOB, 1.660000,0.834999,0.410000,-0.360000,3.240001,96.659988); Object[VehicleJOB][1] = CreateObject(11474,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Object[VehicleJOB][1], VehicleJOB, 1.660000,-1.994998,0.410000,-0.360000,3.240001,96.659988); Object[VehicleJOB][2] = CreateObject(11474,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Object[VehicleJOB][2], VehicleJOB, 1.660000,-4.094998,0.410000,-0.360000,3.240001,96.659988); Object[VehicleJOB][3] = CreateObject(11474,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Object[VehicleJOB][3], VehicleJOB, -1.310000,-4.094998,0.410000,-0.360000,3.240001,96.659988); Object[VehicleJOB][4] = CreateObject(11474,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Object[VehicleJOB][4], VehicleJOB, -1.310000,-1.254999,0.410000,-0.360000,3.240001,96.659988); Object[VehicleJOB][5] = CreateObject(11474,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Object[VehicleJOB][5], VehicleJOB, -1.310000,0.809999,0.410000,-0.360000,3.240001,96.659988); ObjectMove = CreateObject(11474,0,0,-1000,0,0,0,100); AttachObjectToVehicle(ObjectMove, VehicleJOB, -0.049999,-5.694999,0.385000,-6.839998,4.500001,6.840000); Object[VehicleJOB1][0] = CreateObject(11474,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Object[VehicleJOB1][0], VehicleJOB1, 1.660000,0.834999,0.410000,-0.360000,3.240001,96.659988); Object[VehicleJOB1][1] = CreateObject(11474,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Object[VehicleJOB1][1], VehicleJOB1, 1.660000,-1.994998,0.410000,-0.360000,3.240001,96.659988); Object[VehicleJOB1][2] = CreateObject(11474,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Object[VehicleJOB1][2], VehicleJOB1, 1.660000,-4.094998,0.410000,-0.360000,3.240001,96.659988); Object[VehicleJOB1][3] = CreateObject(11474,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Object[VehicleJOB1][3], VehicleJOB1, -1.310000,-4.094998,0.410000,-0.360000,3.240001,96.659988); Object[VehicleJOB1][4] = CreateObject(11474,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Object[VehicleJOB1][4], VehicleJOB1, -1.310000,-1.254999,0.410000,-0.360000,3.240001,96.659988); Object[VehicleJOB1][5] = CreateObject(11474,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Object[VehicleJOB1][5], VehicleJOB1, -1.310000,0.809999,0.410000,-0.360000,3.240001,96.659988); ObjectMove = CreateObject(11474,0,0,-1000,0,0,0,100); AttachObjectToVehicle(ObjectMove, VehicleJOB1, -0.049999,-5.694999,0.385000,-6.839998,4.500001,6.840000); } public OnPlayerConnect(playerid) { riba_gotova = 0; riba[playerid] = 0; na_zp[playerid] = 0; //********* ItCanContinue[playerid] = false; RacePoint[playerid] = 0; return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == pickup_rabota) { ShowPlayerDialog(playerid,880,DIALOG_STYLE_MSGBOX,"{00FF00}Информация о работе","{FFFF00}1.Вы должны сначало достать рыбу из сетки.\n2.Далее вы должны её отнести в коробки\n3.Потом её почистить","ОК","Отмена"); } else if(pickupid == pickup_lovla) { ApplyAnimation(playerid,"CARRY","BOM_Plant",4.1,0,1,1,1,1); SetTimerEx("lovla_end", 5000, false,"i",playerid); SendClientMessage(playerid,-1,"Подождите некоторое время пока вы вытящите рыбу из сетки"); ApplyAnimation(playerid,"CARRY","BOM_Plant",4.1,0,1,1,1,1); TogglePlayerControllable(playerid, 0); } else if(pickupid == pickup_dostavka) { if(riba[playerid] == 0) return SendClientMessage(playerid,0xFF4500,"Сначала вытащите рыбу из сетки"); new sisi[128]; format(sisi,128,"{FFFF00}Вы положили рыбу в коробку в количестве {FF4500}%d {FFFF00}штуки,теперь идите почистите её",riba[playerid]); ShowPlayerDialog(playerid,883,DIALOG_STYLE_MSGBOX,"{00FF00}Информация",sisi,"ОК",str); riba[playerid] = 0; pickup_chistka = CreatePickup(19130,2,2.3035,-1141.9071,8.1584); ApplyAnimation(playerid,"PED","IDLE_tired",4.1,0,1,1,0,1); RemovePlayerAttachedObject(playerid,2); SetPlayerCheckpoint(playerid,2.3035,-1141.9071,8.1584,3.0); SetPVarInt(playerid,"dostavka_ok",1); } else if(pickupid == pickup_chistka) { if(GetPVarInt(playerid,"dostavka_ok") == 0) return SendClientMessage(playerid,0xFF4500,"Сначала вытащите рыбу из сетки"); SendClientMessage(playerid,-1,"Подождите некоторое время пока вы почистите рыбу"); SetTimerEx("chistka_end",5000,false,"i",playerid); SetPVarInt(playerid,"dostavka_ok",0); TogglePlayerControllable(playerid, 0); } else if(pickupid == pickup_money) { new stro[80]; if(na_zp[playerid] == 0) return SendClientMessage(playerid,-1,"Вы еще не здали не одной рыбки на склад, приходите когда сдадите хотябы одну"); GivePlayerMoney(playerid,na_zp[playerid] * 2); format(stro,80,"Вы заработали с учётом умножения %d",na_zp[playerid]); SendClientMessage(playerid,-1,stro); na_zp[playerid] = 0; } else if(pickupid == pickup_driver) { ShowPlayerDialog(playerid,885,DIALOG_STYLE_MSGBOX,"{00FF00}Информация о работе","{FFFF00}Здесь можно устроится работать развозчиком сырой рыбы на завод,вы хотите устроится?","Да","Нет"); } return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 654) { if(response) { Timer[playerid] = SetTimerEx("CountDown", 1000, true, "d", playerid); TogglePlayerControllable(playerid, false); SetCameraBehindPlayer(playerid); TimerCount[playerid] = 0; TimerWarnVar[playerid] = 20; new engine, lights, alarm, doors, bonnet, boot, objective; GetVehicleParamsEx(Vehicle, engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(Vehicle, engine, lights, alarm, doors, bonnet, boot, true); PlayAudioStreamForPlayer(playerid, "http://tangible-technology.com/music/beatles/ppm/Track%2008.mp3"); if(!IsValidVehicle(Vehicle)) { Vehicle = CreateVehicle(506, -2227.0730, 295.5871, 35.7421, 0.0777, 32,17, -1); Vehicle1 = CreateVehicle(506, -2210.2983, 295.1305, 35.7418, 0.0777, 32,17, -1); } } else { RemovePlayerFromVehicle(playerid); } } if(dialogid == 880 && response) { if(GetPVarInt(playerid,"use_rabota") == 1) return SendClientMessage(playerid,-1,"{00FF00}Вы уже работаете!"); SetPVarInt(playerid,"use_rabota",1); SetPlayerSkin(playerid,261); ShowPlayerDialog(playerid,881,DIALOG_STYLE_MSGBOX,"{00FF00}Информация","Вы успешно устроились на работу,идите на берег где стоит сетка чтобы вытащить рыбу","ОК",str); pickup_lovla = CreatePickup(19130,2,30.6226,-1129.9591,-0.3732); SetPlayerCheckpoint(playerid,30.6226,-1129.9591,-0.3732,3.0); } if(dialogid == 885 && response) { if(GetPVarInt(playerid,"use_driver") == 1) return SendClientMessage(playerid,-1,"{00FF00}Вы уже работаете!"); SetPVarInt(playerid,"use_driver",1); SetPlayerSkin(playerid,261); ShowPlayerDialog(playerid,886,DIALOG_STYLE_MSGBOX,"{00FF00}Информация","Вы успешно устроились на работу,садитесь в авто и грузитесь","ОК",str); } return 1; } forward lovla_end(playerid); public lovla_end(playerid) { new pipi[128]; riba[playerid] += random(6); format(pipi,128,"{FFFF00}Вы успешно достали {FF4500}%d {FFFF00}рыбы из сетки\nТеперь отнесите рыбу к ящикам",riba[playerid]); ShowPlayerDialog(playerid,882,DIALOG_STYLE_MSGBOX,"{00FF00}Информация",pipi,"ОК",str); ApplyAnimation(playerid,"CARRY","crry_prtial",4.1,0,1,1,1,1); SetPlayerAttachedObject(playerid, 2, 2060, 5, 0.01, 0.1, 0.2, 100, 10, 85); pickup_dostavka = CreatePickup(19130,2,10.9993,-1148.5588,8.1584); SetPVarInt(playerid,"lovla_ok",1); SetPlayerCheckpoint(playerid,10.9993,-1148.5588,8.1584,3.0); TogglePlayerControllable(playerid, 1); } forward chistka_end(playerid); public chistka_end(playerid) { if(riba_gotova == 20) return SendClientMessage(playerid,-1,"{00FF00}Склад полон!{00FF00} Ждите пока грузовик заберёт товар и отвезет на завод, и вы сможете продолжить дальше") && TogglePlayerControllable(playerid, 1); new pipis[128],stry[128]; riba_gotova += 5; format(pipis,128,"{FFFF00}Вы успешно почистили рыбу\nНа складе теперь {00FF00}%d {FFFF00}готовой рыбы",riba_gotova,riba_gotova); ShowPlayerDialog(playerid,884,DIALOG_STYLE_MSGBOX,"{00FF00}Информация",pipis,"ОК",str); format(stry,128,"{FF4500}Склад: {FFFF00}Готовой рыбы = {00FF00}%d",riba_gotova); Update3DTextLabelText(sclad, 0xFFFFFFFF,stry); TogglePlayerControllable(playerid, 1); na_zp[playerid] ++; return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/abrir", cmdtext, true, 10) == 0) { DestroyObject(ObjectMove); ObjectMove = CreateObject(11474,0,0,-1000,0,0,0,100); AttachObjectToVehicle(ObjectMove, VehicleJOB, -0.0000, -5.825006, -1.039999, 154.259918,6.300012,-9.000000); AttachObjectToVehicle(ObjectMove, VehicleJOB1, -0.0000, -5.825006, -1.039999, 154.259918,6.300012,-9.000000); return 1; } if (strcmp("/combine", cmdtext, true, 10) == 0) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 532) { SetPlayerCheckpoint(playerid, Checkpoint1, 3.0); CreateObject(823,-256.0010,-1542.3809,3.9930,0,0,0); combinejobrunning = 1; GameTextForPlayer(playerid, "~g~Ты начал работать на ферме!", 3000, 3); new name[MAX_PLAYER_NAME], string[48]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s начал работать на ферме.", name ); SendClientMessageToAll(COLOR_RED, string); return 1; } SendClientMessage(playerid, COLOR_RED,"Вы начали работу фермера"); } return 0; } public OnPlayerEnterRaceCheckpoint(playerid) { switch(RacePoint[playerid]) { case 1: { if(IsPlayerInVehicle(playerid, VehicleJOB)) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid, 0, -2201.8064, 319.9278, 35.1719, -2181.4182, 320.1506, 35.7966, 10.0); RacePoint[playerid] = 2; ToVerify(playerid); } } case 2: { if(IsPlayerInVehicle(playerid, VehicleJOB)) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid, 0, -2146.6902, 323.4319, 35.1641, -2146.5986, 330.7473, 35.1719, 10.0); RacePoint[playerid] = 3; ToVerify(playerid); } } case 3: { if(IsPlayerInVehicle(playerid, VehicleJOB)) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid, 0, -2143.7305, 731.0673, 69.4104, -2153.7495, 731.0192, 69.4141, 10.0); RacePoint[playerid] = 4; ToVerify(playerid); } } case 4: { if(IsPlayerInVehicle(playerid, VehicleJOB)) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid, 0, -2261.3171, 730.8754, 49.2969, -2261.3440, 740.1472, 49.2969, 10.0); RacePoint[playerid] = 5; ToVerify(playerid); } } case 5: { if(IsPlayerInVehicle(playerid, VehicleJOB)) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid, 0, -2269.5669, 1237.2422, 45.8456, -2260.3965, 1247.1711, 44.1987, 10.0); RacePoint[playerid] = 6; ToVerify(playerid); } } case 6: { if(IsPlayerInVehicle(playerid, VehicleJOB)) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid, 1, -2072.8286, 1275.1196, 10.1820, -2068.5383, 1276.0862, 9.3181, 10.0); RacePoint[playerid] = 7; ToVerify(playerid); } } case 7: { if(IsPlayerInVehicle(playerid, VehicleJOB)) { ToVerify(playerid); if(ItCanContinue[playerid] == true) { DisablePlayerRaceCheckpoint(playerid); new engine[2], lights[2], alarm[2], doors[2], bonnet[2], boot[2], objective[2]; GivePlayerWeapon(playerid, 35, 3); RemovePlayerFromVehicle(playerid); RacePoint[playerid] = 0; GameTextForPlayer(playerid, "Completed mission.", 2000, 0); GetVehicleParamsEx(VehicleJOB, engine[0], lights[0], alarm[0], doors[0], bonnet[0], boot[0], objective[0]); SetVehicleParamsEx(VehicleJOB, engine[0], lights[0], alarm[0], true, bonnet[0], boot[0], objective[0]); GetVehicleParamsEx(Vehicle, engine[1], lights[1], alarm[1], doors[1], bonnet[1], boot[1], objective[1]); SetVehicleParamsEx(Vehicle, engine[1], lights[1], alarm[1], doors[1], bonnet[1], boot[1], false); for(new i = 0; i < 6; i++) { DestroyObject(Object[VehicleJOB][i]); } DestroyObject(ObjectMove); } switch(RacePoint[playerid]) { case 1: { if(IsPlayerInVehicle(playerid, VehicleJOB1)) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid, 0, -2201.8064, 319.9278, 35.1719, -2181.4182, 320.1506, 35.7966, 10.0); RacePoint[playerid] = 2; ToVerify(playerid); } } case 2: { if(IsPlayerInVehicle(playerid, VehicleJOB1)) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid, 0, -2146.6902, 323.4319, 35.1641, -2146.5986, 330.7473, 35.1719, 10.0); RacePoint[playerid] = 3; ToVerify(playerid); } } case 3: { if(IsPlayerInVehicle(playerid, VehicleJOB1)) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid, 0, -2143.7305, 731.0673, 69.4104, -2153.7495, 731.0192, 69.4141, 10.0); RacePoint[playerid] = 4; ToVerify(playerid); } } case 4: { if(IsPlayerInVehicle(playerid, VehicleJOB1)) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid, 0, -2261.3171, 730.8754, 49.2969, -2261.3440, 740.1472, 49.2969, 10.0); RacePoint[playerid] = 5; ToVerify(playerid); } } case 5: { if(IsPlayerInVehicle(playerid, VehicleJOB1)) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid, 0, -2269.5669, 1237.2422, 45.8456, -2260.3965, 1247.1711, 44.1987, 10.0); RacePoint[playerid] = 6; ToVerify(playerid); } } case 6: { if(IsPlayerInVehicle(playerid, VehicleJOB1)) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid, 1, -2072.8286, 1275.1196, 10.1820, -2068.5383, 1276.0862, 9.3181, 10.0); RacePoint[playerid] = 7; ToVerify(playerid); } } case 7: { if(IsPlayerInVehicle(playerid, VehicleJOB1)) { ToVerify(playerid); if(ItCanContinue[playerid] == true) { DisablePlayerRaceCheckpoint(playerid); new engine[2], lights[2], alarm[2], doors[2], bonnet[2], boot[2], objective[2]; GivePlayerWeapon(playerid, 35, 3); RemovePlayerFromVehicle(playerid); RacePoint[playerid] = 0; GameTextForPlayer(playerid, "Completed mission.", 2000, 0); GetVehicleParamsEx(VehicleJOB1, engine[0], lights[0], alarm[0], doors[0], bonnet[0], boot[0], objective[0]); SetVehicleParamsEx(VehicleJOB1, engine[0], lights[0], alarm[0], true, bonnet[0], boot[0], objective[0]); GetVehicleParamsEx(Vehicle1, engine[1], lights[1], alarm[1], doors[1], bonnet[1], boot[1], objective[1]); SetVehicleParamsEx(Vehicle1, engine[1], lights[1], alarm[1], doors[1], bonnet[1], boot[1], false); for(new i = 0; i < 6; i++) { DestroyObject(Object[VehicleJOB1][i]); } DestroyObject(ObjectMove); } } } } return 1; } public OnPlayerEnterCheckpoint(playerid) { if(IsPlayerInRangeOfPoint(playerid, 5.0, 30.6226,-1129.9591,-0.3732) || IsPlayerInRangeOfPoint(playerid, 5.0, 10.9993,-1148.5588,8.1584) || IsPlayerInRangeOfPoint(playerid, 5.0, 2.3035,-1141.9071,8.1584)) { DisablePlayerCheckpoint(playerid); } if(IsPlayerInRangeOfPoint(playerid, 5.0,-4.8921,-1155.0200,7.5475)) { if(riba_gotova < 1) return SendClientMessage(playerid,-1,"Склад пустой!"); new nick[MAX_PLAYER_NAME],strys[512]; new newcar = GetPlayerVehicleID(playerid); GetPlayerName(playerid,nick,sizeof(nick)); riba_gruz[playerid] = riba_gotova; riba_gotova = 0; if(IsPlayerInAnyVehicle(playerid) && GetPVarInt(playerid,"driver_go") == 1) { if(newcar == car_riba[0]) { ShowPlayerDialog(playerid,887,DIALOG_STYLE_MSGBOX,"{00FF00}Информация","Вы загрузились,отвезите рыбу на завод","ОК",str); format(strys,128,"{00FF00}Грузовик для доставки рыбы\n{FFFF00}За рулем {FF4500}[%s]\n{FFFF00}Рыбы загружено {FF4500}[%d]",nick,riba_gruz[playerid]); Update3DTextLabelText(car_riba_text[0], 0xFFFFFFFF,strys); riba_gotova = 0; format(strys,128,"{FF4500}Склад: {FFFF00}Готовой рыбы = {00FF00}%d",riba_gotova); Update3DTextLabelText(sclad, 0xFFFFFFFF,strys); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-223.2375,-240.5192,1.4219,3.0); } if(newcar == car_riba[1]) { ShowPlayerDialog(playerid,887,DIALOG_STYLE_MSGBOX,"{00FF00}Информация","Вы загрузились,отвезите рыбу на завод","ОК",str); format(strys,128,"{00FF00}Грузовик для доставки рыбы\n{FFFF00}За рулем {FF4500}[%s]\n{FFFF00}Рыбы загружено {FF4500}[%d]",nick,riba_gruz[playerid]); Update3DTextLabelText(car_riba_text[1], 0xFFFFFFFF,strys); riba_gotova = 0; format(strys,128,"{FF4500}Склад: {FFFF00}Готовой рыбы = {00FF00}%d",riba_gotova); Update3DTextLabelText(sclad, 0xFFFFFFFF,strys); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-223.2375,-240.5192,1.4219,5.0); } } if(IsPlayerInRangeOfPoint(playerid, 5.0,-223.2375,-240.5192,1.4219)) { if(newcar == car_riba[0]) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-4.8921,-1155.0200,7.5475,3.0); GivePlayerMoney(playerid,500); riba_gruz[playerid] = 0; format(strys,128,"{00FF00}Грузовик для доставки рыбы\n{FFFF00}За рулем {FF4500}[%s]\n{FFFF00}Рыбы загружено {FF4500}[%d]",nick,riba_gruz[playerid]); Update3DTextLabelText(car_riba_text[0], 0xFFFFFFFF,strys); SendClientMessage(playerid,-1,"{00FF00}Вы разгрузились и получили 500$ ,едьте грузится дальше"); } if(newcar == car_riba[1]) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-4.8921,-1155.0200,7.5475,3.0); GivePlayerMoney(playerid,500); riba_gruz[playerid] = 0; format(strys,128,"{00FF00}Грузовик для доставки рыбы\n{FFFF00}За рулем {FF4500}[%s]\n{FFFF00}Рыбы загружено {FF4500}[%d]",nick,riba_gruz[playerid]); Update3DTextLabelText(car_riba_text[1], 0xFFFFFFFF,strys); } } else { SendClientMessage(playerid,-1,"{00FF00}Вы не в авто!"); } } if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 532) { if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint1)) { SetPlayerCheckpoint(playerid, Checkpoint2, 7.0); CreateObject(823,-231.8289,-1467.9810,4.9421,0,0,0); } if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint2)) { SetPlayerCheckpoint(playerid, Checkpoint3, 7.0); CreateObject(823,-193.9747,-1375.2502,4.7856,0,0,0); } if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint3)) { SetPlayerCheckpoint(playerid, Checkpoint4, 7.0); CreateObject(823,-246.0348,-1326.1063,8.9300,0,0,0); } if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint4)) { SetPlayerCheckpoint(playerid, Checkpoint5, 7.0); CreateObject(823,-407.1459,-1371.5518,23.6588,0,0,0); } if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint5)) { SetPlayerCheckpoint(playerid, Checkpoint6, 7.0); CreateObject(823,-564.7697,-1302.4977,22.5511,0,0,0); } if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint6)) { SetPlayerCheckpoint(playerid, Checkpoint7, 7.0); } if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpoint7)) { GivePlayerWeapon(playerid, 35, 3); GameTextForPlayer(playerid, "~g~Ты прошел миссию!", 3000, 3); SetVehicleToRespawn(2); DisablePlayerCheckpoint(playerid); combinejobrunning = 0; } } } public OnPlayerExitVehicle(playerid, vehicleid) { if((combinejobrunning) == 1) { combinejobrunning = 0; SendClientMessage(playerid, COLOR_RED, "Если вы покините машину то миссия будет провалена."); }else if((combinejobrunning) == 0){ } } public OnPlayerDeath(playerid, killerid, reason) { DisablePlayerCheckpoint(playerid); combinejobrunning = 0; return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER) { if(IsPlayerInVehicle(playerid, VehicleJOB)) { if(RacePoint[playerid] == 0) { ShowPlayerDialog(playerid, 654, DIALOG_STYLE_MSGBOX, "{00FFFF}Перевозчик.", \ "{FFFFFF}Вы хотите начать работать {FF0000}Перевозчиком {FFFFFF}?", "ДА", "НЕТ"); } else if(RacePoint[playerid] > 0) { TimerWarnVar[playerid] = 20; KillTimer(TimerWarn[playerid]); TextDrawHideForPlayer(playerid, TextWarn); } if(IsPlayerInVehicle(playerid, VehicleJOB1)) { if(RacePoint[playerid] == 0) { ShowPlayerDialog(playerid, 654, DIALOG_STYLE_MSGBOX, "{00FFFF}Перевозчик.", \ "{FFFFFF}Вы хотите начать работать {FF0000}Перевозчиком {FFFFFF}?", "ДА", "НЕТ"); } else if(RacePoint[playerid] > 0) { TimerWarnVar[playerid] = 20; KillTimer(TimerWarn[playerid]); TextDrawHideForPlayer(playerid, TextWarn); } } } if(oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT) { if(RacePoint[playerid] >= 1) { TimerWarn[playerid] = SetTimerEx("TimerWarnCallback", 1000, true, "d", playerid); TextDrawShowForPlayer(playerid, TextWarn); TextDrawSetString(TextWarn, "~w~It has ~r~20 seconds ~w~to enter to the vehicle."); } } new nick[MAX_PLAYER_NAME],stry[512]; new newcar = GetPlayerVehicleID(playerid); if(newstate == PLAYER_STATE_DRIVER) { if(newcar == car_riba[0]) { if(GetPVarInt(playerid,"use_driver") == 0) return SendClientMessage(playerid,-1,"{00FF00}Вы не работаете развозчиком рыбы!") && RemovePlayerFromVehicle(playerid); GetPlayerName(playerid,nick,sizeof(nick)); format(stry,128,"{00FF00}Грузовик для доставки рыбы\n{FFFF00}За рулем {FF4500}[%s]\n{FFFF00}Рыбы загружено {FF4500}[ПУСТО]",nick); Update3DTextLabelText(car_riba_text[0], 0xFFFFFFFF,stry); SetPlayerCheckpoint(playerid,-4.8921,-1155.0200,7.5475,3.0); SetPVarInt(playerid,"driver_go",1); } if(newcar == car_riba[1]) { if(GetPVarInt(playerid,"use_driver") == 0) return SendClientMessage(playerid,-1,"{00FF00}Вы не работаете развозчиком рыбы!") && RemovePlayerFromVehicle(playerid); GetPlayerName(playerid,nick,sizeof(nick)); format(stry,128,"{00FF00}Грузовик для доставки рыбы\n{FFFF00}За рулем {FF4500}[%s]\n{FFFF00}Рыбы загружено {FF4500}[ПУСТО]",nick); Update3DTextLabelText(car_riba_text[1], 0xFFFFFFFF,stry); SetPlayerCheckpoint(playerid,-4.8921,-1155.0200,7.5475,3.0); SetPVarInt(playerid,"driver_go",1); } } if(newstate == PLAYER_STATE_ONFOOT) { return 1; } return 1; } public OnVehicleSpawn(vehicleid) { if(vehicleid == VehicleJOB) { if(!IsValidVehicle(Vehicle)) { Vehicle = CreateVehicle(506, -2227.0730, 295.5871, 35.7421, 0.0777, 32,17, -1); } for(new i = 0; i < 6; i++) { if(!IsValidObject(Object[VehicleJOB][i])) { Object[VehicleJOB][0] = CreateObject(11474,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Object[VehicleJOB][0], VehicleJOB, 1.660000,0.834999,0.410000,-0.360000,3.240001,96.659988); Object[VehicleJOB][1] = CreateObject(11474,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Object[VehicleJOB][1], VehicleJOB, 1.660000,-1.994998,0.410000,-0.360000,3.240001,96.659988); Object[VehicleJOB][2] = CreateObject(11474,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Object[VehicleJOB][2], VehicleJOB, 1.660000,-4.094998,0.410000,-0.360000,3.240001,96.659988); Object[VehicleJOB][3] = CreateObject(11474,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Object[VehicleJOB][3], VehicleJOB, -1.310000,-4.094998,0.410000,-0.360000,3.240001,96.659988); Object[VehicleJOB][4] = CreateObject(11474,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Object[VehicleJOB][4], VehicleJOB, -1.310000,-1.254999,0.410000,-0.360000,3.240001,96.659988); Object[VehicleJOB][5] = CreateObject(11474,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Object[VehicleJOB][5], VehicleJOB, -1.310000, 0.809999, 0.410000, -0.360000, 3.240001, 96.659988); } } if(!IsValidObject(ObjectMove)) { ObjectMove = CreateObject(11474, 0, 0, -1000, 0, 0, 0, 100); AttachObjectToVehicle(ObjectMove, VehicleJOB, -0.049999, -5.694999, 0.385000, -6.839998, 4.500001, 6.840000); } } if(vehicleid == VehicleJOB1) { if(!IsValidVehicle(Vehicle)) { Vehicle1 = CreateVehicle(506, -2210.2983,295.1305,35.7418, 0.0777, 32,17, -1); } for(new i = 0; i < 6; i++) { if(!IsValidObject(Object[VehicleJOB1][i])) { Object[VehicleJOB1][0] = CreateObject(11474,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Object[VehicleJOB1][0], VehicleJOB1, 1.660000,0.834999,0.410000,-0.360000,3.240001,96.659988); Object[VehicleJOB1][1] = CreateObject(11474,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Object[VehicleJOB1][1], VehicleJOB1, 1.660000,-1.994998,0.410000,-0.360000,3.240001,96.659988); Object[VehicleJOB1][2] = CreateObject(11474,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Object[VehicleJOB1][2], VehicleJOB1, 1.660000,-4.094998,0.410000,-0.360000,3.240001,96.659988); Object[VehicleJOB1][3] = CreateObject(11474,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Object[VehicleJOB1][3], VehicleJOB1, -1.310000,-4.094998,0.410000,-0.360000,3.240001,96.659988); Object[VehicleJOB1][4] = CreateObject(11474,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Object[VehicleJOB1][4], VehicleJOB1, -1.310000,-1.254999,0.410000,-0.360000,3.240001,96.659988); Object[VehicleJOB1][5] = CreateObject(11474,0,0,-1000,0,0,0,100); AttachObjectToVehicle(Object[VehicleJOB1][5], VehicleJOB1, -1.310000, 0.809999, 0.410000, -0.360000, 3.240001, 96.659988); } } if(!IsValidObject(ObjectMove)) { ObjectMove = CreateObject(11474, 0, 0, -1000, 0, 0, 0, 100); AttachObjectToVehicle(ObjectMove, VehicleJOB1, -0.049999, -5.694999, 0.385000, -6.839998, 4.500001, 6.840000); } } if(vehicleid == Vehicle) { if(!IsValidVehicle(Vehicle)) { if(IsValidVehicle(VehicleJOB)) { new engine, lights, alarm, doors, bonnet, boot, objective; GetVehicleParamsEx(Vehicle, engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(Vehicle, engine, lights, alarm, true, bonnet, boot, true); } if(IsValidVehicle(VehicleJOB1)) { new engine, lights, alarm, doors, bonnet, boot, objective; GetVehicleParamsEx(Vehicle, engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(Vehicle, engine, lights, alarm, true, bonnet, boot, true); } else return false; } else return false; } return 1; } forward CountDown(playerid); public CountDown(playerid) { TimerCount[playerid] ++; new string[15]; format(string, sizeof(string), "%i.", TimerCount[playerid]); GameTextForPlayer(playerid, string, 999, 3); if(TimerCount[playerid] == 4) { GameTextForPlayer(playerid, "~r~Go~w~.", 999, 3); KillTimer(Timer[playerid]); TogglePlayerControllable(playerid, true); TimerCount[playerid] = 0; SetPlayerRaceCheckpoint(playerid, 0, -2201.8064, 319.9278, 35.1719, -2181.4182, 320.1506, 35.7966, 10.0); RacePoint[playerid] = 1; } return 1; } forward TimerWarnCallback(playerid); public TimerWarnCallback(playerid) { if(!IsPlayerInVehicle(playerid, VehicleJOB)) { if(RacePoint[playerid] > 0) { TimerWarnVar[playerid] --; new string[55]; format(string, sizeof(string), "~w~It has ~r~%i seconds ~w~to enter to the vehicle.", TimerWarnVar[playerid]); TextDrawSetString(TextWarn, string); if(TimerWarnVar[playerid] == -1) { KillTimer(TimerWarn[playerid]); TextDrawHideForPlayer(playerid, TextWarn); RacePoint[playerid] = 0; TimerWarnVar[playerid] = 20; TimerCount[playerid] = 0; for(new i = 0; i < 6; i++) { DestroyObject(Object[VehicleJOB][i]); DestroyObject(Object[VehicleJOB1][i]); } DestroyObject(ObjectMove); GameTextForPlayer(playerid, "~r~Failed mission~w~.", 2000, 0); SetVehicleToRespawn(VehicleJOB); SetVehicleToRespawn(VehicleJOB1); SetVehicleToRespawn(Vehicle); SetVehicleToRespawn(Vehicle1); DisablePlayerRaceCheckpoint(playerid); StopAudioStreamForPlayer(playerid); } } } return 1; } forward ToVerify(playerid); public ToVerify(playerid) { new Float:Pos[3]; GetVehiclePos(Vehicle, Pos[0], Pos[1], Pos[2]); if(IsPlayerInRangeOfPoint(playerid, 10.0, Pos[0], Pos[1], Pos[2])) return ItCanContinue[playerid] = true; else { ItCanContinue[playerid] = false; GameTextForPlayer(playerid, "~r~Failed mission~w~.", 2000, 0); RacePoint[playerid] = 0; DisablePlayerRaceCheckpoint(playerid); RemovePlayerFromVehicle(playerid); RacePoint[playerid] = 0; StopAudioStreamForPlayer(playerid); for(new i = 0; i < 6; i++) { DestroyObject(Object[VehicleJOB][i]); } SendClientMessage(playerid, -1, "{FF0000}[Message] {FFFFFF}You should not have stopped fall to the vehicle."); DestroyObject(ObjectMove); SetVehicleToRespawn(VehicleJOB); SetVehicleToRespawn(Vehicle); } return 1; }
Код HTML:
F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(354) : error 017: undefined symbol "ToVerify" F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(364) : error 017: undefined symbol "ToVerify" F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(374) : error 017: undefined symbol "ToVerify" F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(384) : error 017: undefined symbol "ToVerify" F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(394) : error 017: undefined symbol "ToVerify" F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(404) : error 017: undefined symbol "ToVerify" F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(411) : error 017: undefined symbol "ToVerify" F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(430) : warning 217: loose indentation F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(439) : error 017: undefined symbol "ToVerify" F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(449) : error 017: undefined symbol "ToVerify" F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(459) : error 017: undefined symbol "ToVerify" F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(469) : error 017: undefined symbol "ToVerify" F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(479) : error 017: undefined symbol "ToVerify" F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(489) : error 017: undefined symbol "ToVerify" F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(496) : error 017: undefined symbol "ToVerify" F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(521) : warning 217: loose indentation F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(521) : error 029: invalid expression, assumed zero F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(521) : error 004: function "OnPlayerEnterCheckpoint" is not implemented F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(630) : error 029: invalid expression, assumed zero F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(630) : error 004: function "OnPlayerExitVehicle" is not implemented F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(639) : error 029: invalid expression, assumed zero F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(639) : error 004: function "OnPlayerDeath" is not implemented F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(646) : warning 225: unreachable code F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(646) : error 029: invalid expression, assumed zero F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(646) : error 004: function "OnPlayerStateChange" is not implemented F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(648) : error 017: undefined symbol "oldstate" F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(663) : warning 217: loose indentation F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(678) : warning 217: loose indentation F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(678) : error 017: undefined symbol "oldstate" F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(689) : error 017: undefined symbol "newstate" F:\GTA\СЕРВ\samp03e_svr_r2_win3\filterscripts\JOB.pwn(710) : error 017: undefined symbol "newstate" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.