Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public CustomPickups()
- {
- new Float:oldposx, Float:oldposy, Float:oldposz;
- new string[128],status[64];
- ShowNameDistance();
- catch(Player, i)
- {
- if(PlaneTimeTransport[i])
- {
- format(string,sizeof(string),"~y~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~%d",PlaneTimeTransport[i]);
- GameTextForPlayer(i,string,1000,3);
- PlaneTimeTransport[i]--;
- }
- else
- {
- if(PlaneTransport[i])
- {
- SetPlayerInterior(i,0);
- SetCameraBehindPlayer(i);
- SetPlayerVirtualWorld(i,0);
- switch(PlaneTransport[i])
- {
- case 1: // Los Santos
- {
- SetPlayerPos(i,1685.7465,-2334.3564,13.5469);
- SendClientMessage(i,0x04B4AEAA,"[AEROPORT LS]: Bine ai venit !");
- }
- case 2: // San Fiero
- {
- SetPlayerPos(i,-1421.8843,-287.8965,14.1484);
- SendClientMessage(i,0x0080FFAA,"[AEROPORT SF]: Bine ai venit !");
- }
- case 3: // Las Venturas
- {
- SetPlayerPos(i,1664.4711,1423.5420,10.7841);
- SendClientMessage(i,0x2E2EFEAA,"[AEROPORT LV]: Bine ai venit !");
- }
- }
- PlaneTransport[i] = 0;
- }
- }
- new amount = PlayerInfo[i][pLevel] * 500;
- if(IsInSkinShop(i))
- {
- new shop_[10];
- if(PlayerToPoint(4.0,i,207.5078,-100.7485,1005.2578)) shop_ = "Binco";
- else if(PlayerToPoint(4.0,i,203.8472,-43.6700,1001.80471)) shop_ = "Suburban";
- else if(PlayerToPoint(4.0,i,206.5535,-7.8922,1001.210932)) shop_ = "Victim";
- else if(PlayerToPoint(4.0,i,161.4350,-83.7294,1001.80471)) shop_ = "ZIP";
- else if(PlayerToPoint(4.0,i,204.3705,-159.7757,1000.5234)) shop_ = "DS";
- format(string,sizeof string,"~n~~n~~n~~n~~n~~w~~h~Bun venit in ~r~~h~%s magazin~n~~w~~h~Tasteaza /buyskin pentru a cumpara un skin",shop_);
- GameTextForPlayer(i,string,1000,3);
- continue;
- }
- GetPlayerPos(i, oldposx, oldposy, oldposz);
- new tmpcar = GetPlayerVehicleID(i);
- if(oldposx != 0.0 && oldposy != 0.0 && oldposz != 0.0)
- {
- for(new h = 0; h < sizeof(SBizzInfo); h++)
- {
- if(h == 14) continue;
- if((IsATruck(tmpcar)) && PlayerToPoint(10.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]))
- {
- format(string, sizeof(string), "~w~%s~n~~r~Necesar produse~w~: %d~n~~y~Pret pe produs: ~w~: %d$~n~~g~Fonduri: ~w~: $%s",SBizzInfo[h][sbMessage],(SBizzInfo[h][sbMaxProducts]-SBizzInfo[h][sbProducts]),SBizzInfo[h][sbPriceProd],GroupDigit(SBizzInfo[h][sbTill]));
- GameTextForPlayer(i, string, 5000, 3);
- }
- if(PropertyTextSB[i] == 0 && PlayerToPoint(2.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]))
- {
- if(SBizzInfo[h][sbOwned] == 1)
- {
- format(string, sizeof(string), "~w~%s~w~~n~Proprietar : %s~n~Actionar : %s~n~Pretul intrarii : ~g~$%s ~w~Level : %d ~n~/enter",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],GroupDigit(SBizzInfo[h][sbEntranceCost]),SBizzInfo[h][sbLevelNeeded]);
- }
- else
- {
- format(string, sizeof(string), "~w~%s~w~~n~Aceasta afacere este de vanzare~n~Pret: ~g~$%s ~w~Level : %d ~n~/buybiz",SBizzInfo[h][sbMessage],GroupDigit(SBizzInfo[h][sbBuyPrice]),SBizzInfo[h][sbLevelNeeded]);
- }
- PlayerTextDrawSetString(i, SBizzText[i], string);
- PlayerTextDrawShow(i, SBizzText[i]);
- PropertyTextSB[i] = h;
- }
- }
- for(new h = 0; h < sizeof(BizzInfo); h++)
- {
- if((IsATruck(tmpcar)) && PlayerToPoint(10.0, i, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]))
- {
- format(string, sizeof(string), "~w~%s~n~~r~Necesar produse~w~: %d~n~~y~Pret pe produs: ~w~: %d$~n~~g~Fonduri: ~w~: $%s",BizzInfo[h][bMessage],(BizzInfo[h][bMaxProducts]-BizzInfo[h][bProducts]),BizzInfo[h][bPriceProd],GroupDigit(BizzInfo[h][bTill]));
- GameTextForPlayer(i, string, 5000, 3);
- }
- if(PropertyTextB[i] == 0 && PlayerToPoint(2.0, i, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]))
- {
- if(BizzInfo[h][bOwned] == 1)
- {
- format(string, sizeof(string), "~w~%s~w~~n~Proprietar : %s~n~Actionar : %s~n~Pretul intrarii : ~g~$%s ~w~Level : %d ~n~/enter",BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bExtortion],GroupDigit(BizzInfo[h][bEntranceCost]),BizzInfo[h][bLevelNeeded]);
- }
- else
- {
- format(string, sizeof(string), "~w~%s~w~~n~Afacerea este de vanzare~n~Pret: ~g~$%s ~w~Level : %d ~n~/buybiz",BizzInfo[h][bMessage],GroupDigit(BizzInfo[h][bBuyPrice]),BizzInfo[h][bLevelNeeded]);
- }
- PlayerTextDrawSetString(i, BizzText[i], string);
- PlayerTextDrawShow(i, BizzText[i]);
- PropertyTextB[i] = h;
- }
- }
- for(new h = 0; h < sizeof(HouseInfo); h++)
- {
- if(PropertyTextH[i] == 0 && PlayerToPoint(2.0, i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))
- {
- if(HouseInfo[h][hOwned] == 1)
- {
- if(HouseInfo[h][hRentabil] == 0)
- {
- format(string, sizeof(string), "~w~Proprietarul casei este~n~%s~n~Level : %d",HouseInfo[h][hOwner],HouseInfo[h][hLevel]);
- }
- else
- {
- format(string, sizeof(string), "~w~Proprietarul casei este~n~%s~n~Chirie: $%s Level : %d~n~/rentroom pentru a inchiria",HouseInfo[h][hOwner],GroupDigit(HouseInfo[h][hRent]),HouseInfo[h][hLevel]);
- }
- //GameTextForPlayer(i, string, 5000, 3);
- }
- else
- {
- format(string, sizeof(string), "~w~Aceasta casa este de vanzare~n~Descriere: %s ~n~Pret: ~g~$%s~n~~w~Level : %d~n~/buyhouse",HouseInfo[h][hDiscription],GroupDigit(HouseInfo[h][hBuyPrice]),HouseInfo[h][hLevel]);
- }
- PlayerTextDrawSetString(i, HouseText[i], string);
- PlayerTextDrawShow(i, HouseText[i]);
- PropertyTextH[i] = h;
- }
- }
- }
- if(PropertyTextSB[i] != 0 && !PlayerToPoint(2.0, i, SBizzInfo[PropertyTextSB[i]][sbEntranceX], SBizzInfo[PropertyTextSB[i]][sbEntranceY], SBizzInfo[PropertyTextSB[i]][sbEntranceZ]))
- {
- PlayerTextDrawHide(i, SBizzText[i]);
- PropertyTextSB[i] = 0;
- }
- if(PropertyTextB[i] != 0 && !PlayerToPoint(2.0, i, BizzInfo[PropertyTextB[i]][bEntranceX], BizzInfo[PropertyTextB[i]][bEntranceY], BizzInfo[PropertyTextB[i]][bEntranceZ]))
- {
- PlayerTextDrawHide(i, BizzText[i]);
- PropertyTextB[i] = 0;
- }
- if(PropertyTextH[i] != 0 && !PlayerToPoint(2.0, i, HouseInfo[PropertyTextH[i]][hEntrancex], HouseInfo[PropertyTextH[i]][hEntrancey], HouseInfo[PropertyTextH[i]][hEntrancez]))
- {
- PlayerTextDrawHide(i, HouseText[i]);
- PropertyTextH[i] = 0;
- }
- if (PlayerToPoint(2.0, i, 1173.0000,-1323.0000,15.3978))
- {
- GameTextForPlayer(i, "~w~Tasataza /healme pentru a te vindeca", 5000, 5);
- }
- else if(IsAtTrainingPlace(i) && GetFactionID(i) == IsAtTrainingPlace(i))
- {
- GameTextForPlayer(i,"~r~~h~] Antrenament ]~n~/enter pentru a intra~n~/exit pentru a iesi",5000,5);
- }
- else if(IsAtChurch(i,3.0))
- {
- GameTextForPlayer(i, "~g~~h~Biserica ~w~~n~Tasteaza /enter pentru a intra in ~r~~h~Casa Domnului", 5000, 5);
- }
- else if(IsAtClimbPlace(i))
- {
- GameTextForPlayer(i,"~w~Tasteaza ~g~~h~/climb ~w~pentru a ajunge sus",5000,5);
- }
- else if(IsPlayerInRangeOfPoint(i, 5.0, 246.9308,1930.5734,17.6481))
- {
- GameTextForPlayer(i,"~w~/airport", 5000, 5);
- }
- else if(IsPlayerInRangeOfPoint(i, 5.0, 249.9578,1935.3212,17.6406))
- {
- GameTextForPlayer(i, "~w~/base", 5000, 5);
- }
- else if(PlayerToPoint(3.0,i,2057.2795,-1907.8834,13.5469))
- {
- GameTextForPlayer(i, "~w~Tasteaza /getlicense", 5000, 5);
- }
- else if(PlayerToPoint(3.0,i,2695.4316,-1704.2367,11.8438))
- { // BBowl - Los Santos
- if(BBowlStarted) format(status,sizeof(status),"~g~Deschis~n~~w~Scrie /joinbbowl~n~~w~Pret: %s~g~~h~$",GroupDigit(BBowlPrice));
- else format(status,sizeof(status),"~r~Inchis");
- format(string,sizeof(string),"~b~~h~Blood Bowl~n~%s",status);
- GameTextForPlayer(i,string,4000,5);
- }
- else if(PlayerToPoint(3.0,i,1088.2983,1602.9866,5.8203))
- { // DTrack - Las Venturas
- if(DTrackStarted) format(status,sizeof(status),"~g~Deschis~n~~w~Scrie /joindtrack~n~~w~Pret: %s~g~~h~$",GroupDigit(DTrackPrice));
- else format(status,sizeof(status),"~r~Inchis");
- format(string,sizeof(string),"~y~~h~Dirt Track~n~%s",status);
- GameTextForPlayer(i,string,4000,5);
- }
- else if(PlayerToPoint(3.0,i,-2111.2754,-444.699,38.734))
- { // Track8 - San Fiero
- if(Track8Started) format(status,sizeof(status),"~g~Deschis~n~~w~Scrie /jointrack8~n~~w~Pret: %s~g~~h~$",GroupDigit(Track8Price));
- else format(status,sizeof(status),"~r~Inchis");
- format(string,sizeof(string),"~r~~h~Track 8~n~%s",status);
- GameTextForPlayer(i,string,4000,5);
- }
- else if(PlayerToPoint(3.0,i,246.5052,87.5869,1003.6406) && IsACop(i))
- {
- GameTextForPlayer(i,"~w~Tasteaza ~b~~h~~h~/deliver",4000,5);
- }
- else if(PlayerToPoint(3.0,i,1045.5585,-1028.7587,32.1016))
- {
- GameTextForPlayer(i,"~w~Apasa ~r~~h~CLAXON-ul~n~~w~daca vrei sa-ti modifici vehiculul",4000,5);
- }
- else if(PlayerToPoint(3.0,i,2391.9409,1040.3030,10.8203))
- {
- GameTextForPlayer(i,"~w~Apasa ~r~~h~CLAXON-ul~n~~w~daca vrei sa-ti modifici vehiculul",4000,5);
- }
- else if(PlayerToPoint(3.0,i,1473.6998,-1615.2374,-1.3292)) // ust
- {
- GameTextForPlayer(i,"~w~Comenzi: ~r~~h~/depune ~w~si ~r~~h~/retrage",4000,5);
- }
- else if(PlayerToPoint(3.0,i,1706.7139,949.9765,10.8203))
- {
- GameTextForPlayer(i,"~w~Tasteaza ~y~~h~/enter~n~~w~pentru a intra in ~b~~h~UST HQ",4000,5);
- }
- else if(PlayerToPoint(2.0,i,822.1855,1.8713,1004.1797))
- {
- GameTextForPlayer(i," ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~y~~h~Horse Races~n~~w~Tasteaza ~b~~h~/horserace",4000,5);
- }
- else if(PlayerToPoint(3.0,i,765.9430,14.6624,1000.7002))
- { // Box Fight
- format(string,sizeof(string),"~w~Stil de lupta: ~r~~h~box~n~~w~Apasa ~r~~h~F ~w~pentru a lua acest stil de lupta~n~PRET: %s~g~~h~$",GroupDigit(BOX_PRICE));
- GameTextForPlayer(i,string,5000,4);
- }
- else if(PlayerToPoint(3.0,i,768.0906,-30.2064,1000.5859))
- { // Kungfu Fight
- format(string,sizeof(string),"~w~Stil de lupta: ~g~~h~kung fu~n~~w~Apasa ~r~~h~F ~w~pentru a lua acest stil de lupta~n~PRET: %s~g~~h~$",GroupDigit(KUNGFU_PRICE));
- GameTextForPlayer(i,string,5000,4);
- }
- else if(PlayerToPoint(3.0,i,771.9702,-65.3627,1000.7184))
- { // Kneehead Fight
- format(string,sizeof(string),"~w~Stil de lupta: ~b~~h~kneehead~n~~w~Apasa ~r~~h~F ~w~pentru a lua acest stil de lupta~n~PRET: %s~g~~h~$",GroupDigit(KNEEHEAD_PRICE));
- GameTextForPlayer(i,string,5000,4);
- }
- else if(PlayerToPoint(3.0,i,1685.7465,-2334.3564,13.5469))
- {// Airport LS
- GameTextForPlayer(i,"~g~Airport LS~n~~w~Tasteaza /menu pentru o lista de rute",3000,3);
- }
- else if(PlayerToPoint(3.0,i,-1421.8843,-287.8965,14.1484))
- {// Airport SF
- GameTextForPlayer(i,"~b~Airport SF~n~~w~Tasteaza /menu pentru o lista de rute",3000,3);
- }
- else if(PlayerToPoint(3.0,i,1664.4711,1423.5420,10.7841))
- {// Airport LV
- GameTextForPlayer(i,"~y~Airport LV~n~~w~Tasteaza /menu pentru o lista de rute",3000,3);
- }
- /*else if(PlayerToPoint(3.0,i,SBizzInfo[14][sbEntranceX],SBizzInfo[14][sbEntranceY],SBizzInfo[14][sbEntranceZ]))
- {// Plate Numbers Las Venturas
- format(string, sizeof(string), "~r~%s~w~~n~Proprietar: %s~n~Actionar: %s~n~Pretul intrarii: ~g~$%s ~w~Level: %d~n~Comanda: /plate",SBizzInfo[14][sbMessage],SBizzInfo[14][sbOwner],SBizzInfo[14][sbExtortion],GroupDigit(SBizzInfo[14][sbEntranceCost]),SBizzInfo[14][sbLevelNeeded]);
- GameTextForPlayer(i,string,5000,3);
- }*/
- /*
- else if(PlayerToPoint(3.0,i,2695.4763,-1704.2621,11.8438) || PlayerToPoint(3.0,i,-2111.2754,-444.6991,38.7344) || PlayerToPoint(3.0,i,1088.2983,1602.9866,5.8203))
- {
- GameTextForPlayer(i,"~g~~h~] Stunt Stadium ]~n~/enter pentru a intra~n~/exit pentru a iesi~n~Pret: 2000~g~~h~$",5000,5);
- }
- */
- else if(PlayerToPoint(3.0,i,293.6826,188.2749,1007.1719))
- {
- GameTextForPlayer(i,"Tasteaza ~r~~h~/JailLS ~w~pentru a ajunge acolo",5000,3);
- }
- else if(PlayerToPoint(6.0,i,1873.0673,-1996.4823,13.5544) || PlayerToPoint(6.0,i,2519.4146,-1673.2747,14.4961) ||
- PlayerToPoint(6.0,i,2145.8481,-1473.4209,25.5467) || PlayerToPoint(6.0,i,1687.6294,2297.4783,10.8203) ||
- PlayerToPoint(6.0,i,2752.2817,-1962.4196,13.5469) || PlayerToPoint(6.0,i,694.7906,-455.8949,16.3359))
- {
- GameTextForPlayer(i, "~p~Weapons Gang Package~n~~w~~h~Type ~r~~h~/weapons", 5000, 4);
- }
- else if(PlayerToPoint(3.0,i,1860.3630,-1995.9014,13.5469) || PlayerToPoint(3.0,i,2493.1099,-1710.6869,1014.7422) ||
- PlayerToPoint(3.0,i,2142.9460,-1463.5748,25.5391) || PlayerToPoint(3.0,i,1677.3822,2335.6309,10.8203) ||
- PlayerToPoint(3.0,i,2750.6045,-1941.8109,13.5469) || PlayerToPoint(3.0,i,-223.0208,1411.1342,27.7734))
- {
- GameTextForPlayer(i, "~w~Tasteaza ~g~/matswithdraw ~w~sau ~g~/matsdeposit", 5000, 4);
- }
- else if(PlayerToPoint(2.0,i,1925.2296,-2111.1348,-19.3109))
- {
- GameTextForPlayer(i, "~p~~h~Injectii~n~~w~Tasteaza ~r~~h~/takeinjection ~w~pentru a-ti administra",5000,3);
- }
- else if(IsAtATM(i,3.0))
- {
- new ATM_COLORS[9][9] = { "~r~", "~b~", "~g~", "~y~", "~p~", "~r~~h~", "~b~~h~", "~g~~h~", "~y~~h~" };
- format(string,sizeof string,"%sATM~n~~w~Comenzi disponibile:~n~~w~/withdraw /balance",ATM_COLORS[random(sizeof(ATM_COLORS))]);
- GameTextForPlayer(i, string,5000,5);
- }
- else if(PlayerToPoint(3.0,i,681.5233,-473.6631,16.5363))
- {
- GameTextForPlayer(i, "~n~~n~~n~~g~~h~~h~Bikers HQ~n~~w~Tasteaza /enter", 5000, 3);
- }
- else if(PlayerToPoint(3.0,i,1530.1610,-1665.4686,6.2188))
- {
- GameTextForPlayer(i, "~n~~n~~n~~b~PD Mechanic~n~~w~Tasteaza ~r~~h~/repaircar", 5000, 3);
- }
- else if(PlayerToPoint(3.0,i,-1904.3218,273.9896,41.0469)) // SF
- {
- GameTextForPlayer(i, "~n~~n~~n~~b~UST Mechanic~n~~w~Tasteaza ~r~~h~/repairmycar", 5000, 3);
- }
- else if(PlayerToPoint(3.0,i,1025.1198,-1032.1824,31.9284)) // LS
- {
- GameTextForPlayer(i, "~n~~n~~n~~b~UST Mechanic~n~~w~Tasteaza ~r~~h~/repairmycar", 5000, 3);
- }
- else if(PlayerToPoint(3.0,i,1965.0742,2163.0256,10.8203)) // LV
- {
- GameTextForPlayer(i, "~n~~n~~n~~b~UST Mechanic~n~~w~Tasteaza ~r~~h~/repairmycar", 5000, 3);
- }
- else if(PlayerToPoint(3.0,i,-2153.9172,-252.7036,36.5156)) // Los Santos
- {
- GameTextForPlayer(i, "~n~~n~~n~~w~Tasteaza ~r~~h~/materials ~r~~h~get~n~~w~pentru a obtine pachete cu materiale", 5000, 3);
- }
- else if(PlayerToPoint(3.0,i,959.1522,2142.3850,1011.0197)) // San Fiero
- {
- GameTextForPlayer(i, "~n~~n~~n~~w~Tasteaza ~g~~h~/materials ~g~~h~deliver~n~~w~pentru a procura niste materiale", 5000, 3);
- }
- else if(PlayerToPoint(3.0,i,1463.7264,-1013.5648,26.8438) ||
- PlayerToPoint(3.0,i,2474.5654,1024.0625,10.8203))// SF & LV Bank
- {
- //format(string, sizeof(string), "~w~%s~w~~n~Proprietar: %s~n~Actionar: %s~n~Pretul intrarii: ~g~$%s ~w~Level: %d ~n~pentru a intra tasteaza /enter");
- GameTextForPlayer(i,"~w~Banca~w~~n~Tasteaza /enter pentru a intra",5000,3);
- }
- else if(PlayerToPoint(3.0,i,2295.9319,2451.6865,10.8203))// FBI ARMOURY
- {
- format(string, sizeof(string), "~w~Armoury~n~pentru a intra tasteaza /enter");
- GameTextForPlayer(i,string,5000,3);
- }
- else if(PlayerToPoint(2.5,i,-2034.6047,148.5186,28.8359))
- {
- new color_random[13][10] =
- {
- "~r~","~r~~h~","~r~~h~~h~",
- "~b~","~b~~h~","~b~~h~~h~",
- "~g~","~g~~h~","~g~~h~~h~",
- "~y~","~y~~h~",
- "~p~","~p~~h~"
- };
- format(string,sizeof string,"%sStatia ~w~~h~24-7~n~~w~~h~Tasteaza /enter pentru a intra",color_random[random(sizeof(color_random))]);
- GameTextForPlayer(i,string,5000,3);
- }
- else if(PlayerToPoint(3.0,i,2296.4434,2468.6506,10.8203))
- {
- GameTextForPlayer(i,"~w~Tasteaza /goup pentru a ajunge pe ~b~~h~acoperisul~w~ F.B.I",5000,3);
- }
- else if(PlayerToPoint(3.0,i,250.7494,107.9755,1003.2188))
- {
- if(PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 1)
- GameTextForPlayer(i,"~w~~h~Tasteaza ~g~~h~/swat ~w~~h~pentru a te echipa cu ~n~~b~~h~uniforma SWAT",5000,3);
- }
- /* LosSantos ----- Hospital ----- San Fiero */
- else if(PlayerToPoint(2.0,i,2029.5945,-1404.6426,17.2512) || PlayerToPoint(2.0,i,-2655.0415,639.6581,14.4545)) GameTextForPlayer(i,"~r~~h~Hospital~n~~w~~h~Tasteaza /enter pentru a intra",3500,3);
- /*LV I,II*/ else if(PlayerToPoint(2.0,i,1583.6154,1768.9753,10.8203) || PlayerToPoint(2.0,i,1607.5793,1816.2894,10.8203)) GameTextForPlayer(i,"~r~~h~Hospital~n~~w~~h~Tasteaza /enter pentru a intra~n~~g~~h~Acoperis~n~~w~~h~Tasteaza /goup pentru a urca",3500,3);
- else if(PlayerToPoint(2.0,i,2017.0452,1007.7471,39.0911)) GameTextForPlayer(i,"~w~Tasteaza ~b~~h~/godown ~w~pentru a cobori",3500,3);
- else if(PlayerToPoint(2.0,i,2277.5891,2459.1016,38.6837)) GameTextForPlayer(i,"~w~Tasteaza ~r~~h~/godown ~w~pentru a cobori",3500,3);
- else if(PlayerToPoint(2.0,i,2024.3469,-1404.3801,17.2012) || PlayerToPoint(2.0,i,1583.6154,1768.9753,10.8203) || PlayerToPoint(2.0,i,1607.5793,1816.2894,10.8203)) GameTextForPlayer(i,"~w~~h~Tasteaza /goup pentru a urca pe ~p~~h~acoperisul ~n~~w~~h~spitalului",3500,3);
- else if(PlayerToPoint(2.0,i,1607.2870,1815.5591,30.4688)) GameTextForPlayer(i,"~w~Tasteaza ~p~/godown~n~~w~to go down",3500,3);
- else if(PlayerToPoint(2.0,i,2633.6328,1716.5708,11.0234)) GameTextForPlayer(i,"~w~Tasteaza /enter pentru a intra in ~r~~h~~h~The Triads HQ",3500,3);
- else if(PlayerToPoint(2.0,i,1123.3037,-2036.8541,69.8934)) GameTextForPlayer(i,"~w~Tasteaza /enter pentru a intra in ~r~~h~~h~TM HQ~n~~w~ori tasteaza /goup pentru a urca pe ~g~~h~~h~acoperisul The Mafia",3500,3);
- else if(PlayerToPoint(2.0,i,-1594.1538,716.2620,-4.9063)) GameTextForPlayer(i,"~b~~h~~h~San Fiero Police Department~n~~w~Tasteaza /armour sau /takeguns",3500,3);
- else if (PlayerToPoint(2.0, i, 323.0342,1118.5804,1083.8828))
- {//Buyable Drugs for Drug Dealers
- GameTextForPlayer(i, "~w~Tasteaza /get drugs, pentru a procura niste ~r~droguri~y~~n~abilitatile tale conteaza la pret", 5000, 3);
- }
- else if (PlayerToPoint(3, i,72.8898,-1524.8215,4.7746) || PlayerToPoint(3,i,-80.6891,-910.2766,17.5131) || PlayerToPoint(3,i,1740.1055,540.9307,26.8955))
- {// LS
- format(string,sizeof(string),"Tasteaza ~b~~h~/barrier~w~~h~ pentru a deschide ~n~~r~~h~bariera ~w~!~g~~h~~h~~n~PRET: ~w~~h~%s$",GroupDigit(amount));
- GameTextForPlayer(i, string, 5000, 5);
- }
- else if (PlayerToPoint(3, i,46.2385,-1540.5121,5.1934) || PlayerToPoint(3,i,-79.4910,-889.6276,15.8130))
- {// SF
- format(string,sizeof(string),"Tasteaza ~b~~h~/barrier~w~~h~ pentru a deschide ~n~~r~~h~bariera ~w~!~g~~h~~h~~n~PRET: ~w~~h~%s$",GroupDigit(amount));
- GameTextForPlayer(i, string, 5000, 5);
- }
- else if (PlayerToPoint(3, i,1742.9250,520.4514,27.9801))
- {// LV
- format(string,sizeof(string),"Tasteaza ~b~~h~/barrier~w~~h~ pentru a deschide ~n~~r~~h~bariera ~w~!~g~~h~~h~~n~PRET: ~w~~h~%s$",GroupDigit(amount));
- GameTextForPlayer(i, string, 5000, 5);
- }
- else if (PlayerToPoint(3, i,1480.9496,-1770.4620,18.7958))
- {
- GameTextForPlayer(i, "~y~Bun venit la ~r~PRIMARIE~n~~w~Tasteaza /enter pentru a intra", 5000, 5);
- }
- else if (PlayerToPoint(2, i,240.8511,112.9492,1003.2188))
- {
- GameTextForPlayer(i, "~b~~h~Sala de antrenamente a politiei ~n~~w~~h~Tasteaza ~p~/train ~w~pentru a intra!", 5000, 5);
- }
- else if (PlayerToPoint(2, i,-972.3929,1060.9846,1345.6688))
- {
- GameTextForPlayer(i, "~b~~h~PD Train Exit ~n~~w~~h~Tasteaza ~p~/exit ~w~pentru a iesi afara!", 5000, 5);
- }
- else if (PlayerToPoint(2, i,-1132.7623,1057.8795,1346.4105))
- {
- GameTextForPlayer(i, "~b~~h~PD Train Exit ~n~~w~~h~Tasteaza ~p~/exit ~w~pentru a iesi afara!", 5000, 5);
- }
- else if (PlayerToPoint(2, i,242.0377,1861.4764,14.0840) && (PlayerInfo[i][pMember] == 3 || PlayerInfo[i][pLeader] == 3))
- {
- GameTextForPlayer(i, "Tasteaza ~g~~h~/armour ~w~~h~pentru a te vindeca si a te echipa cu armura!", 5000, 4);
- }
- else if (PlayerToPoint(2, i,211.4691,1812.0636,21.8594) && (IsACop(i)))
- {
- GameTextForPlayer(i, "~w~Tasteaza ~r~~h~/camera ~w~~h~pentru a vedea locurile Area51", 5000, 4);
- }
- else if (PlayerToPoint(2, i,251.6591,117.5315,1003.2188) && (PlayerInfo[i][pMember] == 2 || PlayerInfo[i][pLeader] == 2))
- {
- GameTextForPlayer(i, "Tasteaza /sniper pentru a lua un ~r~~h~sniper ~w~~h~!", 5000, 4);
- }
- else if (PlayerToPoint(2, i,-1605.5371,711.3893,13.8672))
- {
- GameTextForPlayer(i, "~n~~n~~n~~b~Departamentul de politie San Fierot~n~~w~Tasteaza /enter pentru a intra!", 5000, 4);
- }
- else if (PlayerToPoint(2, i,1780.3608,-1258.8300,14.9148))
- {
- if(IsANewsReporter(i))
- GameTextForPlayer(i, "~n~~n~~n~~n~~w~Tasteaza /goup pentru a ajunge pe ~y~~h~acoperis !~n~Tasteaza /enter pentru a intra", 5000, 4);
- }
- else if (PlayerToPoint(2, i,1767.7200,-1242.7799,35.2531))
- {
- if(IsANewsReporter(i))
- GameTextForPlayer(i, "~n~~n~~n~~w~Tasteaza /godown pentru a te intoarce!", 5000, 4);
- }
- else if (PlayerToPoint(2, i,87.5896,1921.0145,17.8577))
- {
- if(PlayerInfo[i][pLeader] == 3 || PlayerInfo[i][pMember] == 3)
- GameTextForPlayer(i, "~n~~n~~n~~w~Tasteaza ~g~~h~/inside ~w~pentru a intra in Area 51!", 5000, 4);
- }
- else if (PlayerToPoint(2, i,107.8239,1920.8734,18.5447))
- {
- if(PlayerInfo[i][pLeader] == 3 || PlayerInfo[i][pMember] == 3)
- GameTextForPlayer(i, "~n~~n~~n~~w~Tasteaza ~g~~h~/outside ~w~pentru a parasi Area 51!", 5000, 4);
- }
- else if(PlayerToPoint(2.0,i,1524.7231,-1677.8782,5.8906))
- {
- if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pMember] == 2
- || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pLeader] == 2)
- GameTextForPlayer(i, "~n~~n~~n~~w~Tasteaza ~g~~h~/civskin~n~~w~~h~sau ~r~~h~/dutyskin~n~~w~~h~Tasteaza /elevator~n~pentru a intra in sectie~n~~w~~h~Tasteaza /goup~n~pentru a ajunge pe acoperis", 5000, 4);
- }
- else if(PlayerToPoint(2.0,i,1556.6406,-1675.6801,28.3955))
- {
- if(IsACop(i)) GameTextForPlayer(i,"Tasteaza ~b~~h~/godown~n~pentru a ajunge in sectie",5000,3);
- }
- else if(PlayerToPoint(2.0,i,-1606.2512,672.2787,-5.2422))
- {
- GameTextForPlayer(i, "~n~~n~~n~~w~Tasteaza /elevator pentru a ajunge in ~b~~h~sectie", 5000, 4);
- }
- else if(PlayerToPoint(3.0,i,-2050.9741,451.7947,35.1719)) // News Reporter SF Enter
- {
- if(IsANewsReporter(i)) GameTextForPlayer(i,"~w~Tasteaza ~r~~h~/enter ~w~pentru a intra",5000,3);
- }
- //====================================================================================================
- // -[J O B S]-
- // With Textdraw
- // # Detective
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,359.5408,206.7693,1008.3828))
- {
- if(!PlayerInfo[i][pJob])
- { if(!T_Job[i][0]) { TextDrawShowForPlayer(i,TJobs[0]); T_Job[i][0] = true; } }
- }
- else if(T_Job[i][0] && !PlayerToPoint(4.0, i,359.5408,206.7693,1008.3828))
- {
- TextDrawHideForPlayer(i,TJobs[0]);
- T_Job[i][0] = false;
- }
- // # Lawyer
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,347.7374,193.7241,1014.1875))
- {
- if(!PlayerInfo[i][pJob])
- { if(!T_Job[i][1]) { TextDrawShowForPlayer(i,TJobs[1]); T_Job[i][1] = true; } }
- }
- else if(T_Job[i][1] && !PlayerToPoint(4.0, i,347.7374,193.7241,1014.1875))
- {
- TextDrawHideForPlayer(i,TJobs[1]);
- T_Job[i][1] = false;
- }
- else if(T_Job[i][2] && !PlayerToPoint(4.0, i,1215.1304,-11.8431,1000.9219))
- {
- TextDrawHideForPlayer(i,TJobs[2]);
- T_Job[i][2] = false;
- }
- // # Drugs Dealer
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2166.3772,-1675.3829,15.0859))
- {
- if(!PlayerInfo[i][pJob])
- { if(!T_Job[i][3]) { TextDrawShowForPlayer(i,TJobs[3]); T_Job[i][3] = true; } }
- }
- else if(T_Job[i][3] && !PlayerToPoint(4.0, i,2166.3772,-1675.3829,15.0859))
- {
- TextDrawHideForPlayer(i,TJobs[3]);
- T_Job[i][3] = false;
- }
- // # Car Jacker
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2501.0537,-1759.1688,13.5061))
- {
- if(!PlayerInfo[i][pJob])
- { if(!T_Job[i][4]) { TextDrawShowForPlayer(i,TJobs[4]); T_Job[i][4] = true; } }
- }
- else if(T_Job[i][4] && !PlayerToPoint(4.0, i,2501.0537,-1759.1688,13.5061))
- {
- TextDrawHideForPlayer(i,TJobs[4]);
- T_Job[i][4] = false;
- }
- // # Car Mechanic
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,-1932.3859,276.2117,41.0391))
- {
- if(!PlayerInfo[i][pJob])
- { if(!T_Job[i][5]) { TextDrawShowForPlayer(i,TJobs[5]); T_Job[i][5] = true; } }
- }
- else if(T_Job[i][5] && !PlayerToPoint(4.0, i,-1932.3859,276.2117,41.0391))
- {
- TextDrawHideForPlayer(i,TJobs[5]);
- T_Job[i][5] = false;
- }
- else if(T_Job[i][6] && !PlayerToPoint(4.0, i,2226.1716,-1718.1792,13.5165))
- {
- TextDrawHideForPlayer(i,TJobs[6]);
- T_Job[i][6] = false;
- }
- // # Arms Dealer
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1366.4325,-1275.2096,13.5469))
- {
- if(!PlayerInfo[i][pJob])
- { if(!T_Job[i][7]) { TextDrawShowForPlayer(i,TJobs[7]); T_Job[i][7] = true; } }
- }
- else if(T_Job[i][7] && !PlayerToPoint(4.0, i,1366.4325,-1275.2096,13.5469))
- {
- TextDrawHideForPlayer(i,TJobs[7]);
- T_Job[i][7] = false;
- }
- else if(T_Job[i][8] && !PlayerToPoint(4.0, i,531.7930,-1292.4044,17.2422))
- {
- TextDrawHideForPlayer(i,TJobs[8]);
- T_Job[i][8] = false;
- }
- else if(T_Job[i][9] && !PlayerToPoint(4.0, i,-2040.9436,456.2395,35.1719))
- {
- TextDrawHideForPlayer(i,TJobs[9]);
- T_Job[i][9] = false;
- }
- // # Trucker
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2772.8992,-2411.1289,13.6316))
- {
- if(!PlayerInfo[i][pJob])
- { if(!T_Job[i][10]) { TextDrawShowForPlayer(i,TJobs[10]); T_Job[i][10] = true; } }
- }
- else if(T_Job[i][10] && !PlayerToPoint(4.0, i,2772.8992,-2411.1289,13.6316))
- {
- TextDrawHideForPlayer(i,TJobs[10]);
- T_Job[i][10] = false;
- }
- // # News Reporter
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,-2058.3813,459.8389,35.1719))
- {
- if(!PlayerInfo[i][pJob])
- { if(!T_Job[i][11]) { TextDrawShowForPlayer(i,TJobs[11]); T_Job[i][11] = true; } }
- }
- else if(T_Job[i][11] && !PlayerToPoint(4.0, i,-2058.3813,459.8389,35.1719))
- {
- TextDrawHideForPlayer(i,TJobs[11]);
- T_Job[i][11] = false;
- }
- // # Taximetrist
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,915.3094,-1235.2273,17.2109))
- {
- if(!PlayerInfo[i][pJob])
- { if(!T_Job[i][12]) { TextDrawShowForPlayer(i,TJobs[12]); T_Job[i][12] = true; } }
- }
- else if(T_Job[i][12] && !PlayerToPoint(4.0, i,915.3094,-1235.2273,17.2109))
- {
- TextDrawHideForPlayer(i,TJobs[12]);
- T_Job[i][12] = false;
- }
- // # Conductor de tren
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,-1968.7349,162.2776,27.6875))
- {
- if(!PlayerInfo[i][pJob])
- { if(!T_Job[i][13]) { TextDrawShowForPlayer(i,TJobs[13]); T_Job[i][13] = true; } }
- }
- else if(T_Job[i][13] && !PlayerToPoint(4.0, i,-1968.7349,162.2776,27.6875))
- {
- TextDrawHideForPlayer(i,TJobs[13]);
- T_Job[i][13] = false;
- }
- // # Gunoier
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1153.2047,-1769.7202,16.4354))
- {
- if(!PlayerInfo[i][pJob])
- { if(!T_Job[i][14]) { TextDrawShowForPlayer(i,TJobs[14]); T_Job[i][14] = true; } }
- }
- else if(T_Job[i][14] && !PlayerToPoint(4.0, i,1153.2047,-1769.7202,16.4354))
- {
- TextDrawHideForPlayer(i,TJobs[14]);
- T_Job[i][14] = false;
- }
- //=====================================================================================================
- /*
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1154.2208,-1770.8203,16.5992))
- {
- if(PlayerInfo[i][pJob] > 0 || PlayerInfo[i][pMember] > 0) {}
- else { GameTextForPlayer(i, "~g~Welcome,~n~~y~poti deveni un ~r~Bus Driver~y~ here ~n~~w~Tasteaza /join daca doresti sa te angajezi", 5000, 3); }
- }*/
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2772.8992,-2411.1289,13.6316))
- {
- if(PlayerInfo[i][pJob] > 0 || PlayerInfo[i][pMember] > 0) {}
- else { GameTextForPlayer(i, "~g~Bine ai venit,~n~~y~poti deveni un ~r~Camionagiu~y~ aici ~n~~w~Tasteaza /join daca doresti sa te angajezi", 5000, 3); }
- }
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1381.0413,-1088.8511,27.3906))
- {
- GameTextForPlayer(i, "~g~Bine ai venit,~n~~y~Tasteaza /mission pentru a incepe misiunea", 5000, 3);
- }
- else if(PlayerToPoint(2.0, i,1073.0619,-344.5148,73.9922) || (PlayerInfo[i][pPhousekey] != 255 && !strcmp(ReturnName(i), HouseInfo[PlayerInfo[i][pPhousekey]][hOwner], true) && PlayerToPoint(3.0,i,HouseInfo[PlayerInfo[i][pPhousekey]][hEntrancex],HouseInfo[PlayerInfo[i][pPhousekey]][hEntrancey],HouseInfo[PlayerInfo[i][pPhousekey]][hEntrancez])))
- {// Hitman delivery stuff Hitman House
- if(OrderReady[i] > 0)
- {
- switch (OrderReady[i])
- {
- case 1:
- {
- GivePlayerWeapon(i, 24, 40); GivePlayerWeapon(i, 29, 200); GivePlayerWeapon(i, 25, 20); GivePlayerWeapon(i, 4, 1);
- GivePlayerCash(i, -500);
- SendClientMessage(i, COLOR_LIGHTBLUE, "* Ai ridicat pachetul comandat.");
- }
- case 2:
- {
- GivePlayerWeapon(i, 24, 50); GivePlayerWeapon(i, 29, 300); GivePlayerWeapon(i, 25, 35); GivePlayerWeapon(i, 31, 350); GivePlayerWeapon(i, 4, 1); GivePlayerWeapon(i, 33, 15);
- GivePlayerCash(i, -750);
- SendClientMessage(i, COLOR_LIGHTBLUE, "* Ai ridicat pachetul comandat.");
- }
- case 3:
- {
- GivePlayerWeapon(i, 24, 50); GivePlayerWeapon(i, 29, 300); GivePlayerWeapon(i, 25, 35); GivePlayerWeapon(i, 30, 350); GivePlayerWeapon(i, 4, 1); GivePlayerWeapon(i, 33, 15);
- GivePlayerCash(i, -1250);
- SendClientMessage(i, COLOR_LIGHTBLUE, "* Ai ridicat pachetul comandat.");
- }
- case 4:
- {
- GivePlayerWeapon(i, 24, 70); GivePlayerWeapon(i, 29, 400); GivePlayerWeapon(i, 25, 45); GivePlayerWeapon(i, 31, 500); GivePlayerWeapon(i, 4, 1); GivePlayerWeapon(i, 34, 25);
- GivePlayerCash(i, -1750);
- SendClientMessage(i, COLOR_LIGHTBLUE, "* Ai ridicat pachetul comandat.");
- }
- case 5:
- {
- GivePlayerWeapon(i, 24, 70); GivePlayerWeapon(i, 29, 400); GivePlayerWeapon(i, 25, 45); GivePlayerWeapon(i, 30, 500); GivePlayerWeapon(i, 4, 1); GivePlayerWeapon(i, 34, 25);
- GivePlayerCash(i, -2000);
- SendClientMessage(i, COLOR_LIGHTBLUE, "* Ai ridicat pachetul comandat.");
- }
- case 6:
- {
- GivePlayerWeapon(i, 24, 85); GivePlayerWeapon(i, 29, 500); GivePlayerWeapon(i, 25, 60); GivePlayerWeapon(i, 31, 650); GivePlayerWeapon(i, 4, 1); GivePlayerWeapon(i, 34, 35);
- GivePlayerCash(i, -2250);
- SendClientMessage(i, COLOR_LIGHTBLUE, "* Ai ridicat pachetul comandat.");
- }
- case 7:
- {
- GivePlayerWeapon(i, 24, 85); GivePlayerWeapon(i, 29, 500); GivePlayerWeapon(i, 25, 60); GivePlayerWeapon(i, 30, 650); GivePlayerWeapon(i, 4, 1); GivePlayerWeapon(i, 34, 35);
- GivePlayerCash(i, -3000);
- SendClientMessage(i, COLOR_LIGHTBLUE, "* Ai ridicat pachetul comandat.");
- }
- case 8: // o bomba C4
- {
- C4[i] += 1;
- GivePlayerCash(i,-3000);
- SendClientMessage(i, COLOR_LIGHTBLUE, "* Ai ridicat bomba C4 comandata.");
- }
- case 9: // 2 bombe C4
- {
- C4[i] = 2;
- GivePlayerCash(i,-6000);
- SendClientMessage(i, COLOR_LIGHTBLUE, "* Ai ridicat cele 2 bombe C4 comandate.");
- }
- case 10: // 3 bombe
- {
- C4[i] = 3;
- GivePlayerCash(i,-9000);
- SendClientMessage(i, COLOR_LIGHTBLUE, "* Ai ridicat cele 3 bombe C4 comandate.");
- }
- }
- OrderReady[i] = 0;
- }
- }
- else if(PlayerOnMission[i] > 0 && PlayMission[kToggle] == 0)
- {
- if(MissionCheckpoint[i] == 1 && PlayerToPoint(10.0, i,PlayMission[kCP1][0],PlayMission[kCP1][1],PlayMission[kCP1][2]))
- {
- RingTone[i] = 20;
- format(string, sizeof(string), "%s", PlayMission[kGText1]);
- GameTextForPlayer(i, string, 8000, 3);
- format(string, sizeof(string), "%s", PlayMission[kText4]);
- SendClientMessage(i, COLOR_LIGHTBROWN, string);
- format(string, sizeof(string), "%s", PlayMission[kText5]);
- SendClientMessage(i, COLOR_LIGHTBROWN, string);
- format(string, sizeof(string), "%s", PlayMission[kText6]);
- SendClientMessage(i, COLOR_LIGHTBROWN, string);
- MissionCheckpoint[i] = 2;
- }
- else if(MissionCheckpoint[i] == 2 && PlayerToPoint(10.0, i,PlayMission[kCP2][0],PlayMission[kCP2][1],PlayMission[kCP2][2]))
- {
- RingTone[i] = 20;
- format(string, sizeof(string), "%s", PlayMission[kGText2]);
- GameTextForPlayer(i, string, 8000, 3);
- format(string, sizeof(string), "%s", PlayMission[kText7]);
- SendClientMessage(i, COLOR_LIGHTBROWN, string);
- format(string, sizeof(string), "%s", PlayMission[kText8]);
- SendClientMessage(i, COLOR_LIGHTBROWN, string);
- format(string, sizeof(string), "%s", PlayMission[kText9]);
- SendClientMessage(i, COLOR_LIGHTBROWN, string);
- MissionCheckpoint[i] = 3;
- }
- else if(MissionCheckpoint[i] == 3 && PlayerToPoint(10.0, i,PlayMission[kCP3][0],PlayMission[kCP3][1],PlayMission[kCP3][2]))
- {
- RingTone[i] = 20;
- format(string, sizeof(string), "%s", PlayMission[kGText3]);
- GameTextForPlayer(i, string, 8000, 3);
- format(string, sizeof(string), "%s", PlayMission[kText10]);
- SendClientMessage(i, COLOR_LIGHTBROWN, string);
- format(string, sizeof(string), "%s", PlayMission[kText11]);
- SendClientMessage(i, COLOR_LIGHTBROWN, string);
- format(string, sizeof(string), "%s", PlayMission[kText12]);
- SendClientMessage(i, COLOR_LIGHTBROWN, string);
- MissionCheckpoint[i] = 4;
- }
- else if(MissionCheckpoint[i] == 4 && PlayerToPoint(10.0, i,PlayMission[kCP4][0],PlayMission[kCP4][1],PlayMission[kCP4][2]))
- {
- RingTone[i] = 20;
- format(string, sizeof(string), "%s", PlayMission[kGText4]);
- GameTextForPlayer(i, string, 8000, 3);
- format(string, sizeof(string), "%s", PlayMission[kText13]);
- SendClientMessage(i, COLOR_LIGHTBROWN, string);
- format(string, sizeof(string), "%s", PlayMission[kText14]);
- SendClientMessage(i, COLOR_LIGHTBROWN, string);
- format(string, sizeof(string), "%s", PlayMission[kText15]);
- SendClientMessage(i, COLOR_LIGHTBROWN, string);
- MissionCheckpoint[i] = 5;
- }
- else if(MissionCheckpoint[i] == 5 && PlayerToPoint(10.0, i,PlayMission[kCP5][0],PlayMission[kCP5][1],PlayMission[kCP5][2]))
- {
- RingTone[i] = 20;
- format(string, sizeof(string), "%s", PlayMission[kGText5]);
- GameTextForPlayer(i, string, 8000, 3);
- format(string, sizeof(string), "%s", PlayMission[kText16]);
- SendClientMessage(i, COLOR_LIGHTBROWN, string);
- format(string, sizeof(string), "%s", PlayMission[kText17]);
- SendClientMessage(i, COLOR_LIGHTBROWN, string);
- format(string, sizeof(string), "%s", PlayMission[kText18]);
- SendClientMessage(i, COLOR_LIGHTBROWN, string);
- MissionCheckpoint[i] = 6;
- }
- else if(MissionCheckpoint[i] == 6 && PlayerToPoint(10.0, i,PlayMission[kCP6][0],PlayMission[kCP6][1],PlayMission[kCP6][2]))
- {
- RingTone[i] = 20;
- format(string, sizeof(string), "%s", PlayMission[kGText6]);
- GameTextForPlayer(i, string, 8000, 3);
- format(string, sizeof(string), "..:: Ai facut misiunea cu succes : %s | Recompensa primita: $%s ::..", PlayMission[kTitle], GroupDigit(PlayMission[kReward]));
- SendClientMessage(i, COLOR_GREEN, string);
- GivePlayerCash(i, PlayMission[kReward]);
- PlayerInfo[i][pMissionNr] = PlayerOnMission[i];
- MissionCheckpoint[i] = 0;
- PlayerOnMission[i] = 0;
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement