- 0
Problema OnPlayerKeyStateChange
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Jimmi
Problema intalnita (descriere):Tot face urat crashdetect in server_log.Am incercat sa trec peste erorile date de el dar apar incontinu.
Liniile de cod / sursa / script-ul(obligatoriu):Ero(area / rile) / warning-(ul / urile):
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { new string[256]; if(!IsPlayerInAnyVehicle(playerid) && newkeys & KEY_JUMP && !(oldkeys & KEY_JUMP) && GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_CUFFED) ApplyAnimation(playerid, "GYMNASIUM", "gym_jog_falloff",4.1,0,1,1,0,0); if ((newkeys==KEY_ACTION)&&(IsPlayerInAnyVehicle(playerid))&&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)) { if(IsPlayerConnected(playerid)) { if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 525) { if (IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid)==PLAYER_STATE_DRIVER) { if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) { //SendClientMessage(playerid,0xa9c4e4FF,"trying to tow a car"); new Float:pX,Float:pY,Float:pZ; GetPlayerPos(playerid,pX,pY,pZ); new Float:vX,Float:vY,Float:vZ; new Found=0; new vid=0; while((vid<MAX_VEHICLES)&&(!Found)) { vid++; GetVehiclePos(vid,vX,vY,vZ); if ((floatabs(pX-vX)<7.0)&&(floatabs(pY-vY)<7.0)&&(floatabs(pZ-vZ)<7.0)&&(vid!=GetPlayerVehicleID(playerid))) { Found=1; if (IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) { new Float:x, Float:y, Float:z, Float:a; GetVehiclePos(vid, x, y, z); GetVehicleZAngle(vid, a); DetachTrailerFromVehicle(GetPlayerVehicleID(playerid)); SendClientMessage(playerid,0xa9c4e4FF,"{FF0000}TowCar: {FFFFFF}Vehiculul a fost parcat aici!"); //if(IsPlayerInArea(playerid, 806.2627, -1309.1725, 931.9445, -1157.6738)) //{ vInfo[OwnedVeh(vid)][vPosX] = x; vInfo[OwnedVeh(vid)][vPosY] = y; vInfo[OwnedVeh(vid)][vPosZ] = z; vInfo[OwnedVeh(vid)][vPosA] = a; vInfo[OwnedVeh(vid)][vTowed] = 1; vUpdate(OwnedVeh(vid), vTowedx); vUpdate(OwnedVeh(vid), vPosXx); vUpdate(OwnedVeh(vid), vPosYx); vUpdate(OwnedVeh(vid), vPosAx); vUpdate(OwnedVeh(vid), vPosZx); //SavePrivVeh(OwnedVeh(vid)); //} return 1; } AttachTrailerToVehicle(vid,GetPlayerVehicleID(playerid)); SendClientMessage(playerid,0xa9c4e4FF,"{FF0000}TowCar: {FFFFFF}Masina a fost tractata cu succes !"); } } if (!Found) { SendClientMessage(playerid,0xa9c4e4FF,"{FF0000}TowCar: {FFFFFF}Nu sunt masini in jurul tau."); } } else { SendClientMessage(playerid, 0xa9c4e4FF, "{FF0000}TowCar: {FFFFFF}Nu esti intr-un camion {a9c4e4}Tow Car Company{0066FF}!"); return 1; } } } if (IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid)==PLAYER_STATE_DRIVER) { new vid = GetPlayerVehicleID(playerid); if(LightsSTATE == 0) { GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective); LightsSTATE = 1; } else { GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective); LightsSTATE = 0; } } } return 1; } if (newkeys & KEY_CTRL_BACK) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14 || IsACop(playerid)) { if(PlayerToPoint(10.0, playerid, 923.26947021484, -1221.3463134766, 17.693405151367)) { SetTimer("TCCGate", 3500, 0); MoveDynamicObject(tccgate, 923.26947021484, -1221.3463134766, 13.443405151367, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10 || IsACop(playerid)) // taxi bariera { if(PlayerToPoint(15.0, playerid, 1814.7832,-1887.4167,13.4141)) { SetTimer("closebarierataxi",3500,false); MoveObject ( taxibariera, 1811.4906, -1900.4209, 12.5161, 4.0); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2) { if(PlayerToPoint(10.0, playerid, 3276.703125,-778.546447,11.071708)) { SetTimer("GarageYard", 3500, 0); MoveDynamicObject(barierayd, 3273.603271,-766.213378, -7, 5); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) { if(PlayerToPoint(10.0, playerid, 2777.10009766,917.40002441,9.69999981)) { SetTimer("TCCCGate", 3500, 0); MoveDynamicObject(gatetcc, 2777.10009766,917.40002441,4.69999981, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) { if(PlayerToPoint(10.0, playerid, 869.0999800,-1206.3000000,14.0000000)) { SetTimer("TCCCGate1", 3500, 0); MoveDynamicObject(gatetcc1, 869.0999800,-1206.3000000,14.0000000, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) { if(PlayerToPoint(5.0, playerid, 1273.0000000,-912.7999900,42.9000000)) { format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SetObjectRot(barriersi,0, 0, 267.9950000); SetTimer("SIGateOpen", 3000, 0); return 1; } } if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13 || IsACop(playerid)) { if(PlayerToPoint(10.0, playerid, 785.29998779,-1152.40002441,24.29999924)) { SetTimer("OrlsGate1", 3500, 0); MoveDynamicObject(orlstcc, 785.29998779,-1152.40002441,19.29999924, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } if(PlayerToPoint(10.0, playerid, 659.90002441,-1227.50000000,16.70000076)) { SetTimer("OrlsGate2", 3500, 0); MoveDynamicObject(orlstcc1, 659.90002441,-1227.50000000,7.70000076, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } if(PlayerToPoint(10.0, playerid, 665.00000000,-1308.80004883,14.19999981)) { SetTimer("OrlsGate3", 3500, 0); MoveDynamicObject(orlstcc2, 665.00000000,-1308.80004883,5.19999981, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(IsACop(playerid)) { if(PlayerToPoint(3.0,playerid,1558.970703125, -1677.9114990234, 1722.1081542969)) { MoveDynamicObject(door1,1558.1387939453, -1677.8883056641, 1722.1081542969,1.50); MoveDynamicObject(door2,1562.7950439453, -1677.8798828125, 1722.1081542969,1.50); format(string, sizeof(string), "%s deschide usa si o impinge incet.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } if(PlayerToPoint(3.0,playerid,1552.7789306641, -1691.4653320313, 1722.1081542969)) { MoveDynamicObject(door3,1549.6147460938, -1691.4772949219, 1722.1081542969,1.50); MoveDynamicObject(door4,1554.2923583984, -1691.4328613281, 1722.1081542969,1.50); format(string, sizeof(string), "%s deschide usa si o impinge incet.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } if(PlayerToPoint(3.0,playerid,1560.1090087891, -1653.4477539063, 1719.5637207031)) { MoveDynamicObject(door5,1560.1309774200, -1651.7266845703, 1719.5637207031,1.50); format(string, sizeof(string), "%s deschide usa si o impinge incet.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } if(PlayerToPoint(3.0,playerid,1558.970703125, -1677.9114990234, 1722.1081542969)) { MoveDynamicObject(door1,1558.970703125, -1677.9114990234, 1722.1081542969,1.50); MoveDynamicObject(door2,1561.9755859375, -1677.8798828125, 1722.1081542969,1.50); format(string, sizeof(string), "%s trage usa si o inchide.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } if(PlayerToPoint(3.0,playerid,1552.7789306641, -1691.4653320313, 1722.1081542969)) { MoveDynamicObject(door3,1550.4266357422, -1691.5009765625, 1722.1081542969,1.50); MoveDynamicObject(door4,1553.4294433594, -1691.4515380859, 1722.1081542969,1.50); format(string, sizeof(string), "%s trage usa si o inchide.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } if(PlayerToPoint(3.0,playerid,1560.1090087891, -1653.4477539063, 1719.5637207031)) { MoveDynamicObject(door5,1560.1090087891, -1653.4477539063, 1719.5637207031,1.50); format(string, sizeof(string), "%s trage usa si o inchide.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { if(PlayerToPoint(10.0, playerid, 3260.5247,-1964.1951,4.8088) || PlayerToPoint(10.0, playerid, 3255.1831,-1977.5669,4.8088)) { SetTimer("JailGate", 3500, 0); MoveDynamicObject(jailgate1, 3256.5, -1965, 4.9, 8); MoveDynamicObject(jailgate2, 3256.5, -1980, 4.9, 8); MoveDynamicObject(jailgate3, 3256.5, -1964.9, 13.2, 8); MoveDynamicObject(jailgate4, 3256.5, -1979.9, 13.2, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { if(PlayerToPoint(10.0, playerid, 3260.5247,-1964.1951,4.8088) || PlayerToPoint(10.0, playerid, 3255.1831,-1977.5669,4.8088)) { SetTimer("JailCGate", 3500, 0); MoveDynamicObject(jailgate1, 3256.50000000,-1970,4.90000010,8); MoveDynamicObject(jailgate2, 3256.50000000,-1975.5,4.90000010,8); MoveDynamicObject(jailgate3, 3256.50000000,-1969.9000244141,13.19999981,8); MoveDynamicObject(jailgate4, 3256.50000000,-1975.4000244141,13.19999981,8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerToPoint(5.0, playerid, 1544.67, -1630.88, 13.11)) { SetTimer("PDBarrier", 3500, 0); MoveDynamicObject(barrierpd, 1544.67, -1630.88, 13.11+0.0001, 0.0001,0.00, 0.36, 269.91); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } if(PlayerToPoint(5.0, playerid, 1588.74, -1637.92, 15.08)) { SetTimer("PDGate", 5500, 0); MoveDynamicObject(gatepd, 1588.74, -1637.92, 5.08, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } if(PlayerToPoint(2.0, playerid, 1583.4039,-1637.3866,13.3905)) { SetTimer("PDDoor", 3500, 0); MoveDynamicObject(doorpd, 1579.85, -1637.92, 2.34, 8); format(string, sizeof(string), "%s impinge incet usa, lasand-o deschisa.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } if(PlayerToPoint(7.0, playerid, 1761.30,-1691.50,14.10)) { SetTimer("FBIGate", 3500, 0); MoveDynamicObject(gatefbi, 1761.30,-1684.60,14.10, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } return 1; } } if(!IsPlayerInAnyVehicle(playerid) && (newkeys & KEY_YES)) { new Float:pos[3]; GetPlayerPos(playerid, pos[0], pos[1], pos[2]); if(pos[1] < -1301.4 && pos[1] > -1303.2417 && pos[0] < 1786.2131 && pos[0] > 1784.1555) // He is using the elevator button ShowElevatorDialog(playerid); else // Is he in a floor button? { if(pos[1] > -1301.4 && pos[1] < -1299.1447 && pos[0] < 1785.6147 && pos[0] > 1781.9902) { // He is most likely using it, check floor: new i=20; while(pos[2] < GetDoorsZCoordForFloor(i) + 3.5 && i > 0) i --; if(i == 0 && pos[2] < GetDoorsZCoordForFloor(0) + 2.0) i = -1; if(i <= 19) { CallElevator(playerid, i + 1); GameTextForPlayer(playerid, "~r~Ai chemat liftul!", 3500, 4); } } } } if (newkeys & KEY_YES) { new vid = GetPlayerVehicleID(playerid); if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { if(BonnetSTATE == 0) { GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective); BonnetSTATE = 1; } else { GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective); BonnetSTATE = 0; } } } if (newkeys & KEY_NO) { new vid = GetPlayerVehicleID(playerid); if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { if(BootSTATE == 0) { GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective); BootSTATE = 1; } else { GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective); BootSTATE = 0; } } } if (newkeys & KEY_CTRL_BACK) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {} else return 1; if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14 || IsACop(playerid)) { if(PlayerToPoint(10.0, playerid, 923.26947021484, -1221.3463134766, 17.693405151367)) { SetTimer("TCCGate", 3500, 0); MoveDynamicObject(tccgate, 923.26947021484, -1221.3463134766, 13.443405151367, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) { if(PlayerToPoint(10.0, playerid, 2777.10009766,917.40002441,9.69999981)) { SetTimer("TCCCGate", 3500, 0); MoveDynamicObject(gatetcc, 2777.10009766,917.40002441,4.69999981, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) { if(PlayerToPoint(10.0, playerid, 869.0999800,-1206.3000000,14.0000000)) { SetTimer("TCCCGate1", 3500, 0); MoveDynamicObject(gatetcc1, 869.0999800,-1206.3000000,14.0000000, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) { if(PlayerToPoint(5.0, playerid, 1273.0000000,-912.7999900,42.9000000)) { SetTimer("PDBarrier1", 3500, 0); MoveDynamicObject(barriersi, 1273.0000000,-912.7999900,42.9000000+0.0000000,268.0000000,10.0000000); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { if(PlayerToPoint(10.0, playerid, 3260.5247,-1964.1951,4.8088) || PlayerToPoint(10.0, playerid, 3260.5247,-1964.1951,4.8088)) { SetTimer("JailGate", 3500, 0); MoveDynamicObject(jailgate1, 3256.5, -1965, 4.9, 8); MoveDynamicObject(jailgate2, 3256.5, -1980, 4.9, 8); MoveDynamicObject(jailgate3, 3256.5, -1964.9, 13.2, 8); MoveDynamicObject(jailgate4, 3256.5, -1979.9, 13.2, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { if(PlayerToPoint(10.0, playerid, 3260.5247,-1964.1951,4.8088) || PlayerToPoint(10.0, playerid, 3260.5247,-1964.1951,4.8088)) { SetTimer("JailCGate", 3500, 0); MoveDynamicObject(jailgate1, 3256.50000000,-1970,4.90000010, 8); MoveDynamicObject(jailgate2, 3256.50000000,-1975.5,4.90000010, 8); MoveDynamicObject(jailgate3, 3256.50000000,-1969.9000244141,13.19999981, 8); MoveDynamicObject(jailgate4, 3256.50000000,-1975.4000244141,13.19999981, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13 || IsACop(playerid)) { if(PlayerToPoint(10.0, playerid, 785.29998779,-1152.40002441,24.29999924)) { SetTimer("OrlsGate1", 3500, 0); MoveDynamicObject(orlstcc, 785.29998779,-1152.40002441,19.29999924, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } if(PlayerToPoint(10.0, playerid, 659.90002441,-1227.50000000,16.70000076)) { SetTimer("OrlsGate2", 3500, 0); MoveDynamicObject(orlstcc1, 659.90002441,-1227.50000000,7.70000076, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } if(PlayerToPoint(10.0, playerid, 665.00000000,-1308.80004883,14.19999981)) { SetTimer("OrlsGate3", 3500, 0); MoveDynamicObject(orlstcc2, 665.00000000,-1308.80004883,5.19999981, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(IsACop(playerid)) { if(PlayerToPoint(3.0,playerid,1558.970703125, -1677.9114990234, 1722.1081542969)) { MoveDynamicObject(door1,1558.1387939453, -1677.8883056641, 1722.1081542969,1.50); MoveDynamicObject(door2,1562.7950439453, -1677.8798828125, 1722.1081542969,1.50); format(string, sizeof(string), "%s deschide usa si o impinge incet.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } if(PlayerToPoint(3.0,playerid,1552.7789306641, -1691.4653320313, 1722.1081542969)) { MoveDynamicObject(door3,1549.6147460938, -1691.4772949219, 1722.1081542969,1.50); MoveDynamicObject(door4,1554.2923583984, -1691.4328613281, 1722.1081542969,1.50); format(string, sizeof(string), "%s deschide usa si o impinge incet.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } if(PlayerToPoint(3.0,playerid,1560.1090087891, -1653.4477539063, 1719.5637207031)) { MoveDynamicObject(door5,1560.1309774200, -1651.7266845703, 1719.5637207031,1.50); format(string, sizeof(string), "%s deschide usa si o impinge incet.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } if(PlayerToPoint(3.0,playerid,1558.970703125, -1677.9114990234, 1722.1081542969)) { MoveDynamicObject(door1,1558.970703125, -1677.9114990234, 1722.1081542969,1.50); MoveDynamicObject(door2,1561.9755859375, -1677.8798828125, 1722.1081542969,1.50); format(string, sizeof(string), "%s trage usa si o inchide.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } if(PlayerToPoint(3.0,playerid,1552.7789306641, -1691.4653320313, 1722.1081542969)) { MoveDynamicObject(door3,1550.4266357422, -1691.5009765625, 1722.1081542969,1.50); MoveDynamicObject(door4,1553.4294433594, -1691.4515380859, 1722.1081542969,1.50); format(string, sizeof(string), "%s trage usa si o inchide.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } if(PlayerToPoint(3.0,playerid,1560.1090087891, -1653.4477539063, 1719.5637207031)) { MoveDynamicObject(door5,1560.1090087891, -1653.4477539063, 1719.5637207031,1.50); format(string, sizeof(string), "%s trage usa si o inchide.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { if(PlayerToPoint(10.0, playerid, 3260.5247,-1964.1951,4.8088) || PlayerToPoint(10.0, playerid, 3255.1831,-1977.5669,4.8088)) { SetTimer("JailGate", 3500, 0); MoveDynamicObject(jailgate1, 3256.5, -1965, 4.9, 8); MoveDynamicObject(jailgate2, 3256.5, -1980, 4.9, 8); MoveDynamicObject(jailgate3, 3256.5, -1964.9, 13.2, 8); MoveDynamicObject(jailgate4, 3256.5, -1979.9, 13.2, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { if(PlayerToPoint(10.0, playerid, 3260.5247,-1964.1951,4.8088) || PlayerToPoint(10.0, playerid, 3255.1831,-1977.5669,4.8088)) { SetTimer("JailCGate", 3500, 0); MoveDynamicObject(jailgate1, 3256.50000000,-1970,4.90000010,8); MoveDynamicObject(jailgate2, 3256.50000000,-1975.5,4.90000010,8); MoveDynamicObject(jailgate3, 3256.50000000,-1969.9000244141,13.19999981,8); MoveDynamicObject(jailgate4, 3256.50000000,-1975.4000244141,13.19999981,8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } if(PlayerToPoint(5.0, playerid, 1544.67, -1630.88, 13.11)) { SetTimer("PDBarrier", 3500, 0); MoveDynamicObject(barrierpd, 1544.67, -1630.88, 13.11+0.0001, 0.0001,0.00, 0.36, 269.91); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } if(PlayerToPoint(5.0, playerid, 1588.74, -1637.92, 15.08)) { SetTimer("PDGate", 5500, 0); MoveDynamicObject(gatepd, 1588.74, -1637.92, 5.08, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } if(PlayerToPoint(2.0, playerid, 1583.4039,-1637.3866,13.3905)) { SetTimer("PDDoor", 3500, 0); MoveDynamicObject(doorpd, 1579.85, -1637.92, 2.34, 8); format(string, sizeof(string), "%s impinge incet usa, lasand-o deschisa.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } if(PlayerToPoint(7.0, playerid, 1761.30,-1691.50,14.10)) { SetTimer("FBIGate", 3500, 0); MoveDynamicObject(gatefbi, 1761.30,-1684.60,14.10, 8); format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } } } if ((newkeys==KEY_SECONDARY_ATTACK)) { if(AnimPlay[playerid] == 1) { ClearAnimations(playerid); AnimPlay[playerid] = 0; } GetPlayerPos(playerid, X, Y, Z); //InteriorPos[playerid][0] = X; //InteriorPos[playerid][1] = Y; //InteriorPos[playerid][2] = Z; if(IsPlayerConnected(playerid)) { if(GetPlayerInterior(playerid) == 1 && IsPlayerInAnyVehicle(playerid) || GetPlayerInterior(playerid) == 3 && IsPlayerInAnyVehicle(playerid) || GetPlayerInterior(playerid) == 2 && IsPlayerInAnyVehicle(playerid)) { return 0; } for(new i = 0; i < MAX_HOUSES; i++) { CheatTimer[playerid] = 3; //if(CPTimer[playerid] > 0) return 1; if(PlayerToPoint(1.5, playerid, HouseInfo[i][hPosX], HouseInfo[i][hPosY], HouseInfo[i][hPosZ])) { if(HouseInfo[i][hOwned] == 0) { //new string[256]; if(GetPlayerCash(playerid) >= HouseInfo[i][hValue]) { format(string, sizeof(string), "{F6F6F6}Vrei sa cumperi aceasta casa pentru {00BC00}$%d{F6F6F6}?", HouseInfo[i][hValue]); ShowPlayerDialog(playerid, 300, DIALOG_STYLE_MSGBOX, "{00BC00}Meniul {F6F6F6}Casei", string, "Cumpara", "Pleaca"); HouseRequested[playerid] = i; //CPTimer[playerid] = 3; } } else { if(strmatch(HouseInfo[i][hOwner], pName(playerid)) || PlayerInfo[playerid][pPhousekey] == i) { SetPlayerInterior(playerid, HouseInfo[i][hInt]); SetPlayerPos(playerid, HouseInfo[i][hPosX1], HouseInfo[i][hPosY1], HouseInfo[i][hPosZ1]); SetPlayerVirtualWorld(playerid, i); EnteredHouse[playerid] = i; //CPTimer[playerid] = 3; return 1; } if(HouseInfo[i][hLock] == 0) { SetPlayerInterior(playerid, HouseInfo[i][hInt]); SetPlayerPos(playerid, HouseInfo[i][hPosX1], HouseInfo[i][hPosY1], HouseInfo[i][hPosZ1]); SetPlayerVirtualWorld(playerid, i); EnteredHouse[playerid] = i; } else if(HouseInfo[i][hLock] != 0 && HouseInfo[i][hPrice] != 0) { HouseRequested[playerid] = i; ShowPlayerDialog(playerid, 314, DIALOG_STYLE_LIST, "{00BC00}Meniul {F6F6F6}Casei", "{00BC00}1. {F6F6F6}Cumpara casa\n{00BC00}2. {F6F6F6}Intra prin efractie", "Alege", "Iesi"); House[playerid] = i; //return ShowPlayerDialog(playerid, 313, DIALOG_STYLE_MSGBOX, "{F6F6F6}Incuietoarea este slabita..", "{F6F6F6}Ai fortat usa dar n-ai putut sa intri.\n{F6F6F6}Sunt sanse sa poti intra in casa prin efractie. Vrei sa intri?", "Intra", "Pleaca"); } else if(HouseInfo[i][hLock] != 0 && HouseInfo[i][hPrice] == 0) { House[playerid] = i; return ShowPlayerDialog(playerid, 313, DIALOG_STYLE_MSGBOX, "{F6F6F6}Poti intra prin efractie..", "{F6F6F6}Ai incercat clanta usii si ai observat ca se poate distruge usor.\n{F6F6F6}Sunt sanse sa poti intra prin efractie. Esti sigur ca vrei sa faci asta?", "Da", "Nu"); } } } } for(new i = 0; i < MAX_HOUSES; i++) { CheatTimer[playerid] = 3; if(PlayerToPoint(3.0, playerid, HouseInfo[i][hPosX1], HouseInfo[i][hPosY1], HouseInfo[i][hPosZ1])) { if(GetPlayerVirtualWorld(playerid) != 0) { EnteredHouse[playerid] = 0; if(HouseInfo[i][hUpgradeLock] != 13) SetPlayerInterior(playerid, 0); else SetPlayerInterior(playerid, 0); if(PlayerToPoint(3.0, playerid, 2282.9983, -1139.7643, 1050.8984)) { SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, HouseInfo[GetPlayerVirtualWorld(playerid)][hPosX], HouseInfo[GetPlayerVirtualWorld(playerid)][hPosY], HouseInfo[GetPlayerVirtualWorld(playerid)][hPosZ]); SetPlayerVirtualWorld(playerid, 0); return 1; } SetPlayerPos(playerid, HouseInfo[GetPlayerVirtualWorld(playerid)][hPosX], HouseInfo[GetPlayerVirtualWorld(playerid)][hPosY], HouseInfo[GetPlayerVirtualWorld(playerid)][hPosZ]); if(HouseInfo[i][hUpgradeLock] != 13) SetPlayerVirtualWorld(playerid, 0); else SetPlayerVirtualWorld(playerid, HouseInfo[i][hForSale]); return 1; } } } for(new i = 0; i < sizeof(BizzInfo); i++) { CheatTimer[playerid] = 3; if (PlayerToPoint(3, playerid,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ])) { //printf("Found House :%d",i); if(!IsACop(playerid) && i == 3) { SendClientMessage(playerid, COLOR_GREY, " Doar pentru politisti !"); return 1; } if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerCash(playerid) >= BizzInfo[i][bEntranceCost]) { if(PlayerInfo[playerid][pPbiskey] != i) { if(BizzInfo[i][bLocked] == 1) { GameTextForPlayer(playerid, "~r~Inchis", 5000, 1); return 1; } /*if(BizzInfo[i][bProducts] == 0) { GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1); return 1; }*/ if(GetPlayerInterior(playerid) == 17) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}24/7: {FFFFFF}Foloseste /buy pentru a cumpara ceva!"); if(GetPlayerInterior(playerid) == 3) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Sex Shop: {FFFFFF}Foloseste /buy pentru a cumpara ceva!"); if(GetPlayerInterior(playerid) == 10) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Burger Shot: {FFFFFF}Scrie /eat pentru a manca ceva!"); if(GetPlayerInterior(playerid) == 5) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Well Stacked Pizza: {FFFFFF}Scrie /eat pentru a manca ceva!"); if(GetPlayerInterior(playerid) == 9) SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Cluckin' Bell: {FFFFFF}Scrie /eat pentru a manca ceva!"); GivePlayerCash(playerid,-BizzInfo[i][bEntranceCost]); format(string, sizeof(string), "~r~-$%d~n~~w~scrie /exit~n~pentru a iesi", BizzInfo[i][bEntranceCost]); BizzInfo[i][bTill] += BizzInfo[i][bEntranceCost]; ExtortionBiz(i, BizzInfo[i][bEntranceCost]); BizzInfo[i][bProducts]--; OnPropUpdate(); GameTextForPlayer(playerid, string, 5000, 3); } SetPlayerInterior(playerid,BizzInfo[i][bInterior]); SetPlayerPos(playerid,BizzInfo[i][bExitX],BizzInfo[i][bExitY],BizzInfo[i][bExitZ]); SetPlayerVirtualWorld(playerid, i); PlayerInfo[playerid][pInt] = BizzInfo[i][bInterior]; PlayerInfo[playerid][pLocal] = i+99; new dood[MAX_PLAYER_NAME]; GetPlayerName(playerid, dood, sizeof(dood)); format(string, sizeof(string), "%s payed $%d to enter biz %d", dood, BizzInfo[i][bEntranceCost], i); printf("%s", string); PayLog(string); //PlayerInfo[playerid][pLocal] = i; } else { GameTextForPlayer(playerid, "~r~Nu ai destui bani", 5000, 1); } } } for(new i = 0; i < sizeof(SBizzInfo); i++) { CheatTimer[playerid] = 3; if (PlayerToPoint(3, playerid,SBizzInfo[i][sbEntranceX], SBizzInfo[i][sbEntranceY], SBizzInfo[i][sbEntranceZ])) { if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerCash(playerid) >= SBizzInfo[i][sbEntranceCost]) { if(PlayerInfo[playerid][pPbiskey] != i) { if(SBizzInfo[i][sbLocked] == 1) { GameTextForPlayer(playerid, "~r~Inchis", 5000, 1); return 1; } if(i == 10) { PaintballPlayers ++; PlayerPaintballing[playerid] = 1; new rand = random(sizeof(PaintballSpawns)); SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]); TogglePlayerControllable(playerid, 0); } else if(i == 11) { if(KartingRound != 0) return SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Kart: {FFFFFF}O cursa este deja in desfasurare! Asteapta sa se termine!"); PlayerKarting[playerid] = 1; SendClientMessage(playerid, TEAM_GROVE_COLOR, "Acum poti intra in cursa, ia un kart acum!"); } else { return 1; } GivePlayerCash(playerid,-SBizzInfo[i][sbEntranceCost]); gSpentCash[playerid] = GetPlayerCash(playerid); SBizzInfo[i][sbProducts]--; SBizzInfo[i][sbTill] += SBizzInfo[i][sbEntranceCost]; ExtortionSBiz(i, SBizzInfo[i][sbEntranceCost]); new dood[MAX_PLAYER_NAME]; GetPlayerName(playerid, dood, sizeof(dood)); format(string, sizeof(string), "%s payed $%d to enter sbiz %d", dood, SBizzInfo[i][sbEntranceCost], i); printf("%s", string); PayLog(string); OnPropUpdate(); } } else { GameTextForPlayer(playerid, "~r~Nu ai destui bani", 5000, 1); } } } CheatTimer[playerid] = 3; if (PlayerToPoint(3, playerid,1529.5265,-1849.8447,13.5469))//HOTEL 1 { SetPlayerPos(playerid, 2268.5156,1647.7682,1084.2344); SetPlayerInterior(playerid, 1); GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~r~Hotel ~y~]]",5000,3); SetPlayerVirtualWorld(playerid, 1); return 1; } if (PlayerToPoint(3, playerid,2268.5156,1647.7682,1084.2344) && GetPlayerVirtualWorld(playerid) == 1)//HOTEL 1 { SetPlayerPos(playerid, 1529.5265,-1849.8447,13.5469); SetPlayerInterior(playerid, 0); GameTextForPlayer(playerid, "~w~Los ~r~Santos",5000,1); SetPlayerVirtualWorld(playerid, 0); return 1; } if (PlayerToPoint(3, playerid,918.7299,-1252.1407,16.2109))//TCC HQ { SetPlayerPos(playerid, 3537.5964,-2438.3169,1645.1078); SetPlayerInterior(playerid, 1); GameTextForPlayer(playerid, "~y~TCC ~r~HQ",5000,1); SetPlayerVirtualWorld(playerid, 1); TogglePlayerControllable(playerid, 0); SetTimerEx("SetControllable", 2000, 0, "i", playerid); return 1; } if (PlayerToPoint(3, playerid,2018.5779,1017.7459,996.8750)) // Casino exit { SetPlayerPos(playerid, 2020.0862,1007.6984,10.8203); SetPlayerInterior(playerid,0); GameTextForPlayer(playerid,"~w~Las ~r~ Venturas",5000,1); SetPlayerVirtualWorld(playerid,0); return 1; } if (PlayerToPoint(3, playerid,2814.5120,972.4366,10.7500))//TCC HQ 2 { SetPlayerPos(playerid, 3537.5964,-2438.3169,1645.1078); SetPlayerInterior(playerid, 1); GameTextForPlayer(playerid, "~y~TCC ~r~HQ",5000,1); SetPlayerVirtualWorld(playerid, 2); TogglePlayerControllable(playerid, 0); SetTimerEx("SetControllable", 2000, 0, "i", playerid); return 1; } if (PlayerToPoint(3, playerid, 3537.5964,-2438.3169,1645.1078) && GetPlayerVirtualWorld(playerid) == 1)//TCC HQ { SetPlayerPos(playerid, 918.7299,-1252.1407,16.2109); SetPlayerInterior(playerid, 0); GameTextForPlayer(playerid, "~w~Los ~r~Santos",5000,1); SetPlayerVirtualWorld(playerid, 0); return 1; } if (PlayerToPoint(3, playerid, 3537.5964,-2438.3169,1645.1078) && GetPlayerVirtualWorld(playerid) == 2)//TCC HQ { SetPlayerPos(playerid, 2814.5120,972.4366,10.7500); SetPlayerInterior(playerid, 0); GameTextForPlayer(playerid, "~w~Las ~r~Venturas",5000,1); SetPlayerVirtualWorld(playerid, 0); return 1; } if (PlayerToPoint(3, playerid,1247.8420,-1560.3422,13.5556))//Loterie { SetPlayerPos(playerid, 834.0397,7.3565,1004.1870); SetPlayerInterior(playerid, 3); GameTextForPlayer(playerid, "~y~Loteria ~r~Los~w~ Santos",5000,1); SetPlayerVirtualWorld(playerid, 5); return 1; } if (PlayerToPoint(3, playerid,834.0397,7.3565,1004.1870) && GetPlayerVirtualWorld(playerid) == 5)//Loterie { SetPlayerPos(playerid, 1247.8420,-1560.3422,13.5556); SetPlayerInterior(playerid, 0); GameTextForPlayer(playerid, "~r~Los ~w~Santos",5000,1); SetPlayerVirtualWorld(playerid, 0); return 1; } if(CarnivalStarted != 0) { if (PlayerToPoint(3, playerid,1429.1669,-3139.4631,8.1687))//Loterie-Carnaval { SetPlayerPos(playerid, 834.0397,7.3565,1004.1870); SetPlayerInterior(playerid, 3); GameTextForPlayer(playerid, "~r~Loteria ~y~Carnavalului",5000,1); return 1; } if (PlayerToPoint(3, playerid,834.0397,7.3565,1004.1870))//Loterie-Carnaval { SetPlayerPos(playerid, 1429.1669,-3139.4631,8.1687); SetPlayerInterior(playerid, 0); GameTextForPlayer(playerid, "~y~Carnaval",5000,1); TogglePlayerControllable(playerid, 0); SetTimerEx("SetControllable", 5000, 0, "i", playerid); return 1; } if (PlayerToPoint(3.5, playerid,1383.4779,-3084.5549,8.1687) || PlayerToPoint(3.5, playerid,1376.8757,-3084.6108,8.1687) || PlayerToPoint(3.5, playerid,1370.4219,-3084.6077,8.1687))//Pacanele { if(PacaneleTimer[playerid] <= 0) { StartOnArmedBanditForPlayer(playerid); PacaneleTimer[playerid] = 6; } } if (PlayerToPoint(1.0, playerid,1368.7168,-3109.7495,8.1687))//BASKET STANGA { if(Baskets <= 0) { SetPlayerFacingAngle(playerid, 92.7033); SetPlayerPos(playerid, 1369.3306,-3110.0771,8.1687); //SetPlayerFacingAngle(playerid, 94.6982); ApplyAnimation(playerid,"BSKTBALL","BBALL_pickup",4.0,0,0,0,0,0); ApplyAnimation(playerid,"BSKTBALL","BBALL_pickup",4.0,0,0,0,0,0); //SetDynamicObjectPos(CarnivalObjects[202], 1418.00000000,-3155.19995117,7.30000019); //MoveDynamicObject(CarnivalObjects[202], 1430.00000000,-3155.19995117,7.40000010, 5); SetTimerEx("Basket1", 680, false, "i", playerid); SetDynamicObjectPos(CarnivalObjects[328], 1368.860351,-3110.151855,7.262943); BasketStep[playerid] = 680; Baskets = 5; return 1; } } if (PlayerToPoint(1.0, playerid,1368.5408,-3097.8533,8.1687))//BASKET DREAPTA { if(Baskets2 <= 0) { SetPlayerFacingAngle(playerid, 95.4138); SetPlayerPos(playerid, 1368.5408,-3097.8533,8.1687); //SetPlayerFacingAngle(playerid, 94.6982); ApplyAnimation(playerid,"BSKTBALL","BBALL_pickup",4.0,0,0,0,0,0); ApplyAnimation(playerid,"BSKTBALL","BBALL_pickup",4.0,0,0,0,0,0); //SetDynamicObjectPos(CarnivalObjects[202], 1418.00000000,-3155.19995117,7.30000019); //MoveDynamicObject(CarnivalObjects[202], 1430.00000000,-3155.19995117,7.40000010, 5); SetTimerEx("Basket3", 680, false, "i", playerid); SetDynamicObjectPos(CarnivalObjects[330], 1368.269775,-3097.932128,7.262943); BasketStep[playerid] = 680; Baskets2 = 5; return 1; } } if (PlayerToPoint(1.0, playerid,1368.8434,-3103.7166,8.1687))//BASKET MIJLOC { if(Baskets1 <= 0) { SetPlayerFacingAngle(playerid, 88.9875); SetPlayerPos(playerid, 1368.8434,-3103.7166,8.1687); //SetPlayerFacingAngle(playerid, 94.6982); ApplyAnimation(playerid,"BSKTBALL","BBALL_pickup",4.0,0,0,0,0,0); ApplyAnimation(playerid,"BSKTBALL","BBALL_pickup",4.0,0,0,0,0,0); //SetDynamicObjectPos(CarnivalObjects[202], 1418.00000000,-3155.19995117,7.30000019); //MoveDynamicObject(CarnivalObjects[202], 1430.00000000,-3155.19995117,7.40000010, 5); SetTimerEx("Basket2", 680, false, "i", playerid); SetDynamicObjectPos(CarnivalObjects[329], 1368.520019,-3103.755859,7.262943); BasketStep[playerid] = 680; Baskets1 = 5; return 1; } } if (PlayerToPoint(1.0, playerid,1417.8304,-3155.1316,8.1687))//BOWLING STANGA { if(BowlingTimer[playerid] <= 0) { if(Bowlings[playerid] >= 30) return SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Carnaval: {FFFFFF}Ai jucat de prea multe ori bowling, asteapta pana la payday!"); BowlingTimer[playerid] = 4; SetPlayerFacingAngle(playerid, 266.5608); ApplyAnimation(playerid,"GRENADE","WEAPON_throwu",3.0,0,0,0,0,0); ApplyAnimation(playerid,"GRENADE","WEAPON_throwu",3.0,0,0,0,0,0); SetDynamicObjectPos(CarnivalObjects[202], 1418.00000000,-3155.19995117,7.30000019); MoveDynamicObject(CarnivalObjects[202], 1430.00000000,-3155.19995117,7.40000010, 5); SetTimerEx("Bowling1", 2240, false, "i", playerid); Bowlings[playerid] ++; return 1; } } if (PlayerToPoint(1.0, playerid,1417.9585,-3157.6885,8.1687))//BOWLING DREAPTA { if(BowlingTimer[playerid] <= 0) { if(Bowlings[playerid] >= 30) return SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Carnaval: {FFFFFF}Ai jucat de prea multe ori bowling, asteapta pana la payday!"); BowlingTimer[playerid] = 4; SetPlayerFacingAngle(playerid, 266.5608); ApplyAnimation(playerid,"GRENADE","WEAPON_throwu",3.0,0,0,0,0,0); ApplyAnimation(playerid,"GRENADE","WEAPON_throwu",3.0,0,0,0,0,0); SetDynamicObjectPos(CarnivalObjects[201], 1418.00000000,-3158.00000000,7.30000019); MoveDynamicObject(CarnivalObjects[201], 1429.6647,-3157.9231,7.40000010, 5); SetTimerEx("Bowling2", 2240, false, "i", playerid); Bowlings[playerid] ++; return 1; } } } if (PlayerToPoint(5, playerid,2244.2517,-1665.4854,15.4766))//Binco Gym { SetPlayerPos(playerid, 207.737991,-109.019996,1005.132812); SetPlayerVirtualWorld(playerid, 101); //PlayerInfo[playerid][pVirWorld] = 101; SetPlayerInterior(playerid, 15); GameTextForPlayer(playerid, "~y~Binco",5000,1); return 1; } if (PlayerToPoint(5, playerid, 493.390991,-22.722799,1000.679687))//Alhambra { SetPlayerPos(playerid, 1836.3668,-1682.6283,13.3509); SetPlayerVirtualWorld(playerid, 0); //PlayerInfo[playerid][pVirWorld] = 101; SetPlayerInterior(playerid, 0); StopAudioStreamForPlayer(playerid); GameTextForPlayer(playerid, "~r~Los ~w~Santos",5000,1); return 1; } if (PlayerToPoint(5, playerid,1836.3668,-1682.6283,13.3509))//Alhambra { SetPlayerPos(playerid, 493.390991,-22.722799,1000.679687); SetPlayerVirtualWorld(playerid, 10); //PlayerInfo[playerid][pVirWorld] = 101; PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=151778"); SetPlayerInterior(playerid, 17); GameTextForPlayer(playerid, "~b~Alhambra",5000,1); return 1; } if (PlayerToPoint(5, playerid, 207.737991,-109.019996,1005.132812) && GetPlayerVirtualWorld(playerid) == 101)//Binco Gym { SetPlayerPos(playerid,2244.2517,-1665.4854,15.4766); SetPlayerVirtualWorld(playerid, 0); //PlayerInfo[playerid][pVirWorld] = 0; SetPlayerInterior(playerid, 0); GameTextForPlayer(playerid, "~w~Los Santos",5000,1); return 1; } if(PlayerInfo[playerid][pMember]==1 || PlayerInfo[playerid][pMember]==2 || PlayerInfo[playerid][pMember]==3 || PlayerInfo[playerid][pLeader]==1 || PlayerInfo[playerid][pLeader]==2 || PlayerInfo[playerid][pLeader]==3) { if (PlayerToPoint(5, playerid, 1797.7900,-1578.9369,14.0905)) // LSJail Enter { if(JailTimer[playerid] < 1) { SetPlayerPos(playerid, 1779.3185,-1576.1315,1734.9430); TogglePlayerControllable(playerid, 0); SetTimerEx("SetControllable", 500, 0, "i", playerid); GameTextForPlayer(playerid, "~r~Inchisoarea~w~ Los Santos",5000,1); } } if (PlayerToPoint(5, playerid, 1779.3185,-1576.1315,1734.9430)) // LS Jail Exit { if(JailTimer[playerid] < 1) { SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); SetPlayerPos(playerid, 1797.7900,-1578.9369,14.0905); TogglePlayerControllable(playerid, 0); SetTimerEx("SetControllable", 500, 0, "i", playerid); GameTextForPlayer(playerid, "~r~Los~w~Santos",5000,1); } } } if(PlayerInfo[playerid][pMember]==11 || PlayerInfo[playerid][pMember]==11) { if(PlayerToPoint(5, playerid, 1265.5441,-868.1102,44.8438) && GetPlayerVirtualWorld(playerid) == 0) { SetPlayerInterior(playerid, 18); SetPlayerVirtualWorld(playerid, 0); SetPlayerPos(playerid, 1726.8035,-1638.2405,20.2231); TogglePlayerControllable(playerid, 0); SetTimerEx("SetControllable", 500, 0, "i", playerid); } if(PlayerToPoint(5, playerid, 1726.8035,-1638.2405,20.2231) && GetPlayerVirtualWorld(playerid) == 0) { SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); SetPlayerPos(playerid, 1265.5441,-868.1102,44.8438); TogglePlayerControllable(playerid, 0); SetTimerEx("SetControllable", 500, 0, "i", playerid); } } if(IsPlayerInRangeOfPoint(playerid, 3, 318.564971,1118.209960,1083.882812) && GetPlayerVirtualWorld(playerid) == 0) { SetPlayerPos(playerid, 2166.2742,-1671.5643,15.0739); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid,0); GameTextForPlayer(playerid, "~r~Los~w~Santos",5000,1); } if(IsPlayerInRangeOfPoint(playerid, 3, 802.7416,-1795.3979,13.0234)) // GRABKICK GYM { SetPlayerInterior(playerid, 7); SetPlayerPos(playerid, 773.579956,-77.096694,1000.655029); GameTextForPlayer(playerid, "~y~Scoala~b~Grabkick",5000,1); } if(IsPlayerInRangeOfPoint(playerid, 3, 773.579956,-77.096694,1000.655029)) { SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 802.7416,-1795.3979,13.0234); GameTextForPlayer(playerid, "~r~Los~w~Santos",5000,1); } if (PlayerToPoint(3, playerid, 589.2680,-1768.2806,14.4023))//Karate { SetPlayerPos(playerid,774.213989,-48.924297,1000.585937); SetPlayerInterior(playerid,6); GameTextForPlayer(playerid, "~y~Scoala~r~Karate", 1000, 1); SetPlayerVirtualWorld(playerid, 6); return 1; } if (PlayerToPoint(3, playerid, 774.213989,-48.924297,1000.585937) && GetPlayerVirtualWorld(playerid) == 6)//Karate { SetPlayerPos(playerid,589.2680,-1768.2806,14.4023); SetPlayerInterior(playerid,0); GameTextForPlayer(playerid, "~w~Los Santos", 1000, 1); SetPlayerVirtualWorld(playerid, 0); return 1; } if (PlayerToPoint(3.0, playerid,1481.0463,-1770.3093,18.7958)) { SetPlayerInterior(playerid,3); SetPlayerPos(playerid,1472.6022,-1726.4803,1052.0490); GameTextForPlayer(playerid, "~w~Primaria", 5000, 1); PlayerInfo[playerid][pInt] = 3; PlayerInfo[playerid][pLocal] = 241; SetPlayerVirtualWorld(playerid, 0); } if (PlayerToPoint(3.0, playerid,2413.1052,1123.7834,10.8203)) { SetPlayerInterior(playerid,3); SetPlayerPos(playerid,1472.6022,-1726.4803,1052.0490); GameTextForPlayer(playerid, "~w~Primaria", 5000, 1); PlayerInfo[playerid][pInt] = 3; PlayerInfo[playerid][pLocal] = 241; SetPlayerVirtualWorld(playerid, 2); } if(IsPlayerConnected(playerid)) { if (PlayerToPoint(3.0, playerid, 2131.8369,-1150.5486,24.1454)) { new count = 0; for(new i=0; i<MAX_PLAYERS; i++) { if(PlayerToPoint(20.0, i, -1656.6138,1211.2800,20.8641) && UsingDealership[i] != 0 && GetPlayerVirtualWorld(i) == 10) { count ++; } } if(count < 1) { ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"{00BC00}Dealership","{F6F6F6}Esti la intrarea unui {00BC00}dealership{F6F6F6}.\nPentru a continua, apasa 'Ok'.\nAltfel, apasa 'Iesi'","OK","Iesi"); VehPosition[playerid] = 0; UsingDealership[playerid] = 1; DealershipTimer[playerid] = 3; SendClientMessage(playerid, COLOR_WHITE, " "); SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Dealership: {FFFFFF}Ai 3 minute la dispozitie sa-ti alegi un vehicul."); SetPlayerVirtualWorld(playerid, 10); } else SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Dealership: {FFFFFF}Reprezentanta auto este deja ocupata cu un client. Te rog incearca din nou peste cateva minute."); } if (PlayerToPoint(3.0, playerid, 1410.9225,-1701.1395,13.5395)) { new count = 0; for(new i=0; i<MAX_PLAYERS; i++) { if(PlayerToPoint(20.0, i, -1951.3833,259.0796,41.0471) && UsingDealership[i] != 0) { count ++; } } if(count < 1) { ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"{00BC00}Dealership","{F6F6F6}Esti la intrarea unui {00BC00}dealership{F6F6F6}.\nPentru a continua, apasa 'Ok'.\nAltfel, apasa 'Iesi'","OK","Iesi"); VehPosition[playerid] = 1; UsingDealership[playerid] = 2; DealershipTimer[playerid] = 3; SendClientMessage(playerid, COLOR_WHITE, " "); SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Dealership: {FFFFFF}Ai 3 minute la dispozitie sa-ti alegi un vehicul."); SetPlayerVirtualWorld(playerid, 10); } else SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Dealership: {FFFFFF}Reprezentanta auto este deja ocupata cu un client. Te rog incearca din nou peste cateva minute."); } if (PlayerToPoint(3.0, playerid, 2751.8899,-1468.2407,30.4531)) { new count = 0; for(new i=0; i<MAX_PLAYERS; i++) { if(PlayerToPoint(20.0, i, -1656.6138,1211.2800,20.8641) && UsingDealership[i] != 0 && GetPlayerVirtualWorld(i) == 11) { count ++; } } if(count < 1) { ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"{00BC00}Dealership","{F6F6F6}Esti la intrarea unui {00BC00}dealership{F6F6F6}.\nPentru a continua, apasa 'Ok'.\nAltfel, apasa 'Iesi'","OK","Iesi"); VehPosition[playerid] = 1; UsingDealership[playerid] = 3; DealershipTimer[playerid] = 3; SendClientMessage(playerid, COLOR_WHITE, " "); SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Dealership: {FFFFFF}Ai 3 minute la dispozitie sa-ti alegi un vehicul."); SetPlayerVirtualWorld(playerid, 11); } else SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Dealership: {FFFFFF}Reprezentanta auto este deja ocupata cu un client. Te rog incearca din nou peste cateva minute."); } if (PlayerToPoint(3.0, playerid, 370.9933,-2052.3145,8.0156)) { new count = 0; for(new i=0; i<MAX_PLAYERS; i++) { if(PlayerToPoint(20.0, i, 544.7953,-2497.9021,-0.3487) && UsingDealership[i] != 0 && GetPlayerVirtualWorld(i) == 11) { count ++; } } if(count < 1) { ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"{00BC00}Dealership","{F6F6F6}Esti la intrarea unui {00BC00}dealership{F6F6F6}.\nPentru a continua, apasa 'Ok'.\nAltfel, apasa 'Iesi'","OK","Iesi"); VehPosition[playerid] = 1; UsingDealership[playerid] = 4; DealershipTimer[playerid] = 3; SendClientMessage(playerid, COLOR_WHITE, " "); SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Dealership: {FFFFFF}Ai 3 minute la dispozitie sa-ti alegi un vehicul."); SetPlayerVirtualWorld(playerid, 11); } else SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Dealership: {FFFFFF}Reprezentanta auto este deja ocupata cu un client. Te rog incearca din nou peste cateva minute."); } if (PlayerToPoint(3.0, playerid, 1606.3135,-2432.6738,13.5547)) { new count = 0; for(new i=0; i<MAX_PLAYERS; i++) { if(PlayerToPoint(20.0, i, 1533.4207,-2627.9856,13.5469) && UsingDealership[i] != 0 && GetPlayerVirtualWorld(i) == 11) { count ++; } } if(count < 1) { ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"{00BC00}Dealership","{F6F6F6}Esti la intrarea unui {00BC00}dealership{F6F6F6}.\nPentru a continua, apasa 'Ok'.\nAltfel, apasa 'Iesi'","OK","Iesi"); VehPosition[playerid] = 1; UsingDealership[playerid] = 5; DealershipTimer[playerid] = 3; SendClientMessage(playerid, COLOR_WHITE, " "); SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Dealership: {FFFFFF}Ai 3 minute la dispozitie sa iti alegi un avion."); SetPlayerVirtualWorld(playerid, 11); } else SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Dealership: {FFFFFF}Reprezentanta auto este deja ocupata cu un client. Te rog incearca din nou peste cateva minute."); } if (PlayerToPoint(3.0, playerid, 1948.2946,2068.7778,11.0610)) { new count = 0; for(new i=0; i<MAX_PLAYERS; i++) { if(PlayerToPoint(20.0, i, -1656.6138,1211.2800,20.8641) && UsingDealership[i] != 0 && GetPlayerVirtualWorld(i) == 12) { count ++; } } if(count < 1) { ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"{00BC00}Dealership","{F6F6F6}Esti la intrarea unui {00BC00}dealership{F6F6F6}.\nPentru a continua, apasa 'Ok'.\nAltfel, apasa 'Iesi'","OK","Iesi"); VehPosition[playerid] = 0; UsingDealership[playerid] = 6; DealershipTimer[playerid] = 3; SendClientMessage(playerid, COLOR_WHITE, " "); SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Dealership: {FFFFFF}Ai 3 minute la dispozitie sa-ti alegi un vehicul."); SetPlayerVirtualWorld(playerid, 12); } else SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Dealership: {FFFFFF}Reprezentanta auto este deja ocupata cu un client. Te rog incearca din nou peste cateva minute."); } } if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)// Hitman entrance { if (PlayerToPoint(2, playerid,1106.5240,-299.7180,74.5391)) { SetPlayerPos(playerid, 318.564971,1118.209960,1083.882812); SetPlayerVirtualWorld(playerid, 54); //PlayerInfo[playerid][pVirWorld] = 54; SetPlayerInterior(playerid, 5); GameTextForPlayer(playerid, "~r~Hitman ~w~HQ",5000,1); PlayerHQ[playerid] = 8; return 1; } } if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)// News Reporter HQ { if (PlayerToPoint(5, playerid,1219.0646,-1811.7590,16.5938)) { SetPlayerPos(playerid, 1494.325195,1304.942871,1093.289062); SetPlayerInterior(playerid, 3); SetPlayerVirtualWorld(playerid, 3); //PlayerInfo[playerid][pVirWorld] = 3; GameTextForPlayer(playerid, "~b~News Reporter ~w~HQ",5000,1); return 1; } if (PlayerToPoint(5, playerid,1047.1732,1008.9983,11.0000)) { SetPlayerPos(playerid, 1494.325195,1304.942871,1093.289062); SetPlayerInterior(playerid, 3); SetPlayerVirtualWorld(playerid, 0); //PlayerInfo[playerid][pVirWorld] = 3; GameTextForPlayer(playerid, "~b~News Reporter ~w~HQ",5000,1); return 1; } } if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)// Taxi entrance LAS Venturas { if (PlayerToPoint(5, playerid,1752.9025,-1894.3319,13.5573)) { SetPlayerPos(playerid, -228.9727,1401.2550,27.7656); SetPlayerInterior(playerid, 18); SetPlayerVirtualWorld(playerid, 70); //PlayerInfo[playerid][pVirWorld] = 70; GameTextForPlayer(playerid, "~b~Taxi Cab Company ~w~HQ",5000,1); return 1; } if (PlayerToPoint(5, playerid,2444.2393,1662.8051,10.8203)) { SetPlayerPos(playerid, -228.9727,1401.2550,27.7656); SetPlayerInterior(playerid, 18); SetPlayerVirtualWorld(playerid, 73); //PlayerInfo[playerid][pVirWorld] = 70; GameTextForPlayer(playerid, "~b~Taxi Cab Company ~w~HQ",5000,1); return 1; } } if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)// Ballas entrance { if (PlayerToPoint(2, playerid, 1456.5680,2773.4163,10.8203)) { SetPlayerPos(playerid, 1267.663208,-781.323242,1091.906250); SetPlayerInterior(playerid, 5); GameTextForPlayer(playerid, "~r~Ballas ~w~HQ",5000,1); PlayerHQ[playerid] = 12; return 1; } if (PlayerToPoint(2, playerid,1281.5957,-789.3074,1084.0078)) { //new weapons[13][2]; /*GetPlayerWeaponData(playerid, 0, PlayerInfo[playerid][Weapon1], PlayerInfo[playerid][Weapon1a]); GetPlayerWeaponData(playerid, 1, PlayerInfo[playerid][Weapon2], PlayerInfo[playerid][Weapon2a]); GetPlayerWeaponData(playerid, 2, PlayerInfo[playerid][Weapon3], PlayerInfo[playerid][Weapon3a]); GetPlayerWeaponData(playerid, 3, PlayerInfo[playerid][Weapon4], PlayerInfo[playerid][Weapon4a]); GetPlayerWeaponData(playerid, 4, PlayerInfo[playerid][Weapon5], PlayerInfo[playerid][Weapon5a]); GetPlayerWeaponData(playerid, 5, PlayerInfo[playerid][Weapon6], PlayerInfo[playerid][Weapon6a]); GetPlayerWeaponData(playerid, 6, PlayerInfo[playerid][Weapon7], PlayerInfo[playerid][Weapon7a]); GetPlayerWeaponData(playerid, 7, PlayerInfo[playerid][Weapon8], PlayerInfo[playerid][Weapon8a]); GetPlayerWeaponData(playerid, 8, PlayerInfo[playerid][Weapon9], PlayerInfo[playerid][Weapon9a]); GetPlayerWeaponData(playerid, 9, PlayerInfo[playerid][Weapon10], PlayerInfo[playerid][Weapon10a]); GetPlayerWeaponData(playerid, 10, PlayerInfo[playerid][Weapon11], PlayerInfo[playerid][Weapon11a]); GetPlayerWeaponData(playerid, 11, PlayerInfo[playerid][Weapon12], PlayerInfo[playerid][Weapon12a]);*/ SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875); SetPlayerInterior(playerid, 10); GameTextForPlayer(playerid, "~b~Antrenamente ~r~Ballas",5000,1); SetPlayerVirtualWorld(playerid, 12); PlayerHQ[playerid] = 6; Train[playerid] = 1; ResetPlayerWeaponsEx(playerid); ServerWeapon(playerid, 24, 99999); ServerWeapon(playerid, 31, 99999); ServerWeapon(playerid, 5, 1); ServerWeapon(playerid, 1, 1); ServerWeapon(playerid, 25, 99999); ServerWeapon(playerid, 34, 99999); return 1; } } if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)// Falcone entrance { if(PlayerToPoint(2, playerid,1531.4147,751.1722,11.0234)) { SetPlayerPos(playerid, 2542.2341,-1303.9574,1025.0703); SetPlayerInterior(playerid, 2); GameTextForPlayer(playerid, "~b~Falcone Familigia ~w~HQ",5000,1); PlayerHQ[playerid] = 6; } if (PlayerToPoint(2, playerid,2523.9292,-1309.8328,1031.4219)) { SetPlayerPos(playerid, -2029.7631,-118.7373,1035.1719); SetPlayerInterior(playerid, 3); GameTextForPlayer(playerid, "~b~Sedinte ~r~Falcone",5000,1); SetPlayerVirtualWorld(playerid, 6); PlayerHQ[playerid] = 6; return 1; } if (PlayerToPoint(2, playerid,2523.7820,-1297.9170,1031.4219)) { SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875); SetPlayerInterior(playerid, 10); GameTextForPlayer(playerid, "~b~Antrenamente ~r~Falcone",5000,1); ResetPlayerWeaponsEx(playerid); ServerWeapon(playerid, 24, 99999); ServerWeapon(playerid, 31, 99999); ServerWeapon(playerid, 5, 1); ServerWeapon(playerid, 1, 1); ServerWeapon(playerid, 25, 99999); ServerWeapon(playerid, 34, 99999); SetPlayerVirtualWorld(playerid, 6); Train[playerid] = 1; PlayerHQ[playerid] = 6; return 1; } } if (PlayerToPoint(2, playerid, 1554.9100,-1675.6428,16.1953))//LSPD { SetPlayerPos(playerid, 246.375991,109.245994,1003.218750); SetPlayerInterior(playerid, 10); SetPlayerVirtualWorld(playerid, 25); GameTextForPlayer(playerid, "~b~Los Santos Police Department", 1000, 1); return 1; } if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)// Orleans entrance { if (PlayerToPoint(2, playerid, 690.3832,-1275.9108,13.5599)) { SetPlayerPos(playerid, 2324.419921,-1145.568359,1050.710083); SetPlayerInterior(playerid, 12); SetPlayerVirtualWorld(playerid, 0); //PlayerInfo[playerid][pVirWorld] = 61; GameTextForPlayer(playerid, "~b~Orleans Familly ~w~HQ",5000,1); PlayerHQ[playerid] = 13; return 1; } if (PlayerToPoint(2, playerid,2332.5752,-1143.9515,1054.3047)) { SetPlayerPos(playerid, -2029.7631,-118.7373,1035.1719); SetPlayerInterior(playerid, 3); GameTextForPlayer(playerid, "~b~Sedinte ~w~Orleans",5000,1); SetPlayerVirtualWorld(playerid, 13); PlayerHQ[playerid] = 6; return 1; } if (PlayerToPoint(2, playerid,2316.2310,-1144.1193,1054.3047)) { SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875); SetPlayerInterior(playerid, 10); GameTextForPlayer(playerid, "~b~Antrenamente ~w~Orleans",5000,1); ResetPlayerWeaponsEx(playerid); ServerWeapon(playerid, 24, 99999); ServerWeapon(playerid, 31, 99999); ServerWeapon(playerid, 5, 1); ServerWeapon(playerid, 1, 1); ServerWeapon(playerid, 25, 99999); Train[playerid] = 1; SetPlayerVirtualWorld(playerid, 13); ServerWeapon(playerid, 34, 99999); PlayerHQ[playerid] = 6; return 1; } } if(IsPlayerInRangeOfPoint(playerid, 3, 2037.0236,-1404.7897,17.2504)) { SetPlayerPos(playerid, 1222.0614,-1250.0448,1287.8257); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid,0); GameTextForPlayer(playerid, "~b~Fireman/Paramedic ~w~HQ ~b~Los Santos",5000,1); TogglePlayerControllable(playerid, 0); SetTimerEx("SetControllable", 3500, 0, "i", playerid); } if(IsPlayerInRangeOfPoint(playerid, 3, 1607.4680,1816.4386,10.8203))//Medics { SetPlayerPos(playerid, 1222.0614,-1250.0448,1287.8257); SetPlayerVirtualWorld(playerid, 3); SetPlayerInterior(playerid,0); GameTextForPlayer(playerid, "~b~Fireman/Paramedic ~w~HQ ~b~Las Venturas",5000,1); TogglePlayerControllable(playerid, 0); SetTimerEx("SetControllable", 3500, 0, "i", playerid); } if (PlayerToPoint(2, playerid, 2337.2202,2458.4097,14.9688))//LVPD { SetPlayerPos(playerid,288.7609,168.6815,1007.1719); SetPlayerInterior(playerid,3); SetPlayerVirtualWorld(playerid, 25); PlayerHQ[playerid] = 25; GameTextForPlayer(playerid, "~b~Las Venturas Police Departament", 1000, 1); return 1; } if(IsACop(playerid))// PD Armoury entrance { if (PlayerToPoint(2, playerid, 1568.6150,-1690.8213,5.8906)) { PlayerInfo[playerid][pLocal] = 102; SetPlayerPos(playerid, 246.375991,109.245994,1003.218750); SetPlayerInterior(playerid, 10); GameTextForPlayer(playerid, "~b~Depozit de Arme",5000,1); PlayerHQ[playerid] = 25; return 1; } if (PlayerToPoint(2, playerid, 3188.6760,-628.7715,5.2262)) { PlayerInfo[playerid][pLocal] = 102; SetPlayerPos(playerid, 246.375991,109.245994,1003.218750); SetPlayerInterior(playerid, 10); SetPlayerVirtualWorld(playerid, 85); GameTextForPlayer(playerid, "~b~Depozit de Arme",5000,1); PlayerHQ[playerid] = 25; return 1; } } if (PlayerToPoint(2, playerid, 1462.3665,-1010.9435,26.8438))//LS BANK { SetPlayerVirtualWorld(playerid, 41); SetPlayerPos(playerid,2306.5630,-15.6414,26.7496); SetPlayerInterior(playerid,0); GameTextForPlayer(playerid, "~w~Banca ~b~Los Santos", 1000, 1); return 1; } if (PlayerToPoint(2, playerid, 2577.5444,1324.8699,10.8203))//LS BANK { SetPlayerVirtualWorld(playerid, 42); //PlayerInfo[playerid][pVirWorld] = 41; SetPlayerPos(playerid,2306.5630,-15.6414,26.7496); SetPlayerInterior(playerid,0); GameTextForPlayer(playerid, "~w~Banca ~b~Las Venturas", 1000, 1); return 1; } if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) { if (PlayerToPoint(2, playerid, 1778.2577,-1663.2786,14.4362) && GetPlayerVirtualWorld(playerid) == 0)//F.B.I. { SetPlayerPos(playerid,288.7609,168.6815,1007.1719); SetPlayerInterior(playerid,3); PlayerHQ[playerid] = 25; GameTextForPlayer(playerid, "~b~F.B.I", 1000, 1); return 1; } } if (PlayerToPoint(3.0, playerid,1073.0619,-344.5148,73.9922)) { if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) { SetPlayerInterior(playerid,2); SetPlayerPos(playerid,1205.0947,-10.1685,1000.9219); PlayerInfo[playerid][pInt] = 2; PlayerInfo[playerid][pLocal] = 242; } } if (PlayerToPoint(3.0, playerid,1205.0947,-10.1685,1000.9219)) { if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,1073.0619,-344.5148,73.9922); PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pLocal] = 0; } } if (PlayerToPoint(3.0, playerid,2695.6235,-1704.6960,11.8438)) { GameTextForPlayer(playerid, "~w~Bine ai venit la pista 8ball", 5000, 1); SetPlayerInterior(playerid,7); SetPlayerPos(playerid,-1404.5299,-259.0602,1043.6563); } if (PlayerToPoint(8.0, playerid,-2111.5686,-443.9720,38.7344)) { GameTextForPlayer(playerid, "~w~Bine ai venit la pista de nisip", 5000, 1); SetPlayerInterior(playerid,4); SetPlayerPos(playerid,-1443.0554,-581.1879,1055.0472); } if (PlayerToPoint(8.0, playerid,-2080.3079,-406.0309,38.7344)) { GameTextForPlayer(playerid, "~w~Bine ai venit la pista de stunt", 5000, 1); SetPlayerInterior(playerid,14); SetPlayerPos(playerid,-1464.7732,1557.5533,1052.5313); } if(GetPlayerVehicleID(playerid) >= 71 && GetPlayerVehicleID(playerid) <= 77) { TogglePlayerControllable(playerid, 1); RemovePlayerFromVehicle(playerid); } if (PlayerToPoint(5, playerid, 246.375991,109.245994,1003.218750))//Armoury PD Exit { if(GetPlayerVirtualWorld(playerid) != 25) { PlayerInfo[playerid][pLocal] = 0; SetPlayerPos(playerid, 1568.6150,-1690.8213,5.8906); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); PlayerHQ[playerid] = 0; GameTextForPlayer(playerid, "~w~Los ~r~Santos", 1000, 1); } else { PlayerInfo[playerid][pLocal] = 0; SetPlayerPos(playerid, 1554.9100,-1675.6428,16.1953); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); PlayerHQ[playerid] = 0; GameTextForPlayer(playerid, "~w~Los ~r~Santos", 1000, 1); } } if (PlayerToPoint(5, playerid, 318.564971,1118.209960,1083.882812) && GetPlayerVirtualWorld(playerid) == 54) // Hitman Exit { SetPlayerPos(playerid,1106.5240,-299.7180,74.5391); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0); } if (PlayerToPoint(2, playerid,-975.975708,1060.983032,1345.671875) && GetPlayerVirtualWorld(playerid) == 5) { SetPlayerPos(playerid, 135.0181,1381.5354,1083.8657); SetPlayerInterior(playerid, 5); GameTextForPlayer(playerid, "~g~HQ ~w~Dallas",5000,1); SetPlayerVirtualWorld(playerid, 0); Train[playerid] = 0; ResetPlayerWeaponsEx(playerid); } if (PlayerToPoint(2, playerid,-975.975708,1060.983032,1345.671875) && GetPlayerVirtualWorld(playerid) == 13) { SetPlayerPos(playerid, 2316.2310,-1144.1193,1054.3047); SetPlayerInterior(playerid, 12); GameTextForPlayer(playerid, "~g~HQ ~y~Orleans",5000,1); SetPlayerVirtualWorld(playerid, 0); Train[playerid] = 0; ResetPlayerWeaponsEx(playerid); } if (PlayerToPoint(2, playerid,-975.975708,1060.983032,1345.671875) && GetPlayerVirtualWorld(playerid) == 14) { SetPlayerPos(playerid, -2170.3445,636.0457,1052.3750); SetPlayerInterior(playerid, 1); GameTextForPlayer(playerid, "~w~Los ~g~Santos",5000,1); SetPlayerVirtualWorld(playerid, 0); Train[playerid] = 0; ResetPlayerWeaponsEx(playerid); } if (PlayerToPoint(2, playerid,-975.975708,1060.983032,1345.671875) && GetPlayerVirtualWorld(playerid) == 15) { SetPlayerPos(playerid, 2196.2881,1666.9287,12.3672); SetPlayerInterior(playerid, 0); GameTextForPlayer(playerid, "~w~Las ~b~~h~Venturas",5000,1); SetPlayerVirtualWorld(playerid, 0); Train[playerid] = 0; ResetPlayerWeaponsEx(playerid); } if (PlayerToPoint(3.0, playerid,1472.6022,-1726.4803,1052.0490) && GetPlayerVirtualWorld(playerid) == 0) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,1481.0463,-1770.3093,18.7958); PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pLocal] = 255; } if (PlayerToPoint(3.0, playerid,1472.6022,-1726.4803,1052.0490) && GetPlayerVirtualWorld(playerid) == 2) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,2413.1052,1123.7834,10.8203); PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pLocal] = 255; SetPlayerVirtualWorld(playerid, 0); } if(IsPlayerInRangeOfPoint(playerid, 3, 1222.0614,-1250.0448,1287.8257) && GetPlayerVirtualWorld(playerid) == 0) { SetPlayerPos(playerid, 2037.0236,-1404.7897,17.2504); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid,0); GameTextForPlayer(playerid, "~w~Los~r~Santos",5000,1); } if(IsPlayerInRangeOfPoint(playerid, 3, 1222.0614,-1250.0448,1287.8257) && GetPlayerVirtualWorld(playerid) == 3) { SetPlayerPos(playerid, 1607.4680,1816.4386,10.8203); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid,0); GameTextForPlayer(playerid, "~w~Las~r~Venturas",5000,1); } if (PlayerToPoint(8, playerid, 1267.663208,-781.323242,1091.906250) && GetPlayerVirtualWorld(playerid) == 0) // Ballas Exit { SetPlayerPos(playerid, 1456.5680,2773.4163,10.8203); SetPlayerInterior(playerid, 0); GameTextForPlayer(playerid, "~w~Las ~r~Venturas",5000,1); //return 1; } if (PlayerToPoint(5, playerid, 1494.325195,1304.942871,1093.289062)) // TAXI LV Exit { if(GetPlayerVirtualWorld(playerid) == 71) // School Instructorss Exit { SetPlayerPos(playerid, 1111.3130,-1795.6102,16.5938); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); GameTextForPlayer(playerid, "~w~Los ~r~Santos",5000,1); } else if(GetPlayerVirtualWorld(playerid) == 3) // News Reporter Exit { SetPlayerPos(playerid, 1219.2949,-1812.7257,16.5938); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); GameTextForPlayer(playerid, "~w~Los ~r~Santos",5000,1); } else if(GetPlayerVirtualWorld(playerid) == 0) // News Reporter Exit { SetPlayerPos(playerid, 1047.1732,1008.9983,11.0000); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); GameTextForPlayer(playerid, "~w~Las ~r~Venturas",5000,1); } //return 1; } if(GetPlayerVirtualWorld(playerid) == 70 && PlayerToPoint(3.0, playerid, -228.9727,1401.2550,27.7656)) // Taxi Cab Company LV Exit { SetPlayerPos(playerid, 1752.9025,-1894.3319,13.5573); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); GameTextForPlayer(playerid, "~w~Los ~r~Santos",5000,1); } if(GetPlayerVirtualWorld(playerid) == 73 && PlayerToPoint(3.0, playerid, -228.9727,1401.2550,27.7656)) // Taxi Cab Company LV Exit { SetPlayerPos(playerid, 2444.2393,1662.8051,10.8203); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); GameTextForPlayer(playerid, "~w~Las ~r~Venturas",5000,1); } if (PlayerToPoint(5, playerid, 2542.2341,-1303.9574,1025.0703) && GetPlayerVirtualWorld(playerid) != 77 && GetPlayerVirtualWorld(playerid) != 81) // Dallas Crime Exit { SetPlayerPos(playerid,1531.4147,751.1722,11.0234); SetPlayerInterior(playerid, 0); GameTextForPlayer(playerid, "~r~Los ~g~Santos",5000,1); } if (PlayerToPoint(2, playerid,-2029.7631,-118.7373,1035.1719) && GetPlayerVirtualWorld(playerid) == 6) { SetPlayerPos(playerid, 2523.9292,-1309.8328,1031.4219); SetPlayerInterior(playerid, 2); GameTextForPlayer(playerid, "~w~Falcone ~g~HQ",5000,1); SetPlayerVirtualWorld(playerid, 0); PlayerHQ[playerid] = 6; } if (PlayerToPoint(2, playerid,-2029.7631,-118.7373,1035.1719) && GetPlayerVirtualWorld(playerid) == 5) { SetPlayerPos(playerid, 135.2439,1380.0226,1088.3672); SetPlayerInterior(playerid, 5); GameTextForPlayer(playerid, "~w~Dallas ~g~HQ",5000,1); SetPlayerVirtualWorld(playerid, 0); PlayerHQ[playerid] = 6; } if (PlayerToPoint(2, playerid,-2029.7631,-118.7373,1035.1719) && GetPlayerVirtualWorld(playerid) == 13) { SetPlayerPos(playerid, 2332.5752,-1143.9515,1054.3047); SetPlayerInterior(playerid, 12); GameTextForPlayer(playerid, "~y~Orleans ~g~HQ",5000,1); SetPlayerVirtualWorld(playerid, 0); PlayerHQ[playerid] = 6; //return 1; } if (PlayerToPoint(5, playerid, 2324.6780,-1148.6440,1050.7101) && GetPlayerVirtualWorld(playerid) != 68) // Orleans Exit { SetPlayerPos(playerid, 690.3832,-1275.9108,13.5599); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); GameTextForPlayer(playerid, "~r~Los ~g~Santos",5000,1); //return 1; } if (PlayerToPoint(5, playerid, 2542.2341,-1303.9574,1025.0703) && GetPlayerVirtualWorld(playerid) != 71 && GetPlayerVirtualWorld(playerid) != 57) // Falcone Famiglia Exit { SetPlayerPos(playerid,1531.4147,751.1722,11.0234); SetPlayerInterior(playerid, 0); GameTextForPlayer(playerid, "~r~Las ~g~Venturas",5000,1); //return 1; } if (PlayerToPoint(5, playerid, 140.3267,1366.7233,1083.8594) && GetPlayerVirtualWorld(playerid) != 71 && GetPlayerVirtualWorld(playerid) != 57) // Dallas Exit { SetPlayerPos(playerid,1122.7065,-2037.0063,69.8942); SetPlayerInterior(playerid, 0); GameTextForPlayer(playerid, "~r~Los ~g~Santos",5000,1); //return 1; } if (PlayerToPoint(5, playerid, -2159.122802,641.517517,1052.381713) && GetPlayerVirtualWorld(playerid) != 19) // 15 Avenue Families Exit { SetPlayerPos(playerid, 2495.3704,-1689.8271,14.6741); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); //PlayerInfo[playerid][pVirWorld] = 0; GameTextForPlayer(playerid, "~w~Los ~g~Santos",5000,1); //return 1; } if (PlayerToPoint(5, playerid, 2306.5630,-15.6414,26.7496) && GetPlayerVirtualWorld(playerid) == 41)//LS BANK { SetPlayerPos(playerid, 1462.3665,-1010.9435,26.8438); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); //PlayerInfo[playerid][pVirWorld] = 0; GameTextForPlayer(playerid, "~w~Los Santos", 1000, 1); //return 1; } if (PlayerToPoint(5, playerid, 2306.5630,-15.6414,26.7496) && GetPlayerVirtualWorld(playerid) == 42)//LS BANK { SetPlayerPos(playerid, 2577.5444,1324.8699,10.8203); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); //PlayerInfo[playerid][pVirWorld] = 0; GameTextForPlayer(playerid, "~w~Los Santos", 1000, 1); //return 1; } if (PlayerToPoint(6.0, playerid,-1404.5299,-259.0602,1043.6563)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,2695.6235,-1704.6960,11.8438); } if (PlayerToPoint(8.0, playerid,-1443.0554,-581.1879,1055.0472)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,-2111.5686,-443.9720,38.7344); } if (PlayerToPoint(5, playerid, 288.7609,168.6815,1007.1719) && GetPlayerVirtualWorld(playerid) == 0)//F.B.I. { SetPlayerPos(playerid, 1778.2577,-1663.2786,14.4362); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); PlayerHQ[playerid] = 0; //PlayerInfo[playerid][pVirWorld] = 0; GameTextForPlayer(playerid, "~w~Los ~r~Santos", 1000, 1); //return 1; } if (PlayerToPoint(5, playerid, 288.7609,168.6815,1007.1719) && GetPlayerVirtualWorld(playerid) == 25)//LVPD { SetPlayerPos(playerid, 2337.2202,2458.4097,14.9688); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); PlayerHQ[playerid] = 0; //PlayerInfo[playerid][pVirWorld] = 0; GameTextForPlayer(playerid, "~w~Las ~r~Venturas", 1000, 1); //return 1; } if (PlayerToPoint(8.0, playerid,-1464.7732,1557.5533,1052.5313)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,-2080.3079,-406.0309,38.7344); } if(NoFuel[playerid] == 1) { TogglePlayerControllable(playerid, 1); RemovePlayerFromVehicle(playerid); NoFuel[playerid] = 0; } if(PlayerToPoint(5, playerid, 2387.9207,2465.9854,10.8203)) { SetPlayerPos(playerid, 288.745971,169.350997,1007.171875); SetPlayerInterior(playerid, 3); SetPlayerVirtualWorld(playerid, 4); GameTextForPlayer(playerid, "~w~F.B.I. ~r~HQ", 1000, 1); } if(IsPlayerInRangeOfPoint(playerid, 3, 2166.2742,-1671.5643,15.0739)) // CRACK HOUSE { SetPlayerPos(playerid, 318.564971,1118.209960,1083.882812); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid,5); GameTextForPlayer(playerid, "~g~Casa~w~de Droguri",5000,1); } if(PlayerToPoint(5, playerid, 288.745971,169.350997,1007.171875) && GetPlayerVirtualWorld(playerid) == 4) { SetPlayerPos(playerid, 2387.9207,2465.9854,10.8203); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); GameTextForPlayer(playerid, "~w~Las ~r~Venturas", 1000, 1); PlayerInfo[playerid][pLocal] = 0; } if(PlayerToPoint(5, playerid, 288.745971,169.350997,1007.171875) && GetPlayerVirtualWorld(playerid) != 4) // F.B.I. EXIT { SetPlayerPos(playerid, 1778.2577,-1663.2786,14.4362); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); GameTextForPlayer(playerid, "~w~Los ~r~Santos", 1000, 1); PlayerInfo[playerid][pLocal] = 0; } new vehicleid = GetPlayerVehicleID(playerid); if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { TogglePlayerControllable(playerid, 1); RemovePlayerFromVehicle(playerid); if(vehicleid >= Curier[0] && vehicleid <= Curier[14]) { SetVehicleToRespawn(vehicleid); DisablePlayerCheckpoint(playerid); CP[playerid] = 0; } if(vehicleid >= Gunoier[0] && vehicleid <= Gunoier[20]) { SetVehicleToRespawn(vehicleid); DisablePlayerCheckpoint(playerid); CP[playerid] = 0; } if(vehicleid >= Fermier[0] && vehicleid <= Fermier[11]) { SetVehicleToRespawn(vehicleid); DisablePlayerCheckpoint(playerid); CP[playerid] = 0; } if(vehicleid >= Spalator[0] && vehicleid <= Spalator[14]) { SetVehicleToRespawn(vehicleid); DisablePlayerCheckpoint(playerid); CP[playerid] = 0; } if(vehicleid >= Cariera[0] && vehicleid <= Cariera[5]) { SetVehicleToRespawn(vehicleid); DisablePlayerCheckpoint(playerid); CP[playerid] = 0; } new tir = GetPlayerVehicleID(playerid); if(tir >= Tirr[0] && tir <= Tirr[16]) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehicleToRespawn(vehicleid); DisablePlayerCheckpoint(playerid); CP[playerid] = 0; DestroyVehicle(Trailer[playerid]); JobStep[playerid] = 0; } } } for(new i = 0; i < sizeof(BizzInfo); i++) { //printf("Bizz :%d",i); if (PlayerToPoint(3, playerid,BizzInfo[GetPlayerVirtualWorld(playerid)][bExitX], BizzInfo[GetPlayerVirtualWorld(playerid)][bExitY], BizzInfo[GetPlayerVirtualWorld(playerid)][bExitZ])) { SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; SetPlayerPos(playerid,BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceX],BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceY],BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceZ]); PlayerInfo[playerid][pLocal] = 255; SetPlayerVirtualWorld(playerid, 0); } } } } if(newkeys == KEY_SUBMISSION && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 520) return 1; new sendername[MAX_PLAYER_NAME]; //if(IsAnOwnableMoto(GetPlayerVehicleID(playerid)) && CarInfo[GetPlayerVehicleID(playerid)][cOwned] == 0 || IsAnOwnableCar(GetPlayerVehicleID(playerid)) && CarInfo[GetPlayerVehicleID(playerid)][cOwned] == 0) //return SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Engine: {FFFFFF}Nu ai cheile acestei masini..."); if(IsPlayerConnected(playerid)) { if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) { return 1; } if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 510 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 481 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 509) { return 1; } new Float:vehhealth; new vid = GetPlayerVehicleID(playerid); GetVehicleHealth(GetPlayerVehicleID(playerid), vehhealth); GetPlayerName(playerid, sendername, sizeof(sendername)); if(EngineSTATE[vid] == 0) { if(undercover[playerid] == 0) { GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective); EngineSTATE[vid] = 1; format(string, sizeof(string), "* %s baga cheile in contact si porneste motorul.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(undercover[playerid] == 1) { GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective); EngineSTATE[vid] = 1; format(string, sizeof(string), "* Un [Necunoscut] baga cheile in contact si porneste motorul."); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } } else { if(undercover[playerid] == 0) { GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective); EngineSTATE[vid] = 0; format(string, sizeof(string), "* %s opreste motorul.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(undercover[playerid] == 1) { GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective); EngineSTATE[vid] = 0; format(string, sizeof(string), "* Un [Necunoscut] opreste motorul."); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } } } } return 1; }Sincer nuImagini / Video (optional):
Ati incercat sa rezolvati singur?:
1 answer to this question
Recommended Posts