13.11.2013, 18:51
Just got 4 errors left.
C:\Users\'Maikel\Desktop\JammingRoleplay\pawno\JRP .pwn(25871) : warning 202: number of arguments does not match definition
C:\Users\'Maikel\Desktop\JammingRoleplay\pawno\JRP .pwn(27332) : error 017: undefined symbol "string"
C:\Users\'Maikel\Desktop\JammingRoleplay\pawno\JRP .pwn(27332) : error 017: undefined symbol "string"
C:\Users\'Maikel\Desktop\JammingRoleplay\pawno\JRP .pwn(27332) : error 029: invalid expression, assumed zero
C:\Users\'Maikel\Desktop\JammingRoleplay\pawno\JRP .pwn(27332) : fatal error 107: too many error messages on one line
C:\Users\'Maikel\Desktop\JammingRoleplay\pawno\JRP .pwn(25871) : warning 202: number of arguments does not match definition
C:\Users\'Maikel\Desktop\JammingRoleplay\pawno\JRP .pwn(27332) : error 017: undefined symbol "string"
C:\Users\'Maikel\Desktop\JammingRoleplay\pawno\JRP .pwn(27332) : error 017: undefined symbol "string"
C:\Users\'Maikel\Desktop\JammingRoleplay\pawno\JRP .pwn(27332) : error 029: invalid expression, assumed zero
C:\Users\'Maikel\Desktop\JammingRoleplay\pawno\JRP .pwn(27332) : fatal error 107: too many error messages on one line
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if (newkeys & KEY_FIRE && GetPVarInt(playerid, "DriveThruID") != 0) { new id = GetPVarInt(playerid, "DriveThruID"), szString[192], Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); GetPVarString(playerid, "DriveThruName", szString, 192); DriveThruInfo[id][driveThruModel] = 2353; DriveThruInfo[id][driveThruBiz] = GetPVarInt(playerid, "DriveThruBiz"); DriveThruInfo[id][driveThruX] = GetPVarFloat(playerid, "DriveThruX"); DriveThruInfo[id][driveThruY] = GetPVarFloat(playerid, "DriveThruY"); DriveThruInfo[id][driveThruZ] = GetPVarFloat(playerid, "DriveThruZ"); DriveThruInfo[id][driveThruOrderX] = x; DriveThruInfo[id][driveThruOrderY] = y; DriveThruInfo[id][driveThruOrderZ] = z; format(DriveThruInfo[id][driveThruName], 128, szString); DriveThruInfo[id][driveThruPickup1] = CreateDynamicPickup(2353, 23, DriveThruInfo[id][driveThruX], DriveThruInfo[id][driveThruY], DriveThruInfo[id][driveThruZ]); DriveThruInfo[id][driveThruPickup2] = CreateDynamicPickup(2353, 23, DriveThruInfo[id][driveThruOrderX], DriveThruInfo[id][driveThruOrderY], DriveThruInfo[id][driveThruOrderZ]); format(szString, sizeof(szString), "{01FCFF}[%s]{F0CC00}\nYou can order food here!\nDrive Thru ID: %d\n[/order]", DriveThruInfo[id][driveThruName], id); DriveThruInfo[id][driveThruLabel1] = CreateDynamic3DTextLabel(szString, COLOR_DCHAT, DriveThruInfo[id][driveThruX], DriveThruInfo[id][driveThruY], DriveThruInfo[id][driveThruZ] + 0.75, 10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 0, -1, -1, 100.0); DriveThruInfo[id][driveThruLabel2] = CreateDynamic3DTextLabel("Drive into this checkpoint to get your food!", COLOR_DCHAT, DriveThruInfo[id][driveThruOrderX], DriveThruInfo[id][driveThruOrderY], DriveThruInfo[id][driveThruOrderZ] + 0.75, 10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 0, -1, -1, 100.0); DriveThruInfo[id][driveThruTaken] = 1; format(szString, sizeof(szString), "You have created a Drive Thru: %s (ID: %d).", DriveThruInfo[id][driveThruName], id); SendClientMessage(playerid, 0x33AA33FF, szString); DeletePVar(playerid, "DriveThruID"); SaveDriveThrus(); return 1; } if( ( newkeys & KEY_SPRINT) && !( oldkeys & KEY_SPRINT ) ) { if( GetPlayerState( playerid ) == PLAYER_STATE_ONFOOT ) { new Float:shax, Float:shay, Float:shaz; new Float:shbx, Float:shby, Float:shbz; new Float:shcx, Float:shcy, Float:shcz; GetVehiclePos(EnterableShamals[0], shax, shay, shaz); GetVehiclePos(EnterableShamals[1], shbx, shby, shbz); GetVehiclePos(EnterableShamals[2], shcx, shcy, shcz); for(new i = 0; i < sizeof(HouseInfo); i++) { if(IsPlayerInRangeOfPoint(playerid, 3, HouseInfo[i][hExteriorX], HouseInfo[i][hExteriorY], HouseInfo[i][hExteriorZ])) { if(GetPlayerVirtualWorld( playerid) == 0) { if(HouseInfo[i][hLocked] == 0 || PlayerInfo[playerid][pScrew] >= 1) { if(PlayerInfo[playerid][pMask] == 1) { format(string, sizeof(string), "> Stranger has entered the house."); } else { format(string, sizeof(string), "> %s has entered the house.", RemoveUnderScore(playerid)); } ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); PlayerInfo[playerid][InHouse] = i; SetPlayerInterior( playerid, HouseInfo[i][hInteriorID]); SetPlayerVirtualWorld( playerid, HouseInfo[i][hVirWorld]); PlayerInfo[playerid][pVirtualWorld] = HouseInfo[i][hVirWorld]; SetPlayerPos( playerid, HouseInfo[i][hInteriorX], HouseInfo[i][hInteriorY], HouseInfo[i][hInteriorZ]); if(HouseInfo[i][hRadio] > 0 && HouseInfo[i][hRadio] <= RADIOS) { new cRadio = HouseInfo[i][hRadio]; switch(cRadio) { case 1: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1281016"); } case 2: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1979774"); } case 3: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283687"); } } } for(new x = 0; x <MAX_PLAYERS; x++) { new id = PlayerInfo[x][pPhousekey]; if(HouseInfo[id][hAlarmSystem] == 1 && HouseInfo[id][hAlarmNumber] != 0 && AlarmOnline[id] == 0) { for(new a = 0; a <MAX_PLAYERS; a++) { if(IsPlayerConnected(a)) { if(PlayerInfo[playerid][pScrew] >= 1 && HouseInfo[i][hLocked] == 1) { if(PlayerInfo[a][pPnumber] == HouseInfo[id][hAlarmNumber]) { new success = random(4); if(success == 1) { format(string, sizeof(string), "House Alarm: Someone has tryed to enter inside the house but failed!"); SendCopMessage(COLOR_DBLUE,string); PlayerInfo[playerid][pScrew] -= 1; SendClientMessage(playerid, COLOR_GREY, "You failed to enter inside the house, run!"); format(string, sizeof(string), "SMS: This is an automated message informing you that registrant %s's house alarm has been activated.",GetName(x)); SendClientMessage(a, COLOR_YELLOW, string); if(IsACop(a)) { SetPlayerCheckpoint(playerid, HouseInfo[i][hExteriorX], HouseInfo[i][hExteriorY], HouseInfo[i][hExteriorZ], 3.0); CP[a] = 46488; } if(PlayerInfo[playerid][pWantedLevel] <= 6) { PlayerInfo[playerid][pWantedLevel] += 1; SetPlayerWantedLevel(playerid, PlayerInfo[playerid][pWantedLevel]); } PlayerInfo[playerid][pVirtualWorld] = 0; SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, HouseInfo[i][hExteriorID]); SetPlayerPos(playerid, HouseInfo[i][hExteriorX], HouseInfo[i][hExteriorY], HouseInfo[i][hExteriorZ]); } else { format(string, sizeof(string), "House Alarm: Someone has successfully entered inside the house!"); SendCopMessage(COLOR_DBLUE,string); PlayerInfo[playerid][pScrew] -= 1; if(IsACop(a)) { SetPlayerCheckpoint(playerid, HouseInfo[i][hExteriorX], HouseInfo[i][hExteriorY], HouseInfo[i][hExteriorZ], 3.0); CP[a] = 46488; } if(PlayerInfo[playerid][pWantedLevel] <= 6) { PlayerInfo[playerid][pWantedLevel] += 1; SetPlayerWantedLevel(playerid, PlayerInfo[playerid][pWantedLevel]); } SendClientMessage(playerid, COLOR_GREY, "You successfully enter inside the house!"); format(string, sizeof(string), "SMS: This is an automated message informing you that registrant %s's house alarm has been activated.",GetName(x)); SendClientMessage(a, COLOR_YELLOW, string); } } } } } } } } else { GameTextForPlayer(playerid, "~r~House is Locked!", 1000, 5); } } } } for(new h = 0; h < sizeof(EntranceInfo); h++) { if(IsPlayerInRangeOfPoint(playerid,EntranceInfo[h][EntranceEnterRadius],EntranceInfo[h][EntranceEnterX],EntranceInfo[h][EntranceEnterY],EntranceInfo[h][EntranceEnterZ]) && GetPlayerVirtualWorld(playerid) == EntranceInfo[h][EntranceExitVW]) { new i = h; new bool:wait = false; /* Added because people kept /entering as soon as an admin creates an entrance */ if (EntranceInfo[h][EntranceInsideX] == 0) return SendClientMessage(playerid, GREY, "Entrance is not set up yet."); if (EntranceInfo[h][EntranceLocked]) return SendClientMessage(playerid, GREY, "This entrance is locked."); if (EntranceInfo[h][EntranceFaction] != 0 && PlayerInfo[playerid][pMember] != EntranceInfo[h][EntranceFaction]) return SendClientMessage(playerid, GREY, "This entrance is restricted to a certain faction, you can't enter."); if (EntranceInfo[h][EntranceVIP] != 0 && PlayerInfo[playerid][pDonateRank] < EntranceInfo[h][EntranceVIP]) return SendClientMessage(playerid, GREY, "This entrance is restricted to VIP's higher than your level, you can't enter."); if (EntranceInfo[h][EntranceEnterWait]) { wait = true; } //SetPlayerVirtualWorld(playerid, h); //SetPlayerVirtualWorld(playerid, EntranceInfo[h][EntranceVirtualWorld]); //SetPlayerInterior(playerid, EntranceInfo[h][EntranceInterior]); //Enter[playerid] = h; new vehicleid; new Seat[MAX_PLAYERS], InCar[MAX_PLAYERS]; if (EntranceInfo[h][EntranceTeleVeh] == 1 && IsPlayerInAnyVehicle(playerid)) { if (GetPlayerVehicleSeat(playerid) != 0) return 1; vehicleid = GetPlayerVehicleID(playerid); SetVehiclePos(vehicleid, EntranceInfo[i][EntranceInsideX],EntranceInfo[i][EntranceInsideY], EntranceInfo[i][EntranceInsideZ] + 0.4); SetVehicleZAngle(vehicleid, EntranceInfo[i][EntranceInsideA]); SetVehicleWorld(vehicleid, EntranceInfo[i][EntranceVirtualWorld]); SetVehicleInterior(vehicleid, EntranceInfo[i][EntranceInterior]); for(new j = 0; j < MAX_PLAYERS; j++) { if(IsPlayerInVehicle(j, vehicleid)) { InCar[j] = vehicleid; Seat[j] = GetPlayerVehicleSeat(j); SetPlayerInterior(j, EntranceInfo[i][EntranceInterior]); SetPlayerVirtualWorld(j, EntranceInfo[i][EntranceVirtualWorld]); } } } SetPlayerPosEx(playerid, EntranceInfo[i][EntranceInsideX],EntranceInfo[i][EntranceInsideY], EntranceInfo[i][EntranceInsideZ]); SetPlayerFacingAngle(playerid, EntranceInfo[i][EntranceInsideA]); SetPlayerInterior(playerid, EntranceInfo[i][EntranceInterior]); SetPlayerVirtualWorld(playerid, EntranceInfo[i][EntranceVirtualWorld]); if (vehicleid != 0) { for (new j = 0; j < MAX_PLAYERS; j++) { if (InCar[j] == 0) continue; if (InCar[j] == vehicleid) { PutPlayerInVehicle(j, vehicleid, Seat[j]); } } } KillTimer(ObjectWaitTimer[playerid]); if (wait == true) ObjectWait(playerid, EntranceInfo[h][EntranceInsideX], EntranceInfo[h][EntranceInsideY], EntranceInfo[h][EntranceInsideZ]); } } for(new i = 0; i < sizeof(MInfo); i++) { if(IsPlayerInRangeOfPoint(playerid, 3, MInfo[i][mExteriorX], MInfo[i][mExteriorY], MInfo[i][mExteriorZ])) { if(GetPlayerInterior(playerid) == MInfo[i][mExteriorID] && GetPlayerVirtualWorld(playerid) == 0) { if(MInfo[i][mVIP] != 1 || PlayerInfo[playerid][pDonateRank] != 0) { if(MInfo[i][mLocked] == 0) { PlayerInfo[playerid][Inmotel] = i; SetPlayerInterior( playerid, MInfo[i][mInteriorID]); SetPlayerVirtualWorld( playerid, MInfo[i][mVirWorld]); PlayerInfo[playerid][pVirtualWorld] = MInfo[i][mVirWorld]; Pause(playerid); SetPlayerPos(playerid, MInfo[i][mInteriorX], MInfo[i][mInteriorY], MInfo[i][mInteriorZ]); } else { GameTextForPlayer(playerid, "~r~Motel Full - No Rooms Avaliable!", 1000, 5); } } else { SendClientMessage(playerid, COLOR_GREY, " You are not a VIP!"); } } } } for(new i = 0; i < sizeof( BizzInfo ); i++) { if(IsPlayerInRangeOfPoint( playerid, 3, BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ])) { if(GetPlayerVirtualWorld( playerid ) == 0) { if(BizzInfo[i][bLocked] == 0) { if(PlayerInfo[playerid][pCash] >= BizzInfo[i][bEntranceCost]) { if(PlayerInfo[playerid][pMask] == 1) { format(string, sizeof(string), "> Stranger has entered the business."); } else { format(string, sizeof(string), "> %s has entered the business.", RemoveUnderScore(playerid)); } TogglePlayerControllable(playerid, false); Loaded[playerid] = 1; ShowLoading(playerid); SetTimer("LoadPlayer",3100,false); SetPlayerInterior( playerid, BizzInfo[i][bInteriorID]); SetPlayerPos( playerid, BizzInfo[i][bExitX], BizzInfo[i][bExitY], BizzInfo[i][bExitZ]); PlayerInfo[playerid][InBusiness] = i; SetPlayerVirtualWorld( playerid, BizzInfo[i][bVirWorld]); PlayerInfo[playerid][pVirtualWorld] = BizzInfo[i][bVirWorld]; if(BizzInfo[i][bRadio] != 0 && BizzInfo[i][bRadio] != RADIOS+1) { new cRadio = BizzInfo[i][bRadio]; switch(cRadio) { case 1: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283687"); } case 2: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1979774"); } case 3: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1281016"); } } } if(BizzInfo[i][bType] == 1) { SendClientMessage( playerid, COLOR_YELLOW, "You have entered a 24 / 7"); SendClientMessage( playerid, COLOR_WHITE, "USAGE: /buy - /buykit" ); } else if(BizzInfo[i][bType] == 2) { SendClientMessage( playerid, COLOR_YELLOW, "You entered in a Clothes Store!"); SendClientMessage( playerid, COLOR_WHITE, "USAGE: /buy - /acessories" ); } else if(BizzInfo[i][bType] == 3) { SendClientMessage( playerid, COLOR_YELLOW, "You entered in a Club!"); SendClientMessage( playerid, COLOR_WHITE, "USAGE: /buy" ); } else if(BizzInfo[i][bType] == 4) { SendClientMessage( playerid, COLOR_YELLOW, "You entered in an Ammunation!"); SendClientMessage( playerid, COLOR_WHITE, "USAGE: /buy" ); } else if(BizzInfo[i][bType] == 5) { SendClientMessage( playerid, COLOR_YELLOW, "You entered in a Casino!"); SendClientMessage( playerid, COLOR_WHITE, "USAGE: /bet & /buy"); } else if(BizzInfo[i][bType] == 6) { SendClientMessage( playerid, COLOR_YELLOW, "You entered in a Restaurant!"); SendClientMessage( playerid, COLOR_WHITE, "USAGE: /buy" ); } else if(BizzInfo[i][bType] == 7) { GetPlayerArmour(playerid, pKevlar[playerid]); GetPlayerHealth(playerid, pHP[playerid]); SendClientMessage(playerid, COLOR_YELLOW, "You entered in a Paintball Weapon Shop!"); PlayerPaintballing[playerid] = 1; PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0); SendClientMessage(playerid, COLOR_LIGHTRED, "You can now buy your weapons!"); SendClientMessage(playerid, COLOR_WHITE, "USAGE: /buy"); } else if(BizzInfo[i][bType] == 8) { SendClientMessage(playerid, COLOR_YELLOW, "You entered in a Bank!"); SendClientMessage(playerid, COLOR_WHITE, "USAGE: /bankpercent, /wiretransfer, /deposit , /withdraw & /atmcard" ); } else if(BizzInfo[i][bType] == 9) { SendClientMessage(playerid, COLOR_YELLOW, "You entered in an Electronic Store!"); SendClientMessage(playerid, COLOR_WHITE, "USAGE: /buy" ); } else if(BizzInfo[i][bType] == 10) { SendClientMessage(playerid, COLOR_YELLOW, "You entered in a Locks Store!"); SendClientMessage(playerid, COLOR_WHITE, "USAGE: /buylock" ); } else if(BizzInfo[i][bType] == 11) { SendClientMessage(playerid, COLOR_YELLOW, "You entered in a Radio shop!"); SendClientMessage(playerid, COLOR_WHITE, "USAGE: /buy"); } ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); BizzInfo[i][bTill] += BizzInfo[i][bEntranceCost]; GivePlayerMoney(playerid, -BizzInfo[i][bEntranceCost]); PlayerInfo[playerid][pCash] -= BizzInfo[i][bEntranceCost]; ExtortionBiz(i, BizzInfo[i][bEntranceCost]); } else { SendClientMessage(playerid, COLOR_GREY, " You don't have enough money to enter!"); } } else { GameTextForPlayer(playerid, "~r~Business is Locked!", 1000, 5); } } } } for(new i = 0; i < sizeof(BInfo); i++) { if(IsPlayerInRangeOfPoint(playerid, 3, BInfo[i][bExteriorX], BInfo[i][bExteriorY], BInfo[i][bExteriorZ])) { if(GetPlayerInterior(playerid) == BInfo[i][bExteriorID] && GetPlayerVirtualWorld(playerid) == 0) { if(BInfo[i][bVIP] != 1 || PlayerInfo[playerid][pDonateRank] != 0) { if(BInfo[i][bLocked] == 0) { PlayerInfo[playerid][Inbuilding] = i; SetPlayerInterior( playerid, BInfo[i][bInteriorID]); SetPlayerVirtualWorld( playerid, BInfo[i][bVirWorld]); PlayerInfo[playerid][pVirtualWorld] = BInfo[i][bVirWorld]; Pause(playerid); SetPlayerPos(playerid, BInfo[i][bInteriorX], BInfo[i][bInteriorY], BInfo[i][bInteriorZ]); if(BInfo[i][buRadio] >= 1 && strlen(BInfo[i][buRadioURL])) { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, BInfo[i][buRadioURL]); } } else { GameTextForPlayer(playerid, "~r~Building is Locked!", 1000, 5); } } else { SendClientMessage(playerid, COLOR_GREY, " You are not a VIP!"); } } } } for(new h = 0; h < sizeof(HQInfo); h++) { if(IsPlayerInRangeOfPoint(playerid,2.0,HQInfo[h][HQEnterX],HQInfo[h][HQEnterY],HQInfo[h][HQEnterZ])) { if(HQInfo[h][HQInsideX] == 0) return SendClientMessage(playerid, GREY, "HQ is not set up yet."); if(HQInfo[h][HQLocked]) return SendClientMessage(playerid, GREY, "HQ is locked."); SetPlayerVirtualWorld(playerid, h + 2000); SetPlayerPosEx(playerid, HQInfo[h][HQInsideX],HQInfo[h][HQInsideY],HQInfo[h][HQInsideZ]); SetPlayerInterior(playerid, HQInfo[h][HQInterior]); SetCameraBehindPlayer(playerid); } } if(IsPlayerInRangeOfPoint(playerid, 3, 9999.0685,-9999.6198,13.5382)) //Paintball Entrance { 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); }//-----------------------------[Prison Entrances]------------------------// else if(IsPlayerInRangeOfPoint(playerid,2.0,1771.6210,-1547.4747,9.9129)) // Yard to Inside [Fun Time] { GameTextForPlayer(playerid,"~w~Objects Loading...",1000,5); Pause(playerid); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid,1852.0464,-1732.5062,5202.5859); } else if(IsPlayerInRangeOfPoint(playerid,2.0,1769.3439,-1549.8958,9.9112)) // Yard to Inside [Prisoining] { GameTextForPlayer(playerid,"~w~Objects Loading...",1000,5); Pause(playerid); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid,1864.7402,-1725.0553,5202.5859); } else if(IsPlayerInRangeOfPoint(playerid,2.0,1797.4753,-1579.0033,14.0861)) // Outside Prison to Inside { GameTextForPlayer(playerid,"~w~Objects Loading..",1000,5); Pause(playerid); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 1862.0128,-1700.4945,5202.5859); } //-----------------------------[Prison Entrances]------------------------// else if(IsPlayerInRangeOfPoint(playerid,3.0,2755.3499,-2515.5325,13.6397)) // Gun Depot Enter Point { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerPos(playerid,2776.5386,-1492.2943,1066.2562); GameTextForPlayer(playerid, "~w~Gun Depot", 5000, 1); } else if(IsPlayerInRangeOfPoint(playerid,8.0,1765.7958,-1705.0437,13.4707)) // EMS new building { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerVirtualWorld(playerid, 101); SetPlayerInterior(playerid,16); SetPlayerPos(playerid,2046.1004638672,-1765.7945556641,767.94354248047); GameTextForPlayer(playerid, "~w~E.M.S building", 5000, 1); } else if(IsPlayerInRangeOfPoint(playerid,8.0,shax,shay,shaz)) //SHAMAL 1 { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); if(PlayerInfo[playerid][pMask] == 1) format(string, sizeof(string), "> Stranger has entered the shamal."); else format(string, sizeof(string), "> %s has entered the shamal.", RemoveUnderScore(playerid)); 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 { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); if(PlayerInfo[playerid][pMask] == 1) format(string, sizeof(string), "> Stranger has entered the shamal."); else format(string, sizeof(string), "> %s has entered the shamal.", RemoveUnderScore(playerid)); 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 { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); if(PlayerInfo[playerid][pMask] == 1) format(string, sizeof(string), "> Stranger has entered the shamal."); else format(string, sizeof(string), "> %s has entered the shamal.", RemoveUnderScore(playerid)); 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.0, 1833.8832,-1125.6548,24.6721)) //V.I.P Lounge { if(PlayerInfo[playerid][pDonateRank] < 1) return SendClientMessage(playerid,COLOR_RED,"You're not VIP."); GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 10); SetPlayerPos(playerid, 2365.81640625,-1706.4645996094,1195.7257080078); GameTextForPlayer(playerid, "~b~V.I.P Lounge", 3000, 1); } /*else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1498.3635,-1580.5297,13.5498)) //Italian Resturant { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 4); SetPlayerPos(playerid, 1564.7557373047,-1730.5688476563,1125.6225585938); GameTextForPlayer(playerid, "~w~The Italian Resturant", 3000, 1); } else if(IsPlayerInRangeOfPoint(playerid, 3.0, 328.2883,-1923.6836,1.4061)) //Santa Maria Resturant { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 1); SetPlayerPos(playerid, -794.806396,497.738037,1376.195312); GameTextForPlayer(playerid, "~w~Santa Maria Resturant", 3000, 1); }*/ else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1587.0557,-1730.1108,1441)) // Hall To Jails 2 { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 5); SetPlayerPos(playerid, 1587.4763,-1728.4971,1441); GameTextForPlayer(playerid, "~w~Detention Facility", 3000, 1); } else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1588.2921,-1745.8655,1441.2000)) // Prison Reception { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 5); SetPlayerPos(playerid, 1589.6949,-1744.9985,1441.2000); GameTextForPlayer(playerid, "~w~Prison Reception", 3000, 1); } else if(IsPlayerInRangeOfPoint(playerid, 3.0, -5.2309,-325.4293,5.4297)) // Prison Store { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 209.8902,-152.7066,-89.7323); GameTextForPlayer(playerid, "~w~Prison Store", 3000, 1); } else if(IsPlayerInRangeOfPoint(playerid, 3.0, -30.8378,-361.3748,5.4297)) // Control Room { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, -27.0908,-379.4108,14.9761); GameTextForPlayer(playerid, "~w~Control Room", 3000, 1); } else if(IsPlayerInRangeOfPoint(playerid, 3.0, -107.5323,-219.7949,2.0466)) // Another Infim. { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 1148.3007,-1318.3501,1023.7019); GameTextForPlayer(playerid, "~w~Infirmary Two", 3000, 1); } else if(IsPlayerInRangeOfPoint(playerid, 3.0, -5.2309,-325.4293,5.4297)) // Prison Store { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 5); SetPlayerPos(playerid, 209.8902,-152.7066,-89.7323); GameTextForPlayer(playerid, "~w~Prison Store", 3000, 1); } else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1581.6827,-1730.2046,1441.2000)) // From Prison Hall to Jails { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 5); SetPlayerPos(playerid, 1581.0818,-1728.5902,1441.1000); GameTextForPlayer(playerid, "~w~Detention Facility", 3000, 1); } /*else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2233.2905,-1159.6998,25.8906)) // Jefferson Motel { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 15); SetPlayerPos(playerid, 2215.454833,-1147.475585,1025.796875); GameTextForPlayer(playerid, "~w~Jefferson Motel", 3000, 1); } else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1547.3805,-1269.3496,17.4063)) // Tommy's Apartment { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 1591.90002441,-1239.90002441,221.10000610); GameTextForPlayer(playerid, "~w~Tommy's Apartment", 3000, 1); }*/ else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1833.8832,-1125.6548,24.6721)) // v.i.p Garage { if(PlayerInfo[playerid][pDonateRank] < 1) return SendClientMessage(playerid,COLOR_RED,"You're not VIP."); GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerPos(playerid, 2483.8914,2377.5178,7.5434); SetPlayerInterior(playerid, 0); GameTextForPlayer(playerid, "~b~ V.I.P Garage", 3000, 1); } else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2297.8594,-1509.6943,26.8667)) // Royal Church Main Door { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, -2025.0823,1143.2609,18.0688); GameTextForPlayer(playerid, "~w~Los Santos Royal Church", 3000, 1); } /*else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2139.1563,-1742.7773,13.5524)) // Ganton Sex Shop { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 3); SetPlayerPos(playerid, -100.3464,-24.8610,1000.7188); GameTextForPlayer(playerid, "~w~Ganton Sex Shop", 3000, 1); }*/ else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1524.4841,-1677.8577,6.2188)) // LSPD Training Place Enter { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 2195.96875,-1890.1411132813,903.56622314453); GameTextForPlayer(playerid, "~b~L.S.P.D Training Range", 3000, 1); } else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2034.1747,-1401.6726,17.2948)) // County Hospital { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 17); SetPlayerPos(playerid, 2403.6315917969,-1873.8382568359,977.00183105469); GameTextForPlayer(playerid, "~w~County Hospital", 3000, 1); } else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2045.0454,-1913.2452,13.5469)) // DMV { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 3); SetPlayerPos(playerid, -2029.798339,-106.675910,1035.171875); GameTextForPlayer(playerid, "~w~Department Of Motor Vehicles", 3000, 1); } /*else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1333.4658,-1864.3909,13.5469)) // 2 Dragons Strip Club { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 3); SetPlayerPos(playerid, -2637.0388,1402.2401,906.4609); GameTextForPlayer(playerid, "~r~Two Dragons Strip Club", 3000, 1); }*/ else if(IsPlayerInRangeOfPoint(playerid, 3.0, 389.4164,-1162.6322,1227.8639)) // FBI Elevator which leads to Second Floor { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 17); SetPlayerPos(playerid, 391.95086669922,-1159.1645507813,1235.4501953125); GameTextForPlayer(playerid, "~r~F.B.I - Second Floor", 3000, 1); } else if(IsPlayerInRangeOfPoint(playerid, 3.0, 393.1075,-1162.8607,1227.8639)) // FBI Elevator which leads to Prisons Floor { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 17); SetPlayerPos(playerid, 397.96765136719,-1166.8763427734,1224.2651367188); GameTextForPlayer(playerid, "~r~F.B.I - Prisons Floor", 3000, 1); } else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2070.8240,-1793.8846,13.5533)) // Barber { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 3); SetPlayerPos(playerid, 418.652984,-82.639793,1001.804687); GameTextForPlayer(playerid, "~w~The Barber", 3000, 1); } else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2508.3833,-2205.7219,13.5469)) // Drug Depot Enter from Outside { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 3); SetPlayerPos(playerid, 2203.7878,-1817.9066,960.5386); GameTextForPlayer(playerid, "~w~The Drug Depot", 3000, 1); } else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2206.0955,-1821.6783,943.1324)) // Drug Depot Enter from Bottom { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 3); SetPlayerPos(playerid, 2250.0303,-1791.3995,915.8544); } else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2312.1548,-1508.6281,26.8438)) // Los Santos Royal Church Interior { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 3); SetPlayerPos(playerid, -2001.2556,1096.8164,18.8574); GameTextForPlayer(playerid, "~w~Los Santos Royal Church", 3000, 1); } else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2253.9475,-1333.1809,23.9815)) // Los Santos Church Main Door { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 6); SetPlayerPos(playerid, 178.60601806641,-100.326538085942,1029.4976806641); GameTextForPlayer(playerid, "~w~Los Santos Church", 3000, 1); } else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1658.4365,-1691.3781,15.6094)) // FBI Door from Garage Which lead to Prisons { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 3); SetPlayerPos(playerid, 385.1813,-1155.5437,1223.6608); GameTextForPlayer(playerid, "~w~F.B.I Department", 3000, 1); } else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1654.0979,-1655.1139,22.5156)) // FBI Door from Roof Which lead to Second Floor { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 3); SetPlayerPos(playerid, 357.4144,-1166.8655,1234.8639); GameTextForPlayer(playerid, "~w~F.B.I Department", 3000, 1); } /*else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2421.5442,-1219.2491,25.5612)) // PigPen { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 2); SetPlayerPos(playerid, 1204.809936,-11.586799,1000.921875); GameTextForPlayer(playerid, "~r~The PigPen", 3000, 1); }*/ else if(IsPlayerInRangeOfPoint(playerid, 3.0, -86.0714,-299.3637,2.7646)) // Director Office of Prison { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, -220.3469,-251.2590,8.4680); GameTextForPlayer(playerid, "~r~Director's Office", 3000, 1); } else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2068.5889,-1779.9105,13.5596)) // Tatto { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 16); SetPlayerPos(playerid, -204.439987,-26.453998,1002.273437); GameTextForPlayer(playerid, "~r~Tatto Shop", 3000, 1); } else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1742.9120,-1943.8079,13.5689)) // Unity Station from train to inside { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 17); SetPlayerPos(playerid, -1973.2489,168.5225,539.0989); GameTextForPlayer(playerid, "~w~Unity Station", 3000, 1); } /*else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2310.0693,-1643.5203,14.8270)) // Ten Green Bottles { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 11); SetPlayerPos(playerid, 501.980987,-69.150199,998.757812); GameTextForPlayer(playerid, "~w~Ten Green Bottles", 3000, 1); } else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1296.4255,-1424.8632,14.9531)) // Bar near PB { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 1); SetPlayerPos(playerid, 1358.6835,-488.1862,650.7677); GameTextForPlayer(playerid, "~w~Two Elephants Resturant", 3000, 1); } else if(IsPlayerInRangeOfPoint(playerid, 3.0,2105.4717,-1806.5591,13.5547)) // Pizza Stack { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 5); SetPlayerPos(playerid, 372.2533,-133.3005,1001.4922); GameTextForPlayer(playerid, "~w~Pizza Stack", 3000, 1); }*/ else if(IsPlayerInRangeOfPoint(playerid, 2.5, 2487.7549,2397.2488,4.2109)) //VIP Garage to lounge / lounge to garge { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerPos(playerid, 2417.8186,-1705.3455,1195.0190); SetPlayerInterior(playerid, 10); GameTextForPlayer(playerid,"~b~V.I.P Lounge", 3000, 1); } else if(IsPlayerInRangeOfPoint(playerid, 2.5, 849.5972,-1519.9574,14.3481)) //SS { if(IsAnAgent(playerid)) { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerPos(playerid, 2145.3159,1597.3687,1003.9677); SetPlayerInterior(playerid, 1); GameTextForPlayer(playerid,"~w~ The Secret Service", 3000, 1); } else { SendClientMessage(playerid, COLOR_GREY,"You are not a Member of the Secret Service Orgnization"); return 1; } } else if(IsPlayerInRangeOfPoint(playerid, 2.5, 1769.8843,-1867.9167,13.5696)) //Unity Station People Entrance { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerPos(playerid, -2007.7353515625,176.60624694824,540.34661865234); SetPlayerInterior(playerid, 15); GameTextForPlayer(playerid,"~w~Unity Station", 3000, 1); } else if(IsPlayerInRangeOfPoint(playerid, 2.5, 1752.4977,-1894.1453,13.5574)) //Unity Station Workers Entrance { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerPos(playerid, -1961.6540527344,164.9091796875,546.71893310547); SetPlayerInterior(playerid, 15); GameTextForPlayer(playerid,"~w~Unity Station", 3000, 1); } else if(IsPlayerInRangeOfPoint(playerid, 5.0, 2229.7354,-1721.5267,13.5639)) //Gym { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerPos(playerid, 772.111999,-3.898649,1000.728820); SetPlayerInterior(playerid, 5); GameTextForPlayer(playerid,"~w~Los Santos Gym", 3000, 1); } /*else if(IsPlayerInRangeOfPoint(playerid, 2.5, 1786.9857,-1720.8442,13.5426)) // Chinese Resturant { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerPos(playerid, 1026.8576660156,-1309.5942382813,-20.835353851318); SetPlayerInterior(playerid, 6); GameTextForPlayer(playerid,"~w~China Resturant", 3000, 1); }*/ else if(IsPlayerInRangeOfPoint(playerid,3.0,626.9654,-571.7671,17.9207)) //SASD { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 5); SetPlayerPos(playerid, 322.2817,303.3415,999.1484); SetPlayerFacingAngle( playerid, 0.0000); GameTextForPlayer(playerid, "~w~S.A.S.D", 5000, 1); PlayerInfo[playerid][pInt] = 5; SetCameraBehindPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid,3.0,1676.8248,-1634.7830,14.2266)) //FBI building { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 10); SetPlayerPos(playerid, 367.62509155273,-1149.8499755859,1228.7457275391); SetPlayerFacingAngle(playerid, 0.0000); GameTextForPlayer(playerid, "~w~Federal Bureau of Investigation", 5000, 1); PlayerInfo[playerid][pInt] = 10; SetCameraBehindPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1601.9219,-2157.7139,13.7401)) //FIRE DEPARTMENT ENTERANCE { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 3); SetPlayerPos(playerid, 368.0984,162.2898,1019.9844); PlayerInfo[playerid][pInt] = 3; GameTextForPlayer(playerid, "~r~E.M.S HeadQuarters", 5000, 1); SetPlayerFacingAngle(playerid, 90.0); SetCameraBehindPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1172.6975, -1325.3914, 15.4019)) //HOSPITAL GROUND ENTER (NEW) { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 1); SetPlayerPos(playerid, 1199.0801,-1366.3083,1017.8790); PlayerInfo[playerid][pInt] = 1; 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 (NEW) { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 1); SetPlayerPos(playerid, 1216.2145,-1379.2618,1029.4714); PlayerInfo[playerid][pInt] = 1; GameTextForPlayer(playerid, "~r~All Saints ~n~~w~Medical Center", 5000, 1); SetPlayerFacingAngle(playerid, 1.0922); SetCameraBehindPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid, 3, 1568.6840,-1691.0090,5.8906)) //Garage-LSPD Enterance { if(IsACop(playerid)) { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 6); SetPlayerPos(playerid,246.4211,87.0546,1003.6406); SetCameraBehindPlayer(playerid); GameTextForPlayer(playerid, "~w~Los Santos~n~~r~Police Department", 5000, 1); SetPlayerFacingAngle(playerid, 180.0000); PlayerInfo[playerid][pInt] = 6; } } else if(IsPlayerInRangeOfPoint(playerid, 3, 1564.8468,-1666.1549,28.3956)) //LSPD Roof-LSPD Enterance { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); 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, 1554.5262,-1675.7283,16.1953)) //LSPD enter { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerPos(playerid,246.7284,62.6640,1003.6406); SetCameraBehindPlayer(playerid); GameTextForPlayer(playerid, "~w~Los Santos~n~~r~Police Department", 5000, 1); SetPlayerFacingAngle(playerid, 90.0000); SetPlayerInterior(playerid, 6); PlayerInfo[playerid][pInt] = 6; } else if(IsPlayerInRangeOfPoint(playerid, 3, 2447.8350,-1962.6876,13.5469)) //Los Santos Export Depot { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); 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 building", 5000, 1); SetPlayerFacingAngle(playerid, 270.0000); } /*else if(IsPlayerInRangeOfPoint(playerid,3.0,1038.2180,-1340.5763,13.7432)) //Donut Store { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); 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,1481.0209,-1770.9374,18.7958)) //City Hall { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 3); SetPlayerPos(playerid, 384.5713,173.6477,1008.3828); SetPlayerFacingAngle(playerid, 90.0000); GameTextForPlayer(playerid, "~w~ City Hall", 5000, 1); PlayerInfo[playerid][pInt] = 3; SetCameraBehindPlayer(playerid); } /*else if(IsPlayerInRangeOfPoint(playerid,3.0, 1244.7333, 205.3294, 19.6454)) // Donut Store Enterance { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); 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, -13.0313,-335.9020,5.4297)) // Cafeteria Enterance { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); 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,-174.2122,-247.5509,1.4297)) //Infirmary { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerPos(playerid, 268.7222,1862.8405,8.7578); GameTextForPlayer(playerid, "~w~Infirmary One", 5000, 1); SetPlayerFacingAngle(playerid, 180.0); SetCameraBehindPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid,3.0,-49.8847,-269.3661,6.6332)) //Doc building { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); SetPlayerInterior(playerid, 18); SetPlayerPos(playerid, -202.2018,-204.9514,14.0696); GameTextForPlayer(playerid, "~w~Department of Correction", 5000, 1); SetPlayerFacingAngle(playerid, 90.0000); PlayerInfo[playerid][pInt] = 18; SetCameraBehindPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid,3.0,2695.6235,-1704.6960,11.8438)) { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); 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)) { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); 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)) { GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5); Pause(playerid); 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; } /* if(PRESSED(KEY_YES)) { new playaveh = GetPlayerVehicleID(playerid); if(!IsPlayerInAnyVehicle(playerid)) return 1; if(GetVehicleModel(playaveh) != 408 && GetVehicleModel(playaveh) != 509) { if(Radio[playaveh] >= 0 && Radio[playaveh] < RADIOS) { Radio[playaveh]++; new string[128], playanamee[MAX_PLAYER_NAME+1]; GetPlayerName(playerid, playanamee, MAX_PLAYER_NAME); if(Radio[playaveh] > 1) { format(string, sizeof(string), "* %s changes the radio station.", playanamee); } else if(Radio[playaveh] == 1) { format(string, sizeof(string), "* %s turns on the radio.", playanamee); } ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); for(new i=0;i<MAX_PLAYERS;i++) { if(GetPlayerVehicleID(i) == playaveh) { RadioChoose(i, Radio[playaveh]); } } } } } if(PRESSED(KEY_NO)) { new playaveh = GetPlayerVehicleID(playerid); if(!IsPlayerInAnyVehicle(playerid)) return 1; if(GetVehicleModel(playaveh) != 408 && GetVehicleModel(playaveh) != 509) { if(Radio[playaveh] > 0 && Radio[playaveh] <= RADIOS) { Radio[playaveh]--; new playanamee[MAX_PLAYER_NAME+1], string[128]; GetPlayerName(playerid, playanamee,sizeof(playanamee)); if(Radio[playaveh]) { format(string, sizeof(string), "* %s changes the radio station.", playanamee); } else { format(string, sizeof(string), "* %s turns off the radio.", playanamee); } ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); for(new i=0;i<MAX_PLAYERS;i++) { if(GetPlayerVehicleID(i) == playaveh) { RadioChoose(i, Radio[playaveh]); } } } } }*/ new string[128]; if(newkeys == KEY_SECONDARY_ATTACK) { if(IsPlayerConnected(playerid)) { if(IsPlayerInRangeOfPoint(playerid, 1, 2021.9740,2235.6626,2103.9536)) { new Float:busx, Float:busy, Float:busz, Float:angle; if(BusID[playerid] == 1) { GetVehiclePos(NPCBlueBus, busx, busy, busz); GetVehicleZAngle(NPCBlueBus, angle); } else { GetVehiclePos(NPCBlackBus, busx, busy, busz); GetVehicleZAngle(NPCBlackBus, angle); } GetPlayerName(playerid, string, sizeof(string)); format(string, sizeof(string), "%s opens the door and exits the bus.", string); for(new i=0; i<MAX_PLAYERS; i++) { if(BusID[i] == BusID[playerid]) { SendClientMessage(i, COLOR_PURPLE, string); } } angle = 360 - angle; busx = floatsin(angle,degrees) * 1.5 + floatcos(angle,degrees) * 1.5 + busx; busy = floatcos(angle,degrees) * 1 - floatsin(angle,degrees) * 1 + busy; busz = 1 + busz; SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, busx, busy, busz); BusID[playerid] = 0; KillTimer(costtimer); format(string, sizeof(string), "~r~-$%d", BusCost[playerid]); GameTextForPlayer(playerid, string, 3000, 1); GivePlayerMoney(playerid, -BusCost[playerid]); BusCost[playerid] = 0; } } } if(newkeys == KEY_CROUCH) { if(IsPlayerNPC(playerid)) { new npcvehicle = GetPlayerVehicleID(playerid); if(npcvehicle == NPCBlueBus) { if(IsPlayerInRangeOfPoint(playerid, 100, 2868.9033,-1416.4062,11.0131)) { format(string, sizeof(string), "[Bus Driver] The Bus has reached East Beach."); } else if(IsPlayerInRangeOfPoint(playerid, 100, 2636.3242,-1693.125,10.9544)) { format(string, sizeof(string), "[Bus Driver] The Bus has reached The Stadium."); } else if(IsPlayerInRangeOfPoint(playerid, 100, 2243.8457,-1725.9121,13.5960)) { format(string, sizeof(string), "[Bus Driver] The Bus has reached The Gym."); } else if(IsPlayerInRangeOfPoint(playerid, 100, 1948.3310,-1454.3525,13.5960)) { format(string, sizeof(string), "[Bus Driver] The Bus has reached The County General Hospital."); } else if(IsPlayerInRangeOfPoint(playerid, 100, 1571.0644,-2188.0107,13.6260)) { format(string, sizeof(string), "[Bus Driver] The Bus has reached Los Santos International Airport."); } else if(IsPlayerInRangeOfPoint(playerid, 100, 1712.9423,-1818.7148,13.6260)) { format(string, sizeof(string), "[Bus Driver] The Bus has reached The Taxi Stand."); } for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerInRangeOfPoint(i, 10, 2021.9390,2241.9487,2103.9536) && BusID[i] == 1) { SendClientMessage(i, COLOR_OFFWHITE, string); PlayerPlaySound(i, 1147, 0.0, 0.0, 0.0); } } } else if(npcvehicle == NPCBlackBus) { if(IsPlayerInRangeOfPoint(playerid, 100, 1567.0966,-1725.4755,13.6260)) { format(string, sizeof(string), "[Bus Driver] The Bus has reached The Police Department."); } else if(IsPlayerInRangeOfPoint(playerid, 100, 1503.9716,-1027.7617,23.7701)) { format(string, sizeof(string), "[Bus Driver] The Bus has reached The Bank."); } else if(IsPlayerInRangeOfPoint(playerid, 100, 1188.8359,-1354.6279,13.6483)) { format(string, sizeof(string), "[Bus Driver] The Bus has reached All Saints Hospital."); } else if(IsPlayerInRangeOfPoint(playerid, 100, 861.7125,-1313.3009,13.6260)) { format(string, sizeof(string), "[Bus Driver] The Bus has reached Market Station."); } else if(IsPlayerInRangeOfPoint(playerid, 100, 393.6944,-1766.2702,5.6197)) { format(string, sizeof(string), "[Bus Driver] The Bus has reached Santa Maria Beach."); } else if(IsPlayerInRangeOfPoint(playerid, 100, 1705.5898,-1805.8476,13.5300)) { format(string, sizeof(string), "[Bus Driver] The Bus has reached The Taxi Stand."); } for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerInRangeOfPoint(i, 10, 2021.9390,2241.9487,2103.9536) && BusID[i] == 2) { SendClientMessage(i, COLOR_OFFWHITE, string); PlayerPlaySound(i, 1147, 0.0, 0.0, 0.0); } } } } } if(newkeys == KEY_FIRE) { if(PlayerSitting[playerid] == 1) { ClearAnimations(playerid, 1); PlayerSitting[playerid] = 0; } } if(IsPlayerInAnyVehicle(playerid)) { if(newkeys & KEY_YES) { new vehicleid = GetPlayerVehicleID(playerid),newstation = v_VehicleInfo[vehicleid][RadioPlaying] + 1; if(newstation == RadioCount) newstation = 0; SetRadioStation(vehicleid,newstation); return 1; } else if(newkeys & KEY_NO) { new vehicleid = GetPlayerVehicleID(playerid),newstation = v_VehicleInfo[vehicleid][RadioPlaying] - 1; if(newstation == -1) newstation = RadioCount - 1; SetRadioStation(vehicleid,newstation); return 1; } } if(PRESSED(KEY_FIRE)) { if(HazPizza[playerid] == 1) { if(IsPlayerAttachedObjectSlotUsed(playerid, 0)) RemovePlayerAttachedObject(playerid, 0); ClearAnimations(playerid); SendClientMessage(playerid, COLOR_GREY,"Info : You have throw your Pizza [Note : your Health has increased with 30 Percent]"); HazPizza[playerid] = 0; } } /*if(PRESSED(KEY_SECONDARY_ATTACK)) { new string[128]; new sendername[MAX_PLAYER_NAME]; GetPlayerName(playerid, sendername, sizeof(sendername)); for(new i = 0; i < sizeof(ATMInfo); i++) { if(IsPlayerInRangeOfPoint(playerid, 2, ATMInfo[i][ATMX], ATMInfo[i][ATMY], ATMInfo[i][ATMZ])) { if(!(PlayerInfo[playerid][pATMcard] == 1)) return SendClientMessage(playerid,COLOR_GREY," You don't have an ATM Card - Get One from any Bank"); { if(ATMInfo[i][ATMLocked] == 0) { PlayerInfo[playerid][ATMID] = i; format(string,sizeof(string),"Los Santos ATM\nYou have a total of $%d in your Bank account\nType below the amount of money you want to withdraw:", PlayerInfo[playerid][pAccount]); ShowPlayerDialog(playerid,59,DIALOG_STYLE_INPUT,"Los Santos ATM",string,"Withdraw","Cancel"); format(string, sizeof(string), "* %s presses a button and checks its balance.", PlayerName(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else { GameTextForPlayer(playerid, "~r~ATM is unavailable!", 1000, 5); } } } } }*/ if(PRESSED(KEY_FIRE)) { if(PlantedC4OnVault[playerid] == 1) { TakeWeapon(playerid, 40); RobStatus[BeingRobbed] = 1; RobStatus[Setup] = 0; SetPlayerCheckpoint(RobStatus[RobberID1], -1632.1014,-2238.9224,31.4766, 5); SetPlayerCheckpoint(RobStatus[RobberID2], -1632.1014,-2238.9224,31.4766, 5); SetPlayerCheckpoint(RobStatus[RobberID3], -1632.1014,-2238.9224,31.4766, 5); SetPlayerCheckpoint(RobStatus[RobberID4], -1632.1014,-2238.9224,31.4766, 5); SetPlayerCheckpoint(RobStatus[RobberID5], -1632.1014,-2238.9224,31.4766, 5); SendClientMessage(RobStatus[RobberID1], COLOR_YELLOW, "You need to load the cash and get the safe point quickly, (( /loadcash ))"); SendClientMessage(RobStatus[RobberID2], COLOR_YELLOW, "You need to load the cash and get the safe point quickly, (( /loadcash ))"); SendClientMessage(RobStatus[RobberID3], COLOR_YELLOW, "You need to load the cash and get the safe point quickly, (( /loadcash ))"); SendClientMessage(RobStatus[RobberID4], COLOR_YELLOW, "You need to load the cash and get the safe point quickly, (( /loadcash ))"); SendClientMessage(RobStatus[RobberID5], COLOR_YELLOW, "You need to load the cash and get the safe point quickly, (( /loadcash ))"); SendFamilyMessage(1, COLOR_DBLUE, "------------------------------------------------------------"); SendFamilyMessage(2, COLOR_DBLUE, "------------------------------------------------------------"); SendFamilyMessage(3, COLOR_DBLUE, "------------------------------------------------------------"); SendFamilyMessage(4, COLOR_DBLUE, "------------------------------------------------------------"); SendFamilyMessage(5, COLOR_DBLUE, "------------------------------------------------------------"); SendFamilyMessage(6, COLOR_DBLUE, "------------------------------------------------------------"); SendFamilyMessage(7, COLOR_DBLUE, "------------------------------------------------------------"); PlayerInfo[RobStatus[RobberID1]][pWantedLevel] = 6; PlayerInfo[RobStatus[RobberID2]][pWantedLevel] = 6; PlayerInfo[RobStatus[RobberID3]][pWantedLevel] = 6; PlayerInfo[RobStatus[RobberID4]][pWantedLevel] = 6; PlayerInfo[RobStatus[RobberID5]][pWantedLevel] = 6; SetPlayerWantedLevel(RobStatus[RobberID1], 6); SetPlayerWantedLevel(RobStatus[RobberID2], 6); SetPlayerWantedLevel(RobStatus[RobberID3], 6); SetPlayerWantedLevel(RobStatus[RobberID4], 6); SetPlayerWantedLevel(RobStatus[RobberID5], 6); format(string, sizeof(string), "** The Los Santos Bank and Trust vault has been destroyed! **"); SendFamilyMessage(1, COLOR_DCHAT, string); SendFamilyMessage(2, COLOR_DCHAT, string); SendFamilyMessage(3, COLOR_DCHAT, string); SendFamilyMessage(4, COLOR_DCHAT, string); SendFamilyMessage(5, COLOR_DCHAT, string); SendFamilyMessage(6, COLOR_DCHAT, string); SendFamilyMessage(7, COLOR_DCHAT, string); SendFamilyMessage(1, COLOR_DBLUE, "------------------------------------------------------------"); SendFamilyMessage(2, COLOR_DBLUE, "------------------------------------------------------------"); SendFamilyMessage(3, COLOR_DBLUE, "------------------------------------------------------------"); SendFamilyMessage(4, COLOR_DBLUE, "------------------------------------------------------------"); SendFamilyMessage(5, COLOR_DBLUE, "------------------------------------------------------------"); SendFamilyMessage(6, COLOR_DBLUE, "------------------------------------------------------------"); SendFamilyMessage(7, COLOR_DBLUE, "------------------------------------------------------------"); SendClientMessageToAll(COLOR_LIGHTGREEN, "|-------------------Breaking News-------------------------|"); SendClientMessageToAll(COLOR_ORANGE, "News : Los Santos Local Bank Is Currentley Being Robbed"); SendClientMessageToAll(COLOR_ORANGE, "News : We hope that the PD Reach the Place Immediatley"); SendClientMessageToAll(COLOR_ORANGE, "News : Stay with us for More News"); SendClientMessageToAll(COLOR_LIGHTGREEN, "|-------------------Breaking News-------------------------|"); CreateExplosion(2311.6367,-0.4778,26.7422, 2, 4); DestroyDynamicObject(bankvault1); bankvault2 = CreateDynamicObject(2634,2312.11059570,-2.66468596,26.48641968,53.75942993,296.31378174,254.48004150); // Vault Exploded PlantedC4OnVault[playerid] = 0; } if(RampToggle[playerid] == 1) { // admin ramp if((GetPlayerState(playerid) == PLAYER_STATE_DRIVER || GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)) { new Float: X, Float: Y, Float: Z, Float: A; GetXYInFrontOfPlayer(playerid, X, Y, Z, A, 0.1); ramp = CreateDynamicObject(RAMP, X, Y, Z, 0.0, 0.0, A); SetTimerEx("Delete", TIME, 0, "d", ramp); } } if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_DRINK_SPRUNK) { if(UseDrinkTimer[playerid]) return 1; new Float:health; GetPlayerHealth(playerid,health); if(health < 100.0) { if(health+5 > 100.0) { SetPlayerHealth(playerid, 100); } else { SetPlayerHealth(playerid, health+5); } UseDrinkTimer[playerid] = true; SetTimerEx("UseDrink",2*1000,0,"i",playerid); } } if(BombID[playerid] != 0) { if(GetPlayerWeapon(playerid) == 0) { if(!IsPlayerInAnyVehicle(playerid)) { ClearAnimations(playerid); ApplyAnimation(playerid,"PED","bomber",4.0,0,0,0,0,0); } new Float:X,Float:Y,Float:Z; GetObjectPos(BombID[playerid],X,Y,Z); DestroyDynamicObject(BombID[playerid]); CreateExplosion(X,Y,Z,12,1); BombID[playerid] = 0; SetPlayerWeapons(playerid); new killerid = GoChase[playerid]; if(IsPlayerInRangeOfPoint(killerid,3,X,Y,Z)) { if(GoChase[playerid] == killerid) { if(PlayerInfo[killerid][pHeadValue] > 0) { new price = PlayerInfo[killerid][pHeadValue]; new name[MAX_PLAYER_NAME]; new killa[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); GetPlayerName(killerid, killa, sizeof(killa)); PlayerInfo[killerid][pCash] = PlayerInfo[killerid][pCash]-price/2; GivePlayerMoney(killerid, -price/2); PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+price/2; GivePlayerMoney(playerid, price/2); format(string,128,"Hitman %s has fulfilled the contract on %s and collected $%d.",name,killa,price/2); SendFamilyMessage(8, COLOR_YELLOW, string); format(string,128,"You have been critically injured by a hitman and lost $%d.",price/2); SendClientMessage(killerid, COLOR_YELLOW, string); SetPlayerHealth(killerid, 0); ClearContract(killerid); GoChase[playerid] = 999; PlayerInfo[playerid][pCHits]++; } } } } } } if((newkeys & KEY_FIRE)) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); for(new i = 0; i < sizeof(Trashmaster); i++) { if(PlayerInfo[playerid][HoldingObject] == 1) { new Float:tmx, Float:tmy, Float:tmz; GetVehiclePos(Trashmaster[i], tmx, tmy, tmz); if(IsPlayerInRangeOfPoint(playerid, 5.0, tmx, tmy, tmz)) { format(string, sizeof(string), " %s reaches into the dumpster and throws the trash bag", name); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); RemovePlayerAttachedObject(playerid, 0); PlayerInfo[playerid][HoldingObject] = 0; PlayerInfo[playerid][pTrash] ++; switch(PlayerInfo[playerid][pTrash]) { case 1: { SetPlayerCheckpoint(playerid, 2798.1355,-1080.6475,30.7198, 3.0); SendClientMessage(playerid, COLOR_WHITE,"< Trash-Master Radio : Take the Trash-Master to the next Pickup >"); } case 2: { SetPlayerCheckpoint(playerid, 2510.2324,-1031.1870,70.0021, 3.0); SendClientMessage(playerid, COLOR_WHITE,"< Trash-Master Radio : Take the Trash-Master to the next Pickup >"); } case 3: { SetPlayerCheckpoint(playerid, 1988.3920,-1087.9877,24.8313 , 3.0); SendClientMessage(playerid, COLOR_WHITE,"< Trash-Master Radio : Take the Trash-Master to the next Pickup >"); } case 4: { SetPlayerCheckpoint(playerid, 2113.9319,-1718.3832,13.5469, 3.0); SendClientMessage(playerid, COLOR_WHITE,"< Trash-Master Radio : Take the Trash-Master to the next Pickup >"); } case 5: { SetPlayerCheckpoint(playerid, 1936.8923,-1794.7124,13.5469, 3.0); SendClientMessage(playerid, COLOR_WHITE,"< Trash-Master Radio : Take the Trash-Master to the next Pickup >"); } case 6: { SetPlayerCheckpoint(playerid, 1325.6031,-1724.6348,13.5469, 3.0); SendClientMessage(playerid, COLOR_WHITE,"< Trash-Master Radio : Take the Trash-Master to the next Pickup >"); } case 7: { SetPlayerCheckpoint(playerid, 1362.3849,-1485.4042,13.5469, 3.0); SendClientMessage(playerid, COLOR_WHITE,"< Trash-Master Radio : Take the Trash-Master to the next Pickup >"); } case 8: { SetPlayerCheckpoint(playerid, 1204.3912,-1506.3314,13.5401, 3.0); SendClientMessage(playerid, COLOR_WHITE,"< Trash-Master Radio : Take the Trash-Master to the next Pickup >"); } case 9: { SetPlayerCheckpoint(playerid, 1392.5845,-1879.6696,13.5469, 3.0); SendClientMessage(playerid, COLOR_WHITE,"< Trash-Master Radio : Take the Trash-Master to the next Pickup >"); } case 10: { SetPlayerCheckpoint(playerid, 1828.5490,-1890.5249,13.4904, 3.0); SendClientMessage(playerid, COLOR_WHITE,"< Trash-Master Radio : Take the Trash-Master to the next Pickup>"); } case 11: { SetPlayerCheckpoint(playerid, 2196.4490,-1977.1947,13.5527, 3.0); CP[playerid] = 1503; SendClientMessage(playerid, COLOR_WHITE,"< Trash-Master Radio : Take the Trash-Master back to the Parking point to take your PayCheck"); } } } } } } if(newkeys & KEY_FIRE && newkeys & KEY_HANDBRAKE) { if(GetPlayerWeapon(playerid) == 34 && PlayerInfo[playerid][pScope] == 1) { if(RecentlyShot[playerid] == 0) { RecentlyShot[playerid] = 1; SetTimerEx("AntiSpam", 1000, false, "d", playerid); { new Float:blahx, Float:blahy, Float:blahz; HeadshotCheck(playerid, blahx, blahy, blahz); } } } } if(!gPlayerUsingLoopingAnim[playerid]) { return 1; } if(IsKeyJustDown(KEY_SPRINT,newkeys,oldkeys)) { PlayerHurt[playerid] = 0; StopLoopingAnim(playerid); TextDrawHideForPlayer(playerid,txtAnimHelper); } if(PRESSED(newkeys, KEY_SUBMISSION)&&(IsPlayerInAnyVehicle(playerid))&&(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 525) { new Float:ppX,Float:ppY,Float:ppZ; GetPlayerPos(playerid,ppX,ppY,ppZ); new Float:vvX,Float:vvY,Float:vvZ; new Found=0; new vid=0; while((vid<MAX_VEHICLES)&&(!Found)) { vid++; GetVehiclePos(vid,vvX,vvY,vvZ); if ((floatabs(ppX-vvX)<7.0)&&(floatabs(ppY-vvY)<7.0)&&(floatabs(ppZ-vvZ)<7.0)&&(vid!=GetPlayerVehicleID(playerid))) { Found=1; if (IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) { DetachTrailerFromVehicle(GetPlayerVehicleID(playerid)); } else { AttachTrailerToVehicle(vid,GetPlayerVehicleID(playerid)); } } } if (!Found) { SendClientMessage(playerid,COLOR_GREY," There is no car in range !"); } } } return 1; }