18.09.2011, 14:52
Hello , i just added that to OnPlayer OnPlayerKeyStateChange..And its crashes
Cant find problem..??
Код:
if(newkeys & KEY_SECONDARY_ATTACK) { if(IsPlayerConnected(playerid)) { new Float:shax, Float:shay, Float:shaz; new Float:shbx, Float:shby, Float:shbz; new Float:shcx, Float:shcy, Float:shcz; GetVehiclePos(138, shax, shay, shaz); GetVehiclePos(139, shbx, shby, shbz); GetVehiclePos(140, shcx, shcy, shcz); for(new i = 0;i < sizeof(EntranceRef);i++) { if( IsPlayerInRangeOfPoint(playerid,2,Entrances[i][outside_x],Entrances[i][outside_y],Entrances[i][outside_z]) && GetPlayerVirtualWorld(playerid) == Entrances[i][outside_w] ) { SetPlayerPos(playerid,Entrances[i][inside_x],Entrances[i][inside_y],Entrances[i][inside_z]); SetPlayerFacingAngle(playerid,Entrances[i][inside_a]); SetPlayerInterior(playerid,Entrances[i][inside_i]); SetPlayerVirtualWorld(playerid,Entrances[i][inside_w]); SetCameraBehindPlayer(playerid); return 1; } } for(new i = 0; i < MAX_PLAYERS; i++) { if(PlayerInfo[i][pHouseAccepted] > 0) { if(IsPlayerInRangeOfPoint(playerid, 3, PlayerInfo[i][pHouseX], PlayerInfo[i][pHouseY], PlayerInfo[i][pHouseZ])) { if(PlayerInfo[i][pHouseLocked] == 0) { GetPlayerPos(playerid,PlayerInfo[playerid][pHouseExitX],PlayerInfo[playerid][pHouseExitY],PlayerInfo[playerid][pHouseExitZ]); GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pHouseExitR]); GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pMask] == 1) format(string, sizeof(string), "* Stanger has entered the house."); else format(string, sizeof(string), "* %s has entered the house.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SetPlayerVirtualWorld(playerid, i+1); PutPlayerInHouse(playerid, PlayerInfo[i][pHouseLevel]); PlayerInfo[playerid][pLocal] = i; PlayerInfo[playerid][pVirtualWorld] = i+1; } else { SendClientMessage(playerid, COLOR_GREY, " That house is currently locked !"); } return 1; } } } for(new b = 0; b < sizeof(BizInfo); b++) { if(IsPlayerInRangeOfPoint(playerid,2.0,BizInfo[b][bOutsideX], BizInfo[b][bOutsideY], BizInfo[b][bOutsideZ])) { if(BizInfo[b][bLocked]) return SendClientMessage(playerid,COLOR_GREY," This business is closed, come back later."); if(PlayerInfo[playerid][pBizKey] != b && BizInfo[b][bEntryFee] > 0) { if(GetMoney(playerid) >= BizInfo[b][bEntryFee]) { GiveMoney(playerid,-BizInfo[b][bEntryFee]); BizInfo[b][bTill] += BizInfo[b][bEntryFee]; format(string, sizeof(string), "~r~-$%d", BizInfo[b][bEntryFee]); GameTextForPlayer(playerid, string, 5000, 1); } } if(BizInfo[b][bType] == 1) SendClientMessage(playerid,COLOR_LIGHTBLUE," Use /buygun to buy a weapon from this business."); else if(BizInfo[b][bType] == 2) SendClientMessage(playerid,COLOR_LIGHTBLUE," Use /buy to buy food from this business."); else if(BizInfo[b][bType] == 3 || BizInfo[b][bType] == 5) SendClientMessage(playerid,COLOR_LIGHTBLUE," Use /buy to buy items from this business."); else if(BizInfo[b][bType] == 4) SendClientMessage(playerid,COLOR_LIGHTBLUE," Use /drink to buy a drink from this business."); else if(BizInfo[b][bType] == 6) SendClientMessage(playerid,COLOR_LIGHTBLUE," Use /buy to buy clothes from this business."); SetPlayerVirtualWorld(playerid, b); SetPlayerInterior(playerid, BizInfo[b][bInsideInt]); SetPlayerPos(playerid, BizInfo[b][bInsideX],BizInfo[b][bInsideY],BizInfo[b][bInsideZ]); SetPlayerFacingAngle(playerid,BizInfo[b][bInsideAng]); SetCameraBehindPlayer(playerid); } } /* if(IsPlayerInRangeOfPoint(playerid, 5.0, 1173.0393,-1321.4241,15.3972)) // all saints { SetPlayerInterior(playerid, 0); PlayerInfo[playerid][pInt] = 0; SetPlayerPos(playerid, 4060.2734,-196.4038,59.2456); SetPlayerFacingAngle(playerid, 3.4612); SetCameraBehindPlayer(playerid); }*/ if(IsPlayerInRangeOfPoint(playerid, 3.0, 626.9839,-571.7693,17.9207)) // sasp { SetPlayerInterior(playerid, 6); PlayerInfo[playerid][pInt] = 6; SetPlayerPos(playerid, 246.7394,62.9422,1003.6406); SetPlayerFacingAngle(playerid, 3.4612); SetCameraBehindPlayer(playerid); SASP[playerid] = 1; } if(IsPlayerInRangeOfPoint(playerid, 3.0, 1555.0618,-1675.6725,16.1953)) // lspd { SetPlayerInterior(playerid, 6); PlayerInfo[playerid][pInt] = 6; SetPlayerPos(playerid, 246.7394,62.9422,1003.6406); SetPlayerFacingAngle(playerid, 3.4612); SetCameraBehindPlayer(playerid); SASP[playerid] = 0; } if(IsPlayerInRangeOfPoint(playerid, 3.0, 1481.3351,-1771.8021,18.7958)) // cityhall { SetPlayerInterior(playerid, 3); PlayerInfo[playerid][pInt] = 3; SetPlayerPos(playerid, 389.3329,173.7999,1008.3828); SetPlayerFacingAngle(playerid, 3.4612); SetCameraBehindPlayer(playerid); } if(IsPlayerInRangeOfPoint(playerid, 3.0, 2229.8533,-1721.3005,13.5617)) // gym { SetPlayerInterior(playerid, 5); PlayerInfo[playerid][pInt] = 5; SetPlayerPos(playerid, 772.4289,-5.2205,1000.7289); SetPlayerFacingAngle(playerid, 3.4612); SetCameraBehindPlayer(playerid); } // Nick Exo's Shit if(IsPlayerInRangeOfPoint(playerid, 2, 2127.51, 2379.54, 10.82)) // Outside -> Casino { SetPlayerPos(playerid, 2018.60, 1017.88, 996.87); SetPlayerInterior(playerid, 10); PlayerInfo[playerid][pInt] = 10; SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid, 90.0); GameTextForPlayer(playerid, "~w~exo's casino", 2000, 1); } if(IsPlayerInRangeOfPoint(playerid, 2, 2102.55, 2425.19, 60.81)) // Roof -> Casino { SetPlayerPos(playerid, 1963.58, 1062.94, 994.46); SetPlayerInterior(playerid, 10); PlayerInfo[playerid][pInt] = 10; SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid, 149.07); GameTextForPlayer(playerid, "~w~exo's casino", 2000, 1); } if(IsPlayerInRangeOfPoint(playerid, 2, 2124.05, 2404.77, 52.05)) // Office -> Casino { SetPlayerPos(playerid, 1963.49, 972.88, 994.46); SetPlayerInterior(playerid, 10); PlayerInfo[playerid][pInt] = 10; SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid, 27.18); GameTextForPlayer(playerid, "~w~exo's casino", 2000, 1); } if(IsPlayerInRangeOfPoint(playerid, 2, 2124.05, 2404.77, 52.05)) // Office -> Casino { SetPlayerPos(playerid, 1963.49, 972.88, 994.46); SetPlayerInterior(playerid, 10); PlayerInfo[playerid][pInt] = 10; SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid, 27.18); GameTextForPlayer(playerid, "~w~exo's casino", 2000, 1); } // LBCC Shit if(IsPlayerInRangeOfPoint(playerid, 2, 2851.94, -1366.00, 14.17)) // Outside -> House { SetPlayerPos(playerid, 2841.45, -1346.88, 959.74); SetPlayerInterior(playerid, 1); PlayerInfo[playerid][pInt] = 1; SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid, 270.0); } if(IsPlayerInRangeOfPoint(playerid, 2, 2877.84, -1336.29, 965.66)) // House -> Office { SetPlayerPos(playerid, 1226.54, -813.24, 1084.00); SetPlayerInterior(playerid, 5); PlayerInfo[playerid][pInt] = 5; PlayerInfo[playerid][pVirtualWorld] = 20; SetPlayerVirtualWorld(playerid, 20); SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid, 0.0); } if(IsPlayerInRangeOfPoint(playerid, 3.0, 1519.02, -1453.92, 14.20)) // VIP Club { if(PlayerInfo[playerid][pDonateRank] >= 1) { SetPlayerInterior(playerid, 69); PlayerInfo[playerid][pInt] = 69; SetPlayerPos(playerid, 1532.51, -1461.23, 1037.01); GameTextForPlayer(playerid, "~p~vip club", 5000, 1); SetPlayerFacingAngle(playerid, 180.0); SetCameraBehindPlayer(playerid); } } if(IsPlayerInRangeOfPoint(playerid, 3.0, 2275.39, -930.02, 28.04)) // VIP Black Market { if(PlayerInfo[playerid][pDonateRank] >= 2) { SetPlayerInterior(playerid, 7); PlayerInfo[playerid][pInt] = 7; SetPlayerPos(playerid, 315.70, -143.01, 999.60); GameTextForPlayer(playerid, "~r~blackmarket", 5000, 1); SendClientMessage(playerid, COLOR_LIGHTBLUE, " Use /purchase to purchase some weapons."); SetPlayerFacingAngle(playerid, 0.0); SetCameraBehindPlayer(playerid); } } if(IsPlayerInRangeOfPoint(playerid, 3, 1310.0685,-1367.6198,13.5382)) { PaintballPlayers ++; PlayerPaintballing[playerid] = 1; new rand = random(sizeof(PaintballSpawns)); SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]); SetCameraBehindPlayer(playerid); TogglePlayerControllable(playerid, 0); } if(IsPlayerInRangeOfPoint(playerid,3.0,1241.4700,-871.8169,42.8828)) //Hitmen { if(PlayerInfo[playerid][pMember] != 8) return 1; SetPlayerInterior(playerid, 6); SetPlayerVirtualWorld(playerid,666); SetPlayerPos(playerid, 289.0340,-109.5871,1003.6828); SetPlayerFacingAngle(playerid, 92.2975); GameTextForPlayer(playerid, "~w~Headquarters", 5000, 1); SetCameraBehindPlayer(playerid); } if(IsPlayerInRangeOfPoint(playerid,3.0,681.5620,-474.2185,16.5363)) //Outlaws HQ { SetPlayerInterior(playerid, 1); SetPlayerPos(playerid, 678.2614,-464.6447,-25.6172); SetPlayerFacingAngle( playerid, 0.0000); GameTextForPlayer(playerid, "~w~The Welcome Pump", 5000, 1); PlayerInfo[playerid][pInt] = 1; SetCameraBehindPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid,8.0,shax,shay,shaz)) //Shamal 1 { if(PlayerInfo[playerid][pMask] == 1) format(string, sizeof(string), "* Stanger has entered the shamal."); else format(string, sizeof(string), "* %s has entered the shamal.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SetPlayerVirtualWorld(playerid, 1337); SetPlayerInterior(playerid,1); SetPlayerPos(playerid,2.57, 33.14, 1200); GameTextForPlayer(playerid, "~w~Shamal", 5000, 1); GivePlayerGun(playerid, 46); } else if(IsPlayerInRangeOfPoint(playerid,8.0,shbx,shby,shbz)) //Shamal 2 { if(PlayerInfo[playerid][pMask] == 1) format(string, sizeof(string), "* Stanger has entered the shamal."); else format(string, sizeof(string), "* %s has entered the shamal.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SetPlayerVirtualWorld(playerid, 1338); SetPlayerInterior(playerid,1); SetPlayerPos(playerid,2.57, 33.14, 1200); GameTextForPlayer(playerid, "~w~Shamal", 5000, 1); GivePlayerGun(playerid, 46); } else if(IsPlayerInRangeOfPoint(playerid,8.0,shcx,shcy,shcz)) //Shamal 3 { if(PlayerInfo[playerid][pMask] == 1) format(string, sizeof(string), "* Stanger has entered the shamal."); else format(string, sizeof(string), "* %s has entered the shamal.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SetPlayerVirtualWorld(playerid, 1339); SetPlayerInterior(playerid,1); SetPlayerPos(playerid,2.57, 33.14, 1200); GameTextForPlayer(playerid, "~w~Shamal", 5000, 1); GivePlayerGun(playerid, 46); } else if(IsPlayerInRangeOfPoint(playerid, 3, 2625.9407, -1112.6112, 67.9953)) // East Coast Families Enter (Front) { SetPlayerPos(playerid, 2807.4290, -1165.7354, 1025.5703); SetPlayerInterior(playerid, 8); PlayerInfo[playerid][pInt] = 8; SetPlayerVirtualWorld(playerid, 10); PlayerInfo[playerid][pVirtualWorld] = 10; SetCameraBehindPlayer(playerid); SetPlayerFacingAngle( playerid, 180.0); GameTextForPlayer(playerid,"~w~East Coast ~n~Families~n~Crib", 3000, 1); } else if(IsPlayerInRangeOfPoint(playerid, 3, 2611.2366, -1111.1881, 68.2453)) // East Coast Families Enter (Back) { SetPlayerPos(playerid, 2807.1748, -1171.8784, 1025.5703); SetPlayerInterior(playerid, 8); PlayerInfo[playerid][pInt] = 8; SetPlayerVirtualWorld(playerid, 10); PlayerInfo[playerid][pVirtualWorld] = 10; SetCameraBehindPlayer(playerid); SetPlayerFacingAngle( playerid, 0.0); GameTextForPlayer(playerid,"~w~East Coast ~n~Families~n~Crib", 3000, 1); } else if(IsPlayerInRangeOfPoint(playerid, 1.5, 2618.9412, -1118.4761, 67.9953)) // East Coast Families Enter (Side) { SetPlayerPos(playerid, 2819.5872,-1172.9215,1025.5703); SetPlayerInterior(playerid, 8); PlayerInfo[playerid][pInt] = 8; SetPlayerVirtualWorld(playerid, 10); PlayerInfo[playerid][pVirtualWorld] = 10; SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid, 90.0); GameTextForPlayer(playerid,"~w~East Coast ~n~Families~n~Crib", 3000, 1); } else if(IsPlayerInRangeOfPoint(playerid, 1.5, 2616.8911, -1118.1410, 70.8499)) // East Coast Families Enter (Window) { SetPlayerPos(playerid, 2817.0349,-1165.4685,1029.1719); SetPlayerInterior(playerid, 8); PlayerInfo[playerid][pInt] = 8; SetPlayerVirtualWorld(playerid, 10); PlayerInfo[playerid][pVirtualWorld] = 10; SetCameraBehindPlayer(playerid); SetPlayerFacingAngle(playerid, 180.0); GameTextForPlayer(playerid,"~w~East Coast ~n~Families~n~Crib", 3000, 1); } else if(IsPlayerInRangeOfPoint(playerid,3.0,611.0699,-583.6415,18.1517)) //SAST { SetPlayerInterior(playerid, 5); SetPlayerPos(playerid, 322.2817,303.3415,999.1484); SetPlayerFacingAngle(playerid, 0.0000); GameTextForPlayer(playerid, "~w~Colonel's Office", 5000, 1); PlayerInfo[playerid][pInt] = 5; SetCameraBehindPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid,3.0,1777.4604,-1664.0137,14.4343)) //FBI HQ { SetPlayerInterior(playerid, 10); SetPlayerPos(playerid, 246.40,110.84,1003.22); SetPlayerFacingAngle(playerid, 0.0000); GameTextForPlayer(playerid, "~w~Federal Bureau ~n~of Investigation", 5000, 1); PlayerInfo[playerid][pInt] = 10; SetCameraBehindPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1498.4185,-2182.5278,14.1682)) //FIRE DEPARTMENT ENTERANCE { SetPlayerInterior(playerid, 3); SetPlayerPos(playerid, 368.0984,162.2898,1019.9844); PlayerInfo[playerid][pInt] = 3; GameTextForPlayer(playerid, "~r~LSFMD~n~~w~Head Quarters", 5000, 1); SetPlayerFacingAngle(playerid, 90.0); SetCameraBehindPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1172.6975, -1325.3914, 15.4019)) //HOSPITAL GROUND ENTER { SetPlayerInterior(playerid, 70); SetPlayerPos(playerid, 1199.0801,-1366.3083,1017.8790); PlayerInfo[playerid][pInt] = 70; GameTextForPlayer(playerid, "~r~All Saints ~n~~w~Medical Center", 5000, 1); SetPlayerFacingAngle(playerid, 271.3973); SetCameraBehindPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1154.5345, -1343.6583, 26.6953)) //HOSPITAL ROOF ENTER { SetPlayerInterior(playerid, 70); SetPlayerPos(playerid, 1216.2145,-1379.2618,1029.4714); PlayerInfo[playerid][pInt] = 70; GameTextForPlayer(playerid, "~r~All Saints ~n~~w~Medical Center", 5000, 1); SetPlayerFacingAngle(playerid, 1.0922); SetCameraBehindPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid, 3, 1564.8468,-1666.1549,28.3956)) //LSPD Roof-LSPD Enterance { SetPlayerInterior(playerid, 6); SetPlayerPos(playerid,242.7468,66.3155,1003.6406); SetCameraBehindPlayer(playerid); GameTextForPlayer(playerid, "~w~Los Santos~n~~r~Police Department", 5000, 1); SetPlayerFacingAngle(playerid, 270.0); PlayerInfo[playerid][pInt] = 6; } else if(IsPlayerInRangeOfPoint(playerid, 3, 1895.2286,-2021.3555,13.5469)) // Latin Kings { SetPlayerPos(playerid, 2569.4885,-1301.9822,1044.1250); SetCameraBehindPlayer(playerid); SetPlayerInterior(playerid, 2); PlayerInfo[playerid][pInt] = 2; GameTextForPlayer(playerid, "~w~South Side Locotes", 5000, 1); SetPlayerFacingAngle(playerid, 90.0000); } else if(IsPlayerInRangeOfPoint(playerid, 3, 2073.2996,-1583.2520,13.4744)) // Idlewood Rydas { SetPlayerPos(playerid, 446.7476, 507.4956, 1001.4195); SetCameraBehindPlayer(playerid); SetPlayerInterior(playerid, 12); PlayerInfo[playerid][pInt] = 12; SetPlayerVirtualWorld(playerid, 299); PlayerInfo[playerid][pVirtualWorld] = 299; GameTextForPlayer(playerid, "~w~Idlewood Rydas", 5000, 1); SetPlayerFacingAngle(playerid, 0.0000); } else if(IsPlayerInRangeOfPoint(playerid, 3, 2447.8350,-1962.6876,13.5469)) //Los Santos Export Depot { SetPlayerPos(playerid,2573.0928,-1302.0148,1044.1250); SetCameraBehindPlayer(playerid); PlayerInfo[playerid][pInt] = 2; SetPlayerInterior(playerid, 2); GameTextForPlayer(playerid, "~w~Los Santos ~n~Export Depot HQ", 5000, 1); SetPlayerFacingAngle(playerid, 270.0000); } else if(IsPlayerInRangeOfPoint(playerid,3.0,1038.2180,-1340.5763,13.7432)) //Donut Store { SetPlayerInterior(playerid, 17); SetPlayerPos(playerid, 377.1611,-191.6544,1000.6328); SetPlayerFacingAngle(playerid, 0.0000); GameTextForPlayer(playerid, "~w~Jim's Sticky Ring", 5000, 1); PlayerInfo[playerid][pInt] = 17; SetCameraBehindPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid,3.0,51.9720,-292.6349,1.7031)) //Drug Factory { SetPlayerInterior(playerid, 1); SetPlayerPos(playerid, 2205.2314,1551.5662,1008.4103); SetPlayerFacingAngle(playerid, 270.7354); GameTextForPlayer(playerid, "~w~Drug Factory", 5000, 1); PlayerInfo[playerid][pInt] = 1; SetCameraBehindPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid,3.0,2000.0439,-1114.1256,27.1250)) //Ballas HQ { SetPlayerVirtualWorld(playerid, 1); SetPlayerInterior(playerid, 2); SetPlayerPos(playerid, 2464.8630,-1698.3715,1013.5078); SetPlayerFacingAngle(playerid, 90.0000); GameTextForPlayer(playerid, "~w~Ballas Crib", 5000, 1); PlayerInfo[playerid][pInt] = 2; PlayerInfo[playerid][pVirtualWorld] = 1; SetCameraBehindPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid,3.0,1997.8634,-1104.3289,26.7813)) //Ballas HQ 2 { SetPlayerVirtualWorld(playerid, 1); SetPlayerInterior(playerid, 2); SetPlayerPos(playerid, 2451.2813,-1685.8804,1013.5078); SetPlayerFacingAngle(playerid, 180.0000); GameTextForPlayer(playerid, "~w~Ballas Crib", 5000, 1); PlayerInfo[playerid][pInt] = 2; PlayerInfo[playerid][pVirtualWorld] = 1; SetCameraBehindPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid,3.0,161.8696,-25.7349,1.5781)) //The White Commandos { SetPlayerVirtualWorld(playerid, 1); SetPlayerInterior(playerid, 1); SetPlayerPos(playerid, 965.0615,2108.0691,1011.0303); SetPlayerFacingAngle(playerid, 91.4560); GameTextForPlayer(playerid, "~w~White Commandos HQ", 5000, 1); PlayerInfo[playerid][pInt] = 1; PlayerInfo[playerid][pVirtualWorld] = 1; SetCameraBehindPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid,3.0,2481.7625,-1331.9703,28.3025)) //Vagos HQ { SetPlayerVirtualWorld(playerid, 1); SetPlayerPos(playerid, 1086.0775,2121.3428,10.8203); SetPlayerFacingAngle(playerid, 179.6025); GameTextForPlayer(playerid, "~w~Vagos HQ", 5000, 1); PlayerInfo[playerid][pVirtualWorld] = 1; SetCameraBehindPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid,3.0,-2624.4866,1412.2788,7.0938)) //San Fierro Street Racers HQ { SetPlayerVirtualWorld(playerid, 1); SetPlayerInterior(playerid, 3); SetPlayerPos(playerid, -2634.8577,1409.7426,906.4609); SetPlayerFacingAngle(playerid, 100.0325); GameTextForPlayer(playerid, "~w~Vagos HQ", 5000, 1); PlayerInfo[playerid][pVirtualWorld] = 1; PlayerInfo[playerid][pInt] = 3; SetCameraBehindPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid,3.0,2756.3127,-1182.7612,69.4033)) //The Walton Cartels HQ { SetPlayerInterior(playerid, 12); SetPlayerPos(playerid, 1142.8920,6.3150,1000.6797); SetPlayerFacingAngle(playerid, 90.0000); GameTextForPlayer(playerid, "~w~The Walton ~n~Cartels HQ", 5000, 1); PlayerInfo[playerid][pInt] = 12; SetCameraBehindPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid,3.0,1191.2216,-1652.8029,13.9285)) //Triads HQ { SetPlayerInterior(playerid, 6); SetPlayerPos(playerid, 763.1277,-49.8147,1000.5859); SetPlayerFacingAngle(playerid, 0.0000); GameTextForPlayer(playerid, "~w~Yakuza Dojo", 5000, 1); PlayerInfo[playerid][pInt] = 6; SetCameraBehindPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid,3.0,2183.1687,-2668.6416,17.8828)) //South Side Renegades HQ { SetPlayerInterior(playerid, 18); PlayerInfo[playerid][pInt] = 18; SetPlayerPos(playerid, 1249.7102,-28.1984,1001.0362); SetPlayerFacingAngle(playerid, 270.0); GameTextForPlayer(playerid, "~w~South Side~n~Renegades", 5000, 1); SetCameraBehindPlayer(playerid); PlayerInfo[playerid][pVirtualWorld] = 299; SetPlayerVirtualWorld(playerid, 299); } else if(IsPlayerInRangeOfPoint(playerid,3.0, 1244.7333, 205.3294, 19.6454)) // Donut Store Enterance { SetPlayerVirtualWorld(playerid, 3); SetPlayerInterior(playerid, 17); SetPlayerPos(playerid, 377.1611,-191.6544,1000.6328); SetPlayerFacingAngle(playerid, 0.0000); PlayerInfo[playerid][pInt] = 17; PlayerInfo[playerid][pVirtualWorld] = 3; GameTextForPlayer(playerid, "~w~Montgomery ~n~~r~Cafe", 5000, 1); SetCameraBehindPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid,3.0, 233.2956,1840.2114,17.6406)) // Cafeteria Enterance { SetPlayerInterior(playerid, 4); SetPlayerPos(playerid, 459.2668, -88.6474, 999.5547); SetPlayerFacingAngle(playerid, 89.9299); PlayerInfo[playerid][pInt] = 4; GameTextForPlayer(playerid, "~w~Cafeteria", 5000, 1); SetCameraBehindPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid,3.0,201.3625,1869.4546,13.1406)) //Prison { SetPlayerInterior(playerid, 69); SetPlayerPos(playerid, 1804.9424,-1576.6188,1636.9736); GameTextForPlayer(playerid, "~w~Detention Facility", 5000, 1); SetPlayerFacingAngle(playerid, 90.0000); PlayerInfo[playerid][pInt] = 69; SetCameraBehindPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid,3.0, 2232.89, -1333.48, 23.98)) //Church { SetPlayerInterior(playerid, 69); PlayerInfo[playerid][pInt] = 69; SetPlayerPos(playerid, -1269.07, 77.78, 992.04); GameTextForPlayer(playerid, "~w~Los Santos Chapel", 5000, 1); SetPlayerFacingAngle(playerid, 180.0000); SetCameraBehindPlayer(playerid); } else if (IsPlayerInRangeOfPoint(playerid, 2.5, 1462.611450,-1012.072937,26.843750)) // Bank Enter { SetPlayerPos(playerid, 2305.688964,-16.088100,26.749565); GameTextForPlayer(playerid, "~w~Los Santos Bank", 5000, 1); SetPlayerFacingAngle(playerid, 270.0000); } else if(IsPlayerInRangeOfPoint(playerid,3.0,177.0772,1840.2100,17.6406)) //Infirmary { SetPlayerPos(playerid, 268.7222,1862.8405,8.7578); GameTextForPlayer(playerid, "~w~Infirmary", 5000, 1); SetPlayerFacingAngle(playerid, 180.0); SetCameraBehindPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid,3.0,141.6423,1875.4824,17.8434)) //Locker Room { SetPlayerInterior(playerid, 18); SetPlayerPos(playerid, -217.7308,1402.6931,27.7734); GameTextForPlayer(playerid, "~w~Locker Room", 5000, 1); SetPlayerFacingAngle(playerid, 90.0000); PlayerInfo[playerid][pInt] = 18; SetCameraBehindPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid,3.0,2695.6235,-1704.6960,11.8438)) { SetPlayerInterior(playerid,7); SetPlayerPos(playerid,-1404.5299,-259.0602,1043.6563); GameTextForPlayer(playerid, "~w~Welcome to the 8ball Track", 5000, 1); PlayerInfo[playerid][pInt] = 7; } else if(IsPlayerInRangeOfPoint(playerid,8.0,-2111.5686,-443.9720,38.7344)) { SetPlayerInterior(playerid,4); SetPlayerPos(playerid,-1443.0554,-581.1879,1055.0472); GameTextForPlayer(playerid, "~w~Welcome to the Dirt Track", 5000, 1); PlayerInfo[playerid][pInt] = 4; } else if(IsPlayerInRangeOfPoint(playerid,8.0,-2080.3079,-406.0309,38.7344)) { SetPlayerInterior(playerid,14); SetPlayerPos(playerid,-1464.7732,1557.5533,1052.5313); GameTextForPlayer(playerid, "~w~Welcome to the Stunting Track", 5000, 1); PlayerInfo[playerid][pInt] = 14; } } } return 1; }