Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(IsPlayerConnected(playerid))
- {
- if(BusinessRob[playerid] == 3) return SendClientMessage(playerid, COLOR_ROB, "Trebuie sa astepti 10 secunde pentru a jefui business-ul.");
- for(new i = 1; i < sizeof(HouseInfo); i++)
- {
- if(IsPlayerInRangeOfPoint(playerid,2,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]) && GetPlayerVirtualWorld(playerid) == 0)
- {
- if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[i][hLock] == 0)
- {
- SetPlayerInterior(playerid,HouseInfo[i][hInterior]);
- SetPlayerPosEx(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
- GameTextForPlayer(playerid, "~w~Welcome Home", 5000, 1);
- PlayerInfo[playerid][pInt] = HouseInfo[i][hInterior];
- PlayerInfo[playerid][pLocal] = i;
- SetPlayerVirtualWorld(playerid,HouseInfo[i][hVirtual]);
- InHouse[playerid] = i;
- if(strlen(housestring[InHouse[playerid]]) > 0)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid, housestring[InHouse[playerid]]);
- }
- }
- else
- {
- GameTextForPlayer(playerid, "~r~~h~Locked", 5000, 1);
- }
- }
- }
- for(new i = 1; i < sizeof(BizzInfo); i++)
- {
- if (IsPlayerInRangeOfPoint(playerid,2,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]))
- {
- if(BizzInfo[i][bSbiz] != 0) return 0;
- if(GetPlayerCash(playerid) >= BizzInfo[i][bEntranceCost])
- {
- if(BizzInfo[i][bLocked] == 1)
- {
- GameTextForPlayer(playerid, "~r~~h~Closed", 5000, 1);
- return 1;
- }
- if(LastBiz[playerid] != i)
- {
- GivePlayerCash(playerid,-BizzInfo[i][bEntranceCost]);
- BizzInfo[i][bTill] += BizzInfo[i][bEntranceCost];
- format(string,sizeof(string),"~r~-$%d",BizzInfo[i][bEntranceCost]);
- GameTextForPlayer(playerid, string, 5000, 1);
- }
- else
- {
- GameTextForPlayer(playerid, "welcome back", 5000, 1);
- }
- LastBiz[playerid] = i;
- if(BizzInfo[i][bType] == 3)
- {
- if(strlen(barstring[i][playerid]) > 0)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid, barstring[i]);
- }
- }
- if(BizzInfo[i][bType] == 1)
- {
- SCM(playerid,COLOR_GREEN,"Inselatoriile (tepele) nu sunt permise pe server. Pentru orice incercare de a insela un player cu bunuri/bani puteti primi ban PERMANENT.");
- SCM(playerid,COLOR_GREEN,"Imprumuturile de orice fel (inclusiv datoriile) se fac pe proprie raspundere. Nu ai nicio garantie ca ii vei recupera.");
- SCM(playerid,COLOR_GREEN,"Afacerile cu bani reali nu sunt permise. Se pedepseste cu ban 7-14 zile la prima abatere si ban permanent la urmatoarea abatere.");
- SCM(playerid,COLOR_WHITE,"Welcome! The commands of this business are as follows: /deposit, /withdraw, /balance, /transfer");
- }
- else if(BizzInfo[i][bType] == 2)
- {
- SCM(playerid,COLOR_WHITE,"Welcome to the gun shop! The commands of this business are as follows: /buygun");
- }
- else if(BizzInfo[i][bType] == 3)
- {
- SCM(playerid,COLOR_WHITE,"Welcome! The commands of this business are as follows: /buydrink");
- }
- else if(BizzInfo[i][bType] == 4)
- {
- SCM(playerid,COLOR_WHITE,"Welcome to the sex shop! The commands of this business are as follows: /buytoys");
- }
- else if(BizzInfo[i][bType] == 5)
- {
- SCM(playerid,COLOR_WHITE,"Welcome! The commands of this business are as follows: /dice");
- }
- else if(BizzInfo[i][bType] == 6)
- {
- SCM(playerid,COLOR_WHITE,"Welcome! The commands of this business are as follows: /buy");
- if(PlayerInfo[playerid][pFishPrice] != 0)
- {
- ShowPlayerDialog(playerid, DIALOG_SELLFISH, DIALOG_STYLE_MSGBOX, "Sell fish", "Do you want to sell the fish you are carying?", "Yes", "No");
- }
- }
- else if(BizzInfo[i][bType] == 7 || BizzInfo[i][bType] == 14)
- {
- SCM(playerid,COLOR_WHITE,"Welcome! The commands of this business are as follows: /buyfood");
- if(AreFaina[playerid] > 0)
- {
- new money,faina = AreFaina[playerid];
- if(PlayerInfo[playerid][pFarmSkill] == 1)
- {
- money = 7000 + faina*500;
- }
- else if(PlayerInfo[playerid][pFarmSkill] == 2)
- {
- money = 10000 + faina*500;
- }
- else if(PlayerInfo[playerid][pFarmSkill] == 3)
- {
- money = 14000 + faina*500;
- }
- else if(PlayerInfo[playerid][pFarmSkill] == 4)
- {
- money = 16000 + faina*500;
- }
- else if(PlayerInfo[playerid][pFarmSkill] == 5)
- {
- money = 18000 + faina*500;
- }
- else if(PlayerInfo[playerid][pFarmSkill] >= 6)
- {
- money = 20000 + faina*500;
- }
- PlayerInfo[playerid][pFarmTimes]++;
- PlayerInfo[playerid][pFarmRem]--;
- AreFaina[playerid] = 0;
- GivePlayerCash(playerid, money);
- Update(playerid, pCashx);
- Update(playerid, pFarmTimesx);
- Update(playerid, pFarmRemx);
- if(PlayerInfo[playerid][pFarmSkill] <= 5)
- {
- if(PlayerInfo[playerid][pFarmRem] <= 0)
- {
- PlayerInfo[playerid][pFarmSkill]++;
- if(PlayerInfo[playerid][pFarmSkill] == 2)
- {
- PlayerInfo[playerid][pFarmRem] = 34;
- }
- else if(PlayerInfo[playerid][pFarmSkill] == 3)
- {
- PlayerInfo[playerid][pFarmRem] = 49;
- }
- else if(PlayerInfo[playerid][pFarmSkill] == 4)
- {
- PlayerInfo[playerid][pFarmRem] = 89;
- }
- else if(PlayerInfo[playerid][pFarmSkill] == 5)
- {
- PlayerInfo[playerid][pFarmRem] = 99;
- }
- Update(playerid,pFarmSkillx);
- Update(playerid,pFarmRemx);
- format(string,sizeof(string),"Felicitari! Ai acum skill %d pentru acest job!",PlayerInfo[playerid][pFarmSkill]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- }
- }
- format(string,sizeof(string),"(+) Ai vandut un sac de faina pentru $%s.", FormatNumber(money));
- SendClientMessage(playerid, COLOR_GREEN, string);
- }
- }
- else if(BizzInfo[i][bType] == 8)
- {
- SCM(playerid,COLOR_WHITE,"Welcome! The commands of this business are as follows: /buyfightstyle");
- }
- else if(BizzInfo[i][bType] == 9)
- {
- SCM(playerid,COLOR_WHITE,"Welcome! The commands of this business are as follows: /buyfood");
- }
- else if(BizzInfo[i][bType] == 11)
- {
- SCM(playerid,COLOR_WHITE,"Welcome! The commands of this business are as follows: /buyglasses ($5000), /clothes, /buyhat ($5000)");
- }
- SetPlayerInterior(playerid,BizzInfo[i][bInterior]);
- SetPlayerPosEx(playerid,BizzInfo[i][bExitX],BizzInfo[i][bExitY],BizzInfo[i][bExitZ]);
- PlayerInfo[playerid][pInt] = BizzInfo[i][bInterior];
- PlayerInfo[playerid][pLocal] = i+99;
- SetPlayerVirtualWorld(playerid,BizzInfo[i][bVirtual]);
- InBussines[playerid] = i;
- Update(playerid, pCashx);
- new str1[184];
- mysql_format(SQL,str1,sizeof(str1),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='%d'",BizzInfo[i][bTill],i);
- mysql_tquery(SQL,str1,"","");
- }
- else
- {
- GameTextForPlayer(playerid, "~r~~h~You dont have the cash", 5000, 1);
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,2,893.71094, -1636.59204, 14.72620)) // hq staff
- {
- if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_WHITE, AdminOnly);
- SetPlayerInterior(playerid, 5);
- SetPlayerPosEx(playerid, 1267.663208,-781.323242,1091.906250);
- SetPlayerVirtualWorld(playerid, 696969);
- PlayerInfo[playerid][pInt] = 5;
- }
- else if(IsPlayerInRangeOfPoint(playerid,2,1262.1661,-785.6332,1091.9063) && GetPlayerVirtualWorld(playerid) == 696969) // hq staff
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPosEx(playerid, 893.71094, -1636.59204, 14.72620);
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,1090.7542,-1476.3380,22.7465)) //tatto
- {
- SetPlayerInterior(playerid,16);
- SetPlayerPosEx(playerid,-204.439987,-26.453998,1002.273437);
- GameTextForPlayer(playerid, "~r~Tatto", 5000, 1);
- PlayerInfo[playerid][pInt] = 16;
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,1765.1732,-1569.0253,1742.4930)) // enter visit
- {
- SetPlayerPosEx(playerid,1764.3419,-1567.7599,1742.4967);
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,2166.4771,-1671.7883,15.0743)) // drugs house
- {
- SetPlayerInterior(playerid,5);
- SetPlayerPosEx(playerid,318.5867,1115.4735,1083.8828);
- PlayerInfo[playerid][pInt] = 5;
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,-329.5258,1536.7759,76.6117)) //nr
- {
- if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
- {
- SetPlayerInterior(playerid,3);
- SetPlayerPosEx(playerid,-2027.0515,-104.5211,1035.1719);
- PlayerInfo[playerid][pInt] = 3;
- InHQ[playerid] = 9;
- }
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,2435.3064,1671.0139,10.8203)) //SI
- {
- if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
- {
- SetPlayerInterior(playerid,3);
- SetPlayerPosEx(playerid,1494.2838,1304.3364,1093.2891);
- PlayerInfo[playerid][pInt] = 3;
- SetPlayerVirtualWorld(playerid, 3);
- InHQ[playerid] = 12;
- }
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,1081.1794,-345.3979,73.9825))//hitman
- {
- if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
- {
- SetPlayerInterior(playerid,12);
- SetPlayerPosEx(playerid,2323.9993,-1148.0469,1050.7101);
- PlayerInfo[playerid][pInt] = 12;
- InHQ[playerid] = 11;
- SetPlayerVirtualWorld(playerid, 2);
- }
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,1754.3792,-1894.0465,13.5569)) //LS TAXI
- {
- if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
- {
- SetPlayerInterior(playerid,18);
- SetPlayerPosEx(playerid,1700.9830,-1667.8865,20.2188);
- PlayerInfo[playerid][pInt] = 18;
- SetPlayerVirtualWorld(playerid, 5);
- InHQ[playerid] = 13;
- }
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,1614.92480, 1816.09631, 10.91310)) //fireman / paramedic
- {
- if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
- {
- SetPlayerInterior(playerid,3);
- SetPlayerPosEx(playerid,1494.2838,1304.3364,1093.2891);
- PlayerInfo[playerid][pInt] = 3;
- SetPlayerVirtualWorld(playerid, 7);
- InHQ[playerid] = 14;
- }
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,2307.2935,-1786.0671,13.5557)) // b'dub house
- {
- SetPlayerInterior(playerid,3);
- SetPlayerPosEx(playerid,1527.229980,-11.574499,1002.097106);
- GameTextForPlayer(playerid, "~w~B'Dub House", 5000, 1);
- PlayerInfo[playerid][pInt] = 3;
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,157.3923,1903.2848,18.6660)) // armoury NG
- {
- if (IsACop(playerid))
- {
- SetPlayerInterior(playerid,10);
- SetPlayerPosEx(playerid,246.5872,109.0304,1003.2188);
- GameTextForPlayer(playerid, "~w~National Guard Armoury", 5000, 1);
- PlayerInfo[playerid][pInt] = 10;
- SetPlayerVirtualWorld(playerid, 4);
- InHQ[playerid] = 3;
- }
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,242.8626,66.2978,1003.6406) && GetPlayerVirtualWorld(playerid) == 0) // lspd armoury
- {
- if (!IsACop(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You are not a cop.");
- {
- SetPlayerInterior(playerid,3);
- SetPlayerVirtualWorld(playerid,333);
- SetPlayerPosEx(playerid,288.8405,167.7809,1007.1719);
- GameTextForPlayer(playerid, "~w~LSPD Staff HQ", 5000, 1);
- PlayerInfo[playerid][pInt] = 3;
- InHQ[playerid] = 1;
- }
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,242.8626,66.2978,1003.6406) && GetPlayerVirtualWorld(playerid) == 3) // lvpd armoury
- {
- if (!IsACop(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You are not a cop.");
- {
- SetPlayerInterior(playerid,3);
- SetPlayerVirtualWorld(playerid,343);
- SetPlayerPosEx(playerid,288.8405,167.7809,1007.1719);
- GameTextForPlayer(playerid, "~w~LVPD Staff HQ", 5000, 1);
- PlayerInfo[playerid][pInt] = 3;
- InHQ[playerid] = 1;
- }
- }
- else if (PlayerToPoint(2,playerid,1553.1854,-1675.8188,16.1953) && GetPlayerVirtualWorld(playerid) == 0)
- {
- SetPlayerPosEx(playerid,246.7732,65.1425,1003.6406);
- SetPlayerInterior(playerid,6);
- SetPlayerVirtualWorld(playerid,0);
- format(string, sizeof(string), "~w~Inside the ~w~LSPD");
- GameTextForPlayer(playerid, string, 1000, 1);
- return 1;
- }
- else if (PlayerToPoint(2,playerid,2287.1047,2431.7996,10.8203))
- {
- SetPlayerPosEx(playerid,246.7732,65.1425,1003.6406);
- SetPlayerInterior(playerid,6);
- SetPlayerVirtualWorld(playerid,3);
- format(string, sizeof(string), "~w~Inside the ~w~LVPD");
- GameTextForPlayer(playerid, string, 1000, 1);
- return 1;
- }
- else if (PlayerToPoint(2,playerid,627.6160,-571.7920,17.6242))
- {
- SetPlayerPosEx(playerid,238.5496,139.3451,1003.0234);
- SetPlayerInterior(playerid,3);
- format(string, sizeof(string), "~w~FBI");
- GameTextForPlayer(playerid, string, 1000, 1);
- return 1;
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,1456.7423,2773.3423,10.8203))//Los Aztecas
- {
- if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
- {
- GameTextForPlayer(playerid, "~g~Los Aztecas", 1000, 1);
- SetPlayerInterior(playerid,6);
- PlayerInfo[playerid][pInt] = 6;
- SetPlayerPosEx(playerid,774.213989,-48.924297,1000.585937);
- SetPlayerVirtualWorld(playerid, 1);
- InHQ[playerid] = 4;
- }
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,2495.3271,-1690.6740,14.7656))//Grove Street
- {
- if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
- {
- GameTextForPlayer(playerid, "~g~Grove Street", 1000, 1);
- SetPlayerInterior(playerid,3);
- SetPlayerPosEx(playerid,2496.049804,-1695.238159,1014.742187);
- InHQ[playerid] = 5;
- SetPlayerVirtualWorld(playerid,393);
- }
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,1455.2687,750.8684,11.0234))
- {
- if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
- {
- SetPlayerInterior(playerid,3);
- SetPlayerPosEx(playerid,964.106994,-53.205497,1001.124572);
- GameTextForPlayer(playerid, "~w~Ballas HQ", 5000, 1);
- PlayerInfo[playerid][pInt] = 3;
- InHQ[playerid] = 10;
- }
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,725.6769,-1440.4506,13.5391))
- {
- if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
- {
- SetPlayerInterior(playerid,12);
- SetPlayerPosEx(playerid,2324.2273,-1148.8241,1050.7101);
- GameTextForPlayer(playerid, "~w~Los Vagos HQ", 5000, 1);
- PlayerInfo[playerid][pInt] = 12;
- InHQ[playerid] = 6;
- SetPlayerVirtualWorld(playerid,1);
- }
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,1510.3986,-1059.5723,25.0625))
- {
- if(areape == 1)
- {
- SetPlayerInterior(playerid,15);
- SetPlayerPosEx(playerid,-1423.5153,935.8321,1036.4756);
- PlayerInfo[playerid][pInt] = 15;
- }
- else return SCM(playerid,COLOR_WHITE,"Event area is closed.");
- }
- }
- for(new i = 1; i < sizeof(HouseInfo); i++)
- {
- if (PlayerToPoint(2, playerid,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]) && HouseInfo[i][hVirtual] == GetPlayerVirtualWorld(playerid))
- {
- SetPlayerVirtualWorld(playerid,0);
- SetPlayerInterior(playerid,0);
- SetPlayerPosEx(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]);
- PlayerInfo[playerid][pInt] = 0;
- PlayerInfo[playerid][pLocal] = 255;
- InHouse[playerid] = -1;
- StopAudioStreamForPlayer(playerid);
- }
- }
- for(new i = 1; i < sizeof(BizzInfo); i++)
- {
- if (PlayerToPoint(2, playerid,BizzInfo[i][bExitX], BizzInfo[i][bExitY], BizzInfo[i][bExitZ]) && BizzInfo[i][bVirtual]==GetPlayerVirtualWorld(playerid) && BizzInfo[i][bSbiz] == 0)
- {
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerPosEx(playerid,BizzInfo[i][bEntranceX],BizzInfo[i][bEntranceY],BizzInfo[i][bEntranceZ]);
- PlayerInfo[playerid][pLocal] = 255;
- SetPlayerVirtualWorld(playerid,0);
- InBussines[playerid] = -1;
- StopAudioStreamForPlayer(playerid);
- }
- }
- if (IsPlayerInRangeOfPoint(playerid,2,1756.4181,-1577.8954,1742.5309) && PlayerInfo[playerid][pJailed] == 0)//jail
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPosEx(playerid,1798.5801,-1578.1804,14.0827);
- PlayerInfo[playerid][pInt] = 0;
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,1764.3419,-1567.7599,1742.4967)) // exit visit
- {
- SetPlayerPosEx(playerid,1765.1732,-1569.0253,1742.4930);
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,-2027.0515,-104.5211,1035.1719)) //nr
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPosEx(playerid,-329.5258,1536.7759,76.6117);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- InHQ[playerid] = -1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,2,2323.9993,-1148.0469,1050.7101) && GetPlayerVirtualWorld(playerid) == 2)//hitman
- {
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid, 0);
- SetPlayerPosEx(playerid,1081.1794,-345.3979,73.9825);
- PlayerInfo[playerid][pInt] = 0;
- InHQ[playerid] = -1;
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,626.3122,-11.8606,1000.9219) && GetPlayerVirtualWorld(playerid) == 10) //tow
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPosEx(playerid,918.6766,-1252.2185,16.2109);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- InHQ[playerid] = -1;
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,318.5867,1115.4735,1083.8828)) // drugs house
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPosEx(playerid,2166.4771,-1671.7883,15.0743);
- PlayerInfo[playerid][pInt] = 0;
- }
- else if (PlayerToPoint(4.0, playerid,1494.2838,1304.3364,1093.2891) && GetPlayerVirtualWorld(playerid) == 3) //SI
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPosEx(playerid,2435.3064,1671.0139,10.8203);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- InHQ[playerid] = -1;
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,1700.9830,-1667.8865,20.2188) && GetPlayerVirtualWorld(playerid) == 5) //LS TAXI
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPosEx(playerid,1754.3792,-1894.0465,13.5569);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- InHQ[playerid] = -1;
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,1494.2838,1304.3364,1093.2891) && GetPlayerVirtualWorld(playerid) == 7) //Paramedic
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPosEx(playerid,1614.92480, 1816.09631, 10.91310);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- InHQ[playerid] = -1;
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,774.213989,-48.924297,1000.585937) && GetPlayerVirtualWorld(playerid) == 1) // los aztecas
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPosEx(playerid,1456.7423,2773.3423,10.8203);
- PlayerInfo[playerid][pInt] = 0;
- if(InWar[PlayerInfo[playerid][pMember]] == 1)
- {
- SetPlayerVirtualWorld(playerid, 1024);
- }
- else
- {
- SetPlayerVirtualWorld(playerid, 0);
- }
- InHQ[playerid] = -1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,2,246.5872,109.0304,1003.2188) && GetPlayerVirtualWorld(playerid) == 4) // armoury NG
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPosEx(playerid,157.3923,1903.2848,18.6660);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- InHQ[playerid] = -1;
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,-204.439987,-26.453998,1002.273437))
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPosEx(playerid,1090.7542,-1476.3380,22.7465);
- PlayerInfo[playerid][pInt] = 0;
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,1527.229980,-11.574499,1002.097106))
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPosEx(playerid,2307.2935,-1786.0671,13.5557);
- PlayerInfo[playerid][pInt] = 0;
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,288.8405,167.7809,1007.1719) && GetPlayerVirtualWorld(playerid) == 333) // LSPD Armoury
- {
- SetPlayerInterior(playerid,6);
- SetPlayerVirtualWorld(playerid,0);
- SetPlayerPosEx(playerid,242.8626,66.2978,1003.6406);
- PlayerInfo[playerid][pInt] = 6;
- PlayerInfo[playerid][pLocal] = 0;
- InHQ[playerid] = -1;
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,288.8405,167.7809,1007.1719) && GetPlayerVirtualWorld(playerid) == 343) // LVPD Armoury
- {
- SetPlayerInterior(playerid,6);
- SetPlayerVirtualWorld(playerid,3);
- SetPlayerPosEx(playerid,242.8626,66.2978,1003.6406);
- PlayerInfo[playerid][pInt] = 6;
- PlayerInfo[playerid][pLocal] = 0;
- InHQ[playerid] = -1;
- }
- else if (IsPlayerInRangeOfPoint(playerid,1,304.5868,-141.9874,1004.0625))//gunshopusa
- {
- SetPlayerPosEx(playerid,305.7950,-141.8203,1004.0547);
- }
- else if (IsPlayerInRangeOfPoint(playerid,1,298.8386,-141.9191,1004.0547))//gunshopusa
- {
- SetPlayerPosEx(playerid,300.1631,-141.8074,1004.0625);
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,1262.1383,-785.3315,1091.9063) && GetPlayerVirtualWorld(playerid) == 3)//Guvern
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPosEx(playerid,1481.1063,-1771.2532,18.7958);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid,0);
- InHQ[playerid] = -1;
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,834.1988,7.1422,1004.1870))
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPosEx(playerid,1247.9105,-1560.4454,13.5556);
- PlayerInfo[playerid][pInt] = 0;
- }
- else if (PlayerToPoint(3.0,playerid,246.7732,65.1425,1003.6406) && GetPlayerVirtualWorld(playerid) == 0)
- {
- SetPlayerPosEx(playerid,1553.1854,-1675.8188,16.1953);
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid,0);
- format(string, sizeof(string), "~w~LSPD");
- GameTextForPlayer(playerid, string, 1000, 1);
- }
- else if (PlayerToPoint(3.0,playerid,246.7732,65.1425,1003.6406) && GetPlayerVirtualWorld(playerid) == 3)
- {
- SetPlayerPosEx(playerid,2287.1047,2431.7996,10.8203);
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid,0);
- format(string, sizeof(string), "~w~LVPD");
- GameTextForPlayer(playerid, string, 1000, 1);
- }
- /*else if (PlayerToPoint(5,playerid,387.7978,173.8582,1008.3828))
- {
- SetPlayerPosEx(playerid,1481.1063,-1771.2532,18.7958);
- SetPlayerVirtualWorld(playerid,0);
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- format(string, sizeof(string), "~w~Los Santos");
- GameTextForPlayer(playerid, string, 1000, 1);
- }*/
- else if (PlayerToPoint(5,playerid,238.5496,139.3451,1003.0234) && GetPlayerVirtualWorld(playerid) == 0)
- {
- SetPlayerPosEx(playerid,627.6160,-571.7920,17.6242);
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- format(string, sizeof(string), "~w~Los Santos F.B.I");
- GameTextForPlayer(playerid, string, 1000, 1);
- InHQ[playerid] = -1;
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,761.412963,1440.191650,1102.703125))
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPosEx(playerid,387.7978,173.8582,1008.3828);
- PlayerInfo[playerid][pInt] = 0;
- PlayerInfo[playerid][pLocal] = 255;
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,964.106994,-53.205497,1001.124572)) //Ballas
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPosEx(playerid,1455.2687,750.8684,11.0234);
- PlayerInfo[playerid][pInt] = 0;
- PlayerInfo[playerid][pLocal] = 255;
- InHQ[playerid] = -1;
- if(InWar[PlayerInfo[playerid][pMember]] == 1)
- {
- SetPlayerVirtualWorld(playerid, 1024);
- }
- else
- {
- SetPlayerVirtualWorld(playerid, 0);
- }
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,2324.2273,-1148.8241,1050.7101) && GetPlayerVirtualWorld(playerid) == 1) //Los Vagos
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPosEx(playerid,725.6769,-1440.4506,13.5391);
- PlayerInfo[playerid][pInt] = 0;
- PlayerInfo[playerid][pLocal] = 255;
- InHQ[playerid] = -1;
- if(InWar[PlayerInfo[playerid][pMember]] == 1)
- {
- SetPlayerVirtualWorld(playerid, 1024);
- }
- else
- {
- SetPlayerVirtualWorld(playerid, 0);
- }
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,2496.049804,-1695.238159,1014.742187))//Grove Street
- {
- GameTextForPlayer(playerid, "~w~Grove Street", 1000, 1);
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerPosEx(playerid,2495.3271,-1690.6740,14.7656);
- InHQ[playerid] = -1;
- if(InWar[PlayerInfo[playerid][pMember]] == 1)
- {
- SetPlayerVirtualWorld(playerid, 1024);
- }
- else
- {
- SetPlayerVirtualWorld(playerid, 0);
- }
- }
- else if (IsPlayerInRangeOfPoint(playerid,2,-1423.5153,935.8321,1036.4756))
- {
- if(areape == 1)
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPosEx(playerid,1510.3986,-1059.5723,25.0625);
- PlayerInfo[playerid][pInt] = 0;
- }
- else return SCM(playerid,COLOR_WHITE,"Event area is closed.");
- }
- }
- if(GetPlayerVehicleID(playerid) == rentls[1] || GetPlayerVehicleID(playerid) == rentls[2] || GetPlayerVehicleID(playerid) == rentls[3])
- {
- TogglePlayerControllable(playerid, 1);
- RemovePlayerFromVehicle(playerid);
- }
- if(NoFuel[playerid] == 1)
- {
- RemovePlayerFromVehicle(playerid);
- TogglePlayerControllable(playerid, 1);
- NoFuel[playerid] = 0;
- }
- ////////////////////////////////////////////////////////////////////////////////////////////////////////GARA / 24/7///////////////////////////////////////////////////////////////////////////
- if(PlayerToPoint(4.0, playerid, 650.36047, -609.29718, 15.69630) || PlayerToPoint(4.0, playerid, 1833.0419, -1835.5486, 12.9753) || PlayerToPoint(4.0, playerid, 317.2124, -132.4013, 1002.9965))
- {
- if(GetPlayerVirtualWorld(playerid) == 0)
- {
- if(GetPlayerCash(playerid) < 100) return SCM(playerid,COLOR_WHITE,"{FFB870}You don't have money needed.");
- new Float:health;
- GetPlayerHealthEx(playerid,health);
- if(health >= 75)
- {
- SetPlayerHealthEx(playerid, 100);
- ApplyAnimation(playerid,"FOOD","EAT_Burger", 3.0, 0, 0, 0, 0, 0);
- GivePlayerCash(playerid, -100);
- GameTextForPlayer(playerid, "~r~-100$", 5000, 1);
- Update(playerid, pCashx);
- }
- else
- {
- SetPlayerHealthEx(playerid, health+25);
- ApplyAnimation(playerid,"FOOD","EAT_Burger", 3.0, 0, 0, 0, 0, 0);
- GivePlayerCash(playerid, -100);
- GameTextForPlayer(playerid, "~r~-100$", 5000, 1);
- Update(playerid, pCashx);
- }
- }
- }
- return 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement