//First all the objects for the Valhalla Script. Please delete the one's you do not need. //Objects for the FBI Roof. CreateObject(16375, -2450.883545, 512.009460, 50.118820, 0.0000, 0.0000, 0.0000);//Either Helicopter marking or stairs. CreateObject(12987, -2454.208740, 516.337769, 47.416637, 0.0000, 0.0000, 0.0000);//Either Helicopter marking or stairs CreateObject(1569, -2455.225586, 529.788452, 44.547142, 0.0000, 0.0000, 270.0000);//Door on the FBI Roof. CreateObject(1569, -2455.211670, 526.794189, 44.559044, 0.0000, 0.0000, 90.0000);//Door on the FBI Roof. CreateObject(3666, -2492.549561, 535.331543, 50.577446, 0.0000, 0.0000, 0.0000);//Light on top of the FBI HQ CreateObject(3666, -2492.528809, 510.755707, 50.577446, 0.0000, 0.0000, 0.0000);//Light on top of the FBI HQ CreateObject(3666, -2455.016357, 510.819458, 50.577446, 0.0000, 0.0000, 0.0000);//Light on top of the FBI HQ CreateObject(3666, -2454.973145, 535.317261, 50.577446, 0.0000, 0.0000, 0.0000);//Light on top of the FBI HQ //Objects for the FBI Garage. CreateObject(7245, -2447.420410, 524.390442, 10.262766, 0.0000, 0.0000, 0.0000);//One of these is the main garage, Covered car and the respray thing. CreateObject(10282, -2473.915527, 505.979309, 7.754727, 0.0000, 0.0000, 90.0000); CreateObject(14826, -2415.163330, 513.972717, 7.341918, 0.0000, 0.0000, 0.0000); CreateObject(988, -2473.720947, 525.007568, 11.529190, 0.0000, 0.0000, 90.0000);//Gate to restrict people in the garage. CreateObject(988, -2473.718262, 530.502197, 11.512709, 0.0000, 0.0000, 90.0000);//Gate to restrict people in the garage. CreateObject(987, -2470.454346, 532.803528, 7.503353, 0.0000, 0.0000, 358.2811);//Fence so that people don't start falling CreateObject(987, -2458.691162, 522.733765, 7.080180, 0.0000, 0.0000, 181.7189);//Fence so that people don't start falling CreateObject(987, -2458.647217, 543.605408, 6.919420, 0.0000, 0.0000, 180.0000);//Fence so that people don't start falling //Objects for the LSPD Roof Door (If you want to replace the current code). CreateObject(1566, 1563.189087, -1667.400391, 28.936018, 0.0000, 0.0000, 0.0000);//Two of them are Helicopter marking and two are the doors. CreateObject(1566, 1566.355591, -1667.391479, 28.936018, 0.0000, 0.0000, 180.0000); CreateObject(16375, 1578.586304, -1625.613892, 27.448259, 0.0000, 0.0000, 90.0000); CreateObject(16375, 1577.761963, -1681.446045, 27.425648, 0.0000, 0.0000, 90.0000); //Pickups to let people know that the door exists AddStaticPickup(1239, 2, -2454.1409,528.2406,45.5625); //FBI Roof AddStaticPickup(1239, 2, 288.7209,167.2926,1007.1719); //FBI Indoor AddStaticPickup(1239, 2, 1564.7307,-1666.4333,28.3956); //LSPD Roof (Pickup for LSPD Garage door already exists). //Vehicle Co-ordinates. AddStaticVehicle(497,1568.0417,-1648.0854,28.5788,85.7945,0,0); // LSPD A1(New Coordinate to match the helicopter marking) AddStaticVehicle(497,-2473.0955,523.2798,51.2405,1.6714,1,1); // FBI Heli(New Coordinate to match the helicopter marking) //Vehicles For FBI Garage. AddStaticVehicle(560,-2435.9619,548.3824,7.4784,180.6718,0,0); // FBI Sultan 3 AddStaticVehicle(560,-2440.7310,548.4818,7.4776,179.5202,0,0); // FBI Sultan 2 AddStaticVehicle(560,-2445.0725,548.5229,7.4767,180.3443,0,0); // FBI Sultan 1 AddStaticVehicle(405,-2431.4482,548.3976,7.6456,178.3663,0,0); // FBI Sentinel 4 AddStaticVehicle(579,-2427.3052,548.5541,7.7086,179.9733,0,0); // FBI Huntley 5 AddStaticVehicle(438,-2422.4846,548.5828,7.7734,180.9362,-1,-1); // FBI Cabbie 6 AddStaticVehicle(463,-2420.0881,550.1221,7.3109,180.4759,0,0); // FBI Freeway 7 AddStaticVehicle(463,-2418.1313,550.2423,7.3109,180.1214,0,0); // FBI Freeway 8 AddStaticVehicle(468,-2416.3000,550.3903,7.4402,177.1536,0,0); // FBI Sanchez 9 AddStaticVehicle(468,-2414.8494,550.2490,7.4331,178.8566,0,0); // FBI Sanchez 10 AddStaticVehicle(581,-2413.2166,550.3790,7.3726,178.8903,0,0); // FBI BF400 11 AddStaticVehicle(581,-2411.7769,550.3124,7.3669,179.5141,0,0); // FBI BF400 12 AddStaticVehicle(482,-2413.5486,532.3677,7.8859,88.6254,0,0); // FBI Burrito 13 AddStaticVehicle(482,-2413.8696,527.6660,7.8893,91.4311,0,0); // FBI Burrito 14 AddStaticVehicle(428,-2414.4858,523.0248,7.8970,91.0403,0,0); // FBI Securicar 16 AddStaticVehicle(409,-2414.6638,518.2342,7.5706,90.1546,0,0); // FBI Limo 17 AddStaticVehicle(566,-2431.7070,513.4775,7.5559,268.5135,0,0); // FBI Tahoma 18 AddStaticVehicle(567,-2431.8379,518.5967,7.6441,269.6376,0,0); // FBI Lowrider AddStaticVehicle(567,-2432.0352,523.4745,7.6429,270.3398,0,0); // FBI Lowrider AddStaticVehicle(575,-2431.8811,527.7158,7.3702,269.5801,0,0); // FBI Lowrider AddStaticVehicle(575,-2432.0212,531.8708,7.3749,268.4270,0,0); // FBI Lowrider AddStaticVehicle(411,-2439.8101,532.2090,7.5012,91.6782,0,0); // FBI Infernus AddStaticVehicle(411,-2439.8728,527.7082,7.4996,90.6282,0,0); // FBI Infernus AddStaticVehicle(490,-2440.2959,523.5568,7.9010,90.7375,0,0); // FBI Rancher AddStaticVehicle(490,-2440.2124,518.7313,7.9052,90.7887,0,0); // FBI Rancher AddStaticVehicle(490,-2440.1521,514.0347,7.9053,89.8076,0,0); // FBI Rancher //Teleport Codes for FBI Garage. //Find "/enter" and add the following code. else if (PlayerToPoint(7, playerid,-2446.7646,522.7845,30.2678))//This goes below the /enter code of Valhalla. { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar,-2464.9797,527.3568,9.4731); SetVehicleZAngle(tmpcar,271.5704); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; } else { SetPlayerPos(playerid,-2464.9797,527.3568,9.4731); SetPlayerFacingAngle(playerid,271.5704); return 1; } } //Find "/exit" and add the following code. else if (PlayerToPoint(7, playerid,-2468.1455,527.7440,10.1209))//This goes below /exit in the original Valhalla script. { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar,-2444.0042,519.2491,30.0541); SetVehicleZAngle(tmpcar,213.8825); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; } else { SetPlayerPos(playerid,-2444.0042,519.2491,30.0541); SetPlayerFacingAngle(playerid,213.8825); return 1; } } //Code for the Car Respray thing in the FBI Garage. new Menu:carcolor;//Add this at the top of the script. public OnPlayerSelectedMenuRow(playerid, row)// { new Menu:current; new vehicleid = GetPlayerVehicleID(playerid); current = GetPlayerMenu(playerid); if(current == carcolor) { switch(row) { case 0: { ChangeVehicleColor( vehicleid, 0, 0 ); PlayerPlaySound(playerid,1134,0.0,0.0,0.0); TogglePlayerControllable(playerid,1); } case 1: { ChangeVehicleColor( vehicleid, 1, 1 ); PlayerPlaySound(playerid,1134,0.0,0.0,0.0); TogglePlayerControllable(playerid,1); } case 2: { ChangeVehicleColor( vehicleid, 6, 6 ); PlayerPlaySound(playerid,1134,0.0,0.0,0.0); TogglePlayerControllable(playerid,1); } case 3: { ChangeVehicleColor( vehicleid, 53, 53 ); PlayerPlaySound(playerid,1134,0.0,0.0,0.0); TogglePlayerControllable(playerid,1); } case 4: { ChangeVehicleColor( vehicleid, 93, 93 ); PlayerPlaySound(playerid,1134,0.0,0.0,0.0); TogglePlayerControllable(playerid,1); } case 5: { ChangeVehicleColor( vehicleid, 43, 43 ); PlayerPlaySound(playerid,1134,0.0,0.0,0.0); TogglePlayerControllable(playerid,1); } case 6: { ChangeVehicleColor( vehicleid, 3, 3 ); PlayerPlaySound(playerid,1134,0.0,0.0,0.0); TogglePlayerControllable(playerid,1); } case 7: { ChangeVehicleColor( vehicleid, 13, 13 ); PlayerPlaySound(playerid,1134,0.0,0.0,0.0); TogglePlayerControllable(playerid,1); } case 8: { ChangeVehicleColor( vehicleid, 126, 126 ); PlayerPlaySound(playerid,1134,0.0,0.0,0.0); TogglePlayerControllable(playerid,1); } } } return 1; } //Add this OnGamemoreInit carcolor = CreateMenu("Car Color", 1, 50.0, 180.0, 200.0, 200.0); AddMenuItem(carcolor, 0, "Black"); AddMenuItem(carcolor, 0, "White"); AddMenuItem(carcolor, 0, "Yellow"); AddMenuItem(carcolor, 0, "Blue"); AddMenuItem(carcolor, 0, "Teal"); AddMenuItem(carcolor, 0, "Maroon"); AddMenuItem(carcolor, 0, "Dark Red"); AddMenuItem(carcolor, 0, "Grey"); AddMenuItem(carcolor, 0, "Pink"); //This should be added under OnPlayerCommandText if(strcmp(cmdtext,"/color",true)==0) { if(PlayerToPoint(7,playerid,-2472.0857,506.0549,7.7706)) { if (GetPlayerState(playerid) == 2) { ShowMenuForPlayer(carcolor, playerid); TogglePlayerControllable(playerid,0); return 1; } else { SendClientMessage(playerid, COLOR_WHITE, "You to be the driver of a vehicle to respray!"); } } else { SendClientMessage(playerid, COLOR_WHITE, "You need to be in the FBI garage for the respray!"); } return 0; } //Codes for Automatic Teleport if(PlayerToPoint(2, i,288.9015,166.9218,1007.1719)) {//FBI Interiors to Roof SetPlayerVirtualWorld(i,0); SetPlayerInterior(i, 0); SetPlayerPos(i,-2452.0393,527.9935,45.5625); SetPlayerFacingAngle(i,267.9475); } if(PlayerToPoint(2, i,-2454.8086,528.3412,45.5625)) {//FBI Roof to Interior SetPlayerVirtualWorld(i,0); SetPlayerInterior(i, 3); SetPlayerPos(i,289.0515,169.5971,1007.1719); SetPlayerFacingAngle(i,358.4279); } if(PlayerToPoint(2, i,1524.4840,-1677.9564,6.2188)) {//LSPD Garage to Roof. SetPlayerInterior(i, 0); SetPlayerPos(i,1564.8082,-1664.1666,28.3956); SetPlayerFacingAngle(i,356.8968); } if(PlayerToPoint(2, i,1564.7784,-1666.9841,28.3956)) {//LSPD Roof To Garage SetPlayerInterior(i, 0); SetPlayerPos(i,1527.8022,-1677.9001,5.8906); SetPlayerFacingAngle(i,272.5159); } if(PlayerToPoint(3, i,-2468.2922,547.9153,7.7706)) {//FBI Garage to Interiors. SetPlayerVirtualWorld(i,0); SetPlayerInterior(i, 3); SetPlayerPos(i,289.0515,169.5971,1007.1719); SetPlayerFacingAngle(i,358.4279); }