Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Los Santos Cops n Robbers by Karagon (1.2)
- This script was created from scratch. It includes:
- -Terrorism, Rapist, Theif, and Private Medics classes
- -Cops/Army/FBI with restrictions
- -Houses
- -Lots of Admin Commands
- *****************************************************
- Credits for this script goes to:
- -The dude who made ZCMD (Zeex)
- -The dude who made GVars (the one that actually works) (Incognito)
- -SSCANF <3 (Y_Less)
- -Who ever came up with the idea of PVars and the tutorial on SAMP wiki on how to use them <3
- -DUDB/Draco Blue <3
- -BMUK and LVRCR 1.7 for the Checkpoints
- -The Creator of xObjects (Who ever you are)
- -Me for the /getcp command (I love it, it's simple :))
- -1.1.1 Changelog:
- -Credits changed to remove retards
- -SSCANF updated for 0.3e
- -Recompiled script and w/e with 0.3e stuff
- -Releasing script with 0.3e stuff (server stuff, etc)
- -1.2 Changelog:
- -Removed IRC
- -Made some Script Optimizations (Removing LSPD1, LSPD2, etc, replacing it with Arrays)
- -Removed all the ol' GetPlayerName calls and so forth into PlayerInfo(playerid)
- */
- #include <a_samp>
- #include <zcmd>
- #include <sscanf2>
- #include <dudb>
- #include <gvar>
- #include <time>
- #include <dprops>
- #pragma unused strtok
- #undef MAX_PLAYERS
- #define MAX_PLAYERS (50)
- #define VERSION "1.2"
- new PLAYERLIST_authed[MAX_PLAYERS];
- //Debug Addtions
- //Colors
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_RED 0xFF0000AA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_VIOLETBLUE 0x8A2BE2AA
- #define COLOR_DEADCONNECT 0x808080AA
- #define COLOR_BLUE 0x0000FFAA
- #define COLOR_FORESTGREEN 0x228B22AA
- #define COLOR_DODGERBLUE 0x1E90FFAA
- #define COLOR_DARKOLIVEGREEN 0x556B2FAA
- #define COLOR_ORANGE 0xFFA500AA
- #define COLOR_PURPLE 0x800080AA
- #define COLOR_ROYALBLUE 0x4169FFAA
- #define COLOR_ERROR 0xD2691EAA
- #define COLOR_PINK 0xFF0080FF
- #define COLOR_SEXYGREEN 0x00FF00FF
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_LIME 0x10F441AA
- #define COLOR_CYAN 0x40FFFFFF
- #define COLOR_ORANGERED 0xFF4500AA
- #define COLOR_BLACK 0x000000
- #define COLOR_ADMIN 0x33CCFFAA // Same as the light blue
- #define COLOR_HOUSE 0x45FF00
- //Teams
- #define Team_Cop 1
- #define Team_Medic 2
- #define Team_Army 3
- #define Team_FBI 4
- #define Team_Civi 5
- #define Team_Rape 6
- #define Team_Terror 7
- #define Team_Steal 8
- #define Team_PrvtMed 9
- new gTeam[MAX_PLAYERS];
- //Forwards
- forward SetPlayerTeamFromClass(playerid, classid);
- forward SetPlayerToTeamColor(playerid);
- forward IncreaseWantedLevel(playerid, value);
- forward WantedLevelColor(playerid);
- forward SendAdminMessage(msg[]);
- forward SendCopMessage(msg[]);
- forward SendMedicMessage(msg[]);
- forward getCheckpointType(playerID);
- forward checkpointUpdate(playerid);
- forward isPlayerInArea(playerID, Float:data[4]);
- forward RemoveVariables(playerid);
- forward RapeAgain(playerid);
- forward STDTimer(playerid);
- forward IncreaseScore(playerid, value);
- forward DecreaseScore(playerid, value);
- forward WorldTime();
- forward Float:GetDistanceBetweenPlayers(p1,p2);
- forward ResetFondle(playerid);
- forward SixNineStoreRobAgain(playerid);
- forward ResetGVars();
- forward Server();
- forward BanWeapon(playerid);
- forward SaveStats();
- forward ServerMessages();
- forward IsABike(carid);
- forward Weather(); // Weather :))))))
- forward SendEliteMessage(msg[]);
- forward GivePlayerTeamWeapons(playerid);
- forward Taxes();
- forward SetPlayerTeamFromNoTeam(playerid);
- forward CarBombs();
- new ArmyVehicle[9];
- new LSPD[21];
- new AdminCar1;
- new AdminCar2;
- new House4Car1;
- new House4Car2;
- new House6Car1;
- new House7Car1;
- /* Speedo */
- new Text:FuelTDraw[MAX_PLAYERS];
- new Text:SpeedTDraw[MAX_PLAYERS];
- new Text:DamageTDraw[MAX_PLAYERS];
- new Text:SpeedoBox[MAX_PLAYERS];
- new Text:vSpeed[MAX_PLAYERS];
- new Text:vDamage[MAX_PLAYERS];
- //Dialogs
- #define DIALOG_REGISTER 1
- #define DIALOG_LOGIN 2
- #define DIALOG_SKILL 3
- #define DIALOG_STOREONE 4
- #define DIALOG_PACK 5
- #define DIALOG_TAKEOUT 6
- #define DIALOG_PUTIN 7
- #define DIALOG_BOMB 8
- #define DIALOG_ADMINCMDS 9
- #define DIALOG_SEXSHOP 10
- #define DIALOG_GASONE 11
- #define DIALOG_BUY 12
- #define DIALOG_HOSPITAL 13
- #define DIALOG_STOREROB 14
- #define DIALOG_DRUG 15
- #define DIALOG_PORT 16
- //Time
- new gametime =12;
- new gameday =1;
- new gameweek =1;
- //Spawns
- new Float:SpawnPoints[19][4] =
- {
- {2041.4232,-1643.7749,13.5469},
- {2050.3225,-1901.5059,13.5469},
- {1757.8662,-1893.7533,13.5561},
- {1719.9373,-1709.5448,13.5000},
- {1392.6620,-1573.8087,14.2513},
- {1291.8687,-1485.8612,13.5469},
- {1309.8313,-1373.3232,13.6131},
- {1137.0586,-1378.6705,14.2813},
- {996.2015,-1303.5378,13.3899},
- {1186.2542,-1126.6255,24.0339},
- {1093.9709,-1078.3153,27.5821},
- {999.1002,-897.4241,42.2493},
- {1012.3271,-769.9664,108.2267},
- {309.8324,-1600.5162,33.1888},
- {407.6028,-1543.4286,32.2734},
- {433.1201,-1648.3763,25.5938},
- {693.7420,-1572.2668,14.2422},
- {824.8494,-1869.3324,12.8672},
- {856.4250,-1644.4429,13.5584}
- };
- new Float:PrisonSpawn[4][4] =
- {
- {215.3656,110.1666,999.0156},
- {223.6761,110.4839,999.0156},
- {227.6406,110.6463,999.0156},
- {215.3656,110.1666,999.0156}
- };
- // Object Streamer (xObjects)
- enum object_info//////xobjects
- {
- xmodelid,
- Float:ox,
- Float:oy,
- Float:oz,
- Float:orx,
- Float:ory,
- Float:orz,
- Float:viewdist
- }
- new Objects[][object_info] = {
- {3491,1820.85437012,-2420.75170898,20.52900505,0.00000000,0.00000000,0.00000000}, //object(vegass_hanger2) (1)
- {8253,1868.85485840,-2435.81982422,16.48247528,0.00000000,0.00000000,0.00000000}, //object(pltschlhnger01_lvs) (1)
- //LSPD
- {6976,1561.19323730,-1636.00317383,10.00000000,0.00000000,0.00000000,0.00000000}, //object(shamheliprt04) (1) (STAIRS)
- {6976,1578.89599609,-1642.44042969,18.60000038,0.00000000,0.00000000,270.00000000} //object(shamheliprt04) (2) (STAIRS)
- };
- enum player_info
- {
- objid[sizeof(Objects)],
- bool:view[sizeof(Objects)]
- }
- new Player[MAX_PLAYERS][player_info];
- bool:IsInReach(Float:x,Float:y,Float:z,Float:x2,Float:y2,Float:z2,Float:dist)
- {
- x = (x > x2) ? x - x2 : x2 - x;
- if(x > dist) return false;
- y = (y > y2) ? y - y2 : y2 - y;
- if(y > dist) return false;
- z = (z > z2) ? z - z2 : z2 - z;
- if(z > dist) return false;
- return true;
- }
- forward Timer();////////////For xObjects
- //Checkpoints
- #define MAX_POINTS 52
- #define CP_StoreOne 0 //69 Cent store
- #define CP_PrisonExit 1
- #define CP_PrisonEnter 2
- #define CP_BankEnter 3
- #define CP_BankExit 4
- #define CP_Bank 5
- #define CP_BuyExp 6
- #define CP_AdminHouse 7
- #define CP_AdminHouseExit 8
- #define CP_SexShopEnter 9
- #define CP_SexShopExit 10
- #define CP_SexShopCounter 11
- #define CP_GasOneEnter 12
- #define CP_GasOneCounter 13
- #define CP_GasOneExit 14
- #define CP_DanceCounter 15
- #define CP_AmmoRob 16
- #define CP_BurgerShotRob 17
- #define CP_Hospital 18
- #define CP_Tatoo 19
- #define CP_HouseOneEnter 20
- #define CP_HouseOneExit 21
- #define CP_HouseTwoEnter 22
- #define CP_HouseTwoExit 23
- #define CP_HouseThreeEnter 24
- #define CP_HouseThreeExit 25
- #define CP_HouseFourEnter 26
- #define CP_HouseFourExit 27
- #define CP_HouseFiveEnter 28
- #define CP_HouseFiveExit 29
- #define CP_HouseSixEnter 30
- #define CP_HouseSixExit 31
- #define CP_HouseSevenEnter 32
- #define CP_HouseSevenExit 33
- #define CP_HouseEightEnter 34
- #define CP_HouseEightExit 35
- #define CP_HouseNineEnter 36
- #define CP_HouseNineExit 37
- #define CP_PigPenRob 38
- #define CP_LSHospital 39
- #define CP_LSAirportBlow 40
- #define CP_ParkBlow 41
- #define CP_RobStore1 42
- #define CP_VinewoodBlow 43
- #define CP_BankBlow 44
- #define CP_DrugHouse 45
- #define CP_Suburban 46
- #define CP_Binco 47
- #define CP_WellStacked 48
- #define CP_Airport 49
- #define CP_SFAirport 50
- #define CP_LVAirport 51
- new playerCheckpoint[MAX_PLAYERS];
- new Float:checkpoints[MAX_POINTS][4] = {
- {-28.100069,-89.627357,1003.5469,3.0}, //69 Cent STore
- {246.375991,109.245994,1003.218750, 3.0}, //SFPD Exit
- {1484.7555,-1771.3855,18.7958, 3.0}, //CP_PrisonEnter
- {1510.011352, -1060.139526, 25.062500, 3.0}, //CP bank Enter
- {2304.7012,-16.0591,26.7422, 3.0}, //CP BankExit
- {2311.645019, -4.784075, 26.742187, 3.0}, // Inside Bank
- {2174.755615, -2249.109130, 13.303812, 3.0}, //Explosives
- {977.451416, -769.852722, 112.202629, 3.0}, // Admin House Enter
- {2317.830322, -1026.757690, 1050.217773, 3.0}, //Admin House Exit
- {1940.014160, -2116.011474, 13.695312, 3.0}, //Sex Shop Enter
- {-100.511611, -23.429288, 1000.718750, 3.0}, // Sex Shop Exit
- {-105.566085, -10.617439, 1000.718750, 3.0}, // Sex Shop Counter
- {1928.582031, -1776.320434, 13.546875, 3.0}, // Gas Station Enter
- {-10.311285, -178.242904, 1003.546875, 3.0}, // Gas station checkpoint
- {-26.028060, -187.120574, 1003.546875, 3.0}, // Store one exit
- {476.096069, -15.185485, 1003.695312, 3.0}, // dance Rob
- {293.810852, -34.787994, 1001.515625, 3.0}, // Ammunation (Center LS) Robbery Spot
- {377.797363, -67.435653, 1001.507812, 3.0}, // Burger Shot Robbery Spot
- {1176.014282, -1323.302246, 14.000391, 3.0}, // Hospital
- {-201.742660, -23.566627, 1002.273437, 3.0}, // Tatoo Shop
- {2486.337646, -1644.873291, 14.077178, 3.0}, // House 1
- {235.373641, 1186.680053, 1080.257812, 3.0}, // House 1 Exit
- {1980.387695, -1719.006713, 17.030405, 3.0}, // House2Enter
- {228.089996, 1114.303955, 1080.992187, 3.0}, // House2 Exit
- {280.929382, -1767.145751, 4.546875, 3.0}, // House3enter
- {223.038757, 1288.227294, 1082.140625, 3.0}, // House3Exit
- {189.641677, -1308.114135, 70.249511, 3.0}, // House4Enter
- {24.116802, 1340.033691, 1084.375000, 3.0}, // House4Exit
- {352.405242, -1197.921020, 76.515625, 3.0}, // House5Enter
- {22.747611, 1404.215698, 1084.429687, 3.0}, // House5Exit inside
- {989.783447, -828.658874, 95.468574, 3.0}, // House 6 enter
- {447.005004, 1397.073608, 1084.304687, 3.0}, // House Exit to outside
- {1094.829467, -647.912902, 113.648437, 3.0}, // House 7 enter
- {234.166671, 1065.024414, 1084.210327, 3.0}, // House 7 Exit
- {2090.942626, -1277.854370, 26.179687, 3.0}, // House 8 enter loc
- {2259.523193, -1135.836303, 1050.632812, 3.0},// House 8 Exit Cp (THIS ONE)
- {2111.024902, -1244.397460, 25.851562, 3.0}, // House9Enter
- {2467.589111, -1698.400024, 1013.507812, 3.0}, // House 9 Exit CP
- {1214.997924, -13.298475, 1000.921875, 3.0}, // Pig Pen Robbery Spot
- {2034.464721, -1406.565551, 17.205287, 3.0}, // hospital
- {1440.501220, -2287.199462, 13.546875, 3.0},// Airpot blow cp
- {363.255249, -2009.069458, 7.835937, 3.0}, // park cp for blow
- {-31.306764, -28.996454, 1003.557250, 3.0}, // Gas Station Rob
- {1401.436889, -767.322265, 95.011589, 3.0}, // Vinewood sign blow cp
- {1526.515136, -1071.242065, 25.062500, 3.0}, // Blow bank CP
- {2147.707763, -1367.095458, 25.641782, 3.0}, // Drug house cp
- {203.934204, -40.282241, 1001.804687, 3.0}, // SubUrban robbery checkpoint
- {207.757797, -98.696815, 1005.257812, 3.0}, // Binco rob
- {376.704528, -118.806343, 1001.499511, 3.0}, // Pizza place robbery
- {1642.319335, -2237.777832, 13.498379, 3.0}, // Airport
- {-1422.704101, -286.657531, 14.148437, 3.0}, // SF Airport cp
- {1674.765625, 1447.695068, 10.789379, 3.0} // LV Airport
- };
- new Float:checkCoords[MAX_POINTS][4] = {
- {-32.100069,-94.627357,-24.100069,-85.626357}, //69 Cent Store
- {242.375991, 103.245994, 250.375991, 113.245994},//SFPD Exit
- {1480.7555,-1777.3855 , 1485.7555, -1766.3855}, //CP_PrisonEnter
- {1506.011352, -1064.139526, 1514.011352, -1056.139526}, // bank
- {2300.7012, -24.0591, 2308.7012, -12.0591}, //CP BANK EXIT
- {2307.645019, -8.784074, 2315.645019, -0.784075}, // Inside Bank
- {2170.755615, -2253.109130, 2178.755615, -2245.109130}, //Explosives
- {973.451416, -773.852722, 981.451416, -765.852722}, // Admin House
- {2313.830322, -1030.757690, 2321.830322, -1022.757690}, //Admin House Exit
- {1926.014160, -2126.011474, 1950.014160, -2106.011474}, //Sex Shop enter
- {-114.511611, -33.429290, -90.511611, -13.429288}, // Sex Shop Exit
- {-119.566085, -20.617439, -95.566085, -0.617439}, // Sex Shop Counter
- {1914.582031, -1786.320434, 1938.582031, -1766.320434}, // Gas Station Enter
- {-24.311285, -188.242904, -0.311285, -168.242904}, // Gas station checkpoint
- {-40.028060, -197.120574, -16.028060, -177.120574}, // Store one exit
- {462.096069, -25.185485, 486.096069, -5.185485}, // dance Rob
- {279.810852, -44.787994, 303.810852, -24.787994}, // Ammunation (Center LS) Robbery Spot
- {363.797363, -77.435653, 387.797363, -57.435653}, // Burger Shot Robbery Spot
- {1166.014282, -1333.302246, 1186.014282, -1313.302246}, // Hospital
- {-211.742660, -33.566627, -191.742660, -13.566627}, // Tatoo Shop
- {2476.337646, -1654.873291, 2496.337646, -1634.873291}, // House 1
- {225.373641, 1176.680053, 245.373641, 1196.680053}, // House 1 Exit
- {1970.387695, -1729.006713, 1990.387695, -1709.006713}, // House2Enter
- {218.089996, 1104.303955, 238.089996, 1124.303955}, // House2 Exit
- {270.929382, -1777.145751, 290.929382, -1757.145751}, // House3enter
- {213.038757, 1278.227294, 233.038757, 1298.227294}, // House3Exit
- {179.641677, -1318.114135, 199.641677, -1298.114135}, // House4Enter
- {14.116802, 1330.033691, 34.116802, 1350.033691}, // House4Exit
- {342.405242, -1207.921020, 362.405242, -1187.921020}, // House5Enter
- {12.747611, 1394.215698, 32.747611, 1414.215698}, // House5Exit inside
- {979.783447, -838.658874, 999.783447, -818.658874}, // House 6 enter
- {437.005004, 1387.073608, 457.005004, 1407.073608}, // House Exit to outside
- {1084.829467, -657.912902, 1104.829467, -637.912902}, // House 7 enter
- {224.166671, 1055.024414, 244.166671, 1075.024414}, // House 7 Exit
- {2080.942626, -1287.854370, 2100.942626, -1267.854370}, // House 8 enter loc
- {2249.523193, -1145.836303, 2269.523193, -1125.836303}, // House 8 Exit Cp (THIS ONE)
- {2101.024902, -1254.397460, 2121.024902, -1234.397460}, // House9Enter
- {2457.589111, -1708.400024, 2477.589111, -1688.400024}, // House 9 Exit CP
- {1204.997924, -23.298475, 1224.997924, -3.298475}, // Pig Pen Robbery Spot
- {2024.464721, -1416.565551, 2044.464721, -1396.565551},// hospital
- {1430.501220, -2297.199462, 1450.501220, -2277.199462}, // Airpot blow cp
- {353.255249, -2019.069458, 373.255249, -1999.069458}, // park cp for blow
- {-41.306762, -38.996452, -21.306764, -18.996454}, // Gas Station Rob
- {1391.436889, -777.322265, 1411.436889, -757.322265}, // Vinewood sign blow cp
- {1516.515136, -1081.242065, 1536.515136, -1061.242065}, // Blow bank CP
- {2137.707763, -1377.095458, 2157.707763, -1357.095458}, // Drug house cp
- {193.934204, -50.282241, 213.934204, -30.282241}, // SubUrban robbery checkpoint
- {197.757797, -108.696815, 217.757797, -88.696815}, // Binco rob
- {366.704528, -128.806335, 386.704528, -108.806343}, // Pizza place robbery
- {1592.319335, -2287.777832, 1692.319335, -2187.777832}, // Airport
- {-1472.704101, -336.657531, -1372.704101, -236.657531}, // SF Airport cp
- {1624.765625, 1397.695068, 1724.765625, 1497.695068} // LV Airport
- };
- new checkpointType[MAX_POINTS] = {
- CP_StoreOne, //69 Cent Store
- CP_PrisonExit,
- CP_PrisonEnter,
- CP_BankEnter,
- CP_BankExit,
- CP_Bank,
- CP_BuyExp,
- CP_AdminHouse,
- CP_AdminHouseExit,
- CP_SexShopEnter,
- CP_SexShopExit,
- CP_SexShopCounter,
- CP_GasOneEnter,
- CP_GasOneCounter,
- CP_GasOneExit,
- CP_DanceCounter,
- CP_AmmoRob,
- CP_BurgerShotRob,
- CP_Hospital,
- CP_Tatoo,
- CP_HouseOneEnter,
- CP_HouseOneExit,
- CP_HouseTwoEnter,
- CP_HouseTwoExit,
- CP_HouseThreeEnter,
- CP_HouseThreeExit,
- CP_HouseFourEnter,
- CP_HouseFourExit,
- CP_HouseFiveEnter,
- CP_HouseFiveExit,
- CP_HouseSixEnter,
- CP_HouseSixExit,
- CP_HouseSevenEnter,
- CP_HouseSevenExit,
- CP_HouseEightEnter,
- CP_HouseEightExit,
- CP_HouseNineEnter,
- CP_HouseNineExit,
- CP_PigPenRob,
- CP_LSHospital,
- CP_LSAirportBlow,
- CP_ParkBlow,
- CP_RobStore1,
- CP_VinewoodBlow,
- CP_BankBlow,
- CP_DrugHouse,
- CP_Suburban,
- CP_Binco,
- CP_WellStacked,
- CP_Airport,
- CP_SFAirport,
- CP_LVAirport
- };
- //Home Owners
- #define HOUSE_ONE_OWNER ""
- #define House_Two_Owner ""
- #define House_Three_Owner ""
- #define House_Four_Owner ""
- #define House_Five_Owner ""
- #define House_Six_Owner ""
- #define House_Seven_Owner ""
- #define House_Eight_Owner ""
- #define House_Nine_Owner ""
- //House Names
- #define House_One_Name "This house is for sale. Contact a Server Admin if you wish to buy it"
- #define House_Two_Name "This house is for sale. Contact a Server Admin if you wish to buy it."
- #define House_Three_Name "This house is for sale. Contact a Server Admin if you wish to buy it."
- #define House_Four_Name "This house is for sale. Contact a Server Admin if you wish to buy it."
- #define House_Five_Name "This house is for sale. Contact a Server Admin if you wish to buy it."
- #define House_Six_Name "This house is for sale. Contact a Server Admin if you wish to buy it."
- #define House_Seven_Name "This house is for sale. Contact a Server Admin if you wish to buy it."
- #define House_Eight_Name "This house is for sale. Contact a Server Admin if you wish to buy it."
- #define House_Nine_Name "This house is for sale. Contact a Server Admin if you wish to buy it."
- //Biz owners
- #define Drug_House_Owner ""
- //Spike Strips
- #define MAX_SPIKES 20
- enum SpikeInfo
- {
- SpikeCreated,
- Float:SX,
- Float:SY,
- Float:SZ,
- sObject
- };
- new SInfo[MAX_SPIKES][SpikeInfo];
- enum Vinfo
- {
- bought,
- bomb
- }
- new VehicleInfo[MAX_VEHICLES][Vinfo];
- new aWeaponNames[][32] = {
- {"Unarmed (Fist)"}, // 0
- {"Brass Knuckles"}, // 1
- {"Golf Club"}, // 2
- {"Night Stick"}, // 3
- {"Knife"}, // 4
- {"Baseball Bat"}, // 5
- {"Shovel"}, // 6
- {"Pool Cue"}, // 7
- {"Katana"}, // 8
- {"Chainsaw"}, // 9
- {"Purple Dildo"}, // 10
- {"Big White Vibrator"}, // 11
- {"Medium White Vibrator"}, // 12
- {"Small White Vibrator"}, // 13
- {"Flowers"}, // 14
- {"Cane"}, // 15
- {"Grenade"}, // 16
- {"Teargas"}, // 17
- {"Molotov"}, // 18
- {" "}, // 19
- {" "}, // 20
- {" "}, // 21
- {"Colt 45"}, // 22
- {"Colt 45 (Silenced)"}, // 23
- {"Desert Eagle"}, // 24
- {"Normal Shotgun"}, // 25
- {"Sawnoff Shotgun"}, // 26
- {"Combat Shotgun"}, // 27
- {"Micro Uzi (Mac 10)"}, // 28
- {"MP5"}, // 29
- {"AK47"}, // 30
- {"M4"}, // 31
- {"Tec9"}, // 32
- {"Country Rifle"}, // 33
- {"Sniper Rifle"}, // 34
- {"Rocket Launcher"}, // 35
- {"Heat-Seeking Rocket Launcher"}, // 36
- {"Flamethrower"}, // 37
- {"Minigun"}, // 38
- {"Satchel Charge"}, // 39
- {"Detonator"}, // 40
- {"Spray Can"}, // 41
- {"Fire Extinguisher"}, // 42
- {"Camera"}, // 43
- {"Night Vision Goggles"}, // 44
- {"Infrared Vision Goggles"}, // 45
- {"Parachute"}, // 46
- {"Fake Pistol"}, // 47
- {"Unknown"}, //48
- {"Vehicle"}, //49
- {"Helicopter Blades"}, //50
- {"Explosion"}, //51
- {"Unknown"}, //52
- {"Drowned"}, //53
- {"Explosion"} //54
- };
- // ZONES
- enum zoneinfo {
- zone_name[27],
- Float:zone_minx,
- Float:zone_miny,
- Float:zone_minz,
- Float:zone_maxx,
- Float:zone_maxy,
- Float:zone_maxz
- }
- // Makabos zones script // ALWAYS ADD NEW ZONES TO THE END (YOULL MESS UP ALL ROBBERIES)
- new Float:zones[][zoneinfo] = {
- { "Store (Int)", -11.0048, -31.3442, 1003.5494, 8.3204, -2.7050, 50.00},
- { "Army Base", -1546.4114, 260.0058, 7.1797, -1222.0865, 521.8784, 50.00},
- { "Prison (Int)", 214.0158, 107.4454, 999.0156, 278.4889, 127.9651, 50.00},
- { "Police Department (Int)", 217.2494, 62.7068, 1001.0391, 270.0461, 92.4821, 50.00},
- { "Police Department", -1336.4915, 705.7386, 6.6299, -1182.2593, 823.7599, 200.00},
- { "Police Department (Int)", 188.1787, 138.6903, 1003.0234, 301.7826, 197.7743, 50.00},
- { "The Big Ear", -410.00, 1403.30, -3.00, -137.90, 1681.20, 200.00},
- { "Aldea Malvada", -1372.10, 2498.50, 0.00, -1277.50, 2615.30, 200.00},
- { "Angel Pine", -2324.90, -2584.20, -6.10, -1964.20, -2212.10, 200.00},
- { "Arco del Oeste", -901.10, 2221.80, 0.00, -592.00, 2571.90, 200.00},
- { "Avispa Country Club", -2646.40, -355.40, 0.00, -2270.00, -222.50, 200.00},
- { "Avispa Country Club", -2831.80, -430.20, -6.10, -2646.40, -222.50, 200.00},
- { "Avispa Country Club", -2361.50, -417.10, 0.00, -2270.00, -355.40, 200.00},
- { "Avispa Country Club", -2667.80, -302.10, -28.80, -2646.40, -262.30, 71.10},
- { "Avispa Country Club", -2470.00, -355.40, 0.00, -2270.00, -318.40, 46.10},
- { "Avispa Country Club", -2550.00, -355.40, 0.00, -2470.00, -318.40, 39.70},
- { "Back o Beyond", -1166.90, -2641.10, 0.00, -321.70, -1856.00, 200.00},
- { "Battery Point", -2741.00, 1268.40, -4.50, -2533.00, 1490.40, 200.00},
- { "Bayside", -2741.00, 2175.10, 0.00, -2353.10, 2722.70, 200.00},
- { "Bayside Marina", -2353.10, 2275.70, 0.00, -2153.10, 2475.70, 200.00},
- { "Beacon Hill", -399.60, -1075.50, -1.40, -319.00, -977.50, 198.50},
- { "Blackfield", 964.30, 1203.20, -89.00, 1197.30, 1403.20, 110.90},
- { "Blackfield", 964.30, 1403.20, -89.00, 1197.30, 1726.20, 110.90},
- { "Blackfield Chapel", 1375.60, 596.30, -89.00, 1558.00, 823.20, 110.90},
- { "Blackfield Chapel", 1325.60, 596.30, -89.00, 1375.60, 795.00, 110.90},
- { "Blackfield Intersection", 1197.30, 1044.60, -89.00, 1277.00, 1163.30, 110.90},
- { "Blackfield Intersection", 1166.50, 795.00, -89.00, 1375.60, 1044.60, 110.90},
- { "Blackfield Intersection", 1277.00, 1044.60, -89.00, 1315.30, 1087.60, 110.90},
- { "Blackfield Intersection", 1375.60, 823.20, -89.00, 1457.30, 919.40, 110.90},
- { "Blueberry", 104.50, -220.10, 2.30, 349.60, 152.20, 200.00},
- { "Blueberry", 19.60, -404.10, 3.80, 349.60, -220.10, 200.00},
- { "Blueberry Acres", -319.60, -220.10, 0.00, 104.50, 293.30, 200.00},
- { "Calton Heights", -2274.10, 744.10, -6.10, -1982.30, 1358.90, 200.00},
- { "Chinatown", -2274.10, 578.30, -7.60, -2078.60, 744.10, 200.00},
- { "Commerce", 1323.90, -1842.20, -89.00, 1701.90, -1722.20, 110.90},
- { "Commerce", 1323.90, -1722.20, -89.00, 1440.90, -1577.50, 110.90},
- { "Commerce", 1370.80, -1577.50, -89.00, 1463.90, -1384.90, 110.90},
- { "Commerce", 1463.90, -1577.50, -89.00, 1667.90, -1430.80, 110.90},
- { "Commerce", 1583.50, -1722.20, -89.00, 1758.90, -1577.50, 110.90},
- { "Commerce", 1667.90, -1577.50, -89.00, 1812.60, -1430.80, 110.90},
- { "Conference Center", 1046.10, -1804.20, -89.00, 1323.90, -1722.20, 110.90},
- { "Conference Center", 1073.20, -1842.20, -89.00, 1323.90, -1804.20, 110.90},
- { "Cranberry Station", -2007.80, 56.30, 0.00, -1922.00, 224.70, 100.00},
- { "Class Selection", 942.5793, 0.2095, 1000.9295, 947.4127, 4.8616, 1000.9299},
- { "Creek", 2749.90, 1937.20, -89.00, 2921.60, 2669.70, 110.90},
- { "Dillimore", 580.70, -674.80, -9.50, 861.00, -404.70, 200.00},
- { "Doherty", -2270.00, -324.10, -0.00, -1794.90, -222.50, 200.00},
- { "Doherty", -2173.00, -222.50, -0.00, -1794.90, 265.20, 200.00},
- { "Downtown", -1982.30, 744.10, -6.10, -1871.70, 1274.20, 200.00},
- { "Downtown", -1871.70, 1176.40, -4.50, -1620.30, 1274.20, 200.00},
- { "Downtown", -1700.00, 744.20, -6.10, -1580.00, 1176.50, 200.00},
- { "Downtown", -1580.00, 744.20, -6.10, -1499.80, 1025.90, 200.00},
- { "Downtown", -2078.60, 578.30, -7.60, -1499.80, 744.20, 200.00},
- { "Downtown", -1993.20, 265.20, -9.10, -1794.90, 578.30, 200.00},
- { "Downtown Los Santos", 1463.90, -1430.80, -89.00, 1724.70, -1290.80, 110.90},
- { "Downtown Los Santos", 1724.70, -1430.80, -89.00, 1812.60, -1250.90, 110.90},
- { "Downtown Los Santos", 1463.90, -1290.80, -89.00, 1724.70, -1150.80, 110.90},
- { "Downtown Los Santos", 1370.80, -1384.90, -89.00, 1463.90, -1170.80, 110.90},
- { "Downtown Los Santos", 1724.70, -1250.90, -89.00, 1812.60, -1150.80, 110.90},
- { "Downtown Los Santos", 1370.80, -1170.80, -89.00, 1463.90, -1130.80, 110.90},
- { "Downtown Los Santos", 1378.30, -1130.80, -89.00, 1463.90, -1026.30, 110.90},
- { "Downtown Los Santos", 1391.00, -1026.30, -89.00, 1463.90, -926.90, 110.90},
- { "Downtown Los Santos", 1507.50, -1385.20, 110.90, 1582.50, -1325.30, 335.90},
- { "East Beach", 2632.80, -1852.80, -89.00, 2959.30, -1668.10, 110.90},
- { "East Beach", 2632.80, -1668.10, -89.00, 2747.70, -1393.40, 110.90},
- { "East Beach", 2747.70, -1668.10, -89.00, 2959.30, -1498.60, 110.90},
- { "East Beach", 2747.70, -1498.60, -89.00, 2959.30, -1120.00, 110.90},
- { "East Los Santos", 2421.00, -1628.50, -89.00, 2632.80, -1454.30, 110.90},
- { "East Los Santos", 2222.50, -1628.50, -89.00, 2421.00, -1494.00, 110.90},
- { "East Los Santos", 2266.20, -1494.00, -89.00, 2381.60, -1372.00, 110.90},
- { "East Los Santos", 2381.60, -1494.00, -89.00, 2421.00, -1454.30, 110.90},
- { "East Los Santos", 2281.40, -1372.00, -89.00, 2381.60, -1135.00, 110.90},
- { "East Los Santos", 2381.60, -1454.30, -89.00, 2462.10, -1135.00, 110.90},
- { "East Los Santos", 2462.10, -1454.30, -89.00, 2581.70, -1135.00, 110.90},
- { "Easter Basin", -1794.90, 249.90, -9.10, -1242.90, 578.30, 200.00},
- { "Easter Basin", -1794.90, -50.00, -0.00, -1499.80, 249.90, 200.00},
- { "Easter Bay Airport", -1499.80, -50.00, -0.00, -1242.90, 249.90, 200.00},
- { "Easter Bay Airport", -1794.90, -730.10, -3.00, -1213.90, -50.00, 200.00},
- { "Easter Bay Airport", -1213.90, -730.10, 0.00, -1132.80, -50.00, 200.00},
- { "Easter Bay Airport", -1242.90, -50.00, 0.00, -1213.90, 578.30, 200.00},
- { "Easter Bay Airport", -1213.90, -50.00, -4.50, -947.90, 578.30, 200.00},
- { "Easter Bay Airport", -1315.40, -405.30, 15.40, -1264.40, -209.50, 25.40},
- { "Easter Bay Airport", -1354.30, -287.30, 15.40, -1315.40, -209.50, 25.40},
- { "Easter Bay Airport", -1490.30, -209.50, 15.40, -1264.40, -148.30, 25.40},
- { "Easter Bay Chemicals", -1132.80, -768.00, 0.00, -956.40, -578.10, 200.00},
- { "Easter Bay Chemicals", -1132.80, -787.30, 0.00, -956.40, -768.00, 200.00},
- { "El Castillo del Diablo", -464.50, 2217.60, 0.00, -208.50, 2580.30, 200.00},
- { "El Castillo del Diablo", -208.50, 2123.00, -7.60, 114.00, 2337.10, 200.00},
- { "El Castillo del Diablo", -208.50, 2337.10, 0.00, 8.40, 2487.10, 200.00},
- { "El Corona", 1812.60, -2179.20, -89.00, 1970.60, -1852.80, 110.90},
- { "El Corona", 1692.60, -2179.20, -89.00, 1812.60, -1842.20, 110.90},
- { "El Quebrados", -1645.20, 2498.50, 0.00, -1372.10, 2777.80, 200.00},
- { "Esplanade East", -1620.30, 1176.50, -4.50, -1580.00, 1274.20, 200.00},
- { "Esplanade East", -1580.00, 1025.90, -6.10, -1499.80, 1274.20, 200.00},
- { "Esplanade East", -1499.80, 578.30, -79.60, -1339.80, 1274.20, 20.30},
- { "Esplanade North", -2533.00, 1358.90, -4.50, -1996.60, 1501.20, 200.00},
- { "Esplanade North", -1996.60, 1358.90, -4.50, -1524.20, 1592.50, 200.00},
- { "Esplanade North", -1982.30, 1274.20, -4.50, -1524.20, 1358.90, 200.00},
- { "Fallen Tree", -792.20, -698.50, -5.30, -452.40, -380.00, 200.00},
- { "Fallow Bridge", 434.30, 366.50, 0.00, 603.00, 555.60, 200.00},
- { "Fern Ridge", 508.10, -139.20, 0.00, 1306.60, 119.50, 200.00},
- { "Financial", -1871.70, 744.10, -6.10, -1701.30, 1176.40, 300.00},
- { "Fisher's Lagoon", 1916.90, -233.30, -100.00, 2131.70, 13.80, 200.00},
- { "Flint Intersection", -187.70, -1596.70, -89.00, 17.00, -1276.60, 110.90},
- { "Flint Range", -594.10, -1648.50, 0.00, -187.70, -1276.60, 200.00},
- { "Fort Carson", -376.20, 826.30, -3.00, 123.70, 1220.40, 200.00},
- { "Foster Valley", -2270.00, -430.20, -0.00, -2178.60, -324.10, 200.00},
- { "Foster Valley", -2178.60, -599.80, -0.00, -1794.90, -324.10, 200.00},
- { "Foster Valley", -2178.60, -1115.50, 0.00, -1794.90, -599.80, 200.00},
- { "Foster Valley", -2178.60, -1250.90, 0.00, -1794.90, -1115.50, 200.00},
- { "Frederick Bridge", 2759.20, 296.50, 0.00, 2774.20, 594.70, 200.00},
- { "Gant Bridge", -2741.40, 1659.60, -6.10, -2616.40, 2175.10, 200.00},
- { "Gant Bridge", -2741.00, 1490.40, -6.10, -2616.40, 1659.60, 200.00},
- { "Ganton", 2222.50, -1852.80, -89.00, 2632.80, -1722.30, 110.90},
- { "Ganton", 2222.50, -1722.30, -89.00, 2632.80, -1628.50, 110.90},
- { "Garcia", -2411.20, -222.50, -0.00, -2173.00, 265.20, 200.00},
- { "Garcia", -2395.10, -222.50, -5.30, -2354.00, -204.70, 200.00},
- { "Garver Bridge", -1339.80, 828.10, -89.00, -1213.90, 1057.00, 110.90},
- { "Garver Bridge", -1213.90, 950.00, -89.00, -1087.90, 1178.90, 110.90},
- { "Garver Bridge", -1499.80, 696.40, -179.60, -1339.80, 925.30, 20.30},
- { "Glen Park", 1812.60, -1449.60, -89.00, 1996.90, -1350.70, 110.90},
- { "Glen Park", 1812.60, -1100.80, -89.00, 1994.30, -973.30, 110.90},
- { "Glen Park", 1812.60, -1350.70, -89.00, 2056.80, -1100.80, 110.90},
- { "Green Palms", 176.50, 1305.40, -3.00, 338.60, 1520.70, 200.00},
- { "Greenglass College", 964.30, 1044.60, -89.00, 1197.30, 1203.20, 110.90},
- { "Greenglass College", 964.30, 930.80, -89.00, 1166.50, 1044.60, 110.90},
- { "Hampton Barns", 603.00, 264.30, 0.00, 761.90, 366.50, 200.00},
- { "Hankypanky Point", 2576.90, 62.10, 0.00, 2759.20, 385.50, 200.00},
- { "Harry Gold Parkway", 1777.30, 863.20, -89.00, 1817.30, 2342.80, 110.90},
- { "Hashbury", -2593.40, -222.50, -0.00, -2411.20, 54.70, 200.00},
- { "Hilltop Farm", 967.30, -450.30, -3.00, 1176.70, -217.90, 200.00},
- { "Hunter Quarry", 337.20, 710.80, -115.20, 860.50, 1031.70, 203.70},
- { "Idlewood", 1812.60, -1852.80, -89.00, 1971.60, -1742.30, 110.90},
- { "Idlewood", 1812.60, -1742.30, -89.00, 1951.60, -1602.30, 110.90},
- { "Idlewood", 1951.60, -1742.30, -89.00, 2124.60, -1602.30, 110.90},
- { "Idlewood", 1812.60, -1602.30, -89.00, 2124.60, -1449.60, 110.90},
- { "Idlewood", 2124.60, -1742.30, -89.00, 2222.50, -1494.00, 110.90},
- { "Idlewood", 1971.60, -1852.80, -89.00, 2222.50, -1742.30, 110.90},
- { "Jefferson", 1996.90, -1449.60, -89.00, 2056.80, -1350.70, 110.90},
- { "Jefferson", 2124.60, -1494.00, -89.00, 2266.20, -1449.60, 110.90},
- { "Jefferson", 2056.80, -1372.00, -89.00, 2281.40, -1210.70, 110.90},
- { "Jefferson", 2056.80, -1210.70, -89.00, 2185.30, -1126.30, 110.90},
- { "Jefferson", 2185.30, -1210.70, -89.00, 2281.40, -1154.50, 110.90},
- { "Jefferson", 2056.80, -1449.60, -89.00, 2266.20, -1372.00, 110.90},
- { "Julius Thruway East", 2623.10, 943.20, -89.00, 2749.90, 1055.90, 110.90},
- { "Julius Thruway East", 2685.10, 1055.90, -89.00, 2749.90, 2626.50, 110.90},
- { "Julius Thruway East", 2536.40, 2442.50, -89.00, 2685.10, 2542.50, 110.90},
- { "Julius Thruway East", 2625.10, 2202.70, -89.00, 2685.10, 2442.50, 110.90},
- { "Julius Thruway North", 2498.20, 2542.50, -89.00, 2685.10, 2626.50, 110.90},
- { "Julius Thruway North", 2237.40, 2542.50, -89.00, 2498.20, 2663.10, 110.90},
- { "Julius Thruway North", 2121.40, 2508.20, -89.00, 2237.40, 2663.10, 110.90},
- { "Julius Thruway North", 1938.80, 2508.20, -89.00, 2121.40, 2624.20, 110.90},
- { "Julius Thruway North", 1534.50, 2433.20, -89.00, 1848.40, 2583.20, 110.90},
- { "Julius Thruway North", 1848.40, 2478.40, -89.00, 1938.80, 2553.40, 110.90},
- { "Julius Thruway North", 1704.50, 2342.80, -89.00, 1848.40, 2433.20, 110.90},
- { "Julius Thruway North", 1377.30, 2433.20, -89.00, 1534.50, 2507.20, 110.90},
- { "Julius Thruway South", 1457.30, 823.20, -89.00, 2377.30, 863.20, 110.90},
- { "Julius Thruway South", 2377.30, 788.80, -89.00, 2537.30, 897.90, 110.90},
- { "Julius Thruway West", 1197.30, 1163.30, -89.00, 1236.60, 2243.20, 110.90},
- { "Julius Thruway West", 1236.60, 2142.80, -89.00, 1297.40, 2243.20, 110.90},
- { "Juniper Hill", -2533.00, 578.30, -7.60, -2274.10, 968.30, 200.00},
- { "Juniper Hollow", -2533.00, 968.30, -6.10, -2274.10, 1358.90, 200.00},
- { "K.A.C.C. Military Fuels", 2498.20, 2626.50, -89.00, 2749.90, 2861.50, 110.90},
- { "Kincaid Bridge", -1339.80, 599.20, -89.00, -1213.90, 828.10, 110.90},
- { "Kincaid Bridge", -1213.90, 721.10, -89.00, -1087.90, 950.00, 110.90},
- { "Kincaid Bridge", -1087.90, 855.30, -89.00, -961.90, 986.20, 110.90},
- { "King's", -2329.30, 458.40, -7.60, -1993.20, 578.30, 200.00},
- { "King's", -2411.20, 265.20, -9.10, -1993.20, 373.50, 200.00},
- { "King's", -2253.50, 373.50, -9.10, -1993.20, 458.40, 200.00},
- { "LVA Freight Depot", 1457.30, 863.20, -89.00, 1777.40, 1143.20, 110.90},
- { "LVA Freight Depot", 1375.60, 919.40, -89.00, 1457.30, 1203.20, 110.90},
- { "LVA Freight Depot", 1277.00, 1087.60, -89.00, 1375.60, 1203.20, 110.90},
- { "LVA Freight Depot", 1315.30, 1044.60, -89.00, 1375.60, 1087.60, 110.90},
- { "LVA Freight Depot", 1236.60, 1163.40, -89.00, 1277.00, 1203.20, 110.90},
- { "Las Barrancas", -926.10, 1398.70, -3.00, -719.20, 1634.60, 200.00},
- { "Las Brujas", -365.10, 2123.00, -3.00, -208.50, 2217.60, 200.00},
- { "Las Colinas", 1994.30, -1100.80, -89.00, 2056.80, -920.80, 110.90},
- { "Las Colinas", 2056.80, -1126.30, -89.00, 2126.80, -920.80, 110.90},
- { "Las Colinas", 2185.30, -1154.50, -89.00, 2281.40, -934.40, 110.90},
- { "Las Colinas", 2126.80, -1126.30, -89.00, 2185.30, -934.40, 110.90},
- { "Las Colinas", 2747.70, -1120.00, -89.00, 2959.30, -945.00, 110.90},
- { "Las Colinas", 2632.70, -1135.00, -89.00, 2747.70, -945.00, 110.90},
- { "Las Colinas", 2281.40, -1135.00, -89.00, 2632.70, -945.00, 110.90},
- { "Las Payasadas", -354.30, 2580.30, 2.00, -133.60, 2816.80, 200.00},
- { "Las Venturas Airport", 1236.60, 1203.20, -89.00, 1457.30, 1883.10, 110.90},
- { "Las Venturas Airport", 1457.30, 1203.20, -89.00, 1777.30, 1883.10, 110.90},
- { "Las Venturas Airport", 1457.30, 1143.20, -89.00, 1777.40, 1203.20, 110.90},
- { "Las Venturas Airport", 1515.80, 1586.40, -12.50, 1729.90, 1714.50, 87.50},
- { "Last Dime Motel", 1823.00, 596.30, -89.00, 1997.20, 823.20, 110.90},
- { "Leafy Hollow", -1166.90, -1856.00, 0.00, -815.60, -1602.00, 200.00},
- { "Lil' Probe Inn", -90.20, 1286.80, -3.00, 153.80, 1554.10, 200.00},
- { "Linden Side", 2749.90, 943.20, -89.00, 2923.30, 1198.90, 110.90},
- { "Linden Station", 2749.90, 1198.90, -89.00, 2923.30, 1548.90, 110.90},
- { "Linden Station", 2811.20, 1229.50, -39.50, 2861.20, 1407.50, 60.40},
- { "Little Mexico", 1701.90, -1842.20, -89.00, 1812.60, -1722.20, 110.90},
- { "Little Mexico", 1758.90, -1722.20, -89.00, 1812.60, -1577.50, 110.90},
- { "Los Flores", 2581.70, -1454.30, -89.00, 2632.80, -1393.40, 110.90},
- { "Los Flores", 2581.70, -1393.40, -89.00, 2747.70, -1135.00, 110.90},
- { "Los Santos International", 1249.60, -2394.30, -89.00, 1852.00, -2179.20, 110.90},
- { "Los Santos International", 1852.00, -2394.30, -89.00, 2089.00, -2179.20, 110.90},
- { "Los Santos International", 1382.70, -2730.80, -89.00, 2201.80, -2394.30, 110.90},
- { "Los Santos International", 1974.60, -2394.30, -39.00, 2089.00, -2256.50, 60.90},
- { "Los Santos International", 1400.90, -2669.20, -39.00, 2189.80, -2597.20, 60.90},
- { "Los Santos International", 2051.60, -2597.20, -39.00, 2152.40, -2394.30, 60.90},
- { "Marina", 647.70, -1804.20, -89.00, 851.40, -1577.50, 110.90},
- { "Marina", 647.70, -1577.50, -89.00, 807.90, -1416.20, 110.90},
- { "Marina", 807.90, -1577.50, -89.00, 926.90, -1416.20, 110.90},
- { "Market", 787.40, -1416.20, -89.00, 1072.60, -1310.20, 110.90},
- { "Market", 952.60, -1310.20, -89.00, 1072.60, -1130.80, 110.90},
- { "Market", 1072.60, -1416.20, -89.00, 1370.80, -1130.80, 110.90},
- { "Market", 926.90, -1577.50, -89.00, 1370.80, -1416.20, 110.90},
- { "Market Station", 787.40, -1410.90, -34.10, 866.00, -1310.20, 65.80},
- { "Martin Bridge", -222.10, 293.30, 0.00, -122.10, 476.40, 200.00},
- { "Missionary Hill", -2994.40, -811.20, 0.00, -2178.60, -430.20, 200.00},
- { "Montgomery", 1119.50, 119.50, -3.00, 1451.40, 493.30, 200.00},
- { "Montgomery", 1451.40, 347.40, -6.10, 1582.40, 420.80, 200.00},
- { "Montgomery Intersection", 1546.60, 208.10, 0.00, 1745.80, 347.40, 200.00},
- { "Montgomery Intersection", 1582.40, 347.40, 0.00, 1664.60, 401.70, 200.00},
- { "Mulholland", 1414.00, -768.00, -89.00, 1667.60, -452.40, 110.90},
- { "Mulholland", 1281.10, -452.40, -89.00, 1641.10, -290.90, 110.90},
- { "Mulholland", 1269.10, -768.00, -89.00, 1414.00, -452.40, 110.90},
- { "Mulholland", 1357.00, -926.90, -89.00, 1463.90, -768.00, 110.90},
- { "Mulholland", 1318.10, -910.10, -89.00, 1357.00, -768.00, 110.90},
- { "Mulholland", 1169.10, -910.10, -89.00, 1318.10, -768.00, 110.90},
- { "Mulholland", 768.60, -954.60, -89.00, 952.60, -860.60, 110.90},
- { "Mulholland", 687.80, -860.60, -89.00, 911.80, -768.00, 110.90},
- { "Mulholland", 737.50, -768.00, -89.00, 1142.20, -674.80, 110.90},
- { "Mulholland", 1096.40, -910.10, -89.00, 1169.10, -768.00, 110.90},
- { "Mulholland", 952.60, -937.10, -89.00, 1096.40, -860.60, 110.90},
- { "Mulholland", 911.80, -860.60, -89.00, 1096.40, -768.00, 110.90},
- { "Mulholland", 861.00, -674.80, -89.00, 1156.50, -600.80, 110.90},
- { "Mulholland Intersection", 1463.90, -1150.80, -89.00, 1812.60, -768.00, 110.90},
- { "North Rock", 2285.30, -768.00, 0.00, 2770.50, -269.70, 200.00},
- { "Ocean Docks", 2373.70, -2697.00, -89.00, 2809.20, -2330.40, 110.90},
- { "Ocean Docks", 2201.80, -2418.30, -89.00, 2324.00, -2095.00, 110.90},
- { "Ocean Docks", 2324.00, -2302.30, -89.00, 2703.50, -2145.10, 110.90},
- { "Ocean Docks", 2089.00, -2394.30, -89.00, 2201.80, -2235.80, 110.90},
- { "Ocean Docks", 2201.80, -2730.80, -89.00, 2324.00, -2418.30, 110.90},
- { "Ocean Docks", 2703.50, -2302.30, -89.00, 2959.30, -2126.90, 110.90},
- { "Ocean Docks", 2324.00, -2145.10, -89.00, 2703.50, -2059.20, 110.90},
- { "Ocean Flats", -2994.40, 277.40, -9.10, -2867.80, 458.40, 200.00},
- { "Ocean Flats", -2994.40, -222.50, -0.00, -2593.40, 277.40, 200.00},
- { "Ocean Flats", -2994.40, -430.20, -0.00, -2831.80, -222.50, 200.00},
- { "Octane Springs", 338.60, 1228.50, 0.00, 664.30, 1655.00, 200.00},
- { "Old Venturas Strip", 2162.30, 2012.10, -89.00, 2685.10, 2202.70, 110.90},
- { "Palisades", -2994.40, 458.40, -6.10, -2741.00, 1339.60, 200.00},
- { "Paradiso", -2741.00, 793.40, -6.10, -2533.00, 1268.40, 200.00},
- { "Pershing Square", 1440.90, -1722.20, -89.00, 1583.50, -1577.50, 110.90},
- { "Pilgrim", 2437.30, 1383.20, -89.00, 2624.40, 1783.20, 110.90},
- { "Pilgrim", 2624.40, 1383.20, -89.00, 2685.10, 1783.20, 110.90},
- { "Pilson Intersection", 1098.30, 2243.20, -89.00, 1377.30, 2507.20, 110.90},
- { "Pirates in Men's Pants", 1817.30, 1469.20, -89.00, 2027.40, 1703.20, 110.90},
- { "Playa del Seville", 2703.50, -2126.90, -89.00, 2959.30, -1852.80, 110.90},
- { "Prickle Pine", 1534.50, 2583.20, -89.00, 1848.40, 2863.20, 110.90},
- { "Prickle Pine", 1117.40, 2507.20, -89.00, 1534.50, 2723.20, 110.90},
- { "Prickle Pine", 1848.40, 2553.40, -89.00, 1938.80, 2863.20, 110.90},
- { "Prickle Pine", 1938.80, 2624.20, -89.00, 2121.40, 2861.50, 110.90},
- { "Queens", -2533.00, 458.40, 0.00, -2329.30, 578.30, 200.00},
- { "Queens", -2593.40, 54.70, 0.00, -2411.20, 458.40, 200.00},
- { "Queens", -2411.20, 373.50, 0.00, -2253.50, 458.40, 200.00},
- { "Randolph Industrial Estate", 1558.00, 596.30, -89.00, 1823.00, 823.20, 110.90},
- { "Redsands East", 1817.30, 2011.80, -89.00, 2106.70, 2202.70, 110.90},
- { "Redsands East", 1817.30, 2202.70, -89.00, 2011.90, 2342.80, 110.90},
- { "Redsands East", 1848.40, 2342.80, -89.00, 2011.90, 2478.40, 110.90},
- { "Redsands West", 1236.60, 1883.10, -89.00, 1777.30, 2142.80, 110.90},
- { "Redsands West", 1297.40, 2142.80, -89.00, 1777.30, 2243.20, 110.90},
- { "Redsands West", 1377.30, 2243.20, -89.00, 1704.50, 2433.20, 110.90},
- { "Redsands West", 1704.50, 2243.20, -89.00, 1777.30, 2342.80, 110.90},
- { "Regular Tom", -405.70, 1712.80, -3.00, -276.70, 1892.70, 200.00},
- { "Richman", 647.50, -1118.20, -89.00, 787.40, -954.60, 110.90},
- { "Richman", 647.50, -954.60, -89.00, 768.60, -860.60, 110.90},
- { "Richman", 225.10, -1369.60, -89.00, 334.50, -1292.00, 110.90},
- { "Richman", 225.10, -1292.00, -89.00, 466.20, -1235.00, 110.90},
- { "Richman", 72.60, -1404.90, -89.00, 225.10, -1235.00, 110.90},
- { "Richman", 72.60, -1235.00, -89.00, 321.30, -1008.10, 110.90},
- { "Richman", 321.30, -1235.00, -89.00, 647.50, -1044.00, 110.90},
- { "Richman", 321.30, -1044.00, -89.00, 647.50, -860.60, 110.90},
- { "Richman", 321.30, -860.60, -89.00, 687.80, -768.00, 110.90},
- { "Richman", 321.30, -768.00, -89.00, 700.70, -674.80, 110.90},
- { "Robada Intersection", -1119.00, 1178.90, -89.00, -862.00, 1351.40, 110.90},
- { "Roca Escalante", 2237.40, 2202.70, -89.00, 2536.40, 2542.50, 110.90},
- { "Roca Escalante", 2536.40, 2202.70, -89.00, 2625.10, 2442.50, 110.90},
- { "Rockshore East", 2537.30, 676.50, -89.00, 2902.30, 943.20, 110.90},
- { "Rockshore West", 1997.20, 596.30, -89.00, 2377.30, 823.20, 110.90},
- { "Rockshore West", 2377.30, 596.30, -89.00, 2537.30, 788.80, 110.90},
- { "Rodeo", 72.60, -1684.60, -89.00, 225.10, -1544.10, 110.90},
- { "Rodeo", 72.60, -1544.10, -89.00, 225.10, -1404.90, 110.90},
- { "Rodeo", 225.10, -1684.60, -89.00, 312.80, -1501.90, 110.90},
- { "Rodeo", 225.10, -1501.90, -89.00, 334.50, -1369.60, 110.90},
- { "Rodeo", 334.50, -1501.90, -89.00, 422.60, -1406.00, 110.90},
- { "Rodeo", 312.80, -1684.60, -89.00, 422.60, -1501.90, 110.90},
- { "Rodeo", 422.60, -1684.60, -89.00, 558.00, -1570.20, 110.90},
- { "Rodeo", 558.00, -1684.60, -89.00, 647.50, -1384.90, 110.90},
- { "Rodeo", 466.20, -1570.20, -89.00, 558.00, -1385.00, 110.90},
- { "Rodeo", 422.60, -1570.20, -89.00, 466.20, -1406.00, 110.90},
- { "Rodeo", 466.20, -1385.00, -89.00, 647.50, -1235.00, 110.90},
- { "Rodeo", 334.50, -1406.00, -89.00, 466.20, -1292.00, 110.90},
- { "San Andreas Sound", 2450.30, 385.50, -100.00, 2759.20, 562.30, 200.00},
- { "Santa Flora", -2741.00, 458.40, -7.60, -2533.00, 793.40, 200.00},
- { "Santa Maria Beach", 342.60, -2173.20, -89.00, 647.70, -1684.60, 110.90},
- { "Santa Maria Beach", 72.60, -2173.20, -89.00, 342.60, -1684.60, 110.90},
- { "Shady Cabin", -1632.80, -2263.40, -3.00, -1601.30, -2231.70, 200.00},
- { "Shady Creeks", -1820.60, -2643.60, -8.00, -1226.70, -1771.60, 200.00},
- { "Shady Creeks", -2030.10, -2174.80, -6.10, -1820.60, -1771.60, 200.00},
- { "Sobell Rail Yards", 2749.90, 1548.90, -89.00, 2923.30, 1937.20, 110.90},
- { "Temple", 1252.30, -1130.80, -89.00, 1378.30, -1026.30, 110.90},
- { "Temple", 1252.30, -1026.30, -89.00, 1391.00, -926.90, 110.90},
- { "Temple", 1252.30, -926.90, -89.00, 1357.00, -910.10, 110.90},
- { "Temple", 952.60, -1130.80, -89.00, 1096.40, -937.10, 110.90},
- { "Temple", 1096.40, -1130.80, -89.00, 1252.30, -1026.30, 110.90},
- { "Temple", 1096.40, -1026.30, -89.00, 1252.30, -910.10, 110.90},
- { "The Emerald Isle", 2011.90, 2202.70, -89.00, 2237.40, 2508.20, 110.90},
- { "The Farm", -1209.60, -1317.10, 114.90, -908.10, -787.30, 251.90},
- { "The Mako Span", 1664.60, 401.70, 0.00, 1785.10, 567.20, 200.00},
- { "The Panopticon", -947.90, -304.30, -1.10, -319.60, 327.00, 200.00},
- { "The Sherman Dam", -968.70, 1929.40, -3.00, -481.10, 2155.20, 200.00},
- { "The Visage", 1817.30, 1863.20, -89.00, 2106.70, 2011.80, 110.90},
- { "The Visage", 1817.30, 1703.20, -89.00, 2027.40, 1863.20, 110.90},
- { "Unity Station", 1692.60, -1971.80, -20.40, 1812.60, -1932.80, 79.50},
- { "Valle Ocultado", -936.60, 2611.40, 2.00, -715.90, 2847.90, 200.00},
- { "Verdant Bluffs", 930.20, -2488.40, -89.00, 1249.60, -2006.70, 110.90},
- { "Verdant Bluffs", 1073.20, -2006.70, -89.00, 1249.60, -1842.20, 110.90},
- { "Verdant Bluffs", 1249.60, -2179.20, -89.00, 1692.60, -1842.20, 110.90},
- { "Verdant Meadows", 37.00, 2337.10, -3.00, 435.90, 2677.90, 200.00},
- { "Verona Beach", 647.70, -2173.20, -89.00, 930.20, -1804.20, 110.90},
- { "Verona Beach", 930.20, -2006.70, -89.00, 1073.20, -1804.20, 110.90},
- { "Verona Beach", 851.40, -1804.20, -89.00, 1046.10, -1577.50, 110.90},
- { "Verona Beach", 1161.50, -1722.20, -89.00, 1323.90, -1577.50, 110.90},
- { "Verona Beach", 1046.10, -1722.20, -89.00, 1161.50, -1577.50, 110.90},
- { "Vinewood", 787.40, -1310.20, -89.00, 952.60, -1130.80, 110.90},
- { "Vinewood", 787.40, -1130.80, -89.00, 952.60, -954.60, 110.90},
- { "Vinewood", 647.50, -1227.20, -89.00, 787.40, -1118.20, 110.90},
- { "Vinewood", 647.70, -1416.20, -89.00, 787.40, -1227.20, 110.90},
- { "Whitewood Estates", 883.30, 1726.20, -89.00, 1098.30, 2507.20, 110.90},
- { "Whitewood Estates", 1098.30, 1726.20, -89.00, 1197.30, 2243.20, 110.90},
- { "Willowfield", 1970.60, -2179.20, -89.00, 2089.00, -1852.80, 110.90},
- { "Willowfield", 2089.00, -2235.80, -89.00, 2201.80, -1989.90, 110.90},
- { "Willowfield", 2089.00, -1989.90, -89.00, 2324.00, -1852.80, 110.90},
- { "Willowfield", 2201.80, -2095.00, -89.00, 2324.00, -1989.90, 110.90},
- { "Willowfield", 2541.70, -1941.40, -89.00, 2703.50, -1852.80, 110.90},
- { "Willowfield", 2324.00, -2059.20, -89.00, 2541.70, -1852.80, 110.90},
- { "Willowfield", 2541.70, -2059.20, -89.00, 2703.50, -1941.40, 110.90},
- { "Yellow Bell Station", 1377.40, 2600.40, -21.90, 1492.40, 2687.30, 78.00},
- { "Los Santos", 44.60, -2892.90, -242.90, 2997.00, -768.00, 900.00},
- { "Bone County", -480.50, 596.30, -242.90, 869.40, 2993.80, 900.00},
- { "Tierra Robada", -2997.40, 1659.60, -242.90, -480.50, 2993.80, 900.00},
- { "Tierra Robada", -1213.90, 596.30, -242.90, -480.50, 1659.60, 900.00},
- { "Flint County", -1213.90, -2892.90, -242.90, 44.60, -768.00, 900.00},
- { "Whetstone", -2997.40, -2892.90, -242.90, -1213.90, -1115.50, 900.00}
- };
- #define MAX_PLAYERS_ 32
- new zoneupdates[MAX_PLAYERS_];
- new player_zone[MAX_PLAYERS_];
- new zoneupdate;
- forward update_zones();
- public update_zones()
- {
- new line1[10];
- new line2[10];
- for(new i=0; i<MAX_PLAYERS_; i++)
- {
- if(IsPlayerConnected(i) && zoneupdates[i] == 1)
- {
- if(IsPlayerInZone(i,player_zone[i]))
- {
- }
- else {
- new player_zone_before;
- player_zone_before = player_zone[i];
- player_zone[i] = -1;
- for(new j=0; j<sizeof(zones);j++)
- {
- if(IsPlayerInZone(i,j) && player_zone[i] == -1)
- {
- if(player_zone_before == -1)
- {
- new string[128];
- format(string,sizeof(string),"%s",zones[j][zone_name]);
- GameTextForPlayer(i, string, 2000, 1);
- }
- else
- {
- if(strcmp(zones[j][zone_name],zones[player_zone_before][zone_name],true) != 0)
- {
- new string[128];
- format(string,sizeof(string),"%s",zones[j][zone_name]);
- GameTextForPlayer(i, string, 2000, 1);
- }
- }
- player_zone[i] = j;
- format(line1,10,"p%dzone",i);
- format(line2,10,"%d",j);
- PropertySet(line1,line2);
- }
- }
- if(player_zone[i] == -1) player_zone[i] = player_zone_before;
- }
- }
- }
- }
- IsPlayerInZone(playerid, zoneid)
- {
- if(zoneid == -1) return 0;
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid,x,y,z);
- if(x >= zones[zoneid][zone_minx] && x < zones[zoneid][zone_maxx]
- && y >= zones[zoneid][zone_miny] && y < zones[zoneid][zone_maxy]
- && z >= zones[zoneid][zone_minz] && z < zones[zoneid][zone_maxz]
- && z < 1200.0000) return 1;
- return 0;
- }
- main()
- {
- print("\n ---------------------");
- printf("Cops n Robbers By DarkLord", VERSION);
- print("------------------------\n");
- }
- public OnGameModeInit()
- {
- //House names
- //AllowAdminTeleport(1); // Allows Rc0n admin waypoint teleport
- SetWeather(10); //Sets the weather to 10 (Shiny, plan to make it different through the game month
- //ManualVehicleEngineAndLights(); // Manual engines
- SetWorldTime(12);
- //Timers
- //SetTimer("CarBombs", 1000, 1);
- SetTimer("checkpointUpdate", 1100, 1); //Checkpoint system
- //SetTimer("STDTimer", 1000*30, 1); //Checks for STD, used only once
- SetTimer("WorldTime",60000,1); //World Time
- SetTimer("Server", 1000, 1); //Server/Player Variables
- SetTimer("SaveStats", 1000*60*2, 1); //Saves the stats every 2 minutes (PVars can't do that on OnPlayerDisconnect)
- //SetTimer("ServerMessages", 1000*60*5, 1); //Server Messages
- //SetTimer("Weather", 1000*60*24, 1); //Weather - comment to take it out
- SetTimer("Taxes", 1000*60*24, 1); //Does taxes: pay cops, give biz owners money, etc.............
- if(!zoneupdate) zoneupdate = SetTimer("update_zones",1000,4);
- SetGameModeText("Cops n Robbers V1.1 "); //Game Mode Text
- //Cops/Army
- AddPlayerClass(265,1569.5902,-1694.6520,5.8906,178.6999,0,0,0,0,0,0); //
- AddPlayerClass(266,1569.5902,-1694.6520,5.8906,178.6999,0,0,0,0,0,0); //
- AddPlayerClass(281,1569.5902,-1694.6520,5.8906,178.6999,0,0,0,0,0,0); //
- AddPlayerClass(285,1569.5902,-1694.6520,5.8906,178.6999,0,0,0,0,0,0); //
- AddPlayerClass(288,1569.5902,-1694.6520,5.8906,178.6999,0,0,0,0,0,0); //
- AddPlayerClass(280,1569.5902,-1694.6520,5.8906,178.6999,0,0,0,0,0,0); //
- //Army
- AddPlayerClass(287,1767.4132,-2435.5422,13.5547,178.6999,0,0,0,0,0,0); //
- //FBI
- AddPlayerClass(286,1569.5902,-1694.6520,5.8906,178.6999,0,0,0,0,0,0); //
- //Civi
- AddPlayerClass(1,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
- AddPlayerClass(2,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
- AddPlayerClass(7,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
- AddPlayerClass(9,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
- AddPlayerClass(11,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
- AddPlayerClass(13,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
- AddPlayerClass(16,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
- AddPlayerClass(23,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
- AddPlayerClass(24,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
- AddPlayerClass(26,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
- AddPlayerClass(29,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
- AddPlayerClass(47,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
- AddPlayerClass(66,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
- AddPlayerClass(103,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
- AddPlayerClass(105,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
- AddPlayerClass(107,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
- AddPlayerClass(123,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
- AddPlayerClass(174,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
- AddPlayerClass(217,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
- AddPlayerClass(270,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
- AddPlayerClass(299,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
- AddPlayerClass(298,2024.2327,-1411.6798,16.9922,178.6999,0,0,0,0,0,0); //
- //Army Base (LS)
- ArmyVehicle[0] = AddStaticVehicleEx(520,1803.13793945,-2406.17114258,14.47426319,217.99993896,-1,-1,900); //Hydra
- ArmyVehicle[1] = AddStaticVehicleEx(520,1838.41601562,-2406.30737305,14.47426319,142.00378418,-1,-1,900); //Hydra
- ArmyVehicle[2] = AddStaticVehicleEx(520,1818.97277832,-2404.87744141,14.47426319,180.00000000,-1,-1,900); //Hydra
- ArmyVehicle[3] = AddStaticVehicleEx(425,1740.16857910,-2420.96972656,14.40568733,179.99993896,-1,-1,900); //Hunter
- ArmyVehicle[4] = AddStaticVehicleEx(425,1724.65991211,-2404.00146484,14.40568733,179.99450684,-1,-1,900); //Hunter
- ArmyVehicle[5] = AddStaticVehicleEx(425,1710.71911621,-2422.50415039,14.40568733,179.99450684,-1,-1,900); //Hunter
- ArmyVehicle[6] = AddStaticVehicleEx(470,1865.78295898,-2442.98876953,13.66469955,298.00000000,-1,-1,900); //Patriot
- ArmyVehicle[7] = AddStaticVehicleEx(470,1865.26049805,-2438.05322266,13.66469955,297.99865723,-1,-1,900); //Patriot
- ArmyVehicle[8] = AddStaticVehicleEx(470,1864.10070801,-2432.87500000,13.66469955,297.99865723,-1,-1,900); //Patriot
- CreateObject(3491,1820.85437012,-2420.75170898,20.52900505,0.00000000,0.00000000,0.00000000); //object(vegass_hanger2) (1)
- CreateObject(8253,1868.85485840,-2435.81982422,16.48247528,0.00000000,0.00000000,0.00000000); //object(pltschlhnger01_lvs) (1)
- //LSPD
- CreateObject(6976,1561.19323730,-1636.00317383,10.00000000,0.00000000,0.00000000,0.00000000); //object(shamheliprt04) (1) (STAIRS)
- CreateObject(6976,1578.89599609,-1642.44042969,18.60000038,0.00000000,0.00000000,270.00000000); //object(shamheliprt04) (2) (STAIRS)
- //LSPD Cars
- LSPD[0] = AddStaticVehicle(596,1538.6554,-1645.4680,5.6120,179.5933,0,1); // LSPD
- LSPD[1] = AddStaticVehicle(596,1530.4604,-1645.3107,5.6124,177.7601,0,1); // LSPD
- LSPD[2] = AddStaticVehicle(523,1546.4139,-1654.8896,5.4586,270.2880,0,0); // HPV
- LSPD[3] = AddStaticVehicle(596,1545.1909,-1680.1108,5.6098,268.8843,0,1); // LSPD
- LSPD[4] = AddStaticVehicle(596,1529.0856,-1683.8678,5.6119,90.2738,0,1); // LSPD
- LSPD[5] = AddStaticVehicle(411,1558.6659,-1710.4635,5.4839,180.4114,0,0); // undecover make black
- LSPD[6] = AddStaticVehicle(427,1587.5168,-1709.7181,6.0220,359.9041,0,1); // Enforcer
- LSPD[7] = AddStaticVehicle(490,1574.2781,-1709.8967,6.0200,0.7341,0,0); // FBI Rancher
- LSPD[8] = AddStaticVehicle(490,1578.5839,-1709.9985,6.0172,358.9602,0,0); // FBI Rancher
- LSPD[9] = AddStaticVehicle(596,1570.5350,-1710.4485,5.6105,179.5916,0,1); // LDPS
- LSPD[10] = AddStaticVehicle(596,1566.5233,-1710.3140,5.6121,179.4903,0,1); // LSPD
- LSPD[11] = AddStaticVehicle(596,1601.7191,-1704.3359,5.6108,268.6521,0,1); // LSPD
- LSPD[12] = AddStaticVehicle(402,1601.2964,-1692.0686,5.7223,90.0956,13,13); // Undercover FBI Car
- LSPD[13] = AddStaticVehicle(402,1601.1915,-1683.9227,5.7224,90.0514,22,22); // FBI Buffalo
- LSPD[14] = AddStaticVehicle(405,1600.9851,-1687.9960,5.7656,90.2003,24,1); // FBI Sentinel
- LSPD[15] = AddStaticVehicle(596,1544.2131,-1671.8967,5.6124,89.8306,0,1); // LSPD
- LSPD[16] = AddStaticVehicle(411,1544.4808,-1663.0748,5.4839,90.6810,6,6); // A-R Unit
- LSPD[17] = AddStaticVehicle(522,1543.5620,-1667.8304,5.4611,87.7870,3,8); // A-R Unit
- LSPD[18] = AddStaticVehicle(415,1544.1481,-1659.2570,5.6624,89.9421,25,1); // Cheetah
- LSPD[19] = AddStaticVehicle(497,1563.8291,-1647.2522,28.5786,87.9044,0,1); // LSPD Mav
- LSPD[20] = AddStaticVehicle(596,1535.8528,-1668.1055,13.1040,359.9227,0,1); // LSPD
- //Others
- AddStaticVehicle(592,1442.0022,-2593.0347,14.7432,269.9402,1,1); // Andromada
- AddStaticVehicle(577,1442.0778,-2493.6089,13.4701,270.2746,8,16); // AT-400
- AddStaticVehicle(560,1362.9446,-1489.2616,13.2517,70.0243,9,39); // Street car
- AddStaticVehicle(400,441.1136,-1296.9650,15.2771,33.7294,123,1); //
- AddStaticVehicle(402,661.2392,-1263.4077,13.2974,180.4469,13,13); //
- AddStaticVehicle(404,727.5649,-1198.1158,18.9327,332.0143,119,50); //
- AddStaticVehicle(405,847.8672,-1153.2953,23.5313,270.5562,24,1); //
- AddStaticVehicle(410,592.4474,-1298.6516,14.3986,195.8924,9,1); //
- AddStaticVehicle(411,599.8068,-1296.5234,14.4330,198.7522,0,0); //
- AddStaticVehicle(412,295.3885,-1419.2489,13.7880,292.8682,10,8); //
- AddStaticVehicle(415,216.1153,-1431.7924,13.0211,134.5198,25,1); //
- AddStaticVehicle(419,198.1319,-1438.1703,12.8807,318.4540,47,76); //
- AddStaticVehicle(421,317.9250,-1809.6421,4.3541,180.2348,13,1); //
- AddStaticVehicle(422,337.3482,-1809.7214,4.4771,358.7836,97,25); //
- AddStaticVehicle(424,324.6066,-1788.1311,4.5653,0.6627,2,2); //
- AddStaticVehicle(411,393.5659,-1890.3940,1.1139,274.5846,85,85); //
- AddStaticVehicle(468,463.5244,-1823.6342,5.1035,268.1549,46,46); //
- AddStaticVehicle(474,495.4467,-1767.6510,5.3166,269.9758,81,1); //
- AddStaticVehicle(477,665.8559,-1886.1223,3.6893,266.2523,94,1); //
- AddStaticVehicle(481,682.4985,-1852.5225,5.4641,2.4120,3,3); //
- AddStaticVehicle(521,822.7520,-1699.5719,13.1165,359.5197,75,13); //
- AddStaticVehicle(526,686.4927,-1568.9868,14.0089,356.7253,9,39); //
- AddStaticVehicle(525,701.6587,-1571.7688,14.1193,180.8628,18,20); //
- AddStaticVehicle(446,719.8644,-1636.4723,-0.4465,357.0965,1,5); //
- AddStaticVehicle(448,783.1911,-1637.3964,12.9824,91.3249,3,6); //
- AddStaticVehicle(455,782.2476,-1605.8896,13.8189,358.5023,84,58); //
- AddStaticVehicle(457,838.4237,-1552.1782,13.0880,356.4117,2,1); //
- AddStaticVehicle(458,872.1634,-1505.1324,12.9550,89.3787,101,1); //
- AddStaticVehicle(461,815.1939,-1501.1245,12.6237,180.6368,37,1); //
- AddStaticVehicle(467,810.4442,-1448.8104,12.8154,87.3158,58,8); //
- AddStaticVehicle(560,869.7569,-1657.6364,13.2514,358.3217,17,1); //
- AddStaticVehicle(562,888.2688,-1669.5073,13.2046,179.9898,35,1); //
- AddStaticVehicle(565,874.4271,-1678.0381,13.1739,179.3548,42,42); //
- AddStaticVehicle(400,2247.7559,-1924.4431,13.6392,179.6043,123,1); //
- AddStaticVehicle(404,2283.6428,-1931.3055,12.7527,180.8797,119,50); //
- AddStaticVehicle(408,2311.1282,-1994.4446,14.1198,357.9063,26,26); //
- AddStaticVehicle(410,2495.6108,-1986.2244,13.0924,0.1197,9,1); //
- AddStaticVehicle(412,2452.2275,-2021.9824,13.3828,178.2901,10,8); //
- AddStaticVehicle(419,2395.0791,-2074.6975,13.3144,88.8546,47,76); //
- AddStaticVehicle(422,2444.3772,-2114.7273,13.5293,358.7563,97,25); //
- AddStaticVehicle(403,2488.6995,-2106.0339,14.1311,92.4613,30,1); //
- AddStaticVehicle(403,2489.3936,-2114.3250,14.1531,91.9732,28,1); //
- AddStaticVehicle(420,2504.0386,-1755.2026,13.1758,179.1026,6,1); //
- AddStaticVehicle(600,2494.6516,-1755.5043,13.1951,181.4729,32,8); //
- AddStaticVehicle(602,2498.2732,-1681.7469,13.1667,285.0013,69,1); //
- AddStaticVehicle(604,2508.1958,-1666.0525,13.1416,10.7108,68,76); //
- AddStaticVehicle(605,2484.1882,-1655.1521,13.1367,88.7774,32,8); //
- AddStaticVehicle(405,2278.9871,-1683.5277,14.0112,178.6860,24,1); //
- AddStaticVehicle(409,2063.2822,-1636.4720,13.3467,271.9295,1,1); //
- AddStaticVehicle(410,2051.8411,-1694.6627,13.2074,91.0224,36,1); //
- AddStaticVehicle(411,2122.1047,-1783.8508,12.9809,358.5475,0,0); //
- AddStaticVehicle(413,2100.7090,-1782.8505,13.4707,174.5412,105,1); //
- AddStaticVehicle(415,2062.4036,-1904.6412,13.3209,359.7023,40,1); //
- AddStaticVehicle(418,2062.2371,-1919.5068,13.6401,179.3507,108,108); //
- AddStaticVehicle(420,2339.9822,-2086.9375,13.3255,359.0136,6,1); //
- AddStaticVehicle(421,2086.5957,-2090.7112,13.4292,177.0427,25,1); //
- AddStaticVehicle(422,1773.1512,-2082.2983,13.5359,359.3152,111,31); //
- AddStaticVehicle(424,1745.4312,-2127.2371,13.3277,358.4977,2,2); //
- AddStaticVehicle(426,1699.6639,-2093.4856,13.2895,359.8446,42,42); //
- AddStaticVehicle(429,1762.8582,-2117.9116,13.1451,269.7401,13,13); //
- AddStaticVehicle(440,1261.2045,-1796.3574,13.5329,358.9323,32,32); //
- AddStaticVehicle(444,1277.7642,-1795.6394,13.7704,357.0524,32,42); //
- AddStaticVehicle(445,1135.2518,-1698.7494,13.6596,180.5404,35,35); //
- AddStaticVehicle(451,1066.1433,-1357.3958,13.0897,0.4214,125,125); //
- AddStaticVehicle(506,1219.2655,-1410.6830,12.9831,270.5204,6,6); //
- AddStaticVehicle(416,1181.3505,-1338.5973,13.8270,268.4014,1,3); // Ambulance
- AddStaticVehicle(420,1191.4980,-1325.6393,13.1773,179.8307,6,1); //
- AddStaticVehicle(420,1191.6094,-1346.1454,13.1793,179.2798,6,1); //
- AddStaticVehicle(428,1422.0940,-1344.5942,13.6948,1.6520,4,75); //
- AddStaticVehicle(439,1286.0500,-1137.3101,23.5523,90.4965,8,17); //
- AddStaticVehicle(444,1210.6799,-1100.1733,25.6637,183.2065,32,66); //
- //Airport (LS)
- AddStaticVehicleEx(519,1602.49316406,-2623.76196289,14.54694748,0.00000000,-1,-1,900); //Shamal
- AddStaticVehicleEx(519,1628.05786133,-2624.20629883,14.54694748,0.00000000,-1,-1,900); //Shamal
- AddStaticVehicleEx(519,1651.77563477,-2624.23461914,14.54694748,0.00000000,-1,-1,900); //Shamal
- AddStaticVehicleEx(519,1675.72583008,-2624.73730469,14.54694748,0.00000000,-1,-1,900); //Shamal
- AddStaticVehicleEx(519,1699.00317383,-2625.00097656,14.54694748,0.00000000,-1,-1,900); //Shamal
- AddStaticVehicleEx(593,1741.92358398,-2632.72705078,14.09705734,0.00000000,-1,-1,900); //Dodo
- AddStaticVehicleEx(593,1768.04223633,-2632.86157227,14.09705734,0.00000000,-1,-1,900); //Dodo
- AddStaticVehicleEx(513,1808.86926270,-2632.50317383,14.33163166,0.00000000,-1,-1,900); //Stunt
- AddStaticVehicleEx(513,1822.12475586,-2632.54833984,14.33163166,0.00000000,-1,-1,900); //Stunt
- AddStaticVehicleEx(513,1836.28283691,-2632.23925781,14.33163166,0.00000000,-1,-1,900); //Stunt
- AddStaticVehicleEx(417,1544.89050293,-2446.11743164,13.55468750,214.00000000,-1,-1,900); //Leviathan
- AddStaticVehicleEx(417,1564.89416504,-2443.75463867,13.55468750,214.00000000,-1,-1,900); //Leviathan
- AddStaticVehicleEx(487,1592.35961914,-2451.34326172,13.81968784,219.99993896,-1,-1,900); //Maverick
- AddStaticVehicleEx(487,1610.40087891,-2449.77563477,13.81968784,219.99572754,-1,-1,900); //Maverick
- AddStaticVehicle(560,1973.9471,-1728.3358,15.6740,268.8695,9,39); //
- AddStaticVehicle(562,1975.8925,-1692.5078,15.6274,89.3488,35,1); //
- AddStaticVehicle(565,2390.8472,-1493.9200,23.4575,90.1655,42,42); //
- AddStaticVehicle(566,2468.6011,-1545.9546,23.7828,91.7723,30,8); //
- AddStaticVehicle(571,2490.7092,-1558.2249,23.3647,274.2814,36,2); //
- AddStaticVehicle(573,2505.7622,-1535.7524,24.2679,177.8382,115,43); //
- AddStaticVehicle(600,2519.7258,-1537.2168,23.2535,356.8831,43,8); //
- AddStaticVehicle(602,2708.7246,-1189.6343,69.1237,268.4034,75,77); //
- AddStaticVehicle(603,2752.9653,-1110.0433,69.4163,0.2933,69,1); //
- AddStaticVehicle(604,2717.6113,-1315.8680,50.8129,179.5339,78,76); //
- AddStaticVehicle(605,2742.7874,-1460.3485,30.1806,358.7147,43,8); //
- AddStaticVehicle(400,2811.1116,-1432.4337,16.3437,3.4675,113,1); //
- AddStaticVehicle(521,2791.8081,-1429.3348,23.7543,87.3197,87,118); //
- AddStaticVehicle(411,2792.7446,-1449.6279,39.6498,90.4645,6,6); //
- AddStaticVehicle(411,2816.9929,-1446.2472,39.6563,269.7231,85,85); //
- AddStaticVehicle(451,2792.7192,-1432.4875,39.7681,87.0277,125,125); //
- AddStaticVehicle(522,2796.3882,-1549.6428,10.4898,90.1214,3,8); //
- AddStaticVehicle(526,2770.5667,-1605.5872,10.6885,90.7724,9,39); //
- AddStaticVehicle(527,2743.4241,-1614.7783,12.3851,357.6433,53,1); //
- AddStaticVehicle(529,2706.7659,-1842.8486,9.1274,338.6997,42,42); //
- AddStaticVehicle(533,2782.6765,-1875.7839,9.5195,178.4063,74,1); //
- AddStaticVehicle(534,2810.4614,-1837.1199,9.6499,267.8372,42,42); //
- AddStaticVehicle(568,2879.9138,-1859.3710,4.4213,325.5295,17,1); //
- AddStaticVehicle(424,2891.4314,-1909.1479,4.1350,181.9928,2,2); //
- AddStaticVehicle(468,2887.1760,-1994.7191,5.4558,178.6574,46,46); //
- AddStaticVehicle(493,2929.1023,-2057.4500,0.2582,87.0258,36,13); //
- AddStaticVehicle(452,2933.3682,-2045.4890,-0.5488,88.5820,1,5); //
- AddStaticVehicle(446,2920.5764,-2057.6011,0.0120,270.6396,1,5); //
- AddStaticVehicle(460,2952.2100,-2052.0940,2.1444,174.3388,1,9); //
- AddStaticVehicle(462,2740.0894,-1942.7235,13.1451,92.7067,13,13); //
- AddStaticVehicle(463,2749.6504,-2104.8103,11.5784,265.7299,84,84); //
- AddStaticVehicle(560,1928.6273,-2141.2437,13.2678,0.2657,21,1); //
- AddStaticVehicle(561,1946.8700,-2123.8020,13.3616,90.2954,8,17); //
- AddStaticVehicle(567,1798.6418,-2050.0444,13.4370,270.9849,88,64); //
- AddStaticVehicle(498,1751.4166,-2059.3850,13.7033,181.3239,13,120); //
- AddStaticVehicle(578,1773.9139,-2023.2332,14.6891,272.4109,1,1); //
- AddStaticVehicle(411,1479.6533,-1843.8639,13.1404,267.7712,56,56); //
- AddStaticVehicle(414,1476.0985,-1498.8483,13.6429,89.7816,28,1); //
- AddStaticVehicle(415,1479.3143,-1237.6947,13.8485,269.8049,20,1); //
- AddStaticVehicle(418,1330.8606,-1061.7308,28.6767,88.7811,119,119); //
- AddStaticVehicle(409,1276.3948,-1381.4437,13.0138,178.8206,1,1); //
- AddStaticVehicle(410,1282.5106,-1295.3256,13.0236,357.6100,36,1); //
- AddStaticVehicle(486,1242.0427,-1265.8451,13.6237,92.8921,1,1); //
- AddStaticVehicle(406,1268.8685,-1252.3369,15.1707,107.3903,1,1); //
- AddStaticVehicle(560,1059.4990,-1136.5386,23.4450,86.6929,56,29); //
- AddStaticVehicle(411,1056.4602,-1032.3748,31.6340,89.9467,1,1); //
- AddStaticVehicle(445,1028.3601,-1054.9408,31.5363,180.4680,37,37); //
- AddStaticVehicle(448,952.6252,-912.5894,45.3611,2.9908,3,6); //
- AddStaticVehicle(455,884.6342,-1137.4799,24.1322,90.4818,84,58); //
- AddStaticVehicle(456,851.4206,-1302.4886,13.7775,181.9248,91,63); //
- AddStaticVehicle(522,1050.4155,-1289.0911,13.0510,179.1246,39,106); //
- AddStaticVehicle(527,1014.6523,-1369.4447,12.8260,271.7850,75,1); //
- AddStaticVehicle(533,893.9490,-1360.1431,13.5758,269.0062,77,1); //
- AddStaticVehicle(535,738.0388,-1436.0945,13.3012,271.7214,28,1); //
- AddStaticVehicle(536,480.0226,-1516.8356,19.9839,184.6269,12,1); //
- AddStaticVehicle(540,544.4927,-1508.8596,14.2423,359.3493,42,42); //
- AddStaticVehicle(541,338.3979,-1607.2764,32.6801,0.8414,58,8); //
- AddStaticVehicle(543,784.3918,-820.5186,68.7186,194.3683,32,8); //
- AddStaticVehicle(545,812.9794,-768.5654,76.4932,104.2797,47,1); //
- AddStaticVehicle(546,1007.1812,-663.4985,120.8698,213.7551,78,38); //
- AddStaticVehicle(549,1361.4869,-620.4485,108.8300,104.8417,72,39); //
- AddStaticVehicle(572,1475.3203,-702.3226,92.4138,269.4503,116,1); //
- AddStaticVehicle(560,1530.3494,-812.9666,71.6773,270.7061,56,29); //
- AddStaticVehicle(561,1464.1514,-902.0443,54.6498,179.2653,54,38); //
- AddStaticVehicle(411,1172.2279,-881.3878,42.9081,97.9175,53,53); //
- AddStaticVehicle(600,1114.9319,-926.8351,42.8933,89.4798,32,8); //
- AddStaticVehicle(603,1095.8495,-869.3295,43.0182,89.3896,69,1); //
- AddStaticVehicle(400,980.6792,-904.2131,42.5927,183.5705,123,1); //
- AddStaticVehicle(404,834.5959,-925.2833,54.9829,60.9081,123,92); //
- AddStaticVehicle(405,833.2117,-860.1843,69.7675,19.6952,36,1); //
- AddStaticVehicle(410,796.7640,-843.6369,60.2915,11.2662,9,1); //
- AddStaticVehicleEx(405,2404.10546875,-1397.28955078,24.05439949,0.00000000,-1,-1,900); //Sentinel
- AddStaticVehicleEx(409,2357.95068359,-1363.88928223,23.94581604,0.00000000,-1,-1,900); //Stretch
- AddStaticVehicleEx(540,2386.35742188,-1351.78100586,24.45530510,0.00000000,-1,-1,900); //Vincent
- AddStaticVehicleEx(561,2376.14428711,-1320.61645508,23.92399979,0.00000000,-1,-1,900); //Stratum
- AddStaticVehicleEx(463,2348.61474609,-1263.26757812,22.12603378,272.00000000,-1,-1,900); //Freeway
- AddStaticVehicleEx(422,2347.32519531,-1252.51977539,22.57999992,270.00000000,-1,-1,900); //Bobcat
- AddStaticVehicleEx(554,2346.17163086,-1221.64086914,22.69499969,0.00000000,-1,-1,900); //Yosemite
- AddStaticVehicleEx(514,2411.67993164,-1228.56323242,24.99980736,0.00000000,-1,-1,900); //Tanker
- AddStaticVehicleEx(411,2428.06982422,-1227.90234375,24.91224670,0.00000000,-1,-1,900); //Infernus
- AddStaticVehicleEx(541,2471.79931641,-1251.54309082,26.46301270,89.99993896,-1,-1,900); //Bullet
- AddStaticVehicleEx(555,2506.51904297,-1277.77490234,34.63193512,179.99993896,-1,-1,900); //Windsor
- AddStaticVehicleEx(602,2516.76196289,-1297.55761719,34.75156403,0.00000000,-1,-1,900); //Alpha
- AddStaticVehicleEx(401,2506.51733398,-1366.55187988,28.39906502,177.99993896,-1,-1,900); //Bravura
- AddStaticVehicleEx(491,2517.00708008,-1393.34033203,28.43826675,0.00000000,-1,-1,900); //Virgo
- AddStaticVehicleEx(527,2683.12133789,-1429.45336914,30.29467773,0.00000000,-1,-1,900); //Cadrona
- AddStaticVehicleEx(533,2623.14672852,-1261.46813965,48.92050934,270.50000000,-1,-1,900); //Feltzer
- AddStaticVehicleEx(545,2137.59619141,-1283.52319336,24.75648880,0.00000000,-1,-1,900); //Hustler
- AddStaticVehicleEx(475,2196.45190430,-1286.17517090,24.09451103,0.00000000,-1,-1,900); //Sabre
- AddStaticVehicleEx(412,2256.12939453,-1287.19006348,24.53050232,0.00000000,-1,-1,900); //Voodoo
- AddStaticVehicleEx(518,2140.97241211,-1315.43017578,24.28842545,0.00000000,-1,-1,900); //Buccaneer
- AddStaticVehicleEx(536,2148.44506836,-1199.37609863,23.72622490,270.00000000,-1,-1,900); //Blade
- AddStaticVehicle(416,2037.1030,-1426.9613,17.0979,179.7931,1,3); // Ambulance
- AddStaticVehicle(416,2026.4424,-1409.2092,17.0986,90.3309,1,3); // Ambulance
- AddStaticVehicle(481,1944.9799,-1423.3868,9.8702,99.7650,3,3); // bmx
- AddStaticVehicle(522,1889.6011,-1433.0640,9.9852,208.0781,36,105); // NRG
- AddStaticVehicle(471,1908.2617,-1388.4788,9.8670,60.9329,103,111); // Quatd
- AddStaticVehicle(560,1842.8820,-1309.2706,13.0958,179.4665,37,0); // Sultan
- AddStaticVehicle(481,1907.0743,-1220.4691,17.3505,326.9318,6,6); // BMX
- AddStaticVehicle(411,1910.5283,-1123.9529,24.9005,1.0823,1,1); // Infernus
- AddStaticVehicle(506,1989.7363,-1119.2100,26.5294,88.4550,7,7); // Super GT
- AddStaticVehicle(491,2086.0562,-1140.2959,24.7930,268.7915,64,72); // Virgo
- AddStaticVehicle(492,2161.5000,-1177.9441,23.6004,270.3815,77,26); // Greenwood
- AddStaticVehicle(496,2148.7170,-1148.0298,24.1607,88.0711,66,72); //
- AddStaticVehicle(471,2309.2771,-1052.1664,49.9301,342.6730,74,91); //
- AddStaticVehicle(600,2344.2231,-1059.2657,52.8345,289.9105,83,13); //
- AddStaticVehicle(478,2385.0522,-1029.8955,53.6107,316.6493,66,1); //
- AddStaticVehicle(479,2429.7053,-1019.3953,53.9940,193.6098,59,36); //
- AddStaticVehicle(482,2452.3965,-1050.4058,59.7480,356.6701,48,48); //
- AddStaticVehicle(483,2570.6553,-1030.9257,69.5739,357.5074,1,31); //
- AddStaticVehicle(489,2597.9280,-1062.3071,69.7218,1.1586,14,123); //
- AddStaticVehicle(491,1622.1725,-1094.0273,23.6663,90.7516,52,66); //
- AddStaticVehicle(561,1632.4114,-1013.2068,23.7127,341.4184,65,79); //
- AddStaticVehicle(562,1685.1648,-1035.7760,23.5654,179.1545,113,1); //
- AddStaticVehicle(566,1692.5903,-1084.7720,23.6853,180.2076,83,1); //
- AddStaticVehicle(515,1651.2184,-1886.2770,14.5733,268.2462,24,77); //
- AddStaticVehicle(518,1838.0511,-1871.3605,13.0550,179.1560,9,39); //
- AddStaticVehicle(521,1804.8612,-1930.3901,12.9552,178.1389,87,118); //
- AddStaticVehicle(492,1780.0067,-1932.6024,13.1682,181.3466,28,56); //
- AddStaticVehicle(496,1804.9237,-1694.1798,13.2584,5.0938,37,19); //
- AddStaticVehicle(494,1782.0830,-1702.2521,13.4023,1.4439,42,33); //
- AddStaticVehicle(499,1609.2104,-1669.8256,13.5386,0.9787,109,32); //
- //Special Cars (House cars/Reg/Admins)
- AdminCar1 = AddStaticVehicle(560,969.6414,-760.4233,111.0436,278.1985,41,29); // Admin Sultan
- AdminCar2 = AddStaticVehicle(522,962.8135,-764.6016,109.7994,275.8972,3,8); // Admin NRG
- House4Car1 = AddStaticVehicle(411,172.0054,-1340.0504,69.4026,356.1563,6,6); // House4car
- House4Car2 = AddStaticVehicle(536,166.2974,-1340.4438,69.4719,358.9040,9,1); // House4Car
- House6Car1 = AddStaticVehicle(560,979.3285,-830.7790,95.3591,207.9206,21,1); // house6 car
- House7Car1 = AddStaticVehicle(445,1088.6074,-641.3738,113.0374,271.2308,39,39); // House 7 car
- for(new v =0; v<MAX_VEHICLES; v ++)
- {
- //VehicleInfo[v][bought] = 999;
- VehicleInfo[v][bomb] = 0;
- }
- return 1;
- }
- public OnGameModeExit()
- {
- ResetGVars();
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid,2025.0773,-1423.5450,16.9922);
- SetPlayerCameraPos(playerid,2016.2635,-1432.2692,13.5458);
- SetPlayerCameraLookAt(playerid,2025.0773,-1423.5450,16.9922);
- SetPlayerFacingAngle(playerid, 135.4);
- SetPlayerTeamFromClass(playerid, classid);
- SetPlayerColor(playerid, COLOR_DEADCONNECT);
- SetPVarInt(playerid, "Spawned", 0);
- switch(classid)
- {
- case 0, 1, 2, 3, 4, 5:
- {
- GameTextForPlayer(playerid, "~b~Police officer", 3000, 5);
- }
- case 6:
- {
- GameTextForPlayer(playerid, "~p~Los Santos Army", 3000, 5);
- }
- case 7:
- {
- GameTextForPlayer(playerid, "~b~FBI official", 3000, 5);
- }
- case 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29:
- {
- GameTextForPlayer(playerid, "~w~Civilian ~n~ Choose your job when you spawn", 3000, 5);
- }
- }
- return 1;
- }
- SetPlayerTeamFromClass(playerid, classid)
- {
- if(classid == 0 || classid == 1 || classid == 2 || classid == 3 || classid == 4 || classid == 5)
- {
- gTeam[playerid] = Team_Cop;
- }
- else if(classid == 6)
- {
- gTeam[playerid] = Team_Army;
- }
- else if(classid == 7)
- {
- gTeam[playerid] = Team_FBI;
- }
- else if(classid >= 8)
- {
- gTeam[playerid] = Team_Civi;
- }
- }
- public SetPlayerToTeamColor(playerid)
- {
- if(gTeam[playerid] == Team_Cop)
- {
- SetPlayerColor(playerid, COLOR_BLUE);
- }
- if(gTeam[playerid] == Team_Army)
- {
- SetPlayerColor(playerid, COLOR_PURPLE);
- }
- if(gTeam[playerid] == Team_FBI)
- {
- SetPlayerColor(playerid, COLOR_BLUE);
- }
- if(gTeam[playerid] >= 5)
- {
- SetPlayerColor(playerid, COLOR_WHITE);
- }
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- //xObjects
- for(new i = 0; i < sizeof(Objects); i++) Player[playerid][view][i] = false; /////////xobj
- zoneupdates[playerid] =1;
- GameTextForPlayer(playerid, "~b~COPS ~n~ ~p~ and ~n~ ~r~ROBBERS", 3000, 5);
- SendClientMessage(playerid, COLOR_BLUE, "Welcome to Cops n Robbers version "VERSION"");
- SendClientMessage(playerid, COLOR_YELLOW, "This script was created by DarkLord.");
- SendClientMessage(playerid, COLOR_RED, "Be sure to read /rules and /pc when you spawn.");
- SendClientMessage(playerid, COLOR_ORANGE, "Login is required to play on this server.");
- new string[200], pIP[16];
- GetPlayerIp(playerid, pIP, 16);
- SetPVarInt(playerid, "Spawned", 0);
- SetPlayerColor(playerid, COLOR_DEADCONNECT);
- format(string, 200, "%s has joined the server.", PlayerInfo(playerid));
- SendClientMessageToAll(COLOR_GREEN, string);
- if(udb_Exists(PlayerName(playerid)))
- {
- SendClientMessage(playerid, COLOR_ERROR, "This player name is taken. Please login.");
- LogPlayer(playerid);
- }
- else if (!udb_Exists(PlayerName(playerid)))
- {
- SendClientMessage(playerid, COLOR_ERROR, "This player name is not registered. Please do so before you spawn.");
- RegisterPlayer(playerid);
- }
- //Map Icons
- SetPlayerMapIcon(playerid, 0, 2174.574951, -2249.029785, 13.303776,42, 0,1); // Bomb shop
- SetPlayerMapIcon(playerid, 1, 2147.854003, -1367.340209, 25.641782, 24, 0,1); // Drug House
- SetPlayerMapIcon(playerid, 2, 2036.381835, -1410.065917, 17.164062,22, 0,1); // LS Hospital
- SetPlayerMapIcon(playerid, 3, 363.430023, -2008.615844, 7.835937, 25, 0,1); // Amusement Park Terrorism
- SetPlayerMapIcon(playerid, 4,1416.219360, -767.366699, 95.786659,25,0,1); // Hollywood sign terrorism
- SetPlayerMapIcon(playerid, 5,1510.626342, -1052.714355, 25.062500,52,0,1); // Bank
- SetPlayerMapIcon(playerid, 6, 1440.395629, -2286.691894, 13.546875, 25, 0, 1); //LS Airport Terrorism
- SetPlayerMapIcon(playerid, 7, -1413.557250, -300.654418, 14.141115, 5, 0, 1); // Airport location
- SetPlayerMapIcon(playerid, 8, 1685.137939, 1448.447631, 10.770167, 5, 0, 1); // Airport Location
- SetPlayerMapIcon(playerid, 9, 1642.319335, -2237.777832, 13.498379, 5, 0, 1); // Airport
- /* Text Draw Stuff */
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- //xObject
- for(new i = 0; i < sizeof(Objects); i++) ////Xobj
- {
- if(Player[playerid][view][i])
- {
- Player[playerid][view][i] = false;
- DestroyPlayerObject(playerid,Player[playerid][objid][i]);
- }
- }
- new string[200];
- PLAYERLIST_authed[playerid]=false;
- switch(reason)
- {
- case 0: format(string, 200, "%s has left the server. (Timeout)", PlayerInfo(playerid));
- case 1: format(string, 200, "%s has left the server. (Left)", PlayerInfo(playerid));
- case 2: format(string, 200, "%s has left the server. (Kicked)", PlayerInfo(playerid));
- }
- SendClientMessageToAll(COLOR_DEADCONNECT, string);
- playerCheckpoint[playerid] =0;
- RemoveVariables(playerid);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- SetPlayerTime(playerid, gametime, 0);
- new string[200];
- format(string, 200, "[SPAWN] %s", PlayerInfo(playerid));
- print(string);
- SetPVarInt(playerid, "Spawned", 1);
- GivePlayerMoney(playerid, GetPVarInt(playerid, "Cash"));
- SetPVarInt(playerid, "Cash", 0);
- SetPlayerWantedLevel(playerid, GetPVarInt(playerid, "WantedLevel"));
- if(GetPVarInt(playerid, "Banned") == 1)
- {
- format(string, sizeof(string), "[DarkyBot] %s banned player name: ban evade", PlayerInfo(playerid));
- SendClientMessageToAll(COLOR_PURPLE, string);
- print(string);
- format(string, sizeof(string), "Player %s has been banned for ban evasion (Banned player name)", PlayerInfo(playerid));
- print(string);
- Ban(playerid);
- return 1;
- }
- SetPlayerWantedLevel(playerid, GetPVarInt(playerid, "WantedLevel"));
- SetPlayerToTeamColor(playerid);
- if(gTeam[playerid] == Team_Cop)
- {
- SendClientMessage(playerid, COLOR_DODGERBLUE, "**Police Officer**");
- SendClientMessage(playerid, COLOR_DODGERBLUE, "Type /commands for your available commands.");
- SendClientMessage(playerid, COLOR_DODGERBLUE, "Your job is to arrest wanted suspects in Los Santos and surrounding areas.");
- SendClientMessage(playerid, COLOR_DODGERBLUE, "Read /pc to find out which people you can and cannot shoot.");
- GivePlayerWeapon(playerid, 3, 1);
- GivePlayerWeapon(playerid, 22, 100);
- GivePlayerWeapon(playerid, 29, 500);
- GivePlayerWeapon(playerid, 33, 10);
- SetPlayerArmour(playerid, 100.0);
- SetPVarInt(playerid, "CopRadio", 1);
- SetPlayerPos(playerid, 1569.5902,-1694.6520,5.8906);
- SetCameraBehindPlayer(playerid);
- }
- if(gTeam[playerid] == Team_FBI)
- {
- SendClientMessage(playerid, COLOR_DODGERBLUE, "**FBI Agent**");
- SendClientMessage(playerid, COLOR_DODGERBLUE, "Type /commands for your available commands.");
- SendClientMessage(playerid, COLOR_DODGERBLUE, "Your job is to arrest and catch criminals in Los Santos and nearby areas.");
- SendClientMessage(playerid, COLOR_DODGERBLUE, "Read /pc to find out which people you can and cannot shoot.");
- GivePlayerWeapon(playerid, 3, 1);
- GivePlayerWeapon(playerid, 22, 100);
- GivePlayerWeapon(playerid, 29, 500);
- GivePlayerWeapon(playerid, 31, 100);
- SetPlayerArmour(playerid, 100.0);
- SetPVarInt(playerid, "CopRadio", 1);
- SetPlayerPos(playerid, 1569.5902,-1694.6520,5.8906);
- SetCameraBehindPlayer(playerid);
- }
- if(gTeam[playerid] == Team_Army)
- {
- SendClientMessage(playerid, COLOR_PURPLE, "**Los Santos Army**");
- SendClientMessage(playerid, COLOR_PURPLE, "Type /commands for your commands");
- SendClientMessage(playerid, COLOR_PURPLE, "Your job is to take down MOST WANTED criminals by any means necessary.");
- SendClientMessage(playerid, COLOR_RED, "YOU CANNOT SHOOT AT OTHER ARMY, POLICE, OR NON MOST WANTED PLAYERS.");
- SendClientMessage(playerid, COLOR_PURPLE, "Type Stay away from red players or die with them before starting playing.");
- GivePlayerWeapon(playerid, 24, 50);
- GivePlayerWeapon(playerid, 31, 500);
- GivePlayerWeapon(playerid, 34, 20);
- GivePlayerWeapon(playerid, 26, 25);
- SetPlayerArmour(playerid, 100.0);
- SetPVarInt(playerid, "CopRadio", 1);
- SetPlayerPos(playerid,1767.4132,-2435.5422,13.5547);
- SetCameraBehindPlayer(playerid);
- }
- if(gTeam[playerid] == Team_Civi || gTeam[playerid] == Team_Rape || gTeam[playerid] == Team_Terror || gTeam[playerid] == Team_Steal)
- {
- SelectSkill(playerid);
- new rnd = random(sizeof(SpawnPoints));
- SetPlayerPos(playerid, SpawnPoints[rnd][0], SpawnPoints[rnd][1], SpawnPoints[rnd][2]);
- SetPlayerFacingAngle(playerid, SpawnPoints[rnd][3]);
- SetCameraBehindPlayer(playerid);
- }
- if(GetPVarInt(playerid, "JailTime") > 90)
- {
- new rnd = random(sizeof(PrisonSpawn)); SetPlayerPos(playerid, PrisonSpawn[rnd][0], PrisonSpawn[rnd][1], PrisonSpawn[rnd][2]);
- SetPlayerInterior(playerid, 10);
- format(string, sizeof(string), "[AUTO JAIL] %s (LEFT SERVER WHILE IN JAIL)",PlayerInfo(playerid));
- print(string);
- SendClientMessageToAll(COLOR_RED, string);
- SetPVarInt(playerid, "Jailed", 90);
- }
- SetTimer("SetPlayerTeamFromNoTeam", 1000*15, 0);
- return 1;
- }
- public SetPlayerTeamFromNoTeam(playerid)
- {
- for(new i = 0; i<MAX_PLAYERS; i ++)
- {
- if(gTeam[i] != Team_Cop && gTeam[i] != Team_FBI && gTeam[i] != Team_Army && gTeam[i] != Team_Rape && gTeam[i] != Team_Terror && gTeam[i] != Team_PrvtMed && gTeam[i] != Team_Steal)
- {
- gTeam[i] = Team_Rape;
- SendClientMessage(i, COLOR_RED, "Your team has been decided by default. You failed to choose a team.");
- return 1;
- }
- return 1;
- }
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- new string[120];
- GivePlayerMoney(playerid, GetPlayerMoney(playerid)+1000);
- SendClientMessage(playerid, COLOR_BLUE, "You have been charged $1,000 for medical services.");
- SetPlayerWantedLevel(playerid, 0);
- if(!IsPlayerConnected(killerid))
- {
- format(string, sizeof(string), "[DEATH] %s killed himself for a odd reason.", PlayerInfo(playerid));
- print(string);
- return 1;
- }
- format(string, sizeof(string), "%s has killed %s (%s)", PlayerInfo(killerid),PlayerInfo(playerid), aWeaponNames[reason]);
- print(string);
- if(gTeam[killerid] == Team_Cop || gTeam[killerid] == Team_Army || gTeam[killerid] == Team_FBI)
- {
- if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_Army || gTeam[playerid] == Team_FBI)
- {
- format(string, 120, "[TEAM KILL] %s was killed by %s (%s)", PlayerInfo(playerid), PlayerInfo(killerid), aWeaponNames[reason]);
- print(string);
- DecreaseScore(killerid, 0);
- return 1;
- }
- if(gTeam[playerid] == Team_Civi || gTeam[playerid] == Team_Rape || gTeam[playerid] == Team_Terror || gTeam[playerid] == Team_Steal)
- {
- new pwl = GetPlayerWantedLevel(playerid);
- if(pwl == 0)
- {
- format(string, sizeof(string), "Police Officer %s has taken down innocent civillian %s with deadly force.", PlayerInfo(killerid), PlayerInfo(playerid));
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- print(string);
- DecreaseScore(killerid, 0);
- return 1;
- }
- if(pwl == 1 || pwl == 2)
- {
- format(string, sizeof(string), "Police Officer %s has taken down least wanted player %s with deadly force", PlayerInfo(killerid), PlayerInfo(playerid));
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- print(string);
- DecreaseScore(killerid, 0);
- return 1;
- }
- if(pwl == 3 || pwl == 4 || pwl == 5)
- {
- format(string, sizeof(string), "Police officer %s has taken down wanted suspect %s with deadly force", PlayerInfo(killerid), PlayerInfo(playerid));
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- print(string);
- IncreaseScore(killerid, 1);
- GivePlayerMoney(killerid, 5000);
- return 1;
- }
- if(pwl == 6)
- {
- format(string, sizeof(string), "Police Officer %s has taken down most wanted suspect %s with deadly force", PlayerInfo(killerid), PlayerInfo(playerid));
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- print(string);
- IncreaseScore(killerid, 1);
- GivePlayerMoney(killerid, 5000);
- return 1;
- }
- return 1;
- }
- }
- SetPVarInt(playerid, "HasSTDs", 0);
- SetPVarInt(playerid, "LastVehicle", 0);
- SetPVarInt(playerid, "InEvent", 0);
- SetPVarInt(playerid, "CalledForMedic", 0);
- SetPVarInt(playerid, "IsSick", 0);
- playerCheckpoint[playerid] =0;
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- if(vehicleid == AdminCar1)
- {
- ChangeVehiclePaintjob(AdminCar1, 1);
- AddVehicleComponent(AdminCar1, 1026);
- AddVehicleComponent(AdminCar1, 1027);
- AddVehicleComponent(AdminCar1, 1028);
- AddVehicleComponent(AdminCar1, 1032);
- AddVehicleComponent(AdminCar1, 1141);
- AddVehicleComponent(AdminCar1, 1169);
- }
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- if(strfind(text, "rcon", true) != -1)
- {
- return 0;
- }
- if(strfind(text, "login",true) != -1)
- {
- return 0;
- }
- if(GetPVarInt(playerid, "Muted") == 1)
- {
- SendClientMessage(playerid, COLOR_ERROR, "You are muted. You cannot talk.");
- return 0;
- }
- return 1;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- new engine, lights, alarm, doors, bonnet, boot, objective;
- new vid = GetPlayerVehicleID(playerid);
- GetVehicleParamsEx(vid, engine, lights, alarm, doors, bonnet, boot, objective);
- if(doors == VEHICLE_PARAMS_ON)
- {
- SetVehicleParamsEx(vid, engine, lights, alarm, VEHICLE_PARAMS_OFF, bonnet, boot, objective);
- SendClientMessage(playerid, COLOR_CYAN, "[VEHICLE] The doors have automatically unlocked.");
- return 1;
- }
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- new oname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, oname, sizeof oname);
- if(newstate == PLAYER_STATE_DRIVER)
- {
- if (IsArmyVehicle(GetPlayerVehicleID(playerid))) {
- if(gTeam[playerid] !=Team_Army)
- {
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, COLOR_ERROR, "You are not an Army official. You cannot drive/fly an army vehicle.");
- return 1;
- }
- }
- if(GetPlayerVehicleID(playerid) == House4Car1 || GetPlayerVehicleID(playerid) == House4Car2)
- {
- if(!strcmp(House_Four_Owner, oname, true))
- {
- SendClientMessage(playerid, COLOR_GREY, "Welcome to your vehicle!");
- }
- else {
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, COLOR_ERROR, "This isn't your vehicle. You cannot drive it.");
- return 1;
- }
- }
- if(GetPlayerVehicleID(playerid) == House7Car1)
- {
- if(!strcmp(House_Seven_Owner, oname, true))
- {
- SendClientMessage(playerid, COLOR_GREY, "Welcome to your vehicle!");
- }
- else {
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, COLOR_ERROR, "This isn't your vehicle. You cannot drive it.");
- return 1;
- }
- }
- if(GetPlayerVehicleID(playerid) == House6Car1)
- {
- if(strcmp(House_Six_Owner, oname,true))
- {
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, COLOR_ERROR, "This isn't your vehicle. You cannot drive it.");
- return 1;
- }
- SendClientMessage(playerid, COLOR_GREY, "Welcome to your vehicle!");
- }
- if (IsLSPDVehicle(GetPlayerVehicleID(playerid))) {
- if(gTeam[playerid] != Team_Cop && gTeam[playerid] != Team_Cop && gTeam[playerid] != Team_FBI)
- {
- new string[120];
- format(string, 120, "[CAR THEFT] %s has stolen a police vehicle.", PlayerInfo(playerid));
- SendCopMessage(string);
- format(string, 120, "Type /radiooff to turn off your police radio.");
- SendCopMessage(string);
- IncreaseWantedLevel(playerid, 2);
- }
- }
- if(GetPlayerVehicleID(playerid) == AdminCar1 || GetPlayerVehicleID(playerid) == AdminCar2)
- {
- if(GetPVarInt(playerid, "AdminLevel") == 0)
- {
- SendClientMessage(playerid, COLOR_ADMIN, "You cannot drive the Admin Vehicle.");
- RemovePlayerFromVehicle(playerid);
- return 1;
- }
- SendClientMessage(playerid, COLOR_ADMIN, "Welcome to your Admin Only Vehicle!");
- }
- }
- if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER) {
- ShowPlayerSpeedo(playerid);
- SetPVarInt(playerid, "LastVehicle", GetPlayerVehicleID(playerid));
- }
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- if(getCheckpointType(playerid) == CP_StoreOne)
- {
- new string[200];
- format(string, 200, "Buy Condom\nBuy a snack\nBuy cigars\nBuy a pipe\nBuy a pack\nAttempt Robbery");
- ShowPlayerDialog(playerid, DIALOG_STOREONE, DIALOG_STYLE_LIST,"69 Cent Store", string, "Okay", "Cancel");
- return 1;
- }
- if(getCheckpointType(playerid) == CP_PrisonEnter)
- {
- SetPlayerInterior(playerid, 10);
- SetPlayerPos(playerid, 242.2959,109.6138,1003.2188);
- SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS PRISON**");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "[PRISON] Welcome to the Los Santos Prison. Don't try anything stupid.");
- return 1;
- }
- if(getCheckpointType(playerid) == CP_PrisonExit)
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 1481.3938,-1763.8625,18.7958);
- SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS PRISON**");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "[PRISON] We hope you enjoyed your stay in the Los Santos Prison.");
- return 1;
- }
- if(getCheckpointType(playerid) == CP_BankEnter)
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 2313.4858,-14.6773,26.7422);
- SendClientMessage(playerid, COLOR_GREY,"**LOS SANTOS BANK**");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "[BANK] We hope you invest your money with us today!");
- return 1;
- }
- if(getCheckpointType(playerid) == CP_BankExit)
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid,1516.7577,-1057.4893,25.0625);
- SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS BANK**");
- SendClientMessage(playerid, COLOR_BLUE, "[BANK] We hope you enjoyed your stay!");
- return 1;
- }
- if(getCheckpointType(playerid) == CP_Bank)
- {
- new string[120];
- SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS BANK**");
- format(string, 120, "Welcome back, %s!", PlayerInfo(playerid));
- SendClientMessage(playerid, COLOR_GREY, string);
- SendClientMessage(playerid, COLOR_GREY, "How may we help you today, sir?");
- SendClientMessage(playerid, COLOR_GREY, "Type /bankstate to find out your bankstate. Type /withdraw (AMOUNT) to take out money. Type /emptypack to deposit your pack.");
- SendClientMessage(playerid, COLOR_GREY, "Type /transfer (ID) (amount) to transfer a player money. Type /deposit (amount) to deposit money.");
- SendClientMessage(playerid, COLOR_GREY, "If that doesn't do for you, type /robbank to attempt robbery.");
- return 1;
- }
- if(getCheckpointType(playerid) == CP_BuyExp)
- {
- SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS BOMB SHOP**");
- if(gTeam[playerid] != Team_Terror) return SendClientMessage(playerid, COLOR_RED, "Sorry, we do not accept your kind.");
- SendClientMessage(playerid, COLOR_BLUE, "If you're intereseted into buying some explosives, type /buyexp");
- return 1;
- }
- if(getCheckpointType(playerid) == CP_AdminHouse)
- {
- SendClientMessage(playerid, COLOR_HOUSE, "|| House ||");
- SendClientMessage(playerid, COLOR_HOUSE, "Welcome to the Admin House.");
- if(GetPVarInt(playerid, "AdminLevel") == 0) return SendClientMessage(playerid, COLOR_ERROR, "You cannot enter the Admin House.");
- SetPlayerPos(playerid, 2320.0864,-1020.3311,1050.2109);
- SetPlayerInterior(playerid, 9);
- SendClientMessage(playerid, COLOR_HOUSE, "Welcome to the Admin House. Please enjoy your stay.");
- return 1;
- }
- if(getCheckpointType(playerid) == CP_AdminHouseExit)
- {
- SendClientMessage(playerid, COLOR_HOUSE, "|| House ||");
- SendClientMessage(playerid, COLOR_HOUSE, "Hope you enjoyed your stay at the Admin House.");
- SetPlayerPos(playerid, 977.4326,-764.2095,112.2005);
- SetPlayerInterior(playerid, 0);
- return 1;
- }
- if(getCheckpointType(playerid) == CP_SexShopEnter)
- {
- SendClientMessage(playerid, COLOR_GREY, "**SOUTH LOS SANTOS SEX SHOP**");
- SendClientMessage(playerid, COLOR_PINK, "Welcome to the South Los Santos Sex Shop! Please go by the counter to statisfy your sexual needs");
- SetPlayerPos(playerid, -100.2078,-20.4230,1000.7188);
- SetPlayerInterior(playerid, 3);
- return 1;
- }
- if(getCheckpointType(playerid) == CP_SexShopExit)
- {
- SendClientMessage(playerid, COLOR_GREY, "**SOUTH LOS SANTOS SEX SHOP**");
- SendClientMessage(playerid, COLOR_PINK, "We hope you enjoyed your time in the Los Santos Sex Shop. We sure did like you :)");
- SetPlayerPos(playerid,1946.5485,-2119.4226,13.5480);
- SetPlayerInterior(playerid, 0);
- return 1;
- }
- if(getCheckpointType(playerid) == CP_SexShopCounter)
- {
- SendClientMessage(playerid, COLOR_GREY, "**SOUTH LOS SANTOS SEX SHOP**");
- SendClientMessage(playerid, COLOR_PINK, "Please choose something from the menu!");
- ShowPlayerDialog(playerid, DIALOG_SEXSHOP, DIALOG_STYLE_LIST, "Welcome to the Sex Shop!", "Buy a dildo\nBuy a porn magazine\nBuy some jelly\nAttempt Robbery", "Okay", "Cancel");
- return 1;
- }
- if(getCheckpointType(playerid) == CP_GasOneEnter)
- {
- SendClientMessage(playerid, COLOR_GREY, "**GAS STATION**");
- SendClientMessage(playerid, COLOR_GREY, "Welcome to the Gas Station! Please go by the counter to buy something.");
- SetPlayerPos(playerid, -25.5497,-183.2443,1003.5469);
- SetPlayerInterior(playerid, 17);
- return 1;
- }
- if(getCheckpointType(playerid) == CP_GasOneCounter)
- {
- SendClientMessage(playerid, COLOR_GREY, "**GAS STATION**");
- SendClientMessage(playerid, COLOR_GREY, "Please choose something from the menu!");
- ShowPlayerDialog(playerid, DIALOG_GASONE, DIALOG_STYLE_LIST, "Welcome to the Gas Station!", "Buy Cigar\nBuy snacks\nBuy Condom\nAttempt Robbery", "Okay", "Cancel");
- return 1;
- }
- if(getCheckpointType(playerid) == CP_GasOneExit)
- {
- SendClientMessage(playerid, COLOR_GREY, "**GAS STATION**");
- SendClientMessage(playerid, COLOR_GREY, "We hope you enjoyed your stay at out gas station!");
- SetPlayerPos(playerid,1932.1599,-1785.1970,13.3828);
- SetPlayerInterior(playerid, 0);
- return 1;
- }
- if(getCheckpointType(playerid) == CP_DanceCounter)
- {
- SendClientMessage(playerid, COLOR_GREY, "**DANCE DANCE REVOLUTION**");
- SendClientMessage(playerid, COLOR_GREEN, "Welcome to Dance Dance Revolution! Select an option on the menu!");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /robshop to attempt robbery.");
- return 1;
- }
- if(getCheckpointType(playerid) == CP_AmmoRob)
- {
- SendClientMessage(playerid, COLOR_GREY, "**CENTRAL LOS SANTOS AMMUNATION**");
- SendClientMessage(playerid, COLOR_RED, "Type /robshop to attempt robbery.");
- return 1;
- }
- if(getCheckpointType(playerid) == CP_BurgerShotRob)
- {
- SendClientMessage(playerid, COLOR_RED, "[BURGER SHOT] Type /robshop to attempt robbery.");
- return 1;
- }
- if(getCheckpointType(playerid) == CP_Hospital)
- {
- SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS HOSPITAL**");
- SendClientMessage(playerid, COLOR_GREY, "Welcome to the L.S Medical Center! We will take care of you like you've never been taken care of before!");
- Hospital(playerid);
- return 1;
- }
- if(getCheckpointType(playerid) == CP_Tatoo)
- {
- SendClientMessage(playerid, COLOR_GREY, "**TATOO PARLOR**");
- SendClientMessage(playerid, COLOR_GREY, "Welcome to the Tatoo Parlor. Type /robshop to attempt robbery.");
- return 1;
- }
- if(getCheckpointType(playerid) == CP_LSHospital)
- {
- SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS HOSPITAL**");
- SendClientMessage(playerid, COLOR_GREY, "Welcome to the L.S Medical Cetner! We will take care of you like you've never been taken care of before!");
- Hospital(playerid);
- return 1;
- }
- if(getCheckpointType(playerid) == CP_PigPenRob)
- {
- SendClientMessage(playerid, COLOR_PINK, "**PIG PEN CLUB**");
- SendClientMessage(playerid, COLOR_GREY, "Type /robshop to attempt robbery.");
- return 1;
- }
- if(getCheckpointType(playerid) == CP_LSAirportBlow)
- {
- SendClientMessage(playerid, COLOR_RED, "Type /blow to blow the Airport up.");
- return 1;
- }
- if(getCheckpointType(playerid) == CP_ParkBlow)
- {
- SendClientMessage(playerid, COLOR_RED, "Type /blow to blow the Amusement park up.");
- return 1;
- }
- if(getCheckpointType(playerid) == CP_RobStore1)
- {
- SendClientMessage(playerid, COLOR_GREY, "**24/7 Gas Station**");
- SendClientMessage(playerid, COLOR_GREY, "Please select something from the menu.");
- StoreRob(playerid);
- return 1;
- }
- if(getCheckpointType(playerid) == CP_VinewoodBlow)
- {
- SendClientMessage(playerid, COLOR_RED, "Type /blow to blow up the Vinewood Sign.");
- return 1;
- }
- if(getCheckpointType(playerid) == CP_BankBlow)
- {
- SendClientMessage(playerid, COLOR_RED, "Type /blow to blow up the Bank.");
- return 1;
- }
- if(getCheckpointType(playerid) == CP_DrugHouse)
- {
- SendClientMessage(playerid, COLOR_GREY, "**DRUG HOUSE**");
- SendClientMessage(playerid, COLOR_GREY, "[DRUG HOUSE] Where your high is sooner than you think!");
- if(gTeam[playerid] != Team_Cop && gTeam[playerid] != Team_Army && gTeam[playerid] != Team_FBI)
- {
- ShowPlayerDialog(playerid, DIALOG_DRUG, DIALOG_STYLE_LIST, "Welcome to the Drug House What would you like to do?", "Buy 10 grams of weed\nBuy 20 grams of weed\nBuy 30 grams of weed\nCollect my cash\nAttempt Robbery", "Okay", "Cancel");
- return 1;
- }
- SendClientMessage(playerid, COLOR_GREY, "Wait, did we say drug house? Umm..... we're not, that's next door.");
- return 1;
- }
- if(getCheckpointType(playerid) == CP_Suburban)
- {
- SendClientMessage(playerid, COLOR_BLUE, "Type /robshop to attempt to rob Suburban.");
- return 1;
- }
- if(getCheckpointType(playerid) == CP_Binco)
- {
- SendClientMessage(playerid, COLOR_BLUE, "Type /robshop to attempt to rob Binco.");
- return 1;
- }
- if(getCheckpointType(playerid) == CP_WellStacked)
- {
- SendClientMessage(playerid, COLOR_BLUE, "Type /robshop to attempt to rob Well Stacked Pizza.");
- return 1;
- }
- if(getCheckpointType(playerid) == CP_Airport || getCheckpointType(playerid) == CP_SFAirport || getCheckpointType(playerid) == CP_LVAirport)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "[AIR PORT] Welcome to the Los Santos Air Port. If you wish to buy a ticket, please do so below.");
- ShowPlayerDialog(playerid, DIALOG_PORT, DIALOG_STYLE_LIST, "Welcome to the Air Port. Select a Destination", "San Fierro\nLas Venturas\nLos Santos", "Okay", "Cancel");
- return 1;
- }
- //Houses below (only)
- new string[120];
- new oname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, oname, sizeof oname);
- if(getCheckpointType(playerid) == CP_HouseOneEnter)
- {
- format(string, 120, "[HOUSE] %s", House_One_Name);
- SendClientMessage(playerid, COLOR_GREY, string);
- if(!strcmp(HOUSE_ONE_OWNER, oname, true))
- {
- SetPlayerInterior(playerid, 3);
- SetPlayerPos(playerid, 234.2559,1190.5710,1080.2578);
- SendClientMessage(playerid, COLOR_GREY, "Welcome back!");
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have the keys to this house.");
- }
- if(getCheckpointType(playerid) == CP_HouseOneExit)
- {
- format(string, 120, "[HOUSE] Hope you enjoyed your stay in %s", House_One_Name);
- SendClientMessage(playerid, COLOR_GREY, string);
- SetPlayerPos(playerid, 2486.2502,-1650.7339,13.4805);
- SetPlayerInterior(playerid, 0);
- SetPlayerFacingAngle(playerid, 0.1821934);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- if(getCheckpointType(playerid) == CP_HouseTwoEnter)
- {
- format(string, 120, "[HOUSE] %s", House_Two_Name);
- SendClientMessage(playerid, COLOR_GREY, string);
- if(!strcmp(House_Two_Owner, oname, true))
- {
- SetPlayerInterior(playerid, 5);
- SetPlayerPos(playerid, 233.0603,1114.2969,1080.9922);
- SetCameraBehindPlayer(playerid);
- SetPlayerFacingAngle(playerid, 0.2686274);
- SendClientMessage(playerid, COLOR_GREY, "Welcome to your house!");
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have the permission to enter this house.");
- }
- if(getCheckpointType(playerid) == CP_HouseTwoExit)
- {
- format(string, 120, "[HOUSE] Hope you enjoyed your stay in %s", House_One_Name);
- SendClientMessage(playerid, COLOR_GREY, string);
- SetPlayerPos(playerid, 1985.9744,-1718.7900,15.9696);
- SetPlayerInterior(playerid, 0);
- return 1;
- }
- if(getCheckpointType(playerid) == CP_HouseThreeEnter)
- {
- format(string,120, "[HOUSE] %s", House_Three_Name);
- SendClientMessage(playerid, COLOR_GREY, string);
- if(!strcmp(House_Three_Owner, oname, true))
- {
- SetPlayerInterior(playerid, 1);
- SetPlayerPos(playerid, 223.1494,1291.0422,1082.1406);
- SendClientMessage(playerid, COLOR_GREY, "Welcome to your house!");
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have permission to enter this house.");
- }
- if(getCheckpointType(playerid) == CP_HouseThreeExit)
- {
- format(string, 210, "[HOUSE] Hope you enjoyed your stay in %s", House_Three_Name);
- SendClientMessage(playerid, COLOR_GREY, string);
- SetPlayerPos(playerid,280.7995,-1772.5166,4.3760);
- SetPlayerInterior(playerid, 0);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- if(getCheckpointType(playerid) == CP_HouseFourEnter)
- {
- format(string, 120, "[HOUSE] %s", House_Four_Name);
- SendClientMessage(playerid, COLOR_GREY, string);
- if(!strcmp(House_Four_Owner, oname, true))
- {
- SetPlayerInterior(playerid, 10);
- SetPlayerPos(playerid, 27.9228,1341.7559,1084.3750);
- SetCameraBehindPlayer(playerid);
- SendClientMessage(playerid, COLOR_GREY, "Welcome to your home!");
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You do not ahve the permission to enter this house.");
- }
- if(getCheckpointType(playerid) == CP_HouseFourExit)
- {
- format(string, 120, "[HOUSE] Hope you enjoyed your stay in %s", House_Four_Name);
- SendClientMessage(playerid, COLOR_GREY, string);
- SetPlayerPos(playerid, 193.7315,-1307.1362,70.2484);
- SetPlayerInterior(playerid, 0);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- if(getCheckpointType(playerid) == CP_HouseFiveEnter)
- {
- format(string, 120, "[HOUSE] %s", House_Five_Name);
- SendClientMessage(playerid, COLOR_GREY, string);
- if(!strcmp(House_Five_Owner,oname,true))
- {
- SetPlayerPos(playerid, 22.7003,1408.2192,1084.4297);
- SetPlayerInterior(playerid, 5);
- SetCameraBehindPlayer(playerid);
- SendClientMessage(playerid, COLOR_GREY, "Welcome to your home!");
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have the permission to enter this house.");
- }
- if(getCheckpointType(playerid) == CP_HouseFiveExit)
- {
- format(string, 120, "[HOUSE] Hope you enjoyed your stay in %s", House_Five_Name);
- SendClientMessage(playerid, COLOR_GREY, string);
- SetPlayerPos(playerid,348.2536,-1192.8020,76.5156);
- SetPlayerInterior(playerid, 0);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- if(getCheckpointType(playerid) == CP_HouseSixEnter)
- {
- format(string, 120, "[HOUSE] %s", House_Six_Name);
- SendClientMessage(playerid, COLOR_GREY, string);
- if(!strcmp(House_Six_Owner, oname, true))
- {
- SetPlayerPos(playerid, 447.1404,1401.7974,1084.3120);
- SetPlayerInterior(playerid, 2);
- SetCameraBehindPlayer(playerid);
- SendClientMessage(playerid, COLOR_GREY, "Welcome to your home!");
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have the permission to enter this house.");
- }
- if(getCheckpointType(playerid) == CP_HouseSixExit)
- {
- format(string, 120, "[HOUSE] Hope you enjoyed your stay in %s", House_Six_Name);
- SendClientMessage(playerid, COLOR_GREY, string);
- SetPlayerPos(playerid, 984.8436,-830.5888,95.4686);
- SetCameraBehindPlayer(playerid);
- SetPlayerInterior(playerid, 0);
- return 1;
- }
- if(getCheckpointType(playerid) == CP_HouseSevenEnter)
- {
- format(string, 120, "[HOUSE] %s", House_Seven_Name);
- SendClientMessage(playerid, COLOR_GREY, string);
- if(!strcmp(House_Seven_Owner, oname, true))
- {
- SetPlayerPos(playerid,234.5786,1068.7251,1084.2084);
- SetPlayerInterior(playerid, 6);
- SendClientMessage(playerid, COLOR_GREY, "Welcome to your home!");
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have the permission to enter this house.");
- }
- if(getCheckpointType(playerid) == CP_HouseSevenExit)
- {
- format(string, 120, "[HOUSE] Hope you enjoyed your stay in %s", House_Seven_Name);
- SendClientMessage(playerid, COLOR_GREY, string);
- SetPlayerPos(playerid,1095.1383,-643.1854,113.0625);
- SetPlayerInterior(playerid, 0);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- if(getCheckpointType(playerid) == CP_HouseEightEnter)
- {
- format(string, 120, "[HOUSE] %s", House_Eight_Name);
- SendClientMessage(playerid, COLOR_GREY, string);
- if(!strcmp(House_Eight_Owner, oname, true))
- {
- SetPlayerPos(playerid, 2263.3396,-1135.9362,1050.6328);
- SetPlayerInterior(playerid, 10);
- SetCameraBehindPlayer(playerid);
- SendClientMessage(playerid, COLOR_GREY, "Welcome to your home!");
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have permission to enter this house.");
- }
- if(getCheckpointType(playerid) == CP_HouseEightExit)
- {
- format(string, 120, "[HOUSE] Hope you enjoyed your stay in %s!", House_Eight_Name);
- SendClientMessage(playerid, COLOR_GREY, string);
- SetPlayerPos(playerid, 2095.5596,-1278.4520,25.4941);
- SetPlayerInterior(playerid, 0);
- return 1;
- }
- if(getCheckpointType(playerid) == CP_HouseNineEnter)
- {
- format(string, 120, "[HOUSE] %s", House_Nine_Name);
- SendClientMessage(playerid, COLOR_GREY, string);
- if(!strcmp(House_Nine_Owner, oname, true))
- {
- SetPlayerPos(playerid, 2461.5542,-1698.4072,1013.5078);
- SetPlayerInterior(playerid, 2);
- SetCameraBehindPlayer(playerid);
- SendClientMessage(playerid, COLOR_GREY, "Welcome to your home!");
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have permission to enter this home.");
- }
- if(getCheckpointType(playerid) == CP_HouseNineExit)
- {
- format(string, 120, "[HOUSE] Hope you enjoyed your stay in %s!", House_Nine_Name);
- SendClientMessage(playerid, COLOR_GREY, string);
- SetCameraBehindPlayer(playerid);
- SetPlayerPos(playerid,2110.7129,-1238.3899,25.4785);
- SetPlayerInterior(playerid, 0);
- return 1;
- }
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- if(getCheckpointType(playerid) == CP_StoreOne)
- {
- if(GetPVarInt(playerid, "Robbing69CentStore") == 1)
- {
- SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You have left the checkpoint, you have failed the robbery.");
- SetPVarInt(playerid, "Robbing69CentStore", 0);
- SetGVarInt("69CentStoreBeingRobbed", 0);
- return 1;
- }
- return 1;
- }
- if(getCheckpointType(playerid) == CP_SexShopCounter)
- {
- if(GetPVarInt(playerid, "RobbingSouthSex") >=1)
- {
- SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
- SetPVarInt(playerid, "RobbingSouthSex", 0);
- return 1;
- }
- return 1;
- }
- if(getCheckpointType(playerid) == CP_GasOneCounter)
- {
- if(GetPVarInt(playerid, "RobbingGasOne") >= 1)
- {
- SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
- SetPVarInt(playerid, "RobbingGasOne", 0);
- return 1;
- }
- return 1;
- }
- if(getCheckpointType(playerid) == CP_DanceCounter)
- {
- if(GetPVarInt(playerid, "RobbingDanceDance") >= 1)
- {
- SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
- SetPVarInt(playerid, "RobbingDanceDance", 0);
- return 1;
- }
- return 1;
- }
- if(getCheckpointType(playerid) == CP_AmmoRob)
- {
- if(GetPVarInt(playerid, "RobbingAmmo") >=1)
- {
- SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
- SetPVarInt(playerid, "RobbingAmmo", -1);
- return 1;
- }
- return 1;
- }
- if(getCheckpointType(playerid) == CP_BurgerShotRob)
- {
- if(GetPVarInt(playerid, "RobbingBurgerShot") >=1)
- {
- SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
- SetPVarInt(playerid, "RobbingBurgerShot", -1);
- return 1;
- }
- return 1;
- }
- if(getCheckpointType(playerid) == CP_Tatoo)
- {
- if(GetPVarInt(playerid, "RobbingTatooShop") >= 1)
- {
- SetPVarInt(playerid, "RobbingTatooShop", -1);
- SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
- return 1;
- }
- return 1;
- }
- if(getCheckpointType(playerid) == CP_PigPenRob)
- {
- if(GetPVarInt(playerid, "RobbingPigPen") >=1)
- {
- SetPVarInt(playerid, "RobbingPigPen", -1);
- SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
- return 1;
- }
- return 1;
- }
- if(getCheckpointType(playerid) == CP_RobStore1)
- {
- if(GetPVarInt(playerid, "RobbingGasStation") > 1)
- {
- SetPVarInt(playerid, "RobbingGasStation", -1);
- SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
- return 1;
- }
- return 1;
- }
- if(getCheckpointType(playerid) == CP_DrugHouse)
- {
- if(GetPVarInt(playerid, "RobbingDrugHouse") > 1)
- {
- SetPVarInt(playerid, "RobbingDrugHouse", -1);
- SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
- return 1;
- }
- }
- if(getCheckpointType(playerid) == CP_Suburban)
- {
- if(GetPVarInt(playerid, "RobbingSuburban") > 1)
- {
- SetPVarInt(playerid, "RobbingSuburban", -1);
- SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoing.");
- return 1;
- }
- return 1;
- }
- if(getCheckpointType(playerid) == CP_Binco)
- {
- if(GetPVarInt(playerid, "RobbingBinco") > 1)
- {
- SetPVarInt(playerid, "RobbingBinco", -1);
- SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
- return 1;
- }
- return 1;
- }
- if(getCheckpointType(playerid) == CP_WellStacked)
- {
- if(GetPVarInt(playerid, "RobbingPizza") > 1)
- {
- SetPVarInt(playerid, "RobbingPizza", -1);
- SendClientMessage(playerid, COLOR_RED, "[ROBBERY FAILED] You left the checkpoint.");
- return 1;
- }
- }
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- if(gTeam[playerid] == Team_Army && GetPVarInt(playerid, "ArmyPermission") == 0)
- {
- GameTextForPlayer(playerid, "~p~You cannot play as army.", 5000, 3);
- return 0;
- }
- if(gTeam[playerid] == Team_FBI && GetPlayerScore(playerid) < 400)
- {
- GameTextForPlayer(playerid, "~b~You cannot play as FBI.", 5000, 3);
- return 0;
- }
- if(gTeam[playerid] == Team_Cop && GetPlayerScore(playerid) < 0)
- {
- return 0;
- }
- if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_Army || gTeam[playerid] == Team_FBI )
- {
- if(GetPVarInt(playerid, "WantedLevel") != 0)
- {
- GameTextForPlayer(playerid, "~r~You had a wanted level at your last gameplay. ~n~ You cannot play as cop/army", 5000, 3);
- return 0;
- }
- }
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- WantedLevelColor(playerid);
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- for(new i = 0; i < sizeof(SInfo); i ++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 4.0, SInfo[i][SX], SInfo[i][SY], SInfo[i][SZ]))
- {
- if(SInfo[i][SpikeCreated] == 1)
- {
- new panels, doors, lights, tires;
- new carid = GetPlayerVehicleID(playerid);
- GetVehicleDamageStatus(carid, panels, doors, lights, tires);
- tires = encode_tires(1, 1, 1, 1);
- UpdateVehicleDamageStatus(carid, panels, doors, lights, tires);
- return 0;
- }
- }
- }
- }
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- new string[200];
- if(dialogid == DIALOG_REGISTER)
- {
- if(response == 0)
- {
- SendClientMessage(playerid, COLOR_ERROR, "You must register using a password first.");
- RegisterPlayer(playerid);
- return 1;
- }
- if(response == 1)
- {
- if(udb_Exists(PlayerName(playerid)))
- {
- SendClientMessage(playerid, COLOR_ERROR, "This player name is already registered. Please login.");
- return 1;
- }
- if(strlen(inputtext) ==0)
- {
- SendClientMessage(playerid, COLOR_ERROR, "Please enter a password below.");
- RegisterPlayer(playerid);
- return 1;
- }
- if(udb_Create(PlayerName(playerid),inputtext))
- {
- SendClientMessage(playerid, COLOR_BLUE, "You have registerd. Your stats will save when you leave the game.");
- LogPlayer(playerid);
- PLAYERLIST_authed[playerid] = true;
- dUserSetINT(PlayerName(playerid)).("Score", 0);
- dUserSetINT(PlayerName(playerid)).("Cash", 1000);
- dUserSetINT(PlayerName(playerid)).("BankCash", 5000);
- dUserSetINT(PlayerName(playerid)).("AdminLevel", 0);
- dUserSetINT(PlayerName(playerid)).("Banned", 0);
- dUserSetINT(PlayerName(playerid)).("WantedLevel", 0);
- dUserSetINT(PlayerName(playerid)).("Warnings", 0);
- dUserSetINT(PlayerName(playerid)).("PackCash", 0);
- dUserSetINT(PlayerName(playerid)).("ArmyPermission", 0);
- dUserSetINT(PlayerName(playerid)).("PackPot", 0);
- dUserSetINT(PlayerName(playerid)).("PackPipe", 0);
- dUserSetINT(PlayerName(playerid)).("PackCondom", 0);
- dUserSetINT(PlayerName(playerid)).("PackSnack", 0);
- dUserSetINT(PlayerName(playerid)).("PackExp", 0);
- dUserSetINT(PlayerName(playerid)).("HasPack", 0);
- dUserSetINT(PlayerName(playerid)).("RobSkill", 0);
- dUserSetINT(PlayerName(playerid)).("TerrorSkill", 0);
- new pIP[16]; GetPlayerIp(playerid, pIP, 16);
- dUserSet(PlayerName(playerid)).("IP", pIP);
- }
- return true;
- }
- return 1;
- }//End of Register Dialog
- if(dialogid == DIALOG_LOGIN)
- {
- if(response == 0)
- {
- SendClientMessage(playerid, COLOR_ERROR, "You must login below.");
- LogPlayer(playerid);
- return 1;
- }
- if(response == 1)
- {
- if(strlen(inputtext) == 0)
- {
- SendClientMessage(playerid, COLOR_ERROR, "Please enter your password below.");
- LogPlayer(playerid);
- }
- if(udb_CheckLogin(PlayerName(playerid),inputtext))
- {
- SetPVarInt(playerid, "AdminLevel", dUserINT(PlayerName(playerid)).("AdminLevel"));
- SetPVarInt(playerid, "Banned", dUserINT(PlayerName(playerid)).("Banned"));
- SetPVarInt(playerid, "BankCash", dUserINT(PlayerName(playerid)).("BankCash"));
- SetPVarInt(playerid, "Cash", dUserINT(PlayerName(playerid)).("Cash"));
- SetPVarInt(playerid, "WantedLevel", dUserINT(PlayerName(playerid)).("WantedLevel"));
- SetPVarInt(playerid, "HasPack", dUserINT(PlayerName(playerid)).("HasPack"));
- SetPVarInt(playerid, "Warnings", dUserINT(PlayerName(playerid)).("Warnings"));
- SetPVarInt(playerid, "PackCash", dUserINT(PlayerName(playerid)).("PackCash"));
- SetPVarInt(playerid, "ArmyPermission", dUserINT(PlayerName(playerid)).("ArmyPermission"));
- SetPVarInt(playerid, "PackPipe", dUserINT(PlayerName(playerid)).("PackPipe"));
- SetPVarInt(playerid, "PackCondom", dUserINT(PlayerName(playerid)).("PackCondom"));
- SetPVarInt(playerid, "PackExp", dUserINT(PlayerName(playerid)).("PackExp"));
- SetPVarInt(playerid, "PackSnack", dUserINT(PlayerName(playerid)).("PackSnack"));
- SetPVarInt(playerid, "PackPot", dUserINT(PlayerName(playerid)).("PackPot"));
- SetPVarInt(playerid, "JailTime", dUserINT(PlayerName(playerid)).("JailTime"));
- SetPVarInt(playerid, "RobSkill", dUserINT(PlayerName(playerid)).("RobSkill"));
- SetPVarInt(playerid, "Elite", dUserINT(PlayerName(playerid)).("Elite"));
- SetPVarInt(playerid, "TerrorSkill", dUserINT(PlayerName(playerid)).("TerrorSkill"));
- /*SetPVarInt(playerid, "HouseOnePerson", dUserINT(PlayerName(playerid)).("HouseOnePerson"));
- SetPVarInt(palyerid, "HouseTwoPerson", dUserINT(PlayerName(playerid)).("HouseTwoPerson"));
- SetPVarInt(playerid, "HouseThreePerson", dUserINT(PlayerName(playerid)).("HouseThreePerson"));
- SetPVarInt(playerid, "HouseFourPerson", dUserINT(PlayerName(playerid)).("HouseFourPerson"));
- SetPVarInt(playerid, "HouseFivePerson", dUserINT(PlayerName(playerid)).("HouseFivePerson"));
- SetPVarInt(playerid, "HouseSixPerson", dUserINT(PlayerName(playerid))."HouseSixPerson"));*/
- SetPlayerScore(playerid, dUserINT(PlayerName(playerid)).("Score"));
- new pIP[16]; GetPlayerIp(playerid, pIP, 16);
- dUserSet(PlayerName(playerid)).("IP", pIP);
- PLAYERLIST_authed[playerid] = true;
- return SendClientMessage(playerid, COLOR_BLUE, "You are now logged in. Your stats will save when you leave the server.");
- }
- LogPlayer(playerid);
- }
- return 1;
- }//End of Dialog
- if(dialogid == DIALOG_SKILL && response)
- { //"Rapist\nTerrorist\nTheif\nPrivate Med");
- if(listitem == 0)
- {
- gTeam[playerid] = Team_Rape;
- SendClientMessage(playerid, COLOR_WHITE, "**Rapist**");
- SendClientMessage(playerid, COLOR_WHITE, "Your job is to rape people and infect them with STDs that can/will kill them.");
- SendClientMessage(playerid, COLOR_WHITE, "Type /commands for your commands.");
- GivePlayerWeapon(playerid, 22, 100);
- }
- if(listitem == 1)
- {
- gTeam[playerid] = Team_Terror;
- SendClientMessage(playerid, COLOR_WHITE, "**Terrorist**");
- SendClientMessage(playerid, COLOR_WHITE, "Your job is to cause chaos in Los Santos by creating explosions.");
- SendClientMessage(playerid, COLOR_WHITE, "REMEMBER: This is NOT a deathmatching server. Do not shoot/kill people randomly.");
- SendClientMessage(playerid, COLOR_WHITE, "Type /commands for your commands.");
- GivePlayerWeapon(playerid, 31, 100);
- GivePlayerWeapon(playerid, 32, 250);
- }
- if(listitem == 2)
- {
- gTeam[playerid] = Team_Steal;
- SendClientMessage(playerid, COLOR_WHITE, "**Thief**");
- SendClientMessage(playerid, COLOR_WHITE, "Your job is to rob as much as possible.");
- SendClientMessage(playerid, COLOR_WHITE, "Type /commands for your commands.");
- GivePlayerWeapon(playerid, 22, 100);
- GivePlayerWeapon(playerid, 32, 100);
- }
- if(listitem == 3)
- {
- gTeam[playerid] = Team_PrvtMed;
- SendClientMessage(playerid, COLOR_WHITE, "**Private Medic**");
- SendClientMessage(playerid, COLOR_WHITE, "Your job is to heal, cure, or infect players. Players who need you will call '/medic' and you will see in chat.");
- SendClientMessage(playerid, COLOR_WHITE, "Type /commands for your commands.");
- GivePlayerWeapon(playerid, 22, 100);
- GivePlayerWeapon(playerid, 4, 1);
- }
- if(listitem == 4)
- {
- ShowPlayerDialog(playerid, DIALOG_SKILL, DIALOG_STYLE_LIST, "Please select your skill", string, "Ok", "");
- }
- }//End of dialog
- if(dialogid == DIALOG_STOREONE && response)
- { //format(string, 200, "Buy Condom\nBuy a snack\nBuy cigars\nBuy a pipe\nBuy a pack\nAttempt Robbery");
- new pcash = GetPlayerMoney(playerid);
- if(listitem == 0)
- {
- if(pcash < 1000)
- {
- SendClientMessage(playerid, COLOR_ERROR, "You do not have the money to buy a condom.");
- return 1;
- }
- if(GetPVarInt(playerid, "HasCondom") == 1)
- {
- SendClientMessage(playerid, COLOR_ERROR, "You all ready have a condom. Put it in your pack before buying another.");
- return 1;
- }
- SetPVarInt(playerid, "HasCondom", 1);
- GivePlayerMoney(playerid, -1000);
- SendClientMessage(playerid, COLOR_BLUE, "[ITEM BOUGHT] Condom: $1000.");
- SendClientMessage(playerid, COLOR_BLUE, "This item will protect you from a rape ONCE.");
- return 1;
- }
- if(listitem == 1)
- {
- if(pcash < 500)
- {
- SendClientMessage(playerid, COLOR_ERROR, "You do not have enough money to buy a snack.");
- return 1;
- }
- SetPVarInt(playerid, "HasSnacks", GetPVarInt(playerid, "HasSnacks") +1);
- GivePlayerMoney(playerid, -500);
- SendClientMessage(playerid, COLOR_BLUE, "[ITEM BOUGHT] Snack: $500.");
- SendClientMessage(playerid, COLOR_BLUE, "This item will restore your health by 10 by using /snack");
- return 1;
- }
- if(listitem == 2)
- {
- if(pcash < 500)
- {
- SendClientMessage(playerid, COLOR_ERROR, "You do not have enough money to buy cigars.");
- return 1;
- }
- SetPVarInt(playerid, "HasCigars", GetPVarInt(playerid, "HasCigars") +5);
- GivePlayerMoney(playerid, -500);
- SendClientMessage(playerid, COLOR_BLUE, "[ITEM BOUGHT] Cigars: $500.");
- SendClientMessage(playerid, COLOR_BLUE, "This item will increase your health by 10 by using /smoke");
- return 1;
- }
- if(listitem == 3)
- {
- if(pcash < 1000)
- {
- SendClientMessage(playerid, COLOR_ERROR, "You do not have enough money to buy a pipe.");
- return 1;
- }
- if(GetPVarInt(playerid, "HasPipe") == 1)
- {
- SendClientMessage(playerid, COLOR_ERROR, "You already have a pipe.");
- return 1;
- }
- SetPVarInt(playerid, "HasPipe", 1);
- GivePlayerMoney(playerid, -1000);
- SendClientMessage(playerid, COLOR_BLUE, "[ITEM BOUGHT] Pipe: $1000.");
- SendClientMessage(playerid, COLOR_BLUE, "This will allow you to smoke pot. Get pot at the drug house.");
- return 1;
- }
- if(listitem == 4)
- {
- if(pcash < 100000)
- {
- SendClientMessage(playerid, COLOR_ERROR, "You cannot afford the pack.");
- return 1;
- }
- if(GetPVarInt(playerid, "HasPack") == 1)
- {
- SendClientMessage(playerid, COLOR_ERROR, "You already have a pack on you.");
- return 1;
- }
- SetPVarInt(playerid, "HasPack", 1);
- GivePlayerMoney(playerid, -100000);
- SendClientMessage(playerid, COLOR_BLUE, "[ITEM BOUGHT] Pack: $100,000.");
- SendClientMessage(playerid, COLOR_BLUE, "This will allow you to save things like pot and money.");
- return 1;
- }
- if(listitem == 5)
- {
- if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_FBI || gTeam[playerid] == Team_Army)
- {
- SendClientMessage(playerid, COLOR_ERROR, "You cannot attempt robbery.");
- return 1;
- }
- if(getCheckpointType(playerid) != CP_StoreOne)
- {
- SendClientMessage(playerid, COLOR_ERROR, "You must be in the 69 Cent store checkpoint to attempt robbery.");
- return 1;
- }
- if(GetGVarInt("SixNineRobbed") == 1337)
- {
- SendClientMessage(playerid, COLOR_ERROR, "The 69 Cent store has been robbed recently.");
- return 1;
- }
- new crand = random(100);
- if(crand > 10)
- {
- new mrand = random(100000);
- format(string, sizeof(string), "[ROBBERY] %s has robbed $%d from the 69 Cent Store in Los Santos (Train Station)", PlayerInfo(playerid), mrand);
- GivePlayerMoney(playerid, mrand);
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- print(string);
- SetGVarInt("SixNineRobbed", 1337);
- SetTimer("SixNineStoreRobAgain", 1000*60*5, 0);
- IncreaseWantedLevel(playerid, 4);
- IncreaseScore(playerid, 1);
- format(string, sizeof(string), "[ROBBERY] %s has robbed the 69 Cent Store. Go arrest him now.", PlayerInfo(playerid));
- SendCopMessage(string);
- return 1;
- }
- else
- {
- format(string, sizeof(string), "%s has failed a robbery at the 69 Cent Store in Los Santos (Train Station)", PlayerInfo(playerid));
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- print(string);
- }
- return 1;
- }
- return 1;
- }//End of dialog
- if(dialogid == DIALOG_PACK && response)
- {
- switch(listitem)
- {
- case 0:
- return ShowPlayerDialog(playerid, DIALOG_TAKEOUT, DIALOG_STYLE_LIST, "What do you want to take out?", "Condom\nSnacks\nCigars\nExplosives\nMoney\nPipe\nPot", "Okay", "Cancel");
- case 1:
- return ShowPlayerDialog(playerid, DIALOG_PUTIN, DIALOG_STYLE_LIST, "What do you want to put in?", "Condom\nSnacks\nCigars\nExplosives\nMoney\nPipe\nPot", "Okay", "Cancel");
- }
- return 1;
- }//End of Dialog
- if(dialogid == DIALOG_TAKEOUT && response)
- {
- switch(listitem)
- {
- case 0:
- {
- if(GetPVarInt(playerid, "HasCondom") == 0)
- {
- if(GetPVarInt(playerid, "PackCondom") >= 1)
- {
- SetPVarInt(playerid, "PackCondom", GetPVarInt(playerid, "PackCondom") -1);
- SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
- format(string, sizeof(string), "You now have %d condoms left in your bag.", GetPVarInt(playerid, "PackCondom"));
- SendClientMessage(playerid, COLOR_GREEN, string);
- SetPVarInt(playerid, "HasCondom", 1);
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have any condoms to take out.");
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You already have a condom.");
- }
- case 1:
- {
- if(GetPVarInt(playerid, "HasSnacks") == 0)
- {
- if(GetPVarInt(playerid, "PackSnacks") >= 1)
- {
- SetPVarInt(playerid, "PackSnacks", GetPVarInt(playerid, "PackSnacks") -1);
- SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
- format(string, sizeof(string), "You now have %d snacks left in your bag.", GetPVarInt(playerid, "PackSnacks"));
- SendClientMessage(playerid, COLOR_GREEN, string);
- SetPVarInt(playerid, "HasSnacks", 1);
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have any snacks in your bag to take out.");
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You already have a snack.");
- }
- case 2: //Cigars
- {
- if(GetPVarInt(playerid, "HasCigars") == 0)
- {
- if(GetPVarInt(playerid, "PackCigars") >= 5)
- {
- SetPVarInt(playerid, "PackCigars", GetPVarInt(playerid, "PackCigars") -1);
- SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
- format(string, sizeof(string), "You now have %d cigars left in your bag.", GetPVarInt(playerid, "PackCigars"));
- SendClientMessage(playerid, COLOR_GREEN, string);
- SetPVarInt(playerid, "HasCigars", 5);
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have any packed cigars");
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You already have cigars.");
- }
- case 3: //Explosives
- {
- if(GetPVarInt(playerid, "HasExp") == 0)
- {
- if(GetPVarInt(playerid, "PackExp") >= 1)
- {
- SetPVarInt(playerid, "PackExp", GetPVarInt(playerid, "PackExp") -1);
- SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
- format(string, sizeof(string), "You have %d sets of explosives left in your bag.", GetPVarInt(playerid, "PackExp"));
- SendClientMessage(playerid, COLOR_GREEN, string);
- SetPVarInt(playerid, "HasExp", 1);
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have any explosives in your pack.");
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You already have explosives.");
- }
- case 4: //Money
- {
- if(GetPVarInt(playerid, "PackCash") > 0)
- {
- if(GetPVarInt(playerid, "PackCash") > 100000)
- {
- SetPVarInt(playerid, "PackCash", GetPVarInt(playerid, "PackCash") -100000);
- SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
- format(string, sizeof(string), "You have taken out $100,000 from your pack. You now have $%d", GetPVarInt(playerid, "PackCash"));
- SendClientMessage(playerid, COLOR_GREEN, string);
- GivePlayerMoney(playerid, 100000);
- return 1;
- }
- GivePlayerMoney(playerid, GetPVarInt(playerid, "PackCash"));
- SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
- SendClientMessage(playerid, COLOR_GREEN, "You have taken out all the money in your pack. You have none left.");
- SetPVarInt(playerid, "PackMoney", 0);
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have any money in your pack to take out.");
- }
- case 5: //Pipe
- {
- if(GetPVarInt(playerid, "HasPipe") == 1)
- {
- if(GetPVarInt(playerid, "PackPipe") >= 1)
- {
- SetPVarInt(playerid, "PackPipe", GetPVarInt(playerid, "PackPipe") -1);
- SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
- format(string, sizeof(string), "You have taken out a pipe. You now have %d pipes left.", GetPVarInt(playerid, "PackPipe"));
- SendClientMessage(playerid, COLOR_GREEN, string);
- SetPVarInt(playerid, "HasPipe", 1);
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have pipes in your pack.");
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You already have a pipe.");
- }
- case 6: //Pot
- {
- if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_Army || gTeam[playerid] == Team_FBI)
- {
- return SendClientMessage(playerid ,COLOR_ERROR, "Your team/class cannot have pot!");
- }
- if(GetPVarInt(playerid, "PackPot") >=1)
- {
- SetPVarInt(playerid, "HasPot", GetPVarInt(playerid, "PackPot"));
- SetPVarInt(playerid, "PackPot", 0);
- SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
- SendClientMessage(playerid, COLOR_GREEN, "You have taken out all of your pot.");
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have any pot in your pack.");
- }
- }
- }
- if(dialogid == DIALOG_PUTIN && response)
- {
- if(listitem == 0)
- {
- if(GetPVarInt(playerid, "HasCondom") == 1)
- {
- SetPVarInt(playerid, "PackCondom", GetPVarInt(playerid, "PackCondom") +1);
- SetPVarInt(playerid, "HasCondom", 0);
- SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
- SendClientMessage(playerid, COLOR_GREEN, "You have put a condom into your backpack.");
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have a condom to put into your pack.");
- }
- if(listitem == 1)
- {
- if(GetPVarInt(playerid, "HasSnacks") == 1)
- {
- SetPVarInt(playerid, "PackSnacks", GetPVarInt(playerid, "PackSnacks") +1);
- SetPVarInt(playerid, "HasSnacks", 0);
- SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
- SendClientMessage(playerid, COLOR_GREEN, "You have put in snacks into your pack.");
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have any snacks to put in.");
- }
- if(listitem == 2)
- {
- if(GetPVarInt(playerid, "HasCigars") >= 1)
- {
- SetPVarInt(playerid, "PackCigars", GetPVarInt(playerid, "PackCigars") + 1);
- SetPVarInt(playerid, "HasCigars", 0);
- SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
- SendClientMessage(playerid, COLOR_GREEN, "You have put cigars into your pack.");
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have any cigars to put in.");
- }
- if(listitem == 3)
- {
- if(GetPVarInt(playerid, "HasExp") == 1)
- {
- SetPVarInt(playerid, "PackExp", GetPVarInt(playerid, "PackExp") + 1);
- SetPVarInt(playerid, "HasExp", 0);
- SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
- SendClientMessage(playerid, COLOR_GREEN, "You have put your explosives in your pack.");
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have any explosives to put in your pack.");
- }
- if(listitem == 4)
- {
- if(GetPlayerMoney(playerid) > 0)
- {
- if(GetPVarInt(playerid, "PackCash") >= 2000000) return SendClientMessage(playerid, COLOR_ERROR, "You already have $2,000,000 in your pack");
- SetPVarInt(playerid, "PackCash", GetPlayerMoney(playerid));
- ResetPlayerMoney(playerid);
- SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
- SendClientMessage(playerid, COLOR_GREEN, "You have put your cash into your pack.");
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have any cash to put in.");
- }
- if(listitem == 5)
- {
- if(GetPVarInt(playerid, "HasPipe") == 1)
- {
- SetPVarInt(playerid, "PackPipe", GetPVarInt(playerid, "PackPipe") +1);
- SetPVarInt(playerid, "HasPipe", 0);
- SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
- SendClientMessage(playerid, COLOR_GREEN, "You have put your pipe into your pack.");
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have any pipes to put in.");
- }
- if(listitem == 6)
- {
- if(GetPVarInt(playerid, "HasPot") >= 1)
- {
- SetPVarInt(playerid, "PackPot", GetPVarInt(playerid, "PackPot") + GetPVarInt(playerid, "HasPot"));
- SetPVarInt(playerid, "HasPot", 0);
- SendClientMessage(playerid, COLOR_GREY, "**PACK USED**");
- SendClientMessage(playerid, COLOR_GREEN, "You have put your pot into your pack.");
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You haven't pot to put in.");
- }
- } //End of Dialog
- if(dialogid == DIALOG_SEXSHOP && response)
- { //"Buy a dildo\nBuy a porn magazine\nBuy some jelly\nAttempt Robbery"
- if(listitem == 0) // Dildo
- {
- if(GetPlayerMoney(playerid) >= 1000)
- {
- SendClientMessage(playerid, COLOR_PINK, "[ITEM BOUGHT] You have bought a dildo! Price: $1,000.");
- GivePlayerWeapon(playerid,10, 1);
- GivePlayerMoney(playerid, -1000);
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You do no have enough funds to buy a dildo.");
- }
- if(listitem == 1) // Porn
- {
- if(GetPlayerMoney(playerid) >= 1500)
- {
- SendClientMessage(playerid, COLOR_PINK, "[ITEM BOUGHT] You have bought a porn magazine. Price: %1,500");
- format(string, 120, "[SEX SHOP] %s bought a porn magazine. He's horny!", PlayerInfo(playerid));
- SendClientMessageToAll(COLOR_PINK, string);
- CNR_PrintString(string);
- GivePlayerMoney(playerid, -1500);
- SetPVarInt(playerid, "Horny", 500);
- SendClientMessage(playerid, COLOR_GREY, "You will be horny for the next 8 or so minutes. Get sex while you can!");
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have enough funds to buy a porn magazine.");
- }
- if(listitem == 2) //Jelly (Help with rapes)
- {
- if(GetPlayerMoney(playerid) >=2000)
- {
- SendClientMessage(playerid, COLOR_PINK, "[ITEM BOUGHT] You have bought sex jelly! This will help you out with sex.");
- GivePlayerMoney(playerid, -2000);
- SetPVarInt(playerid, "Jelly", 1);
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have the cash.");
- }
- if(listitem == 3)
- {
- if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_FBI || gTeam[playerid] == Team_Army) return SendClientMessage(playerid, COLOR_ERROR, "You cannot attempt robbery.");
- if(GetGVarInt("SexShopRobbed") > 1) return SendClientMessage(playerid, COLOR_ERROR, "This sex shop has been robbed recently. Please wait.");
- new crand = random(100);
- if(crand < 10) return SendClientMessage(playerid, COLOR_ERROR, "Your attempt to rob the Sex Shop has failed.");
- SetPVarInt(playerid, "RobbingSouthSex", 10);
- IncreaseWantedLevel(playerid, 4);
- IncreaseScore(playerid, 2);
- format(string, 120, "[ROBBERY] %s has started a robbery at the South Los Santos Sex shop.", PlayerInfo(playerid));
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- CNR_PrintString(string);
- format(string, 120, "[DISPATCH] %s has started a robbery at the South Lost Santos Sex shop, near the L.S Airport. Go arrest the suspect.", PlayerInfo(playerid));
- SendCopMessage(string);
- format(string, 120, "Type /radioof to turn off your Police Radio and stop getting crime reports.");
- SendCopMessage(string);
- SetPVarInt(playerid, "RobbedSexShop", 120);
- return 1;
- }
- }//End of Sex Shop Dialog (south)
- if(dialogid == DIALOG_GASONE && response)
- {//"Buy Cigar\nBuy snacks\nBuy Condom\nAttempt Robbery"
- if(listitem == 0) //cigars
- {
- if(GetPlayerMoney(playerid) < 500)
- {
- SetPVarInt(playerid, "HasCigars", GetPVarInt(playerid, "HasCigars") + 1);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] You have bought Cigars.");
- GivePlayerMoney(playerid, -500);
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have the cash to buy this item.");
- }
- if(listitem == 1)//Snacks
- {
- if(GetPlayerMoney(playerid) < 100)
- {
- SetPVarInt(playerid, "HasSnacks", GetPVarInt(playerid, "HasSnacks") + 1);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] You have bought snacks.");
- GivePlayerMoney(playerid, -1000);
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have the cash to buy this item.");
- }
- if(listitem == 2)//Condom
- {
- if(GetPlayerMoney(playerid) < 5000)
- {
- if(GetPVarInt(playerid, "HasCondom") == 0)
- {
- SetPVarInt(playerid, "HasCondom", 1);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] You have bought a condom.");
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You already have a condom. Pack it first before you buy another.");
- }
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have the cash to buy this item.");
- }
- if(listitem == 3)//Robbery
- {
- if(GetGVarInt("GasOneRobbed") > 1) return SendClientMessage(playerid, COLOR_ERROR, "This store has been robbed recently.");
- if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_FBI || gTeam[playerid] == Team_Army) return SendClientMessage(playerid, COLOR_ERROR, "You cannot rob anything.");
- new crand = random(100);
- if(crand < 10) return SendClientMessage(playerid, COLOR_ERROR, "Robbery failed.");
- SetPVarInt(playerid, "RobbingGasOne", 15);
- format(string, 120, "[ROBBERY] %s has began a robbery at the Gas Station in South L.S.", PlayerInfo(playerid));
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- CNR_PrintString(string);
- format(string, 120, "[DISPATCH] %s has begane a robbery at the Gas Station in South L.S. Go arrest the suspect.", PlayerInfo(playerid));
- SendCopMessage(string);
- IncreaseScore(playerid, 1);
- IncreaseWantedLevel(playerid, 4);
- return 1;
- }
- } //End of Dialog
- if(dialogid == DIALOG_BUY && response)
- { //"Condom\nCigars\nPack\nSnacks"
- if(listitem == 0) // Condom (HasCondom) && (PackCondom)
- {
- if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, COLOR_ERROR, "You do not have enough cash to buy a condom. ($1,000)");
- if(GetPVarInt(playerid, "HasCondom") == 1) return SendClientMessage(playerid, COLOR_ERROR, "You already have a condom. Put it in your pack first.");
- SetPVarInt(playerid, "HasCondom", 1); SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] You have bought one (1) condom. You have been charged $1,000");
- GivePlayerMoney(playerid, -1000);
- return 1;
- }
- if(listitem == 1) // Cigars (HasCigars) && PackCigar
- {
- if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid, COLOR_ERROR, "You do not have enough cash to buy cigars. ($500)");
- if(GetPVarInt(playerid, "HasCigars") > 5) return SendClientMessage(playerid, COLOR_ERROR, "You already have 5 cigars. Put some in your pack first.");
- SetPVarInt(playerid, "HasCigars", 5); SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] You have bought 5 cigars. You have been chaged $500.");
- GivePlayerMoney(playerid, -500);
- return 1;
- }
- if(listitem == 2) // Pack (HasPack)
- {
- if(GetPlayerMoney(playerid) < 100000) return SendClientMessage(playerid, COLOR_ERROR, "You do not have enough cash to buy a pack. ($100,00)");
- if(GetPVarInt(playerid, "HasPack") == 1) return SendClientMessage(playerid, COLOR_ERROR, "You already have a pack, no need for 2 of them.");
- SetPVarInt(playerid, "HasPack", 1); SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] You have bought a pack. You can now store belongings with '/pack'. You've been chaged $100,000");
- GivePlayerMoney(playerid, -100000);
- return 1;
- }
- if(listitem == 3) // HasSnacks && PackSnacks
- {
- if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_ERROR, "You do not have enough money to buy snacks. ($2,000)");
- if(GetPVarInt(playerid, "HasSnacks") == 1) return SendClientMessage(playerid, COLOR_ERROR, "You already have snacks. No need for more!");
- SetPVarInt(playerid, "HasSnacks", 1); SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] You have bought snacks. Type /snacks to restore your health.You have been charged $2,000");
- GivePlayerMoney(playerid, -2000);
- return 1;
- }
- } // end of dialog
- if(dialogid == DIALOG_HOSPITAL && response)
- { //"Heal\nCure",
- if(listitem == 0) // Heal
- {
- new wl = GetPlayerWantedLevel(playerid);
- new Float:ph;
- GetPlayerHealth(playerid, ph);
- if(ph == 100) return SendClientMessage(playerid, COLOR_ERROR, "You are already healed 100 percent.");
- if(wl == 0)
- {
- if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, COLOR_ERROR, "You cannot afford a heal. It's $10,000");
- SetPlayerHealth(playerid, 100);
- GivePlayerMoney(playerid, -10000);
- SendClientMessage(playerid, COLOR_BLUE, "[HOSPITAL] You have been healed by the hospital.You have been charged $10,000.");
- return 1;
- }
- if(wl >= 1)
- {
- if(GetPlayerMoney(playerid) < 20000) return SendClientMessage(playerid, COLOR_ERROR, "You cannot afford a heal. It's $20,000");
- SetPlayerHealth(playerid, 100);
- GivePlayerMoney(playerid, -20000);
- SendClientMessage(playerid, COLOR_BLUE, "[HOSPITAL] You have been healed by the hospital. You have been chaged $20,000");
- return 1;
- }
- return 1;
- }
- if(listitem == 1) //Cure
- {
- new wl = GetPlayerWantedLevel(playerid);
- if(wl == 0)
- {
- if(GetPVarInt(playerid, "IsSick") == 0 && GetPVarInt(playerid, "HasSTDs") == 0) return SendClientMessage(playerid, COLOR_ERROR, "You are not infected with any disease.");
- if(GetPVarInt(playerid, "IsSick") == 1 && GetPVarInt(playerid, "HasSTDs") == 0)
- {
- if(wl == 0)
- {
- if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, COLOR_ERROR, "You cannot afford the medical care. ($10,000)");
- SetPVarInt(playerid, "IsSick", 0);
- SendClientMessage(playerid, COLOR_BLUE, "[HOSPITAL] You have been cured of your sickness.");
- GivePlayerMoney(playerid, -10000);
- return 1;
- }
- if(wl >=0)
- {
- if(GetPlayerMoney(playerid) < 15000) return SendClientMessage(playerid, COLOR_ERROR, "You cannot afford the medical care. ($15,000");
- SetPVarInt(playerid, "IsSick", 0);
- SendClientMessage(playerid, COLOR_BLUE, "[HOSPITAL] You have been cured of your sickness.");
- GivePlayerMoney(playerid, -15000);
- return 1;
- }
- return 1;
- }
- if(GetPVarInt(playerid, "IsSick") == 0 && GetPVarInt(playerid, "HasSTDs") == 1)
- {
- if(wl == 0)
- {
- if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_ERROR, "You cannot afford the medical care. ($5,00)");
- SetPVarInt(playerid, "HasSTDs", 0);
- SendClientMessage(playerid, COLOR_BLUE, "[HOSPTAL] You have been cured of your sickness.");
- GivePlayerMoney(playerid, -5000);
- return 1;
- }
- if(wl >= 0)
- {
- if(GetPlayerMoney(playerid) < 8000) return SendClientMessage(playerid, COLOR_ERROR, "You cannot afford the medical care. ($8,000)");
- SetPVarInt(playerid, "HasSTDs", 0);
- SendClientMessage(playerid, COLOR_BLUE, "[HOSPITAL] You have been cured of your sickness.");
- GivePlayerMoney(playerid,-8000);
- return 1;
- }
- }
- }
- }
- return 1;
- } // End of Dialog lololol
- if(dialogid == DIALOG_STOREROB && response)
- { // Buy a condom\nBuy Cigars\nBuy a pack\nBuy Snacks\nAttempt Robbery"
- if(listitem == 0) // Condom (HasCondom) && (PackCondom)
- {
- if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, COLOR_ERROR, "You do not have enough cash to buy a condom. ($1,000)");
- if(GetPVarInt(playerid, "HasCondom") == 1) return SendClientMessage(playerid, COLOR_ERROR, "You already have a condom. Put it in your pack first.");
- SetPVarInt(playerid, "HasCondom", 1); SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] You have bought one (1) condom. You have been charged $1,000");
- GivePlayerMoney(playerid, -1000);
- return 1;
- }
- if(listitem == 1) // Cigars (HasCigars) && PackCigar
- {
- if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid, COLOR_ERROR, "You do not have enough cash to buy cigars. ($500)");
- if(GetPVarInt(playerid, "HasCigars") > 5) return SendClientMessage(playerid, COLOR_ERROR, "You already have 5 cigars. Put some in your pack first.");
- SetPVarInt(playerid, "HasCigars", 5); SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] You have bought 5 cigars. You have been chaged $500.");
- GivePlayerMoney(playerid, -500);
- return 1;
- }
- if(listitem == 2) // Pack (HasPack)
- {
- if(GetPlayerMoney(playerid) < 100000) return SendClientMessage(playerid, COLOR_ERROR, "You do not have enough cash to buy a pack. ($100,00)");
- if(GetPVarInt(playerid, "HasPack") == 1) return SendClientMessage(playerid, COLOR_ERROR, "You already have a pack, no need for 2 of them.");
- SetPVarInt(playerid, "HasPack", 1); SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] You have bought a pack. You can now store belongings with '/pack'. You've been chaged $100,000");
- GivePlayerMoney(playerid, -100000);
- return 1;
- }
- if(listitem == 3) // HasSnacks && PackSnacks
- {
- if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_ERROR, "You do not have enough money to buy snacks. ($2,000)");
- if(GetPVarInt(playerid, "HasSnacks") == 1) return SendClientMessage(playerid, COLOR_ERROR, "You already have snacks. No need for more!");
- SetPVarInt(playerid, "HasSnacks", 1); SendClientMessage(playerid, COLOR_LIGHTBLUE, "[ITEM BOUGHT] You have bought snacks. Type /snacks to restore your health.You have been charged $2,000");
- GivePlayerMoney(playerid, -2000);
- return 1;
- }
- if(listitem == 4) // Robbery
- {
- new current_zone = player_zone[playerid];
- if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_FBI || gTeam[playerid] == Team_Army) return SendClientMessage(playerid, COLOR_ERROR, "You cannot rob anything.");
- if(GetPVarInt(playerid, "RobbedRecently") > 1) return SendClientMessage(playerid, COLOR_ERROR, "You have robbed a store recently. Please Wait.");
- if(GetGVarInt("GasStationRobbed") > 1) return SendClientMessage(playerid, COLOR_ERROR, "The Gas Stations have been robbed recently. Please wait.");
- new crand = random(100);
- if(crand < 10)
- {
- SetGVarInt("GasStationRobbed", 60);
- SetPVarInt(playerid, "RobbedRecently", 60);
- return SendClientMessage(playerid, COLOR_ERROR, "Robbery Failed.");
- }
- format(string, 120, "[ROBBERY] %s has started a robbery at the Gas Station in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- CNR_PrintString(string);
- format(string, 120, "[DISPATCH] %s has started a robbery at the Gas Station in %s. Go arrest the suspet.", PlayerInfo(playerid), zones[current_zone][zone_name]);
- SendCopMessage(string);
- IncreaseScore(playerid, 1);
- IncreaseWantedLevel(playerid, 4);
- SetPVarInt(playerid, "RobbingGasStation", 15);
- SetGVarInt("GasStationRobbed", 120);
- SetPVarInt(playerid, "RobbedRecently", 120);
- }
- } // End of Dialog
- if(dialogid == DIALOG_DRUG && response)
- { // "Buy 10 grams of weed\nBuy 20 grams of weed\nBuy 30 grams of weed\nCollect my cash\nAttempt Robbery"
- if(listitem == 0) // 10 grams of weed
- {
- if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, COLOR_ERROR, "You do not have enough cash to buy 10 grams of weed. ($10,000)");
- SetPVarInt(playerid, "HasPot", GetPVarInt(playerid, "HasPot") + 10);
- format(string, 120, "[WEED BOUGHT] You have bought 10 grams of weed. You now have %d", GetPVarInt(playerid, "HasPot"));
- SendClientMessage(playerid, COLOR_GREY, string);
- SetGVarInt("DrugHouseCash", GetGVarInt("DrugHouseCash") + 10000);
- GivePlayerMoney(playerid, -10000);
- return 1;
- }
- if(listitem == 1) // 20 grams of weed
- {
- if(GetPlayerMoney(playerid) < 20000) return SendClientMessage(playerid, COLOR_ERROR, "You do not have enough cash to buy 20 grams of weed. ($20,000)");
- SetPVarInt(playerid, "HasPot", GetPVarInt(playerid, "HasPot") + 20);
- format(string, 120, "[WEED BOUGHT] You have bought 20 grams of weed. You now have %d", GetPVarInt(playerid, "HasPot"));
- SendClientMessage(playerid, COLOR_GREY, string);
- SetGVarInt("DrugHouseCash", GetGVarInt("DrugHouseCash") + 20000);
- GivePlayerMoney(playerid, -20000);
- return 1;
- }
- if(listitem == 2) // 30 grams of weed
- {
- if(GetPlayerMoney(playerid) < 30000) return SendClientMessage(playerid, COLOR_ERROR, "You do not have enough cash to buy 30 grams of weed. ($30,000)");
- SetPVarInt(playerid, "HasPot", GetPVarInt(playerid, "HasPot") + 30);
- format(string, 120, "[WEED BOUGHT] You have bought 30 grams of weed. You now have %d", GetPVarInt(playerid, "HasPot"));
- SendClientMessage(playerid, COLOR_GREY, string);
- SetGVarInt("DrugHouseCash", GetGVarInt("DrugHouseCash") + 30000);
- GivePlayerMoney(playerid, -30000);
- return 1;
- }
- if(listitem == 3) // Collect the Cash (OWNER)
- {
- new oname[MAX_PLAYER_NAME];
- if(!strcmp(HOUSE_ONE_OWNER, oname, true))
- {
- if(GetGVarInt("DrugHouseCash") <= 0) return SendClientMessage(playerid, COLOR_ERROR, "There is no money in the drug house for you to collect.");
- GivePlayerMoney(playerid, GetGVarInt("DrugHouseCash"));
- format(string, 120, "[DRUG CASH] Drug house owner %s has collected $%d from the Drug House.", PlayerInfo(playerid), GetGVarInt("DrugHouseCash"));
- CNR_PrintString(string);
- format(string, 120, "[DRUG CASH] You have collected $%d from your Drug House.", GetGVarInt("DrugHouseCash"));
- SendClientMessage(playerid, COLOR_GREY, string);
- SetGVarInt("DrugHouseCash", 0);
- return 1;
- }
- SendClientMessage(playerid, COLOR_ERROR, "You do not own the drug house.");
- return 1;
- }
- if(listitem == 4) // Attempt Robbery
- {
- new current_zone = player_zone[playerid];
- if(GetPVarInt(playerid, "RobbedRecently") > 1) return SendClientMessage(playerid, COLOR_ERROR, "You've robbed a place recently. Please wait.");
- if(GetGVarInt("DrugHouseRobbed") > 1) return SendClientMessage(playerid, COLOR_ERROR, "The drug house has been robbed recently. Please wait.");
- if(GetPVarInt(playerid, "RobSkill") < 5) return SendClientMessage(playerid, COLOR_ERROR, "You do not know how to rob the Drug House.");
- if(GetGVarInt("DrugHouseCash") == 0) return SendClientMessage(playerid, COLOR_ERROR, "There is nothing you can rob....");
- new crand = random(100);
- if(crand < 10)
- {
- SetPVarInt(playerid, "RobbedRecently", 60);
- SetGVarInt("DrugHouseRobbed", 50);
- return SendClientMessage(playerid, COLOR_ERROR, "Your attempt to rob the Drug House has failed.");
- }
- format(string, 120, "[ROBBERY] %s has started a robbery at the Drug House in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- CNR_PrintString(string);
- format(string, 120, "[DISPATCH] %s has started a robbery at the Drug House in %s. Go arrest him.", PlayerInfo(playerid), zones[current_zone][zone_name]);
- SendCopMessage(string);
- IncreaseWantedLevel(playerid, 1);
- IncreaseScore(playerid, 4);
- format(string, 120, "Robbery Started. Stay in the checkpoint to complete the robbery.");
- SendClientMessage(playerid, COLOR_RED, string);
- SetPVarInt(playerid, "RobbingDrugHouse", 15);
- return 1;
- }
- }// End of Dialog
- if(dialogid == DIALOG_PORT && response)
- {//""San Fierro\nLas Venturas", "Okay", "Cancel");
- if(listitem == 0)
- {
- if(PlayerHasCash(playerid, 10000))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "[AIR PORT] You have bought a plane ticket to San Fierro. You have boarded your plane and will arrive later.");
- SetPVarInt(playerid, "FlyToSF", 10);
- SetPlayerMoney(playerid, GetPlayerMoney(playerid) - 10000);
- SetPlayerPos(playerid, 2.996520, 23.234453, 1199.593750);
- SetPlayerInterior(playerid, 1);
- SetTimerEx("PutPlayerInSF", 1000*10, false, "i",playerid);
- return 1;
- }
- SendClientMessage(playerid, COLOR_ERROR, "You do not have enough money to buy a plane ticket.");
- return 1;
- }
- if(listitem == 1)
- {
- if(PlayerHasCash(playerid, 10000))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "[AIR PORT] You have bought a plane ticket to Las Venturas. You have boarded your plane and will arrive soon.");
- SetPVarInt(playerid, "FlyToLV", 10);
- SetPlayerMoney(playerid, GetPlayerMoney(playerid) - 10000);
- SetPlayerPos(playerid, 2.996520, 23.234453, 1199.593750); // Airport interior (Interior 1)
- SetPlayerInterior(playerid, 1);
- SetTimerEx("PutPlayerInLV", 1000*10, false, "i",playerid);
- return 1;
- }
- SendClientMessage(playerid, COLOR_ERROR, "You do not have enough money to buy a plane ticket to Las Venturas.");
- return 1;
- }
- if(listitem == 2) {
- if(PlayerHasCash(playerid, 10000)) {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "[AIR PORT] You have bought a plane ticket to Los santos. You have boarded your plane and will arrive soon.");
- SetPVarInt(playerid, "FlyToLS", 10);
- SetPlayerMoney(playerid, GetPlayerMoney(playerid) - 10000);
- SetPlayerPos(playerid, 2.996520, 23.234453, 1199.593750); // Airport interior (Interior 1)
- SetPlayerInterior(playerid, 1);
- SetTimerEx("PutPlayerInLS", 1000*10, false, "i",playerid);
- return 1;
- }
- SendClientMessage(playerid, COLOR_ERROR, "You do not have enough money to buy a plane ticket to Los Santos.");
- return 1;
- }
- }
- return 1;
- }
- cmd(credits, playerid, params[])
- {
- SendClientMessage(playerid, COLOR_BLUE, "Cops N Robbers Version 1.2 by Karagon");
- SendClientMessage(playerid, COLOR_BLUE, "This script was created by scratch by Karagon");
- SendClientMessage(playerid, COLOR_BLUE, "Checkpoint Streamer: BMUK Object Streamer: xObjects Zones Script");
- SendClientMessage(playerid, COLOR_BLUE, "Script is done 100 percent in ZCMD and what I call compressed code formating.");
- SendClientMessage(playerid, COLOR_BLUE, "Please enjoy the script as much as you can, and updates are really possible!");
- SendClientMessage(playerid, COLOR_BLUE, "And say Fuck you Stevo127 and The_Byrner for screwing me over!");
- return 1;
- }
- cmd(robshop, playerid, params[])
- {
- new current_zone = player_zone[playerid]; //zones[current_zone][zone_name]
- if(!IsPlayerInCheckpoint(playerid)) {
- SendClientMessage(playerid, COLOR_ERROR, "You are not in the checkpoint!");
- return 1;
- }
- if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_FBI || gTeam[playerid] == Team_Army )
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot rob anything.");
- if(GetPVarInt(playerid, "RobbedRecently") > 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You have robbed a store recently. Please wait.");
- new string[120];
- new crand = random(100);
- if(getCheckpointType(playerid) == CP_DanceCounter)
- {
- if(GetGVarInt("DanceDanceRobbed") > 1)
- return SendClientMessage(playerid, COLOR_ERROR, "This store has been robbed recently.");
- if(crand < 10) return SendClientMessage(playerid, COLOR_ERROR, "Robbery failed.");
- format(string, 120, "[ROBBERY] %s has started a robbery at Dance Dance Revolution.", PlayerInfo(playerid));
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- CNR_PrintString(string);
- format(string, 120, "[DISPATCH] %s has started a robbery at Dance Dance Revolution. Go arrest the suspect.", PlayerInfo(playerid));
- SendCopMessage(string);
- SetPVarInt(playerid, "RobbingDanceDance", 15);
- IncreaseScore(playerid, 1);
- IncreaseWantedLevel(playerid, 4);
- SetPVarInt(playerid, "RobbedRecently", 120);
- return 1;
- }
- if(getCheckpointType(playerid) == CP_AmmoRob)
- {
- if(GetGVarInt("AmmoRobbed") > 1) return SendClientMessage(playerid, COLOR_ERROR, "Ammunation has been robbed recently. Please wait.");
- if(GetPVarInt(playerid, "RobSkill") < 5) return SendClientMessage(playerid, COLOR_ERROR, "You do not know how to rob a place like this. Get more experience.");
- if(crand < 10) return SendClientMessage(playerid, COLOR_ERROR, "Robbery Failed.");
- format(string, 120, "[ROBBERY] %s has started a robbery at the Central Los Santos Ammunation.", PlayerInfo(playerid));
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- CNR_PrintString(string);
- format(string, 120, "[DISPATCH] %s has started a robber at the Central Los Santos Ammunation. Go arrest the suspect.", PlayerInfo(playerid));
- SendCopMessage(string);
- SetPVarInt(playerid, "RobbingAmmo", 15);
- IncreaseScore(playerid, 1);
- IncreaseWantedLevel(playerid, 4);
- SetPVarInt(playerid, "RobbedRecently", 100);
- return 1;
- }
- if(getCheckpointType(playerid) == CP_BurgerShotRob)
- {
- if(crand < 10) return SendClientMessage(playerid, COLOR_ERROR, "Robbery Failed.");
- if(GetGVarInt("BurgerShotRobbed") >1) return SendClientMessage(playerid, COLOR_ERROR, "Burger Shot has been robbed recently.");
- format(string, 120, "[ROBBERY] %s has began a robbery at the Burger Shot in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- CNR_PrintString(string);
- format(string, 120, "[DISPATCH] %s has began a robbery at the Burger Shot. Go arrest the suspect.", PlayerInfo(playerid));
- SendCopMessage(string);
- SetPVarInt(playerid, "RobbingBurgerShot", 15);
- IncreaseScore(playerid, 1);
- IncreaseWantedLevel(playerid,4);
- SetPVarInt(playerid, "RobbedRecently", 65);
- return 1;
- }
- if(getCheckpointType(playerid) == CP_Tatoo)
- {
- if(crand < 10)
- {
- SetPVarInt(playerid, "RobbedRecently", 65);
- SetGVarInt("TatooRobbed", 60);
- return SendClientMessage(playerid, COLOR_ERROR, "Robbery Failed.");
- }
- if(GetGVarInt("TatooRobbed") > 1) return SendClientMessage(playerid, COLOR_ERROR, "The Tatoo parlor has been robbed recently.");
- format(string, 120, "[ROBBERY] %s has began a robbery at the Tatoo Parlor.", PlayerInfo(playerid));
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- CNR_PrintString(string);
- format(string, 120, "[DISPATCH] %s has began a robbery at the Tatoo Parlor in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
- SendCopMessage(string);
- SetPVarInt(playerid, "RobbingTattoShop", 15);
- IncreaseScore(playerid, 1);
- IncreaseWantedLevel(playerid, 4);
- SetPVarInt(playerid, "TatooRobbed", 100);
- SetPVarInt(playerid, "RobbedRecently", 60);
- return 1;
- }
- if(getCheckpointType(playerid) == CP_PigPenRob)
- {
- if(crand < 10)
- {
- SetPVarInt(playerid, "RobbedRecently", 65);
- SetGVarInt("PigPenRobbed", 60);
- return SendClientMessage(playerid, COLOR_ERROR, "Robbery faild.");
- }
- if(GetGVarInt("PigPenRobbed") > 1) return SendClientMessage(playerid, COLOR_ERROR, "The Pig Pen has been robbed recently.");
- format(string, 120, "[ROBBERY] %s has started a robbery at the Pig Pen Dance Club.", PlayerInfo(playerid));
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- CNR_PrintString(string);
- format(string, 120, "[DISPATCH] %s has began a robbery at the Pig Pen Dance Club. Location: %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
- SendCopMessage(string);
- SetPVarInt(playerid, "RobbingPigPen", 15);
- SetPVarInt(playerid, "RobbedRecently", 60);
- IncreaseScore(playerid, 1);
- IncreaseWantedLevel(playerid, 4);
- return 1;
- }
- if(getCheckpointType(playerid) == CP_Suburban)
- {
- if(crand < 10)
- {
- SetPVarInt(playerid, "RobbedRecently", 65);
- SetGVarInt("SuburbanRobbed", 60);
- return SendClientMessage(playerid, COLOR_ERROR, "Robbery Failed.");
- }
- if(GetGVarInt("SuburbanRobbed") > 1) return SendClientMessage(playerid, COLOR_ERROR, "The Suburban has been robbed recently.");
- format(string, 120, "[ROBBERY] %s has started a robbery at the Suburban in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- CNR_PrintString(string);
- format(string, 120, "[DISPATCH] %s has started a robbery at the Suburban in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
- SendCopMessage(string);
- SetPVarInt(playerid, "RobbingSuburban", 15);
- SetPVarInt(playerid, "RobbedRecently", 120);
- SetGVarInt("SuburbanRobbed", 120);
- IncreaseScore(playerid, 1);
- IncreaseWantedLevel(playerid, 4);
- return 1;
- }
- if(getCheckpointType(playerid) == CP_Binco)
- {
- if(crand < 10)
- {
- SetPVarInt(playerid, "RobbedRecently", 65);
- SetGVarInt("BincoRobbed", 60);
- return SendClientMessage(playerid, COLOR_ERROR, "Robbery failed.");
- }
- if(GetGVarInt("BincoRobbed") > 1) return SendClientMessage(playerid, COLOR_ERROR, "The Binco has been robbed recently. Please wait.");
- format(string, 120, "[ROBBERY] %s has started a robbery at the Binco in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- CNR_PrintString(string);
- format(string, 120, "[DISPATCH] %s has started a robbery at the Binco in %s.",PlayerInfo(playerid), zones[current_zone][zone_name]);
- SendCopMessage(string);
- SetPVarInt(playerid, "RobbingBinco", 15);
- SetPVarInt(playerid, "RobbedRecently", 120);
- SetGVarInt("BincoRobbed", 120);
- IncreaseScore(playerid, 1);
- IncreaseWantedLevel(playerid, 4);
- return 1;
- }
- if(getCheckpointType(playerid) == CP_WellStacked)
- {
- if(crand < 10)
- {
- SetPVarInt(playerid, "RobbedRecently", 65);
- SetGVarInt("PizzaRobbed", 60);
- return SendClientMessage(playerid, COLOR_ERROR, "Robbery failed.");
- }
- if(GetGVarInt("PizzaRobbed") > 1) return SendClientMessage(playerid, COLOR_ERROR, "The Well Stacked Pizza parlor has been robbed recently.");
- format(string, 120, "[ROBBERY] %s has started a robbery at the Well Stacked Pizza Parlor in %s",PlayerInfo(playerid), zones[current_zone][zone_name]);
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- CNR_PrintString(string);
- format(string, 120, "[DISPATCH] %s has started a robbery at the Well Stacked Pizza Parlor in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
- SendCopMessage(string);
- SetPVarInt(playerid, "RobbingPizza", 15);
- SetPVarInt(playerid, "RobbedRecently", 120);
- SetGVarInt("PizzaRobbed", 120);
- IncreaseScore(playerid, 1);
- IncreaseWantedLevel(playerid, 4);
- return 1;
- }
- return 1;
- }
- command(pack, playerid, params[])
- {
- if(GetPVarInt(playerid, "HasPack") !=1)
- {
- return SendClientMessage(playerid, COLOR_ERROR, "Sorry, you must have a pack before using this command.");
- }
- if(GetPVarInt(playerid, "Jailed") == 1) return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail.");
- if(GetPVarInt(playerid, "Cuffed") == 1) return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while cuffed.");
- ShowPlayerDialog(playerid, DIALOG_PACK, DIALOG_STYLE_LIST, "What do you want to do?", "Take something out\nPut something in", "Okay", "Cancel");
- return 1;
- }
- cmd(location, playerid, params[])
- {
- new current_zone = player_zone[playerid];
- new string[120];
- format(string, 120, "[LOCATION] %s", zones[current_zone][zone_name]);
- SendClientMessage(playerid, COLOR_RED, string);
- return 1;
- }
- command(commands, playerid, params[])
- {
- if(gTeam[playerid] == Team_Army)
- {
- SendClientMessage(playerid, COLOR_PURPLE, "**Los Santos Army**");
- SendClientMessage(playerid, COLOR_PURPLE, "Your commands are: /cuff (ID) /ar (ID) /search (ID) /spike /remspike /fine (ID) ");
- }
- if(gTeam[playerid] == Team_Cop)
- {
- SendClientMessage(playerid, COLOR_DODGERBLUE, "**Los Santos Police Department**");
- SendClientMessage(playerid, COLOR_DODGERBLUE, "Your commands are: /cuff (ID) /ar (ID) /search (ID) /spike /remspike /fine (ID) ");
- }
- if(gTeam[playerid] == Team_Rape)
- {
- SendClientMessage(playerid, COLOR_WHITE, "**Rapist**");
- SendClientMessage(playerid, COLOR_WHITE, "Your commands are: /rape (ID) /fondle (ID)");
- }
- if(gTeam[playerid] == Team_FBI)
- {
- SendClientMessage(playerid, COLOR_BLUE, "**FBI Agent**");
- SendClientMessage(playerid, COLOR_BLUE, "Your commands are: /cuff (ID) /ar (ID) /search (ID) /spike /remspike /fine (ID)");
- }
- if(gTeam[playerid] == Team_Terror)
- {
- SendClientMessage(playerid, COLOR_WHITE, "**Terrorist**");
- SendClientMessage(playerid, COLOR_WHITE, "Your commands are: /bomb /blow");
- }
- if(gTeam[playerid] == Team_Steal)
- {
- SendClientMessage(playerid, COLOR_WHITE, "**Theif**");
- SendClientMessage(playerid, COLOR_WHITE, "Your commands are: /rob (ID)");
- }
- if(gTeam[playerid] == Team_PrvtMed)
- {
- SendClientMessage(playerid, COLOR_WHITE, "**Private Medic**");
- SendClientMessage(playerid, COLOR_WHITE, "Your commands are: /infect (ID) /healme /heal (ID) /cure (ID)");
- }
- return 1;
- }
- cmd(healme, playerid, params[])
- {
- if(gTeam[playerid] != Team_PrvtMed) return SendClientMessage(playerid, COLOR_ERROR, "Only Private Medics can use this command.");
- if(GetPlayerWantedLevel(playerid) >= 1) return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while wanted.");
- if(GetPVarInt(playerid, "UsedHealme") > 1) return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command right now, you just used it!");
- SetPlayerHealth(playerid, 100);
- SendClientMessage(playerid, COLOR_GREEN, "[MEDIC] You have healed yourself.");
- SetPVarInt(playerid, "UsedHealme", 120);
- return 1;
- }
- cmd(blow, playerid, params[])
- {
- if(gTeam[playerid] != Team_Terror) return SendClientMessage(playerid, COLOR_ERROR, "Only Terrorists can use this command.");
- if(!IsPlayerInCheckpoint(playerid)) return SendClientMessage(playerid, COLOR_ERROR, "You are not in a checkpoint that you can blow.");
- if(getCheckpointType(playerid) == CP_LSAirportBlow)
- {
- if(GetPVarInt(playerid, "TerrorSkill") < 20)
- {
- return SendClientMessage(playerid, COLOR_ERROR, "Your terrorist skill isn't high enough to blow the airport.");
- }
- if(GetPVarInt(playerid, "HasExp") == 0) return SendClientMessage(playerid, COLOR_ERROR, "You do not have any explosives.");
- if(GetGVarInt("AirportBlown") > 1) return SendClientMessage(playerid, COLOR_ERROR, "The airport has been blown up recently.");
- SetPVarInt(playerid, "HasExp", 0);
- new string[120];
- new current_zone = player_zone[playerid];
- format(string, 120, "[DISPATCH] Terrorism: Terrorist %s has began to plant explosives at the L.S. Airport in %s. ", PlayerInfo(playerid), zones[current_zone][zone_name]);
- SendCopMessage(string);
- format(string, 120, "[DISPATCH] Go arrest him now.");
- SendCopMessage(string);
- format(string, 120, "[TERRORISM] Terrorist %s has began to plant explosives at the L.S. Airport in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
- SendClientMessageToAll(COLOR_RED, string);
- CNR_PrintString(string);
- IncreaseWantedLevel(playerid, 6);
- IncreaseScore(playerid, 3);
- SetTimer("APPlantOne",5000,0);
- SetGVarInt("AirportBlown", 400);
- SetPVarInt(playerid, "BlowingAirport", 1);
- if(GetPVarInt(playerid, "TerrorSkill") > 20 && GetPVarInt(playerid, "TerrorSkill") < 30)
- {
- SetPVarInt(playerid, "TerrorSkill", GetPVarInt(playerid, "TerrorSkill") +1);
- format(string, 120, "[SKILL UPGRADE] Your terrorist skill has increased to %s!", GetPVarInt(playerid, "TerrorSkill"));
- SendClientMessage(playerid, COLOR_RED, string);
- }
- return 1;
- }
- if(getCheckpointType(playerid) == CP_ParkBlow)
- {
- if(GetPVarInt(playerid, "TerrorSkill") != 30)
- {
- return SendClientMessage(playerid, COLOR_ERROR, "You must be a master terrorist to do this job.");
- }
- if(GetPVarInt(playerid, "HasExp") == 0) return SendClientMessage(playerid, COLOR_ERROR, "You do not have any explosives.");
- if(GetGVarInt("ParkBlown") > 1) return SendClientMessage(playerid, COLOR_ERROR, "The park has been blown up recently.");
- SetPVarInt(playerid, "HasExp", 0);
- new string[120];
- new current_zone = player_zone[playerid];
- format(string, 120, "[DISPATCH] Terrorism: Terrorist %s has began to plant explosives at the Amusement Park in %s",PlayerInfo(playerid), zones[current_zone][zone_name]);
- SendCopMessage(string);
- format(string, 120, "[TERRORISM] Master Terrorist %s has began to plant explosives at the Amusement Park in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
- SendClientMessageToAll(COLOR_RED, string);
- CNR_PrintString(string);
- IncreaseWantedLevel(playerid, 6);
- IncreaseScore(playerid, 5);
- SetTimer("ParkPlantOne", 3000,0);
- SetGVarInt("AmuseParkBlown", 500);
- SetPVarInt(playerid, "BlowingPark", 1);
- SendClientMessage(playerid, COLOR_RED, "You will begin to plant the explosives soon.");
- return 1;
- }
- if(getCheckpointType(playerid) == CP_VinewoodBlow)
- {
- if(GetPVarInt(playerid, "TerrorSkill") < 15)
- {
- return SendClientMessage(playerid, COLOR_ERROR, "You must have a terrorist skill of 15 or higher to do this job.");
- }
- if(GetPVarInt(playerid, "HasExp") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have any explosives.");
- if(GetPVarInt(playerid, "SignBlown") > 1)
- return SendClientMessage(playerid, COLOR_ERROR, "The sign has been blown recently. Please wait.");
- new string[120];
- new current_zone = player_zone[playerid];
- format(string, 120, "[DISPATCH] Terrorism: Terrorist %s has begun to plant the Vinewood sign with Explosives in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
- SendCopMessage(string);
- format(string, 120, "[TERRORISM] Terrorist %s has started to plant explosives at the Vinewood Sign in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
- SendClientMessageToAll(COLOR_RED, string);
- CNR_PrintString(string);
- SendClientMessage(playerid, COLOR_RED, "You will begin to plant the explosives soon.");
- SetTimer("SignPlantOne", 2000, 0);
- SetGVarInt("SignBlown", 400);
- SetPVarInt(playerid, "BlowingSign", 1);
- SetPVarInt(playerid, "HasExp", 0);
- return 1;
- }
- if(getCheckpointType(playerid) == CP_BankBlow)
- {
- if(GetPVarInt(playerid, "TerrorSkill") < 10)
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have enough skill to blow up the bank.");
- if(GetPVarInt(playerid, "HasExp") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have explosives.");
- if(GetGVarInt("BankBlown") > 1)
- return SendClientMessage(playerid, COLOR_ERROR, "The bank has been blown up recently");
- new string[120];
- new current_zone = player_zone[playerid];
- format(string, 120, "[DISPATCH] Terrorism: %s has started to plant explosives at the Los Santos bank in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
- SendCopMessage(string);
- format(string, 120, "[TERRORISM] %s has started to plant explosives at the Los Santos Bank in %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
- SendClientMessageToAll(COLOR_RED, string);
- CNR_PrintString(string);
- SendClientMessage(playerid, COLOR_RED, "You will begin to plant the explosives soon.");
- SetTimer("BankPlantOne", 3000, 0);
- SetPVarInt(playerid, "HasExp", 0);
- SetGVarInt("BankBlown", 300);
- SetPVarInt(playerid, "BlowingBank", 1);
- if(GetPVarInt(playerid, "TerrorSkill") > 10 && GetPVarInt(playerid, "TerrorSkill") < 20)
- {
- SetPVarInt(playerid, "TerrorSkill", GetPVarInt(playerid, "TerrorSkill") + 1);
- SendClientMessage(playerid, COLOR_RED, "[SKILL UPGRADE] You terrorist skill has gone up!");
- return 1;
- }
- return 1;
- }
- return 1;
- }
- cmd(fine, playerid, params[])
- {
- if(!IsCop(playerid))
- return SendClientMessage(playerid, COLOR_ERROR, "Only Cops/Army can use this command.");
- new string[120], ID;
- if(sscanf(params, "u", ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /fine (ID)");
- if(!IsPlayerConnected(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
- new pwl = GetPlayerWantedLevel(playerid);
- if(pwl != 3)
- return SendClientMessage(playerid, COLOR_ERROR, "Only persons with a wanted level of 3 can be fined.");
- format(string, 120, "[COP ACTION] You have been fined by officer %s. You have been charged $5,000", PlayerInfo(playerid));
- SendClientMessage(ID, COLOR_DODGERBLUE, string);
- format(string, 120, "[COP ACTION] You have fined %s. You have recieved a collection prize.", PlayerInfo(ID));
- SendClientMessage(playerid, COLOR_DODGERBLUE, string);
- format(string, 120, "[DISPATCH] Officer %s has fined %s. He is no longer wanted.", PlayerInfo(playerid), PlayerInfo(ID));
- SendCopMessage(string);
- SetPlayerWantedLevel(ID, 0);
- IncreaseScore(playerid, 1);
- GivePlayerMoney(playerid, 2500);
- GivePlayerMoney(ID, -5000);
- return 1;
- }
- cmd(cure, playerid, params[])
- {
- new string[120];
- if(gTeam[playerid] != Team_PrvtMed)
- return SendClientMessage(playerid, COLOR_ERROR, "Only Private Medics can use this command.");
- if(GetPVarInt(playerid, "Cuffed") == 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You are cuffed, you cannot use this command.");
- if(GetPVarInt(playerid, "Jailed") == 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while in prison.");
- if(GetPVarInt(playerid, "Spawned") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command at this time.");
- new ID;
- if(sscanf(params, "u", ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /heal (ID)");
- if(!IsPlayerConnected(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
- if(GetPVarInt(ID, "CalledForMedic") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "That player hasn't called for a medic.");
- if(GetPVarInt(ID, "IsSick") == 0 && GetPVarInt(ID, "HasSTDs") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "That player isn't infected with a disease.");
- if(GetPVarInt(ID, "IsSick") == 1 && GetPVarInt(ID, "HasSTDs") == 0)
- {
- format(string, 120, "[MEDIC] Medic %s has healed you of your infection. You are no longer sick.", PlayerInfo(playerid));
- SendClientMessage(ID, COLOR_GREEN, string);
- format(string, 120, "[MEDIC] You have cured %s of his infection.", PlayerInfo(ID));
- SendClientMessage(playerid, COLOR_GREEN, string);
- SetPVarInt(ID, "IsSick", 0);
- IncreaseScore(playerid, 1);
- GivePlayerMoney(playerid, 5000);
- GivePlayerMoney(ID, -5000);
- return 1;
- }
- if(GetPVarInt(ID, "IsSick") == 0 && GetPVarInt(ID, "HasSTDs") == 1)
- {
- format(string, 120, "[MEDIC] Medic %s has healed you of your STDs.", PlayerInfo(playerid));
- SendClientMessage(ID, COLOR_GREEN, string);
- format(string, 120, "[MEDIC] You have cured %s of his STD.", PlayerInfo(ID));
- SendClientMessage(playerid, COLOR_GREEN, string);
- SetPVarInt(ID, "HasSTDs", 0);
- IncreaseScore(playerid, 1);
- GivePlayerMoney(playerid, 5000);
- GivePlayerMoney(ID, -5000);
- return 1;
- }
- if(GetPVarInt(ID, "IsSick") == 1 && GetPVarInt(ID, "HasSTDs") == 1)
- {
- format(string, 120, "[MEDIC] Medic %s has healed you of your STDs and infections.", PlayerInfo(playerid));
- SendClientMessage(ID, COLOR_GREEN, string);
- format(string, 120, "[MEDIC] You have healed %s of their infection and STDs.", PlayerInfo(ID));
- SendClientMessage(playerid, COLOR_GREEN, string);
- SetPVarInt(ID, "HasSTDs", 0);
- SetPVarInt(ID, "IsSick", 0);
- GivePlayerMoney(playerid, 10000);
- GivePlayerMoney(ID, -10000);
- IncreaseScore(playerid, 2);
- return 1;
- }
- return 1;
- }
- cmd(bomb, playerid, params[])
- {
- new string[120];
- new current_zone = player_zone[playerid];
- if(gTeam[playerid] != Team_Terror)
- return SendClientMessage(playerid, COLOR_ERROR, "Only terrorists can use this command.");
- if(GetPVarInt(playerid, "Jailed") == 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while in jail.");
- if(GetPVarInt(playerid, "Cuffed") == 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while cuffed.");
- if(!IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ERROR, "You must be in a vehicle to use this command.");
- if(GetPVarInt(playerid, "HasExp") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have any explosives. Go buy some at the bomb shop.");
- if(GetPVarInt(playerid, "HasBlownCar") >= 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You have blown up a car recently. Please wait.");
- new veh = GetPlayerVehicleID(playerid);
- VehicleInfo[veh][bomb] = 15;
- format(string, 120, "[TERRORISM] %s has planted a bomb in his car. It will soon explode.", PlayerInfo(playerid));
- SendClientMessageToAll(COLOR_RED, string);
- CNR_PrintString(string);
- format(string, 120, "[DISPATCH] Terrorist %s has planted a bomb in his car. Go arrest the suspect now. Location: %s", PlayerInfo(playerid), zones[current_zone][zone_name]);
- SendCopMessage(string);
- IncreaseScore(playerid, 1);
- IncreaseWantedLevel(playerid, 4);
- SetPVarInt(playerid, "HasBlownCar", 120);
- SetPVarInt(playerid, "HasExp", 0);
- SendClientMessage(playerid, COLOR_ERROR, "[TERRORISM] You have planted a bomb in your car. Get out now!");
- return 1;
- }
- cmd(medic, playerid, params[])
- {
- new current_zone = player_zone[playerid];
- new string[120];
- if(GetPVarInt(playerid, "Cuffed") == 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You are cuffed. You cannot use this command.");
- if(GetPVarInt(playerid, "Jailed") == 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You are in jail. You cannot use this command.");
- if(GetPVarInt(playerid, "Spawned") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "You must be spawned to use this command.");
- if(gTeam[playerid] == Team_PrvtMed)
- return SendClientMessage(playerid, COLOR_ERROR, "You are a medic!");
- format(string, 120, "[ALERT] %s has called for a medic. Go assist that person now. (%s)",PlayerInfo(playerid), zones[current_zone][zone_name]);
- SendMedicMessage(string);
- SetPVarInt(playerid, "CalledForMedic", 1);
- return 1;
- }
- cmd(heal, playerid, params[])
- {
- new string[120];
- if(gTeam[playerid] != Team_PrvtMed)
- return SendClientMessage(playerid, COLOR_ERROR, "Only Private Medics can use this command.");
- if(GetPVarInt(playerid, "Cuffed") == 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You are cuffed, you cannot use this command.");
- if(GetPVarInt(playerid, "Jailed") == 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while in prison.");
- if(GetPVarInt(playerid, "Spawned") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command at this time.");
- new ID;
- if(sscanf(params, "u", ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /heal (ID)");
- if(!IsPlayerConnected(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
- if(GetPVarInt(ID, "CalledForMedic") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "That player hasn't called for a medic.");
- SetPlayerHealth(ID, 100);
- IncreaseScore(playerid, 1);
- SetPVarInt(ID, "CalledForMedic", 0);
- format(string, 120, "[MEDIC] Private Medic %s has healed %s.",PlayerInfo(playerid), PlayerInfo(ID));
- CNR_PrintString(string);
- format(string, 120, "[MEDIC] %s has healed you.", PlayerInfo(playerid));
- SendClientMessage(ID,COLOR_GREEN, string);
- format(string, 120, "[MEDIC] You have healed %s.", PlayerInfo(ID));
- SendClientMessage(playerid, COLOR_GREEN, string);
- GivePlayerMoney(playerid, 5000);
- GivePlayerMoney(ID, -5000);
- return 1;
- }
- command(rape, playerid, params[])
- {
- new ID, string[200];
- if(IsCop(playerid))
- {
- return SendClientMessage(playerid, COLOR_ERROR, "Cops/Army cannot rape people.");
- }
- if(!IsCop(playerid))
- {
- if(GetPVarInt(playerid, "RapeRecently") == 1)
- {
- return SendClientMessage(playerid, COLOR_ERROR, "Command used recently. Please wait.");
- }
- if(GetPVarInt(playerid, "Spawned") == 0)
- {
- return SendClientMessage(playerid, COLOR_ERROR, "You must be alive to use that command.");
- }
- if(GetPVarInt(playerid, "Cuffed") == 1)
- {
- return SendClientMessage(playerid, COLOR_ERROR, "You are cuffed. You cannot use this command.");
- }
- if(GetPVarInt(playerid, "Jailed") == 1)
- {
- return SendClientMessage(playerid, COLOR_ERROR, "You are in jail. You cannot use this command.");
- }
- if(IsPlayerInAnyVehicle(playerid))
- {
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while in a vehicle.");
- }
- if(sscanf(params, "u", ID))
- {
- return SendClientMessage(playerid, COLOR_RED, "Usage: /rape (ID)");
- }
- if(ID == playerid)
- {
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot rape yourself.");
- }
- if(!IsPlayerConnected(ID))
- {
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid Player ID.");
- }
- if(GetPVarInt(ID, "Jailed") == 1)
- {
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot rape a prisoner.");
- }
- if(GetPVarInt(ID, "Cuffed") == 1)
- {
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot rape that player. He/She is cuffed.");
- }
- if(IsPlayerInAnyVehicle(ID))
- {
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot rape a player in a vehicle.");
- }
- if(GetDistanceBetweenPlayers(playerid, ID) > 4)
- {
- return SendClientMessage(playerid, COLOR_ERROR, "Your dick is not big enough! Get closer!");
- }
- if(GetPVarInt(ID, "HasCondom") == 1)
- {
- SendClientMessage(playerid, COLOR_ERROR, "That player had a condom. You failed to rape them.");
- SendClientMessage(ID, COLOR_ERROR, "Your condom has protected you from a rape. You have lost your condom.");
- SetPVarInt(ID, "HasCondom", 0);
- }
- format(string, sizeof(string), "**RAPE COMPLETE**");
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), "You have raped %s.", PlayerInfo(ID));
- SendClientMessage(playerid, COLOR_GREEN, string);
- if(gTeam[playerid] == Team_Rape)
- {
- format(string, sizeof(string), "%s has been infected with STDs.", PlayerInfo(ID));
- SendClientMessageToAll(COLOR_RED, string);
- CNR_PrintString(string);
- SetPVarInt(ID, "HasSTDs", 1);
- }
- if(IsCop(ID))
- {
- IncreaseWantedLevel(playerid, 4);
- }
- if(gTeam[ID] == Team_Rape || gTeam[ID] == Team_Terror || gTeam[ID] == Team_Steal || gTeam[ID] == Team_PrvtMed)
- {
- IncreaseWantedLevel(playerid, 3);
- }
- new current_zone = player_zone[playerid]; //zones[current_zone][zone_name]
- format(string, sizeof(string), "**RAPE VICTIM**");
- SendClientMessage(ID, COLOR_GREY, string);
- format(string, sizeof(string), "You have been raped by %s. You might have STDs.", PlayerInfo(playerid));
- SendClientMessage(ID, COLOR_GREEN, string);
- format(string, sizeof(string), "%s has raped %s", PlayerInfo(playerid), PlayerInfo(ID));
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- CNR_PrintString(string);
- SetPVarInt(playerid, "RapeRecently", 1);
- SetTimer("RapeAgain", 1000*6*2, 0);
- format(string, 120, "[DISPATCH] %s has raped %s Location: %s", PlayerInfo(playerid), PlayerInfo(ID), zones[current_zone][zone_name]);
- SendCopMessage(string);
- return 1;
- }
- return 1;
- }
- command(fondle, playerid, params[])
- {
- new ID, string[200];
- if(IsCop(playerid))
- {
- SendClientMessage(playerid, COLOR_ERROR, "Cops/Army cannot fondle other people.");
- return 1;
- }
- if(gTeam[playerid] != Team_Rape)
- {
- SendClientMessage(playerid, COLOR_ERROR, "Only Rapists can fondle players.");
- return 1;
- }
- if(GetPVarInt(playerid, "Spawned") == 0)
- {
- return SendClientMessage(playerid, COLOR_ERROR, "You must be spawned and alive to use this command.");
- }
- if(GetPVarInt(playerid, "Cuffed") == 1)
- {
- return SendClientMessage(playerid, COLOR_ERROR, "You are cuffed. You cannot use this command.");
- }
- if(GetPVarInt(playerid, "Jailed") == 1)
- {
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot fondle someone. You are in jail.");
- }
- if(IsPlayerInAnyVehicle(playerid))
- {
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while in a vehicle.");
- }
- if(sscanf(params, "u", ID))
- {
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /fondle (ID)");
- }
- if(ID == playerid)
- {
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot fondle yourself.");
- }
- if(!IsPlayerConnected(ID))
- {
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
- }
- if(IsPlayerInAnyVehicle(ID))
- {
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot fondle someone in a vehicle.");
- }
- if(GetDistanceBetweenPlayers(playerid, ID) > 5)
- {
- return SendClientMessage(playerid, COLOR_ERROR, "That player is too far away to fondle.");
- }
- if(GetPVarInt(ID, "Cuffed") == 1)
- {
- return SendClientMessage(playerid, COLOR_ERROR, "That player is cuffed, you cannot fondle him.");
- }
- if(GetPVarInt(ID, "Jailed") == 1)
- {
- return SendClientMessage(playerid, COLOR_ERROR, "That player is in jail, you cannot fondle him.");
- }
- if(GetPVarInt(playerid, "FondleRecent") == 1)
- {
- return SendClientMessage(playerid, COLOR_ERROR, "Please wait before using this command again.");
- }
- if(IsCop(ID))
- {
- IncreaseWantedLevel(playerid, 4);
- }
- if(!IsCop(ID))
- {
- IncreaseWantedLevel(playerid, 3);
- }
- new current_zone = player_zone[playerid];
- format(string, 200, "%s has fondled %s!", PlayerInfo(playerid), PlayerInfo(ID));
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- CNR_PrintString(string);
- format(string, 200, "**FONDLE COMPLETE**");
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, 200, "You have fondled %s", PlayerInfo(ID));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, 200, "%s has fondled you.", PlayerInfo(playerid));
- SendClientMessage(ID, COLOR_LIGHTBLUE, string);
- IncreaseScore(playerid, 1);
- SetPVarInt(playerid, "FondleRecent", 1);
- SetTimer("ResetFondle", 1000*60*3, 0);
- format(string, 120, "[DISPATCH] %s has fondled %s. Location: %s", PlayerInfo(playerid), PlayerInfo(ID), zones[current_zone][zone_name]);
- SendCopMessage(string);
- return 1;
- }
- command(ar, playerid, params[])
- {
- new ID, string[200];
- if(!IsCop(playerid))
- {
- return SendClientMessage(playerid, COLOR_ERROR, "You are not a Law Enforcement officer.");
- }
- if(IsPlayerInAnyVehicle(playerid))
- {
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot be in a vehicle to use this command.");
- }
- if(sscanf(params, "u", ID))
- {
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /ar (ID)");
- }
- if(!IsPlayerConnected(ID))
- {
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
- }
- if(ID == playerid)
- {
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot arrest yourself.");
- }
- if(IsPlayerInAnyVehicle(ID))
- {
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot arrest a player inside a vehicle.");
- }
- if(GetPVarInt(ID, "Jailed") == 1)
- {
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot arrest a jailed person.");
- }
- if(GetPVarInt(ID, "Cuffed") ==0)
- {
- return SendClientMessage(playerid, COLOR_ERROR, "You must cuff the player before arresting.");
- }
- if(GetDistanceBetweenPlayers(playerid, ID) > 3)
- {
- return SendClientMessage(playerid, COLOR_ERROR, "That player is too far away to arrest.");
- }
- if(GetPlayerWantedLevel(ID) <= 4)
- {
- return SendClientMessage(playerid, COLOR_ERROR, "The player must have a wanted level before you arrest.");
- }
- new pwl = GetPlayerWantedLevel(ID);
- if(pwl == 4)
- {
- format(string, sizeof(string), "Police Officer %s has arrested wanted suspect %s",PlayerInfo(playerid), PlayerInfo(ID));
- SendClientMessageToAll(COLOR_BLUE, string);
- CNR_PrintString(string);
- format(string, sizeof(string), "[POLICE RADIO] Suspect %s has been sent to jail", PlayerInfo(ID));
- SendCopMessage(string);
- GivePlayerMoney(playerid, 5000);
- IncreaseScore(playerid, 1);
- SetPVarInt(ID, "JailTime", 45);
- SetPlayerInterior(ID, 10);
- new rnd = random(sizeof(PrisonSpawn));
- SetPlayerPos(ID, PrisonSpawn[rnd][0], PrisonSpawn[rnd][1], PrisonSpawn[rnd][2]);
- SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS PRISON**");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "[PRISON] You have been sent to prison. You will be released soon.");
- TogglePlayerControllable(ID, 1);
- SetPlayerWantedLevel(ID, 0);
- return 1;
- }
- if(pwl == 4)
- {
- format(string, sizeof(string), "Police Officer %s has arrested wanted suspect %s", PlayerInfo(playerid), PlayerInfo(ID));
- SendClientMessageToAll(COLOR_BLUE, string);
- CNR_PrintString(string);
- format(string, sizeof(string), "[POLICE RADIO] Suspect %s has been sent to jail", PlayerInfo(ID));
- SendCopMessage(string);
- GivePlayerMoney(playerid, 4000);
- IncreaseScore(playerid, 1);
- SetPVarInt(ID, "JailTime", 70);
- SetPlayerInterior(ID, 10);
- new rnd = random(sizeof(PrisonSpawn));
- SetPlayerPos(ID, PrisonSpawn[rnd][0], PrisonSpawn[rnd][1], PrisonSpawn[rnd][2]);
- SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS PRISON**");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "[PRISON] You have been sent to prison. You will be released soon.");
- TogglePlayerControllable(ID, 1);
- SetPlayerWantedLevel(ID, 0);
- return 1;
- }
- if(pwl == 5)
- {
- format(string, sizeof(string), "Police Officer %s has arrested most wanted suspect %s", PlayerInfo(playerid), PlayerInfo(ID));
- SendClientMessageToAll(COLOR_BLUE, string);
- CNR_PrintString(string);
- format(string, sizeof(string), "[POLICE RADIO] Suspect %s has been sent to jail", PlayerInfo(ID));
- SendCopMessage(string);
- GivePlayerMoney(playerid, 10000);
- IncreaseScore(playerid, 2);
- SetPVarInt(ID, "JailTime", 80);
- SetPlayerInterior(ID, 10);
- new rnd = random(sizeof(PrisonSpawn));
- SetPlayerPos(ID, PrisonSpawn[rnd][0], PrisonSpawn[rnd][1], PrisonSpawn[rnd][2]);
- SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS PRISON**");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "[PRISON] You have been sent to prison. You will be released soon.");
- TogglePlayerControllable(ID, 1);
- SetPlayerWantedLevel(ID, 0);
- return 1;
- }
- if(pwl == 6)
- {
- format(string, sizeof(string), "Police Officer %s has arrested most wanted suspect %s", PlayerInfo(playerid), PlayerInfo(ID));
- SendClientMessageToAll(COLOR_BLUE, string);
- CNR_PrintString(string);
- format(string, sizeof(string), "[POLICE RADIO] Suspect %s has been sent to jail", PlayerInfo(ID));
- SendCopMessage(string);
- GivePlayerMoney(playerid, 10000);
- IncreaseScore(playerid, 2);
- SetPVarInt(ID, "JailTime", 100);
- SetPlayerInterior(ID, 10);
- new rnd = random(sizeof(PrisonSpawn));
- SetPlayerPos(ID, PrisonSpawn[rnd][0], PrisonSpawn[rnd][1], PrisonSpawn[rnd][2]);
- SendClientMessage(playerid, COLOR_GREY, "**LOS SANTOS PRISON**");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "[PRISON] You have been sent to prison. You will be released soon.");
- TogglePlayerControllable(ID, 1);
- SetPlayerWantedLevel(ID, 0);
- return 1;
- }
- return 1;
- }
- command(cuff, playerid, params[])
- {
- new ID; new string[200];
- if(!IsCop(playerid))
- return SendClientMessage(playerid, COLOR_ERROR, "Only Cops/Army can use this command");
- if(GetPVarInt(playerid, "Spawned") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command.");
- if(IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in a vehicle.");
- if(sscanf(params, "u", ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /cuff (ID)");
- if(!IsPlayerConnected(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
- if(GetDistanceBetweenPlayers(playerid, ID) > 3)
- return SendClientMessage(playerid, COLOR_ERROR, "That player is too far away to hand cuff.");
- if(GetPVarInt(ID, "Cuffed") == 1)
- return SendClientMessage(playerid, COLOR_ERROR, "That player is already cuffed.");
- if(GetPVarInt(ID, "Jailed") == 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot cuff a prisoner.");
- if(IsPlayerInAnyVehicle(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "That player is in a vehicle. You cannot cuff him.");
- if(IsCop(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot cuff other Police Officers.");
- TogglePlayerControllable(ID, 0);
- GameTextForPlayer(ID, "~b~HANDCUFFED!", 5000, 1);
- format(string, sizeof(string), "[POLICE] Officer %s has put hand cuffs on you. You cannot move.", PlayerInfo(playerid));
- SendClientMessage(ID, COLOR_DODGERBLUE, string);
- format(string, 200, "[DISPATCH] Officer %s has cuffed player %s", PlayerInfo(playerid), PlayerInfo(ID));
- SendCopMessage(string);
- SetPVarInt(ID, "Cuffed", 1);
- SetPVarInt(ID, "CuffTimer", 30);
- SendClientMessage(playerid, COLOR_DODGERBLUE, "[POLICE] You have cuffed a suspect. You have 30 seconds before they are let loose.");
- return 1;
- }
- cmd(uncuff, playerid, params[])
- {
- new ID; new string[200];
- if(!IsCop(playerid))
- return SendClientMessage(playerid, COLOR_ERROR, "Only Cops/Army can use this command.");
- if(GetPVarInt(playerid, "Spawned") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command.");
- if(IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in a vehicle.");
- if(sscanf(params, "u", ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /uncuff (ID)");
- if(!IsPlayerConnected(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
- if(GetDistanceBetweenPlayers(playerid, ID) > 3)
- return SendClientMessage(playerid, COLOR_ERROR, "That player is too far away to uncuff.");
- if(GetPVarInt(ID, "Cuffed") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "That player ID isn't cuffed.");
- if(IsPlayerInAnyVehicle(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "That person is in a vehicle, you cannot uncuff them.");
- TogglePlayerControllable(ID, 1);
- format(string, 200, "[POLICE] %s has uncuffed you.", PlayerInfo(playerid));
- SendClientMessage(ID, COLOR_DODGERBLUE, string);
- format(string, 200, "[DISPATCH] %s has uncuffed %s", PlayerInfo(playerid), PlayerInfo(ID));
- SendCopMessage(string);
- SetPVarInt(ID, "Cuffed", 0); SetPVarInt(ID, "CuffTimer", 0);
- return 1;
- }
- cmd(search, playerid, params[])
- {
- new ID, string[200];
- if(!IsCop(playerid))
- return SendClientMessage(playerid, COLOR_ERROR, "Only cops/army can use this command.");
- if(GetPVarInt(playerid, "Spawned") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command at this time.");
- if(IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in a car/plane/helicopter.");
- if(sscanf(params, "u", ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /search (ID)");
- if(!IsPlayerConnected(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
- if(GetDistanceBetweenPlayers(playerid, ID) > 3)
- return SendClientMessage(playerid, COLOR_ERROR, "That player is too far away to search.");
- if(IsPlayerInAnyVehicle(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "That player is in a car. You cannot search them.");
- if(GetPVarInt(ID, "Cuffed") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "That player isn't cuffed. ");
- if(GetPVarInt(ID, "Jailed") == 1)
- return SendClientMessage(playerid, COLOR_ERROR, "That player is in jail. You cannot search a prisoner.");
- if(GetPVarInt(ID, "HasPot") > 0 && GetPVarInt(ID, "HasExp") > 0)
- {
- format(string, 200, "[DISPATCH] %s has searched %s and has found %d grams of pot and %d sticks of explosives.", PlayerInfo(playerid), PlayerInfo(ID), GetPVarInt(ID, "HasPot"), GetPVarInt(ID, "HasExp"));
- SendCopMessage(string);
- format(string, 200, "[POLICE] Officer %s has searched %s and %d grams of pot and %d sticks of explosives were found.", PlayerInfo(playerid), PlayerInfo(ID), GetPVarInt(ID, "HasPot"), GetPVarInt(ID, "HasExp"));
- SendClientMessageToAll(COLOR_DODGERBLUE, string);
- CNR_PrintString(string);
- IncreaseWantedLevel(ID, 2);
- IncreaseScore(playerid, 2);
- format(string, 200, "[POLICE ACTION] Officer %s has searched you and found %d grams of pot and %d sticks of explosives.", PlayerInfo(playerid), GetPVarInt(ID, "HasPot"), GetPVarInt(ID, "HasExp"));
- SendClientMessage(ID, COLOR_RED, string);
- SetPVarInt(ID, "HasPot", 0); SetPVarInt(ID, "HasExp", 0);
- return 1;
- }
- if(GetPVarInt(ID, "HasPot") == 0 && GetPVarInt(ID, "HasExp") > 0)
- {
- format(string, 200, "[DISPATCH] %s has searched %s(%d) and has found %d sticks of explosives.",PlayerInfo(playerid), PlayerInfo(ID), GetPVarInt(ID, "HasExp"));
- SendCopMessage(string);
- format(string, 200, "[POLICE] Officer %s has searched %s and has found %d sticks of explosives.", PlayerInfo(playerid), PlayerInfo(ID), GetPVarInt(ID, "HasExp"));
- SendClientMessageToAll(COLOR_DODGERBLUE, string);
- CNR_PrintString(string);
- IncreaseWantedLevel(ID, 1);
- format(string, 200, "[POLICE ACTION] Officer %s has found %d sticks of explosives on you.", PlayerInfo(playerid), GetPVarInt(ID, "HasExp"));
- SendClientMessage(ID, COLOR_RED, string);
- IncreaseScore(playerid, 1);
- SetPVarInt(ID, "HasExp", 0);
- return 1;
- }
- if(GetPVarInt(ID, "HasPot") > 0 && GetPVarInt(ID, "HasExp") == 0)
- {
- format(string, 200, "[DISPATCH] %s has searched %s and has found %d grams of pot.", PlayerInfo(playerid), PlayerInfo(ID), GetPVarInt(ID, "HasPot"));
- SendCopMessage(string);
- format(string, 200, "[POLICE] Officer %s(%d) has searched %s and has found %d grams of pot on him.", PlayerInfo(playerid), PlayerInfo(ID), GetPVarInt(ID, "HasPot"));
- SendClientMessageToAll(COLOR_DODGERBLUE, string);
- CNR_PrintString(string);
- format(string, 200, "[POLICE ACTION] Officer %s(%d) has searched you and found %d grams of pot.", PlayerInfo(playerid), GetPVarInt(ID, "HasPot"));
- SendClientMessage(ID, COLOR_RED, string);
- IncreaseWantedLevel(ID, 1);
- IncreaseScore(playerid, 1);
- SetPVarInt(ID, "HasPot", 0);
- return 1;
- }
- if(GetPVarInt(ID, "HasPot") == 0 && GetPVarInt(ID, "HasExp") == 0)
- {
- format(string, 200, "[DISPATCH] %s has searched %s and found nothing.", PlayerInfo(playerid),PlayerInfo(ID));
- SendCopMessage(string);
- format(string, 200, "[POLICE] Officer %s has searched %s and found nothing.", PlayerInfo(playerid), PlayerInfo(ID));
- SendClientMessageToAll(COLOR_DODGERBLUE, string);
- CNR_PrintString(string);
- return 1;
- }
- return 1;
- }
- cmd(jail, playerid, params[])
- {
- new ID, string[200], reason;
- if(GetPVarInt(playerid, "AdminLevel") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid command.");
- if(sscanf(params, "uZ", ID, reason))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /jail (ID) (reason)");
- if(!IsPlayerConnected(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
- if(GetPVarInt(ID, "Jailed") == 1)
- return SendClientMessage(playerid, COLOR_ERROR, "That player is already in jail.");
- format(string, 200, "[ADMIN JAIL] %s %s", PlayerInfo(ID), reason);
- SendClientMessageToAll(COLOR_RED, string);
- CNR_PrintString(string);
- new rnd = random(sizeof(PrisonSpawn)); SetPlayerPos(ID, PrisonSpawn[rnd][0], PrisonSpawn[rnd][1], PrisonSpawn[rnd][2]);
- SetPlayerInterior(ID, 10);
- SetPVarInt(ID, "Jailed", 1); SetPVarInt(ID, "JailTime", 300);
- return 1;
- }
- cmd(unjail, playerid, params[])
- {
- new ID, string[200], reason;
- if(GetPVarInt(playerid, "AdminLevel") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid Command.");
- if(sscanf(params, "uz", ID, reason))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /unjail (ID) (reason)");
- if(!IsPlayerConnected(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
- if(GetPVarInt(ID, "Jailed") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "That player isnt' in jail.");
- format(string, 200, "[ADMIN UNJAIL] %s %s", PlayerInfo(ID), reason);
- SendClientMessageToAll(COLOR_RED, string);
- CNR_PrintString(string);
- SetPlayerPos(ID, 237.110794, 111.975547, 1003.218750);
- SetPlayerInterior(ID, 10);
- SetPVarInt(ID, "Jailed", 0);
- SetPVarInt(ID, "JailTIme", 0);
- return 1;
- }
- cmd(spike, playerid, params[])
- {
- new string[200];
- if(!IsCop(playerid)) return SendClientMessage(playerid, COLOR_ERROR, "Only Cops/Army can use this command.");
- if(GetPVarInt(playerid, "Jailed") == 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail.");
- if(GetPVarInt(playerid, "Spawned") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command.");
- if(IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in a car.");
- new Float:x, Float:y, Float:z, Float:a;
- GetPlayerPos(playerid, x, y, z);
- GetPlayerFacingAngle(playerid, a);
- CreateStrip(x, y, z, a);
- format(string, 200, "[DISPATCH] Officer %s has laid spike strips. Take caution.", PlayerInfo(playerid));
- SendCopMessage(string);
- return 1;
- }
- cmd(remspike, playerid, params[])
- {
- new string[200];
- if(!IsCop(playerid))
- return SendClientMessage(playerid, COLOR_ERROR, "Only Cops/Army can use this command.");
- if(GetPVarInt(playerid, "Spawned") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command");
- if(IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in a car.");
- RemoveClosestSpike(playerid);
- format(string, 200, "[DISPATCH] %s has removed spike strips in his location.", PlayerInfo(playerid));
- SendCopMessage(string);
- return 1;
- }
- cmd(remallspike, playerid, params[])
- {
- new string[200];
- if(GetPVarInt(playerid, "AdminLevel") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid Command.");
- RemoveAllSpikes();
- format(string, 200, "[ADMIN ACTION] %s has used the command: /remallspike.", PlayerInfo(playerid));
- SendAdminMessage(string);
- print(string);
- return 1;
- }
- cmd(detain, playerid, params[])
- {
- new ID; new string[200];
- if(!IsCop(playerid))
- return SendClientMessage(playerid, COLOR_ERROR, "Only Cops/Army can use this command.");
- if(GetPVarInt(playerid, "Spawned") == 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command at this time.");
- if(sscanf(params, "u", ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /detain (ID)");
- if(!IsPlayerConnected(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
- if(GetPVarInt(playerid, "Cuffed") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "The player must be cuffed in order for you to use this command.");
- if(GetPVarInt(playerid, "Jailed") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot detain a prisoner.");
- if(IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in a vehicle.");
- if(IsPlayerInAnyVehicle(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot detain that player. He/She is in a vehicle.");
- if(playerid == ID)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot detain yourself.");
- if(GetPVarInt(playerid, "LastVehicle") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "You must enter a vehicle first.");
- if(GetDistanceBetweenPlayers(playerid, ID) > 4)
- return SendClientMessage(playerid, COLOR_ERROR, "That playeris too far away.");
- if(GetPlayerWantedLevel(ID) <= 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot detain this player.");
- format(string, 200, "[DISPATCH] Officer %s has taken %s and detained them.",PlayerInfo(playerid), PlayerInfo(ID));
- SendCopMessage(string);
- format(string, 200, "[POLICE] Officer %s has detained %s.", PlayerInfo(playerid), PlayerInfo(ID));
- SendClientMessageToAll(COLOR_DODGERBLUE, string);
- CNR_PrintString(string);
- SendClientMessage(playerid, COLOR_GREY, "**LOST SANTOS POLICE**");
- SendClientMessage(playerid, COLOR_GREY, "You have been detained. You will be taken to jail shortly.");
- SetPVarInt(playerid, "CuffTimer", 200); SetPVarInt(playerid, "Cuffed", 0);
- PutPlayerInVehicle(ID, GetPVarInt(playerid, "LastVehicle"), 1);
- SetPlayerScore(playerid, 1);
- GivePlayerMoney(playerid, 10000);
- return 1;
- }
- cmd(buyexp, playerid, params[])
- {
- new number;
- if(getCheckpointType(playerid) != CP_BuyExp)
- return SendClientMessage(playerid, COLOR_ERROR, "You must be in the bomb shop checkpoint.");
- if(gTeam[playerid] != Team_Terror)
- return SendClientMessage(playerid, COLOR_ERROR, "Sorry, you are not a terrorist.");
- if(sscanf(params, "i", number))
- return SendClientMessage(playerid, COLOR_GREEN, "Type /buyexp (amount) to buy explosives. Amounts: Between 1 and 5");
- if(number == 1)
- {
- if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, COLOR_ERROR, "You must have $10,000 to buy one stick of explosives.");
- if(GetPVarInt(playerid, "HasExp") == 1) return SendClientMessage(playerid, COLOR_ERROR, "You already have explosives on you. You must put them away before buying more.");
- SetPVarInt(playerid, "HasExp", 1); SendClientMessage(playerid, COLOR_GREEN, "[BOMB SHOP] You have bought one stick of explosives for $10,000.");
- GivePlayerMoney(playerid, -10000);
- return 1;
- }
- if(number == 2)
- {
- if(GetPlayerMoney(playerid) < 20000) return SendClientMessage(playerid, COLOR_ERROR, "You must have $20,000 to buy two sticks of explosives.");
- SetPVarInt(playerid, "PackExp", GetPVarInt(playerid, "PackExp") + 2); SendClientMessage(playerid, COLOR_GREEN, "[BOMB SHOP] You have bought 2 sticks of explosives. They have been placed in your pack.");
- GivePlayerMoney(playerid, -20000);
- return 1;
- }
- if(number == 3)
- {
- if(GetPlayerMoney(playerid) < 30000) return SendClientMessage(playerid, COLOR_ERROR, "You do no have $30,000.");
- SetPVarInt(playerid, "PackExp", GetPVarInt(playerid, "PackExp") + 3); SendClientMessage(playerid, COLOR_GREEN, "[BOMB SHOP] You have bought 3 sticks of explosives.");
- GivePlayerMoney(playerid, -30000);
- return 1;
- }
- if(number == 4)
- {
- if(GetPlayerMoney(playerid) < 40000) return SendClientMessage(playerid, COLOR_ERROR, "You do not have $40,000 for explosives.");
- SetPVarInt(playerid, "PackExp", GetPVarInt(playerid, "PackExp") + 4); SendClientMessage(playerid, COLOR_GREEN, "[BOMB SHOP] You have bought 4 sticks of explosives. They have been put into your pack.");
- return GivePlayerMoney(playerid, -40000);
- }
- if(number == 5)
- {
- if(GetPlayerMoney(playerid) < 45000) return SendClientMessage(playerid, COLOR_ERROR, "You do not have $45,000 to spend on explosives.");
- SetPVarInt(playerid, "PackExp", GetPVarInt(playerid, "PackExp") + 5); SendClientMessage(playerid, COLOR_GREEN, "[BOMB SHOP] You have bought 5 sticks of explosives. They have been put into your pack.");
- return GivePlayerMoney(playerid, -45000);
- }
- else
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /buyexp (1-5)");
- }
- cmd(bankstate, playerid, params[])
- {
- new string[120];
- if(!IsPlayerInCheckpoint(playerid))
- return SendClientMessage(playerid, COLOR_ERROR, "Youu are not in any checkpoint.");
- if(getCheckpointType(playerid) != CP_Bank)
- return SendClientMessage(playerid, COLOR_ERROR, "You must be in the bank checkpoint to use this command.");
- format(string, sizeof(string), "Your current bank balance is: $%d", GetPVarInt(playerid, "BankCash"));
- SendClientMessage(playerid, COLOR_GREY, "**LOST SANTOS BANK**");
- SendClientMessage(playerid, COLOR_GREY, "Thank you for choosing us today!");
- SendClientMessage(playerid, COLOR_GREY, string);
- return 1;
- }
- cmd(emptypack, playerid, params[])
- {
- new string[120];
- if(!IsPlayerInCheckpoint(playerid))
- return SendClientMessage(playerid, COLOR_ERROR, "Youu are not in any checkpoint.");
- if(getCheckpointType(playerid) != CP_Bank)
- return SendClientMessage(playerid, COLOR_ERROR, "You must be in the bank checkpoint to use this command.");
- if(GetPVarInt(playerid, "PackCash") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "You don't have any money in your pack to put in the bank.");
- format(string, 120, "[BANK] You have put $%d into your bank account.", GetPVarInt(playerid, "PackCash"));
- SendClientMessage(playerid, COLOR_GREY, string);
- SetPVarInt(playerid, "BankCash", GetPVarInt(playerid, "BankCash") + GetPVarInt(playerid, "PackCash"));
- SetPVarInt(playerid, "PackCash", 0);
- return 1;
- }
- cmd(deposit, playerid, params[])
- {
- new string[120]; new amount;
- if(!IsPlayerInCheckpoint(playerid))
- return SendClientMessage(playerid, COLOR_ERROR, "Youu are not in any checkpoint.");
- if(getCheckpointType(playerid) != CP_Bank)
- return SendClientMessage(playerid, COLOR_ERROR, "You must be in the bank checkpoint to use this command.");
- if(sscanf(params, "i", amount))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /deposit (AMOUNT)");
- if(GetPlayerMoney(playerid) == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have any cash to deposit.");
- if(GetPlayerMoney(playerid) < amount)
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have that much to deposit.");
- if(amount > 1000000)
- return SendClientMessage(playerid, COLOR_ERROR, "Please choose an amount below $1,000,000");
- GivePlayerMoney(playerid, -amount);
- SetPVarInt(playerid, "BankCash", amount);
- format(string, 120, "[BANK] You have deposited $%d into your bank account.", amount);
- SendClientMessage(playerid, COLOR_GREY, string);
- return 1;
- }
- cmd(withdraw, playerid, params[])
- {
- new string[120]; new amount;
- if(!IsPlayerInCheckpoint(playerid))
- return SendClientMessage(playerid, COLOR_ERROR, "Youu are not in any checkpoint.");
- if(getCheckpointType(playerid) != CP_Bank)
- return SendClientMessage(playerid, COLOR_ERROR, "You are not in the bank checkpoint.");
- if(sscanf(params, "i", amount))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /withdraw (amount)");
- if(amount > 100000)
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid amount. Please be below $100,000");
- if(amount < 0)
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid amount. Please choose above $0.");
- if(amount > GetPVarInt(playerid, "BankCash"))
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have that much to take out.");
- SetPVarInt(playerid, "BankCash", -amount);
- format(string, 120, "[BANK] You have taken out $%d from your bank account.", amount);
- SendClientMessage(playerid, COLOR_GREY, string);
- return 1;
- }
- cmd(transfer, playerid, params[])
- {
- new string[120]; new amount, ID;
- if(!IsPlayerInCheckpoint(playerid))
- return SendClientMessage(playerid, COLOR_ERROR, "You are not in any checkpoint.");
- if(getCheckpointType(playerid) != CP_Bank)
- return SendClientMessage(playerid, COLOR_ERROR, "You must be in the bank checkpoint to use this command.");
- if(sscanf(params, "ui", ID, amount))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /transfer (ID) (amount)");
- if(!IsPlayerConnected(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
- if(GetPVarInt(playerid, "BankCash") < amount)
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have that much to transfer.");
- if(amount < 0)
- return SendClientMessage(playerid, COLOR_ERROR, "Please enter an amount greater than $0");
- if(amount > 1000000)
- return SendClientMessage(playerid, COLOR_ERROR, "Please enter an amount less than $1,000,000");
- SetPVarInt(ID, "BankCash", GetPVarInt(ID, "BankCash") + amount);
- format(string, 120, "[BANK] You have setn $%d to %s's bank account.", amount, PlayerInfo(ID));
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, 120, "[BANK] %s has transfered $%d to your bank account.", PlayerInfo(playerid), amount);
- SendClientMessage(playerid, COLOR_GREY, string);
- SetPVarInt(playerid, "BankCash", GetPVarInt(playerid, "BankCash") -amount);
- format(string, 120, "[BANK TRANSACTION] %s(%d) has sent %s(%d) $%d VIA Bank transfer.", PlayerInfo(playerid), PlayerInfo(ID), amount);
- CNR_PrintString(string);
- return 1;
- }
- cmd(robbank, playerid, params[])
- {
- new string[120];
- if(IsCop(playerid))
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot rob the bank.");
- if(!IsPlayerInCheckpoint(playerid))
- return SendClientMessage(playerid, COLOR_ERROR, "You are not in a checkpoint.");
- if(getCheckpointType(playerid) != CP_Bank)
- return SendClientMessage(playerid, COLOR_ERROR, "You are not in the bank checkpoint.");
- if(GetGVarInt("BankRobbedRecently") >= 1)
- return SendClientMessage(playerid, COLOR_ERROR, "The bank has been robbed recently, please wait.");
- if(GetPlayerWantedLevel(playerid) >= 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot rob the bank with a wanted level.");
- if(GetPVarInt(playerid, "RobSkill") != 10)
- return SendClientMessage(playerid, COLOR_ERROR, "You are not a master of bank robberies, you cannot rob the bank.");
- new crand = random(100);
- if(crand < 10)
- return SendClientMessage(playerid, COLOR_ERROR, "Your attempt to rob the bank has failed.");
- SetPVarInt(playerid, "RobbingBank", 30);
- SetGVarInt("BankRobbedRecently", 500);
- format(string, 120, "[BANK ROBBERY] %s has started a robbery at Los Santos Bank.", PlayerInfo(playerid));
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- CNR_PrintString(string);
- format(string, 120, "[DISPATCH] %s has started a robbery at the L.S Bank.", PlayerInfo(playerid));
- SendCopMessage(string);
- return 1;
- }
- cmd(kill, playerid, params[])
- {
- new string[120];
- if(GetPVarInt(playerid, "Spawned") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "You must be spawned to use this command.");
- if(GetPVarInt(playerid, "Jailed") == 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while in jail.");
- if(GetPVarInt(playerid, "Cuffed") == 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while cuffed.");
- if(GetPVarInt(playerid, "HasSTDs") == 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command with STDs.");
- if(GetPVarInt(playerid, "Wanted") == 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while wanted.");
- SetPlayerHealth(playerid, -1);
- format(string, 120, "%s(%d) has commited suicide using /kill. (for a odd reason) ", PlayerInfo(playerid));
- SendClientMessageToAll(COLOR_GREEN, string);
- return 1;
- }
- cmd(rob, playerid, params[])
- {
- new ID; new string[120];
- if(gTeam[playerid] != Team_Steal)
- return SendClientMessage(playerid, COLOR_ERROR, "Only Theifs can use this command.");
- if(GetPVarInt(playerid, "Jailed") == 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail.");
- if(GetPVarInt(playerid, "Cuffed") == 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while cuffed.");
- if(sscanf(params, "u", ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /rob (ID)");
- if(!IsPlayerConnected(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid Player ID.");
- if(GetDistanceBetweenPlayers(playerid, ID) > 5)
- return SendClientMessage(playerid, COLOR_ERROR, "That player is too far away.");
- if(IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while in a vehicle.");
- if(IsPlayerInAnyVehicle(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot rob them when they are in a vehicle.");
- if(GetPVarInt(playerid, "RobbedPlayerRecent") >= 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You must wait before robbing a player again.");
- new chance = random(10);
- if(chance == 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You failed the robbery.");
- new mrand = random(GetPlayerMoney(ID));
- if(GetPlayerMoney(ID) <=0)
- return SendClientMessage(playerid, COLOR_ERROR, "That player doesn't have any money.");
- new current_zone = player_zone[playerid];
- if(IsCop(ID))
- {
- format(string, 120, "[ROBBED] %s has robbed $%d from you!", PlayerInfo(playerid), mrand);
- SendClientMessage(ID, COLOR_RED, string);
- format(string, 120, "[ROBBERY] You robbed $%d from %s!", mrand, PlayerInfo(ID));
- SendClientMessage(playerid, COLOR_RED, string);
- format(string, 120, "[ROBBERY] %s robbed $%d from %s!", PlayerInfo(playerid), mrand, PlayerInfo(ID));
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- CNR_PrintString(string);
- format(string, 120, "[DISPATCH] %s has been robbed by %s. Location: %s", PlayerInfo(ID), PlayerInfo(playerid), playerid,zones[current_zone][zone_name]);
- SendCopMessage(string);
- format(string, 120, "Type /radioof to turn off the Police Radio.");
- SendCopMessage(string);
- IncreaseWantedLevel(playerid, 2);
- IncreaseScore(playerid, 2);
- if(GetPVarInt(playerid, "RobSkill") <= 3)
- {
- SetPVarInt(playerid, "RobSkill", GetPVarInt(playerid, "RobSkill") +1);
- format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased. Read /robjob.");
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- return 1;
- }
- format(string, 120, "[ROBBED] %s has robbed $%d from you!", PlayerInfo(playerid), mrand);
- SendClientMessage(ID, COLOR_RED, string);
- format(string, 120, "[ROBBERY] You robbed $%d from %s!", mrand, PlayerInfo(ID));
- SendClientMessage(playerid, COLOR_RED, string);
- format(string, 120, "[ROBBERY] %s robbed $%d from %s!", PlayerInfo(playerid), mrand, PlayerInfo(ID));
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- CNR_PrintString(string);
- format(string, 120, "[DISPATCH] %s has been robbed by %s. Location: %s", PlayerInfo(ID), PlayerInfo(playerid), playerid,zones[current_zone][zone_name]);
- SendCopMessage(string);
- format(string, 120, "Type /radioof to turn off the Police Radio.");
- SendCopMessage(string);
- IncreaseWantedLevel(playerid, 1);
- IncreaseScore(playerid, 1);
- if(GetPVarInt(playerid, "RobSkill") <= 3)
- {
- SetPVarInt(playerid, "RobSkill", GetPVarInt(playerid, "RobSkill") +1);
- format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased. Read /robjob.");
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- return 1;
- }
- cmd(radiooff, playerid, params[])
- {
- if(IsCop(playerid))
- {
- if(GetPVarInt(playerid, "CopRadio") == 0) return SendClientMessage(playerid, COLOR_ERROR, "Your radio is already off. Type /radioon to turn it back on.");
- SetPVarInt(playerid, "CopRadio", 0);
- SendClientMessage(playerid, COLOR_DODGERBLUE, "You have turned your cop radio off. Type /radioon to turn it back on.");
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "Only Cops/Army can use this command.");
- }
- cmd(radioon, playerid, params[])
- {
- if(IsCop(playerid))
- {
- if(GetPVarInt(playerid, "CopRadio") == 1) return SendClientMessage(playerid, COLOR_ERROR, "Your cop radio is already off. Type /radioof to turn it off.");
- SetPVarInt(playerid, "CopRadio", 1);
- SendClientMessage(playerid, COLOR_ERROR, "You have turned your radio on. Type /radiooff to turn it off.");
- return 1;
- }
- return SendClientMessage(playerid, COLOR_ERROR, "Only Cops/Army can use this command.");
- }
- cmd(startevent, playerid, params[])
- {
- new string[120];
- if(GetPVarInt(playerid, "AdminLevel") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid Command. Read /commands.");
- if(GetPVarInt(playerid, "Jailed") == 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while in jail.");
- if(GetPVarInt(playerid, "Cuffed") == 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while cuffed.");
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- SetGVarFloat("EventX", x);
- SetGVarFloat("EventY", y);
- SetGVarFloat("EventZ", z);
- SetGVarInt("EventI", GetPlayerInterior(playerid));
- SetGVarInt("EventStarted", 1);
- format(string, 120, "[ADMIN EVENT] Server Admin %s has started an event. Type /event to join.", PlayerInfo(playerid));
- SendClientMessageToAll(COLOR_ADMIN, string);
- CNR_PrintString(string);
- SendClientMessage(playerid, COLOR_GREEN, "You have started an event. Type /endevent to end it.");
- return 1;
- }
- cmd(event, playerid, params[])
- {
- if(GetGVarInt("EventStarted") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "There's no event started.");
- if(GetPVarInt(playerid, "Cuffed") == 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in jail.");
- if(GetPVarInt(playerid, "Jailed") == 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while cuffed.");
- SendClientMessage(playerid, COLOR_GREEN, "You have joined the Admin Event.");
- SetPlayerPos(playerid, GetGVarFloat("EventX"), GetGVarFloat("EventY"), GetGVarFloat("EventZ"));
- SetPlayerInterior(playerid, GetGVarInt("EventI"));
- SetPVarInt(playerid, "InEvent", 1);
- return 1;
- }
- cmd(endevent, playerid, params[])
- {
- new string[120];
- if(GetPVarInt(playerid, "AdminLevel") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid Command. Read /commands");
- if(GetGVarInt("EventStarted") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "There's no event started.");
- SetGVarInt("EventStarted", 0);
- format(string, 120, "[ADMIN EVENT] Admin %s has ended the current event. You can no longer join.",PlayerInfo(playerid));
- SendClientMessage(playerid, COLOR_ADMIN, string);
- CNR_PrintString(string);
- return 1;
- }
- cmd(eventweapon, playerid, params[])
- {
- new weapon; new ammo;
- if(GetPVarInt(playerid, "AdminLevel") == 0) return SendClientMessage(playerid, COLOR_ERROR, "Invalid Command.");
- if(sscanf(params, "ii", weapon, ammo)) return SendClientMessage(playerid, COLOR_ERROR, "Usage: /eventweapon (WeaponID) (Ammo)");
- for(new i = 0; i<MAX_PLAYERS; i ++)
- {
- if(GetPVarInt(i, "InEvent") == 1)
- {
- GivePlayerWeapon(i, weapon, ammo);
- SendClientMessage(i, COLOR_ADMIN, "You have been given an event weapon.");
- SendClientMessage(playerid, COLOR_ADMIN, "You have given everyone at the event an event weapon.");
- }
- }
- return 1;
- }
- cmd(adcmds, playerid, params[])
- {
- if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
- new str[1200];
- strcat(str, "Admin Commands are: /startevent - Starts an Admin Event /endevent - Ends an Admin event /eventweapon (WeaponID) (Ammo) - Gives an Event Weapon\n");
- strcat(str, "/jail (ID) (reason) - Admin Jails a Player /unjail (ID) (reason) - Unjails a Player /adban (ID) (reason) - Admin Bans a Player\n");
- strcat(str, "/adkick (ID) (reason) - Admin Kicks a player /freeze (ID) (reason) - Freezes a player /unfreeze (ID) (reason) - Unfreezes a player\n");
- strcat(str, "/teleports - Shows a list of teleports /lock - Locks your car /spec (ID) - Spectates a Player /specoff - Turns off Spectate\n");
- strcat(str, "/ad (message) - Send an Admin Message /admin (message) - Same as /rcon say /goto (ID) - Puts you near a player /bring (ID) Brings a player \n");
- strcat(str, "/jetpack - Spawns a Jetpack /warn (ID) (reason) - Admin Warns a player /elite (ID) - Makes a player Elite /unelite (ID) - Takes away Elite Status\n");
- strcat(str, "/army (ID) - Makes a Player Army /unarmy (ID) - Takes Army Status /mute (ID) - Mutes a player /unmute (ID) - Unmutes a player\n");
- strcat(str, "/admode - Minigun and infinite health /repaircar (ID) - Fixes Car /adgc (ID) (amount) - Gives a player cash /nos (ID) - Gives a player nos\n");
- strcat(str, "/adheal (ID) - Heals and Cures a player /adarmour (ID) - Gives a player Armour\n");
- ShowPlayerDialog(playerid, DIALOG_ADMINCMDS, DIALOG_STYLE_MSGBOX, "Admin Commands", str, "Okay", "");
- return 1;
- }
- cmd(adheal, playerid, params[])
- {
- if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
- new ID;
- if(sscanf(params, "u", ID))
- {
- SetPlayerHealth(playerid, 100);
- SetPVarInt(playerid, "IsSick", 0);
- SetPVarInt(playerid, "HasSTDs", 0);
- SendClientMessage(playerid, COLOR_ADMIN, "[ADMIN ACTION] You have healed yourself.");
- return 1;
- }
- if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
- SetPlayerHealth(ID, 100);
- SetPVarInt(playerid, "IsSick", 0);
- SetPVarInt(playerid, "HaSTDs", 0);
- SendClientMessage(playerid, COLOR_ADMIN, "[ADMIN ACTION] You have healed that player.");
- return 1;
- }
- cmd(adarmour, playerid, params[])
- {
- if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
- new ID;
- if(sscanf(params, "u", ID))
- {
- SetPlayerArmour(playerid, 100);
- SetPVarInt(playerid, "IsSick", 0);
- SetPVarInt(playerid, "HasSTDs", 0);
- SendClientMessage(playerid, COLOR_ADMIN, "[ADMIN ACTION] You have given yourself armour.");
- return 1;
- }
- if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
- SetPlayerArmour(ID, 100);
- SetPVarInt(playerid, "IsSick", 0);
- SetPVarInt(playerid, "HaSTDs", 0);
- SendClientMessage(playerid, COLOR_ADMIN, "[ADMIN ACTION] You have given that player armour");
- return 1;
- }
- cmd(repaircar, playerid, params[])
- {
- if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
- new ID;
- if(sscanf(params, "u", ID))
- {
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_ERROR, "You must be in a vehicle to use this command.");
- RepairVehicle(GetPlayerVehicleID(playerid));
- SendClientMessage(playerid, COLOR_ADMIN, "[VEHICLE] Vehicle repaired.");
- return 1;
- }
- if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
- if(!IsPlayerInAnyVehicle(ID)) return SendClientMessage(playerid, COLOR_ERROR, "That person must be in a vehicle.");
- RepairVehicle(GetPlayerVehicleID(ID));
- SendClientMessage(playerid, COLOR_ADMIN, "[VEHICLE] Your car has been repaired by an Admin.");
- return 1;
- }
- cmd(nos, playerid, params[])
- {
- if(GetPVarInt(playerid, "AdminLevel") ==0) return 0;
- new ID;
- if(sscanf(params,"u", ID))
- {
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_ERROR, "You must be in a vehicle to use this command.");
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
- SendClientMessage(playerid, COLOR_ADMIN, "[VEHICLE] You have added nos to your car.");
- return 1;
- }
- if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
- if(!IsPlayerInAnyVehicle(ID)) return SendClientMessage(playerid, COLOR_ERROR, "That person must be in a vehicle.");
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
- SendClientMessage(playerid, COLOR_ADMIN, "[VEHICLE] You have added nos to that person's car.");
- return 1;
- }
- cmd(admode, playerid, params[])
- {
- if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
- if(GetPVarInt(playerid, "AdminMode") == 1)
- {
- SetPlayerHealth(playerid, 100);
- SetPlayerArmour(playerid, 100);
- ResetPlayerWeapons(playerid);
- GivePlayerTeamWeapons(playerid);
- SendClientMessage(playerid, COLOR_ADMIN, "[ADMIN MODE] You have turned Admin Mode off.");
- SetPVarInt(playerid, "AdminMode", 0);
- return 1;
- }
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 38, 10000);
- SetPlayerHealth(playerid, 1000);
- SetPlayerArmour(playerid, 10000);
- SendClientMessage(playerid, COLOR_ADMIN, "[ADMIN MODE] You have gone into Admin Mode.");
- SetPVarInt(playerid, "AdminMode", 1);
- return 1;
- }
- cmd(adgc, playerid, params[])
- {
- if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
- new ID, amount, string[120];
- if(sscanf(params, "ui", ID, amount))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /adgc (ID) (amount)");
- if(!IsPlayerConnected(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
- if(amount > 100000)
- return SendClientMessage(playerid, COLOR_ERROR, "Please choose an amount lower than $100,000");
- if(amount < 0)
- return SendClientMessage(playerid, COLOR_ERROR, "Please choose an amount over $0.");
- GivePlayerMoney(ID, amount);
- format(string, 120, "[ADMIN CASH] You have recieved $%d from Server Admin %s", amount, PlayerInfo(playerid));
- SendClientMessage(ID, COLOR_ADMIN, string);
- format(string, 120, "[ADMIN CASH] You have given %s $%d of Admin Cash.", PlayerInfo(ID), amount);
- SendClientMessage(playerid, COLOR_ADMIN, string);
- format(string, 120, "[ADMIN CASH] Server Admin %s has given %s $%d", PlayerInfo(playerid), PlayerInfo(ID), amount);
- CNR_PrintString(string);
- return 1;
- }
- cmd(mute, playerid, params[])
- {
- new ID; new reason; new string[200];
- if(GetPVarInt(playerid, "AdminLevel") == 1337)
- {
- if(sscanf(params, "iz", ID, reason))
- {
- SendClientMessage(playerid, COLOR_ERROR, "Usage: /mute <ID> <reason>");
- return 1;
- }
- if(!IsPlayerConnected(ID))
- {
- SendClientMessage(playerid, COLOR_ERROR, "Invalid Player ID.");
- return 1;
- }
- format(string, 200, "[ADMIN MUTE] %s %s", PlayerInfo(ID), reason);
- CNR_PrintString(string);
- SendClientMessageToAll(COLOR_ADMIN, string);
- SetPVarInt(ID, "Muted", 1);
- }
- return 1;
- }
- cmd(unmute, playerid, params[])
- {
- new ID; new reason; new string[200];
- if(GetPVarInt(playerid, "AdminLevel") != 0)
- {
- if(sscanf(params, "iz", ID, reason))
- {
- SendClientMessage(playerid, COLOR_ERROR, "Usage: /unmute <ID> <reason>");
- return 1;
- }
- if(!IsPlayerConnected(ID))
- {
- SendClientMessage(playerid, COLOR_ERROR, "Invalid Player ID.");
- return 1;
- }
- format(string, 200, "[ADMIN UMUTE] %s %s", PlayerInfo(ID), reason);
- CNR_PrintString(string);
- SendClientMessageToAll(COLOR_ADMIN, string);
- SetPVarInt(ID, "Muted", 0);
- }
- return 1;
- }
- cmd(elite, playerid, params[])
- {
- if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
- new ID; new string[120];
- if(sscanf(params, "u", ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /elite (ID)");
- if(!IsPlayerConnected(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
- if(GetPVarInt(ID, "Elite") == 1337)
- return SendClientMessage(playerid, COLOR_ERROR, "That player is already an Elite Player.");
- format(string, 120, "[ELITE PLAYER] Server Admin %s has made player %s an elite player!", PlayerInfo(playerid), PlayerInfo(ID));
- SendClientMessageToAll(COLOR_ROYALBLUE, string);
- CNR_PrintString(string);
- GameTextForPlayer(ID, "~B~ELITE PLAYER STATUS", 5000, 3);
- SendClientMessage(playerid, COLOR_ROYALBLUE, "You have been crowned 'Elite' by a Server Admin. You can now use Elite commands.");
- SetPVarInt(ID, "Elite", 1337);
- return 1;
- }
- cmd(unelite, playerid, params[])
- {
- if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
- new ID; new string[120];
- if(sscanf(params, "u", ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /unelite (ID)");
- if(!IsPlayerConnected(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
- if(GetPVarInt(ID, "Elite") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "That player isn't an Elite Player.");
- format(string, 120, "[ELITE PLAYER] Server Admin %s has taken your Elite Player Status.", PlayerInfo(playerid));
- SendClientMessage(ID, COLOR_ROYALBLUE, string);
- SendClientMessage(playerid, COLOR_ROYALBLUE, "Contact that Admin if you think this is wrong.");
- format(string, 120, "[ADMIN ACTION] Server Admin %s has taken %s's Elite Player Status.", PlayerInfo(playerid), PlayerInfo(ID));
- SendAdminMessage(string);
- SetPVarInt(ID, "Elite", 0);
- return 1;
- }
- cmd(army, playerid, params[])
- {
- if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
- new ID; new string[120];
- if(sscanf(params, "u", ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /army (ID)");
- if(!IsPlayerConnected(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /army (ID)");
- if(GetPVarInt(ID, "ArmyPermission") == 1337)
- return SendClientMessage(playerid, COLOR_ERROR, "That player is already army.");
- format(string, 120, "[ARMY STATUS] Server Admin %s has made %s a member of the Army!", PlayerInfo(playerid), PlayerInfo(ID));
- SendClientMessageToAll(COLOR_PURPLE, string);
- SendAdminMessage(string);
- CNR_PrintString(string);
- SendClientMessage(playerid, COLOR_PURPLE, "You are now able to play as Los Santos Army. Be sure to stick with /rules.");
- SetPVarInt(ID, "ArmyPermission", 1337);
- return 1;
- }
- cmd(unarmy, playerid, params[])
- {
- if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
- new ID; new string[120];
- if(sscanf(params, "u", ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /unarmy (ID)");
- if(!IsPlayerConnected(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /army (ID)");
- format(string, 120, "[ARMY STATUS] Server Admin %s has taken %s's Army Status!", PlayerInfo(playerid), PlayerInfo(ID));
- //SendClientMessageToAll(COLOR_PURPLE, string);
- SendAdminMessage(string);
- //CNR_PrintString(string);
- SendClientMessage(ID, COLOR_PURPLE, string);
- SendClientMessage(playerid, COLOR_PURPLE, "You are no longer able to be Army. If you think this is wrong, contact the admin.");
- SetPVarInt(ID, "ArmyPermission", 0);
- return 1;
- }
- cmd(ec, playerid, params[])
- {
- if(GetPVarInt(playerid, "Elite") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "Only Elite Players can use this command.");
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /ec (message)");
- new string[120];
- format(string, 120, "[ELITE CHAT] %s: %s", PlayerInfo(playerid), params);
- SendEliteMessage(string);
- CNR_PrintString(string);
- return 1;
- }
- cmd(afk, playerid, params[])
- {
- if(GetPVarInt(playerid, "Elite") == 0) return SendClientMessage(playerid, COLOR_ERROR, "Only Elite players can use this command.");
- new string[120];
- if(GetPVarInt(playerid, "IsAFK") == 1)
- {
- SetPVarInt(playerid, "IsAFK", 0);
- format(string, 120, "[AFK] Elite Player %s is no longer AFK.", PlayerInfo(playerid));
- SendClientMessageToAll(COLOR_ROYALBLUE, string);
- TogglePlayerControllable(playerid, true);
- CNR_PrintString(string);
- return 1;
- }
- SetPVarInt(playerid, "IsAFK", 1);
- format(string, 120, "[AFK] Elite Player %s is now AFK.", PlayerInfo(playerid));
- SendClientMessageToAll(COLOR_ROYALBLUE, string);
- CNR_PrintString(string);
- TogglePlayerControllable(playerid, false);
- return 1;
- }
- cmd(jetpack, playerid, params[])
- {
- if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
- SetPlayerSpecialAction(playerid, 2);
- return 1;
- }
- cmd(warn, playerid, params[])
- {
- new ID; new reason; new string[200];
- if(GetPVarInt(playerid, "AdminLevel") == 1337)
- {
- if(sscanf(params, "iz", ID, reason))
- {
- SendClientMessage(playerid, COLOR_ERROR, "Usage: /warn <ID> <reason>");
- return 1;
- }
- if(!IsPlayerConnected(ID))
- {
- SendClientMessage(playerid, COLOR_ERROR, "Invalid Player ID.");
- return 1;
- }
- format(string, sizeof(string), "[ADMIN WARN] %s has been warned by a Server Admin. %s", PlayerInfo(ID), reason);
- SendClientMessageToAll(COLOR_ADMIN, string);
- CNR_PrintString(string);
- SendClientMessage(ID, COLOR_RED, "[ADMIN WARN] You have been warned by a Server Admin to follow the rules.");
- SendClientMessage(ID, COLOR_RED, "Please follow the rules and read /rules and /pc");
- if(GetPVarInt(ID, "Warnings") == 3)
- {
- format(string, sizeof(string), "[AUTO KICK] %s Too many Admin Warnings", PlayerInfo(ID));
- SendClientMessageToAll(COLOR_RED, string);
- CNR_PrintString(string);
- Kick(ID);
- return 1;
- }
- if(GetPVarInt(ID, "Warnings") <= 2)
- {
- SendClientMessage(ID, COLOR_RED, "Repeated warnings will result in a kick.");
- SetPVarInt(ID, "Warnings", GetPVarInt(ID, "Warnings") +1);
- return 1;
- }
- }
- return 1;
- }
- cmd(adkick, playerid, params[])
- {
- new ID; new string[120]; new reason;
- if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
- if(sscanf(params, "uz", ID, reason))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /adkick (ID) (reason)");
- if(!IsPlayerConnected(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
- format(string, 120, "[ADMIN KICK] %s %s", PlayerInfo(playerid), reason);
- SendClientMessageToAll(COLOR_ADMIN, string);
- CNR_PrintString(string);
- format(string, 120, "[ADMIN ACTION] Admin %s has kicked %s %s", PlayerInfo(playerid), PlayerInfo(ID), reason);
- SendAdminMessage(string);
- Kick(ID);
- return 1;
- }
- cmd(adban, playerid, params[])
- {
- new ID;new string[120]; new reason;
- if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
- if(sscanf(params, "uz", ID, reason))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /adban (ID) (reason)");
- if(!IsPlayerConnected(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
- format(string, 120, "[ADMIN BAN] %s %s", PlayerInfo(ID), reason);
- SendClientMessageToAll(COLOR_ADMIN, string);
- CNR_PrintString(string);
- format(string, 120, "[ADMIN ACTION] Admin %s has banned %s %s", PlayerInfo(playerid), PlayerInfo(ID), reason);
- SendAdminMessage(string);
- SendClientMessage(ID, COLOR_RED, "You have been Admin Banned. If you wish to appeal this ban, go to our website.");
- SendClientMessage(ID, COLOR_RED, "Please note that Hackers do not get unbanned.");
- format(string, 120, "Banned by %s for the reason of: %s", PlayerInfo(playerid), reason);
- BanEx(ID, string);
- return 1;
- }
- cmd(bring, playerid, params[])
- {
- new ID; new string[120];
- if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
- if(sscanf(params, "u", ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /bring (ID)");
- if(!IsPlayerConnected(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
- format(string, 120, "[ADMIN ACTION] You have brought %s to you using /bring", PlayerInfo(ID));
- SendClientMessage(playerid, COLOR_ADMIN, string);
- format(string, 120, "[ADMIN] Admin %s has teleported you to him/her.", PlayerInfo(playerid));
- SendClientMessage(ID, COLOR_ADMIN, string);
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- SetPlayerPos(ID, x, y, z);
- SetPlayerInterior(ID, GetPlayerInterior(playerid));
- return 1;
- }
- cmd(goto, playerid, params[])
- {
- new ID; new string[120];
- if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
- if(sscanf(params, "u", ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /goto (ID)");
- if(!IsPlayerConnected(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
- format(string, 120, "[ADMIN ACTION] You have teleported to %s", PlayerInfo(playerid));
- SendClientMessage(playerid, COLOR_ADMIN, string);
- new Float:x, Float:y, Float:z;
- GetPlayerPos(ID, x, y, z);
- SetPlayerPos(playerid, x, y, z);
- SetPlayerInterior(playerid, GetPlayerInterior(ID));
- return 1;
- }
- cmd(freeze, playerid, params[])
- {
- new ID; new string[120]; new reason;
- if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
- if(sscanf(params, "uz", ID, reason))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /freeze (ID) (reason)");
- if(!IsPlayerConnected(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
- format(string, 120, "[ADMIN FREEZE] %s %s", PlayerInfo(ID), reason);
- SendClientMessageToAll(COLOR_ADMIN, string);
- CNR_PrintString(string);
- TogglePlayerControllable(ID, 0);
- format(string, 120, "[ADMIN ACTION] Admin %s has frozen %s (%s)", PlayerInfo(playerid), PlayerInfo(ID), reason);
- SendAdminMessage(string);
- return 1;
- }
- cmd(unfreeze, playerid, params[])
- {
- new ID; new string[120]; new reason;
- if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
- if(sscanf(params, "uz", ID, reason))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /unfreeze (ID) (reason)");
- if(!IsPlayerConnected(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
- format(string, 120, "[ADMIN UNFREEZE] %s %s", PlayerInfo(ID), reason);
- SendClientMessageToAll(COLOR_ADMIN, string);
- CNR_PrintString(string);
- TogglePlayerControllable(ID, 1);
- format(string, 120, "[ADMIN ACTION] Admin %s has unfrozen %s (%s)", PlayerInfo(playerid), PlayerInfo(ID), reason);
- SendAdminMessage(string);
- return 1;
- }
- cmd(spec, playerid, params[])
- {
- if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
- new ID;
- if(sscanf(params, "u", ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /spec (ID)");
- if(!IsPlayerConnected(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
- if(GetPVarInt(ID, "Spawned") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "That player isn't spawned.");
- if(playerid == ID)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command on yourself.");
- if(GetPVarInt(playerid, "Spawned") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "You must be spawned to use this command.");
- if(IsPlayerInAnyVehicle(ID))
- {
- new vid = GetPlayerVehicleID(ID);
- TogglePlayerSpectating(playerid, 1);
- PlayerSpectateVehicle(playerid, vid);
- SetPlayerInterior(playerid, GetPlayerInterior(ID));
- SetPVarInt(playerid, "Spectating", 1);
- return 1;
- }
- TogglePlayerSpectating(playerid, 1);
- PlayerSpectatePlayer(playerid, ID);
- SetPlayerInterior(playerid, GetPlayerInterior(ID));
- SetPVarInt(playerid, "Spectating", 1);
- return 1;
- }
- cmd(specoff, playerid, params[])
- {
- if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
- if(GetPVarInt(playerid, "Spectating") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "You are not spectating.");
- TogglePlayerSpectating(playerid, 0);
- SetPVarInt(playerid, "Spectating", 0);
- return 1;
- }
- cmd(ad, playerid, params[])
- {
- if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /ad (message)");
- new string[120];
- format(string, 120, "[ADMIN MESSAGE] %s: %s", PlayerInfo(playerid), params);
- SendAdminMessage(string);
- return 1;
- }
- cmd(admin, playerid, params[])
- {
- if(GetPVarInt(playerid, "AdminLevel") == 0) return 0;
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /admin (message)");
- new string[120];
- format(string, 120, "*Admin: %s", params);
- SendClientMessageToAll(COLOR_ADMIN, string);
- CNR_PrintString(string);
- format(string, 120, "[ADMIN ACTION] %s has used '/admin' to say: %s", PlayerInfo(playerid), params);
- SendAdminMessage(string);
- CNR_PrintString(string);
- return 1;
- }
- cmd(havesex, playerid, params[])
- {
- new string[120];
- if(GetPVarInt(playerid, "Horny") <= 0)
- return SendClientMessage(playerid, COLOR_ERROR, "You are not horny enough. You cannot have sex.");
- new ID;
- if(sscanf(params, "u", ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /havesex (ID)");
- if(!IsPlayerConnected(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID.");
- if(GetDistanceBetweenPlayers(playerid, ID) > 8)
- return SendClientMessage(playerid, COLOR_ERROR, "That player is too far away to have sex.");
- if(GetPVarInt(ID, "Partner") != playerid)
- return SendClientMessage(playerid, COLOR_ERROR, "You must first /offersex before having sex.");
- if(GetPVarInt(ID, "Horny") <=0)
- return SendClientMessage(playerid, COLOR_ERROR, "That player is not horny enough to have sex.");
- if(GetPVarInt(playerid, "Jelly") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have any jelly to have sex. Get some first!");
- format(string, 120, "[PUBLIC SEX] %s and %s has had public sex. Shame on them!", PlayerInfo(playerid), PlayerInfo(ID));
- SendClientMessageToAll(COLOR_GREY, string);
- CNR_PrintString(string);
- IncreaseWantedLevel(ID, 1);
- IncreaseWantedLevel(playerid, 1);
- IncreaseScore(ID, 1);
- IncreaseScore(playerid, 1);
- format(string, 120, "[PUBLIC SEX] You have had public sex with %s. You dirty bastard!", PlayerInfo(ID));
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, 120, "[PUBLIC SEX] You have had public sex with %s. You dirty bastard!", PlayerInfo(playerid));
- SendClientMessage(ID, COLOR_GREY, string);
- SetPVarInt(ID, "Horny", 0);
- SetPVarInt(playerid, "Jelly", 0);
- SetPVarInt(playerid, "Horny", 0);
- SetPVarInt(playerid, "Partner", -1); SetPVarInt(ID, "Partner", -1);
- new current_zone = player_zone[playerid];
- format(string, 120, "[DISPATCH] Lunatics %s and %s have had sex in public. Go arrest their naked bodies now! (%s)", PlayerInfo(playerid), PlayerInfo(ID),zones[current_zone][zone_name]);
- SendCopMessage(string);
- SetPVarInt(ID, "HadSex", 400);
- SetPVarInt(playerid, "HadSex", 400);
- return 1;
- }
- cmd(offersex, playerid, params[])
- {
- new string[120]; new ID;
- if(GetPVarInt(playerid, "Horny") <=0)
- return SendClientMessage(playerid, COLOR_ERROR, "You are not horny enough. You cannot offer sex.");
- if(sscanf(params, "u", ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /offersex (ID)");
- if(!IsPlayerConnected(ID))
- return SendClientMessage(playerid, COLOR_ERROR, "Invaid ID.");
- if(GetDistanceBetweenPlayers(playerid, ID) > 8)
- return SendClientMessage(playerid, COLOR_ERROR, "That player is too far away to have sex.");
- SetPVarInt(ID, "Partner", playerid);
- SetPVarInt(playerid, "Partner", ID);
- format(string, 120, "[SEX OFFERED] You have been offered sex by %s. Type /havesex %d to have sex with them.", PlayerInfo(playerid), playerid);
- SendClientMessage(ID, COLOR_GREY, string);
- format(string, 120, "[SEX OFFERED] You have offered sex to %s. You must wait for them to agree.", PlayerInfo(ID));
- SendClientMessage(playerid, COLOR_GREY, string);
- return 1;
- }
- cmd(snack, playerid, params[])
- {
- if(GetPVarInt(playerid, "Cuffed") == 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while cuffed.");
- if(GetPVarInt(playerid, "HasSnacks") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have any snacks. Take them out your pack or buy them from the store.");
- if(GetPVarInt(playerid, "EatenSnacks") > 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You have eaten snacks recently. Please wait.");
- new Float:ph;
- GetPlayerHealth(playerid, ph);
- if(ph > 90)
- return SendClientMessage(playerid, COLOR_ERROR, "Your health doesn't require a snack.");
- SetPlayerHealth(playerid, ph + 10);
- SetPVarInt(playerid, "HasSnacks", 0);
- SetPVarInt(playerid, "EatenSnacks", 30);
- SendClientMessage(playerid, COLOR_GREY, "[SNACKS] You have eaten your snack. You have been healed by 10 percent.");
- ApplyAnimation(playerid, "FOOD", "EAT_Burger", 4.0, 0, 0, 0, 0, 0);
- return 1;
- }
- cmd(smoke, playerid, params[])
- {
- if(GetPVarInt(playerid, "Cuffed") == 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while cuffed.");
- if(GetPVarInt(playerid, "HasCigars") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have any cigars on you.");
- if(GetPVarInt(playerid, "HasSmoked") > 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You have smoked a cigar recently. Please wait.");
- new Float:ph;
- GetPlayerHealth(playerid, ph);
- if(ph > 90) return SendClientMessage(playerid, COLOR_ERROR, "Your health doesn't require a smoke.");
- SetPlayerHealth(playerid, ph + 10);
- SetPVarInt(playerid, "HasCigars", GetPVarInt(playerid, "HasCigars") -1);
- SetPVarInt(playerid, "HasSmoked", 45);
- SendClientMessage(playerid, COLOR_GREY, "[SMOKES] You have had a smoke. Your health has risen.");
- ApplyAnimation(playerid, "JST_BUISNESS", "smoke_01" , 4.0, 0,0,0, 0, 0);
- return 1;
- }
- cmd(pot, playerid, params[])
- {
- new string[120];
- if(IsCop(playerid)) return SendClientMessage(playerid, COLOR_ERROR, "Cops/Army cannot use this command.");
- if(GetPVarInt(playerid, "Cuffed") == 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You are cuffed, you cannot use this command.");
- if(GetPVarInt(playerid, "Jailed") == 1)
- return SendClientMessage(playerid, COLOR_ERROR, "You are in jail. You cannot use this command.");
- if(GetPVarInt(playerid, "HasPot") <= 0)
- return SendClientMessage(playerid, COLOR_ERROR, "You don't have any pot, you cannot smoke it!");
- if(GetPVarInt(playerid, "HasPipe") == 0)
- return SendClientMessage(playerid, COLOR_ERROR, "You do not have a pipe to smoke your pot!");
- new Float:ph;
- GetPlayerHealth(playerid, ph);
- if(ph > 70) return SendClientMessage(playerid, COLOR_ERROR, "Your health doesn't require a joint.");
- SetPlayerHealth(playerid, ph + 30);
- format(string, 120, "[WEED] %s has smoked a joint. His health has increased.", PlayerInfo(playerid));
- CNR_PrintString(string);
- SetPVarInt(playerid, "UsedPot",120);
- SetPVarInt(playerid, "HasPot", GetPVarInt(playerid, "HasPot") -1);
- ApplyAnimation(playerid, "JST_BUISNESS", "smoke_01", 4.0, 0, 0, 0, 0, 0);
- return 1;
- }
- cmd(report, playerid, params[])
- {
- new ID; new reason; new string[120];
- if(sscanf(params, "us[100]", ID, reason))
- return SendClientMessage(playerid, COLOR_ERROR, "Usage: /report (ID) (Reason)");
- if (!IsPlayerConnected(ID)) {
- SendClientMessage(playerid, COLOR_ERROR, "That ID is not connected.");
- return 1;
- }
- format(string, 120, "[REPORT SENT] Report sent on %s for the reason of: %s", PlayerInfo(ID), reason);
- SendClientMessage(playerid, COLOR_ADMIN, string);
- format(string, 120, "[REPORTED PLAYER] Player %s has reported %s for %s", PlayerInfo(playerid), PlayerInfo(ID), reason);
- CNR_PrintString(string);
- SendAdminMessage(string);
- return 1;
- }
- cmd(pm, playerid, params[])
- {
- new ID; new message; new string[120];
- if(sscanf(params, "us[100]", ID, message)) return SendClientMessage(playerid, COLOR_ERROR, "Usage: /pm (ID) (Message)");
- if (!IsPlayerConnected(ID)) {
- SendClientMessage(playerid, COLOR_ERROR, "Error. That ID is not connected.");
- return 1;
- }
- format(string, 120, "[PRIVATE MESSAGE] From: %s to %s: %s", PlayerInfo(playerid), PlayerInfo(ID), message);
- CNR_PrintString(string);
- format(string, 120, "[PM] From: %s: %s", PlayerInfo(playerid), message);
- SendClientMessage(ID, COLOR_YELLOW, string);
- format(string, 120, "[PM] Sent to %s: %s", PlayerInfo(ID), message);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- return 1;
- }
- stock PlayerName(playerid) {
- new name[255];
- GetPlayerName(playerid, name, 255);
- return name;
- }
- stock Hospital(playerid)
- {
- ShowPlayerDialog(playerid, DIALOG_HOSPITAL, DIALOG_STYLE_LIST, "Welcome to Los Santos Medical Center!", "Heal\nCure", "Okay", "Cancel");
- }
- stock SellItems(playerid)
- {
- ShowPlayerDialog(playerid,DIALOG_BUY, DIALOG_STYLE_LIST, "What would you like to buy?", "Condom\nCigars\nPack\nSnacks", "Okay", "Cancel");
- }
- stock StoreRob(playerid)
- {
- ShowPlayerDialog(playerid, DIALOG_STOREROB, DIALOG_STYLE_LIST, "Welcome to the Gas Station!", "Buy a condom\nBuy Cigars\nBuy a pack\nBuy Snacks\nAttempt Robbery", "Okay", "Cancel");
- }
- stock LogPlayer(playerid)
- {
- new string[100];
- format(string, 100, "Welcome to the server, %s\nPlease login before you spawn", PlayerName(playerid));
- ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "Please Login", string, "Login", "Cancel");
- }
- stock RegisterPlayer(playerid)
- {
- new string[100];
- format(string, 100, "Welcome to the server, %s\nPlease register your player name with a password below", PlayerName(playerid));
- ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Please Register", string, "Register", "Cancel");
- }
- stock SelectSkill(playerid)
- {
- new string[200];
- format(string, 200, "Rapist\nTerrorist\nThief\nPrivate Med");
- ShowPlayerDialog(playerid, DIALOG_SKILL, DIALOG_STYLE_LIST, "Please select your skill", string, "Ok", "");
- }
- public IncreaseWantedLevel(playerid, value)
- {
- new string[200]; new pwl; pwl = GetPlayerWantedLevel(playerid);
- new pcol; pcol = GetPlayerColor(playerid);
- pwl +=value;
- SetPlayerWantedLevel(playerid, pwl);
- if(pwl > 6)
- {
- SetPlayerWantedLevel(playerid, 6);
- SendClientMessage(playerid, pcol, "[WANTED LEVEL] Your wanted level is now at 6 stars.");
- WantedLevelColor(playerid);
- }
- else
- {
- format(string, 200, "[WANTED LEVEL UPDATE] Your new wanted level is now %d", GetPlayerWantedLevel(playerid));
- SendClientMessage(playerid, pcol, string);
- }
- return 1;
- }
- public WantedLevelColor(playerid)
- {
- new pwl = GetPlayerWantedLevel(playerid);
- if(pwl == 6)
- {
- SetPlayerColor(playerid, COLOR_RED);
- }
- if(pwl == 5)
- {
- SetPlayerColor(playerid, COLOR_ORANGE);
- }
- if(pwl == 4)
- {
- SetPlayerColor(playerid, COLOR_ORANGE);
- }
- if(pwl == 3)
- {
- SetPlayerColor(playerid, COLOR_ORANGE);
- }
- if(pwl == 2)
- {
- SetPlayerColor(playerid, COLOR_YELLOW);
- }
- if(pwl == 1)
- {
- SetPlayerColor(playerid, COLOR_YELLOW);
- }
- if(pwl == 0)
- {
- SetPlayerToTeamColor(playerid);
- }
- return 1;
- }
- public SendAdminMessage(msg[])
- {
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(GetPVarInt(i, "AdminLevel") == 1337)
- {
- SendClientMessage(i, COLOR_ADMIN, msg);
- }
- }
- }
- }
- public SendCopMessage(msg[])
- {
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(GetPVarInt(i, "CopRadio") == 1)
- {
- SendClientMessage(i, COLOR_BLUE, msg);
- }
- }
- }
- }
- public SendEliteMessage(msg[])
- {
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(GetPVarInt(i, "Elite") == 1337)
- {
- SendClientMessage(i, COLOR_ROYALBLUE, msg);
- }
- }
- }
- }
- public SendMedicMessage(msg[])
- {
- for(new i = 0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(gTeam[i] == Team_PrvtMed)
- {
- SendClientMessage(i, COLOR_FORESTGREEN, msg);
- }
- }
- }
- }
- public getCheckpointType(playerID)
- {
- return checkpointType[playerCheckpoint[playerID]];
- }
- public checkpointUpdate()
- {
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- for(new j=0; j < MAX_POINTS; j++)
- {
- if(isPlayerInArea(i, checkCoords[j]))
- {
- if(playerCheckpoint[i]!=j)
- {
- DisablePlayerCheckpoint(i);
- SetPlayerCheckpoint(i, checkpoints[j][0],checkpoints[j][1],checkpoints[j][2],checkpoints[j][3]);
- playerCheckpoint[i] = j;
- }
- }
- else
- {
- if(playerCheckpoint[i]==j)
- {
- DisablePlayerCheckpoint(i);
- playerCheckpoint[i] = 999;
- }
- }
- }
- }
- }
- }
- public isPlayerInArea(playerID, Float:data[4])
- {
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerID, X, Y, Z);
- if(X >= data[0] && X <= data[2] && Y >= data[1] && Y <= data[3])
- {
- return 1;
- }
- return 0;
- }
- public RemoveVariables(playerid)
- {
- DeletePVar(playerid, "AdminLevel");
- DeletePVar(playerid, "Banned");
- DeletePVar(playerid, "BankCash");
- DeletePVar(playerid, "Cash");
- DeletePVar(playerid, "WantedLevel");
- DeletePVar(playerid, "HasPack");
- DeletePVar(playerid, "Warnings");
- DeletePVar(playerid, "PackCash");
- DeletePVar(playerid, "ArmyPermission");
- DeletePVar(playerid, "HasSTDs");
- DeletePVar(playerid, "PackSnack");
- DeletePVar(playerid, "HasSnacks");
- DeletePVar(playerid, "HasPipe");
- DeletePVar(playerid, "PackPipe");
- DeletePVar(playerid, "HasPot");
- DeletePVar(playerid, "PackPot");
- DeletePVar(playerid, "PackCondom");
- DeletePVar(playerid, "HasCondom");
- DeletePVar(playerid, "HasExp");
- DeletePVar(playerid, "PackExp");
- DeletePVar(playerid, "Cuffed");
- DeletePVar(playerid, "Jailed");
- DeletePVar(playerid, "CuffTimer");
- DeletePVar(playerid, "JailTime");
- DeletePVar(playerid, "RobbingBank");
- DeletePVar(playerid, "RobSkill");
- DeletePVar(playerid, "BlowingAirport");
- DeletePVar(playerid, "BlowingPark");
- DeletePVar(playerid, "BlowingSign");
- DeletePVar(playerid, "BlowingBank");
- DeletePVar(playerid, "RobbingDrugHouse");
- DeletePVar(playerid, "RobbingSuburban");
- DeletePVar(playerid, "RobbingBinco");
- DeletePVar(playerid, "RobbingPizza");
- return 1;
- }
- public RapeAgain(playerid)
- {
- if(GetPVarInt(playerid, "RapeRecently") == 1)
- {
- SetPVarInt(playerid, "RapeRecently", 0);
- return 1;
- }
- return 1;
- }
- public IncreaseScore(playerid, value)
- {
- new pscore = GetPlayerScore(playerid);
- pscore +=value;
- SetPlayerScore(playerid, pscore);
- return 1;
- }
- public DecreaseScore(playerid, value)
- {
- new pscore = GetPlayerScore(playerid);
- pscore -=value;
- SetPlayerScore(playerid, pscore);
- return 1;
- }
- public WorldTime()
- {
- if(gametime == 0 && gameday == 7 && gameweek == 4)
- {
- SendClientMessageToAll(COLOR_GREEN, "The server has had it's montly Game Mode Restart.");
- SendRconCommand("gmx");
- }
- gametime++;
- if(gametime >=24)
- {
- gametime =0;
- }
- if(gametime == 0)
- {
- gameday ++;
- }
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- SetPlayerTime(i, gametime, 0);
- }
- }
- new string[30];
- SetWorldTime(gametime);
- format(string, sizeof(string), "[TIME] %d:00", gametime);
- SendClientMessageToAll(COLOR_GREY, string);
- if(gametime == 0 && gameday == 1)
- {
- SendClientMessageToAll(COLOR_WHITE,"[DATE] Monday");
- }
- if(gametime == 0 && gameday == 2)
- {
- SendClientMessageToAll(COLOR_WHITE,"[DATE] Tuesday");
- }
- if(gametime == 0 && gameday == 3)
- {
- SendClientMessageToAll(COLOR_WHITE,"[DATE] Wednesday");
- }
- if(gametime == 0 && gameday == 4)
- {
- SendClientMessageToAll(COLOR_WHITE,"[DATE] Thursday");
- }
- if(gametime == 0 && gameday == 5)
- {
- SendClientMessageToAll(COLOR_WHITE,"[DATE] Friday");
- }
- if(gametime == 0 && gameday == 6)
- {
- SendClientMessageToAll(COLOR_WHITE,"[DATE] Saturday");
- }
- if(gametime == 0 && gameday == 7)
- {
- SendClientMessageToAll(COLOR_WHITE,"[DATE] Sunday");
- }
- if(gametime == 23 && gameday == 7)
- {
- gameweek ++;
- gameday =1;
- if(gameweek == 1)
- {
- SendClientMessageToAll(COLOR_WHITE,"[WEEK] 1");
- }
- if(gameweek == 2)
- {
- SendClientMessageToAll(COLOR_WHITE,"[WEEK] 2");
- }
- if(gameweek == 3)
- {
- SendClientMessageToAll(COLOR_WHITE,"[WEEK] 3");
- }
- if(gameweek == 4)
- {
- SendClientMessageToAll(COLOR_WHITE,"[WEEK] 4");
- }
- }
- if(gametime == 23 && gameday == 7 && gameweek == 4)
- {
- SendClientMessageToAll(COLOR_BLUE,"[AUTO ADMIN] The server will restart in one game hour.");
- }
- }
- public ResetFondle(playerid)
- {
- SetPVarInt(playerid, "FondleRecent", 0);
- return 1;
- }
- public SixNineStoreRobAgain(playerid)
- {
- SetGVarInt("SixNineCentStoreRobbed", 0);
- return 1;
- }
- public Float:GetDistanceBetweenPlayers(p1,p2){
- new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
- if (!IsPlayerConnected(p1) || !IsPlayerConnected(p2)){
- return -1.00;
- }
- GetPlayerPos(p1,x1,y1,z1);
- GetPlayerPos(p2,x2,y2,z2);
- return floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
- }
- public ResetGVars()
- {
- DeleteGVar("SixNineRobbed");
- DeleteGVar("RobbedGasOne");
- DeleteGVar("SexShopRobbed");
- DeleteGVar("DanceDanceRobbed");
- DeleteGVar("AmmoRobbed");
- DeleteGVar("AirportBlown");
- DeleteGVar("ParkBlown");
- DeleteGVar("GasStationRobbed");
- DeleteGVar("SignBlown");
- DeleteGVar("BankBlown");
- DeleteGVar("DrugHouseCash");
- DeleteGVar("DrugHouseRobbed");
- DeleteGVar("SuburbanRobbed");
- DeleteGVar("BincoRobbed");
- DeleteGVar("PizzaRobbed");
- return 1;
- }
- /*
- public CarBombs()
- {
- //Terrorism Car Bombs
- for(new v=0; v<MAX_VEHICLES; v++)
- {
- if(VehicleInfo[v][bomb] > 1)
- {
- VehicleInfo[v][bomb] --;
- }
- if(VehicleInfo[v][bomb] == 1)
- {
- new Float:x, Float:y, Float:z;
- GetVehiclePos(v, x, y, z);
- CreateExplosion(x, y, z, 10, 10.0);
- SetVehicleToRespawn(v);
- VehicleInfo[v][bomb] = 0;
- }
- }
- return 1;
- }
- */
- public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) {
- if(IsPlayerAdmin(playerid) || GetPVarInt(playerid, "AdminLevel") == 1337) {
- SetPlayerPosFindZ(playerid, fX,fY,fZ);
- }
- return 1;
- }
- public Server()
- {
- //printf("Tick Count: %d",GetTickCount());
- for(new v=0; v<MAX_VEHICLES; v++)
- {
- if(VehicleInfo[v][bomb] > 1)
- {
- VehicleInfo[v][bomb] --;
- }
- if(VehicleInfo[v][bomb] == 1)
- {
- new Float:x, Float:y, Float:z;
- GetVehiclePos(v, x, y, z);
- CreateExplosion(x, y, z, 10, 10.0);
- SetVehicleToRespawn(v);
- VehicleInfo[v][bomb] = 0;
- }
- }
- if(GetGVarInt("ServerMsg") != 0) {
- SetGVarInt("ServerMsg", GetGVarInt("ServerMsg") -1);
- }
- if(GetGVarInt("ServerMsg") == 0) {
- new ran = random(4);
- SetGVarInt("ServerMsg",1000*60*5);
- if(ran == 1)
- {
- SendClientMessageToAll(COLOR_GREEN, "This is Cops n Robbers (Los Santos) script "VERSION" by Karagon. Bug reports please post on the SA-MP Forums.");
- SendClientMessageToAll(COLOR_GREEN, "The script hoster has the rights to change/modify the script, as long as the above line stays in.");
- }
- if(ran == 2)
- {
- SendClientMessageToAll(COLOR_BLUE, "Please remember that this is NOT a deathmatching server. You cannot kill people randomly. ");
- SendClientMessageToAll(COLOR_BLUE, "If you see a rule breaker, use '/report (ID) (reason)' to report the player to the admins.");
- SendClientMessageToAll(COLOR_BLUE, "Failure to do so can result in you being banned.");
- }
- if(ran == 3)
- {
- SendClientMessageToAll(COLOR_RED, "If you need help, type /commands. Also, feel free to ask the other players. ");
- }
- if(ran == 4)
- {
- SendClientMessageToAll(COLOR_LIGHTBLUE, "Remember to abide by all rules and guidelines! Have a great day!");
- }
- }
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(IsPlayerInAnyVehicle(i)) {
- TextDrawShowForPlayer(i,SpeedoBox[i]);
- TextDrawShowForPlayer(i, SpeedTDraw[i]);
- new string[110], Float:x, Float:y, Float:z;
- GetVehicleVelocity(GetPlayerVehicleID(i),x,y,z);
- format(string, 110, "%d mph", floatround(floatsqroot(((x*x)+(y*y))+(z*z))*156.666667));
- TextDrawSetString(vSpeed[i],string);
- TextDrawShowForPlayer(i,vSpeed[i]);
- TextDrawShowForPlayer(i,DamageTDraw[i]);
- new Float:hp;
- GetVehicleHealth(GetPlayerVehicleID(i),hp);
- format(string, 110, "%d", floatround(hp));
- TextDrawSetString(vDamage[i],string);
- TextDrawShowForPlayer(i,vDamage[i]);
- }
- if(!IsPlayerInAnyVehicle(i)) {
- RemovePlayerSpeedo(i);
- }
- new Float:health;
- GetPlayerHealth(i, health);
- if(GetPVarInt(i,"HealthDown") != 0) {
- SetPVarInt(i, "HealthDown", GetPVarInt(i, "HealthDown") -1);
- }
- if(GetPVarInt(i, "HasSTDs") == 1 && GetPVarInt(i, "Spawned") == 1 && health > 5 && IsPlayerConnected(i) && GetPVarInt(i, "HealthDown") == 0)
- {
- SetPlayerHealth(i, health-5);
- SetPVarInt(i, "HealthDown",30);
- }
- if(GetPVarInt(i, "HasSTDs") == 1 && GetPVarInt(i, "Spawned") == 1 && health <=5 && IsPlayerConnected(i))
- {
- new string[200];
- format(string, 200, "%s has died from STDs.", PlayerInfo(i));
- SendClientMessageToAll(COLOR_GREY, string);
- CNR_PrintString(string);
- SetPlayerHealth(i, -1);
- DeletePVar(i, "HasSTDs");
- DeletePVar(i, "HealthDown");
- }
- new current_zone = player_zone[i];
- if(GetPlayerMoney(i) > GetPVarInt(i, "OldCash"))
- {
- new string[200];
- if(GetPlayerMoney(i) > 2000000 && GetPVarInt(i, "AdminLevel") !=1337)
- {
- ResetPlayerMoney(i);
- format(string, 200, "[AUTO BAN] %s (CASH HACKS)", PlayerInfo(i));
- SendClientMessageToAll(COLOR_RED, string);
- CNR_PrintString(string);
- format(string, 200, "Banned for spawning $%d", GetPlayerMoney(i));
- SendClientMessage(i, COLOR_RED, "You have been detected as a cash hacker.");
- SendClientMessage(i, COLOR_RED, "If you think this is wrong, please appeal at our website.");
- SetPVarInt(i, "Banned", 1);
- BanEx(i, string);
- }
- }
- new pAction = GetPlayerSpecialAction(i);
- if(pAction == SPECIAL_ACTION_USEJETPACK)
- {
- if(GetPVarInt(i, "AdminLevel") == 0)
- {
- new string[200];
- format(string, sizeof(string), "[AUTO BAN] %s (JETPACK)", PlayerInfo(i));
- SendClientMessageToAll(COLOR_RED, string);
- CNR_PrintString(string);
- format(string, 200, "Banned for spawning a jetpack.");
- SendClientMessage(i, COLOR_RED, "You have been banned for spawning a Jetpack.");
- SendClientMessage(i, COLOR_RED, "If you think this is wrong, please appeal on our website.");
- SetPVarInt(i, "Banned", 1);
- BanEx(i, string);
- }
- }
- if(BanWeapon(i))
- {
- if(GetPVarInt(i, "AdminLevel") == 0)
- {
- if(GetPVarInt(i, "InEvent") == 0)
- {
- new string[200];
- format(string, 200, "[AUTO BAN] %s (WEAPON SPAWN)", PlayerInfo(i));
- SendClientMessageToAll(COLOR_RED, string);
- CNR_PrintString(string);
- SendClientMessage(i, COLOR_RED, "You have been banned for spawning an illegal weapon.");
- SendClientMessage(i, COLOR_RED, "If you think this is wrong, please appeal at our website.");
- SetPVarInt(i, "Banned", 1);
- BanEx(i, "AUTO BAN: Weapon Spawn");
- }
- }
- }
- if(GetPVarInt(i, "Jailed") == 1)
- {
- new string[200];
- SetPVarInt(i, "JailTime", GetPVarInt(i, "JailTime") -1);
- format(string, 200, "~b~Jail Time ~n~ ~r~%d", GetPVarInt(i, "JailTime"));
- GameTextForPlayer(i, string, 1000, 3);
- ResetPlayerWeapons(i);
- }
- if(GetPVarInt(i, "Cuffed") == 1)
- {
- SetPVarInt(i, "CuffTimer", GetPVarInt(i, "CuffedTimer") -1);
- }
- if(GetPVarInt(i, "Cuffed") == 1 && GetPVarInt(i, "CuffTimer") == 0)
- {
- TogglePlayerControllable(i, 1);
- new string[200];
- format(string, 200, "[ANTI ABUSE] %s has been auto uncuffed to prevent abuse.", PlayerInfo(i));
- SendClientMessageToAll(COLOR_BLUE, string);
- CNR_PrintString(string);
- SetPVarInt(i, "Cuffed", 0);
- SetPVarInt(i, "CuffTimer", 0);
- }
- if(GetPVarInt(i, "Jailed") == 1 && GetPVarInt(i, "JailTime") < 0)
- {
- SetPlayerPos(i, 237.110794, 111.975547, 1003.218750);
- SetPlayerInterior(i, 10);
- new string[120];
- format(string, 120, "[PRISON] %s has been auto released from prison.", PlayerInfo(i));
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- CNR_PrintString(string);
- SetPVarInt(i, "Jailed", 0);
- SetPVarInt(i, "JailTime", 0);
- }
- new Float:phealth;
- GetPlayerHealth(i, phealth);
- if(phealth >= 100.1 && GetPVarInt(i, "AdminLevel") == 0)
- {
- new string[200]; GetPlayerHealth(i, phealth);
- format(string, 200, "[AUTO BAN] %s [HEALTH HACKS]", PlayerInfo(i));
- SendClientMessageToAll(COLOR_RED, string);
- CNR_PrintString(string);
- SendClientMessage(i, COLOR_RED, "YOU HAVE BEEN BANNED FOR HEALTH HACKS.");
- SendClientMessage(i, COLOR_RED, "If you think this is wrong, please appeal at our website.");
- format(string, 200, "[AUTO BAN - HEALTH HACKS AT %d]", phealth);
- BanEx(i, string);
- SetPVarInt(i, "Banned", 1);
- }
- new Float:pArmour;
- GetPlayerArmour(i, pArmour);
- if(pArmour >= 100.1 && GetPVarInt(i, "AdminLevel") == 0)
- {
- new string[200]; GetPlayerArmour(i, pArmour);
- format(string, 200, "[AUTO BAN] %s [ARMOUR HACKS]", PlayerInfo(i));
- SendClientMessageToAll(COLOR_RED, string);
- CNR_PrintString(string);
- SendClientMessage(i, COLOR_RED, "YOU HAVE BEEN BANNED FOR HEALTH HACKS.");
- SendClientMessage(i, COLOR_RED, "If you think this is wrong, please appeal at our website.");
- format(string, 200, "[AUTO BAN - ARMOUR HACKS AT %d]", pArmour);
- BanEx(i, string);
- SetPVarInt(i, "Banned", 1);
- }
- if(GetPVarInt(i, "IsSick") == 1)
- {
- SetPlayerHealth(i, phealth -2);
- }
- if(GetPVarInt(i, "RobbingBank") > 1)
- {
- new string[45];
- format(string, 45, "~b~BANK ROBBERY ~n~ %d seconds left", GetPVarInt(i, "RobbingBank"));
- GameTextForPlayer(i, string, 1000, 3);
- }
- if(GetPVarInt(i, "RobbingBank") == 1)
- {
- new string[120];
- new rand = random(500000);
- format(string, 120, "[BANK ROBBERY] %s has robbed $%d from the Los Santos bank.", PlayerInfo(i), rand);
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- CNR_PrintString(string);
- GivePlayerMoney(i, rand);
- IncreaseWantedLevel(i, 6);
- IncreaseScore(i, 3);
- format(string, 120, "[DISPATCH] %s has robbed the Los Santos Bank. Respond now.", PlayerInfo(i));
- SendCopMessage(string);
- format(string, 120, "Type /radiooff to turn your radio off and stop recieving alerts.");
- SendCopMessage(string);
- SetPVarInt(i, "RobbingBank", 0);
- }
- if(GetGVarInt("BankRobbedRecently") > 1)
- {
- SetGVarInt("BankRobbedRecently", GetGVarInt("BankRobbedRecently") -1);
- }
- if(GetPVarInt(i, "HasBlownCar") > 1)
- {
- SetPVarInt(i, "HasBlownCar", GetPVarInt(i, "HasBlownCar") -1);
- }
- if(GetPVarInt(i, "HasBlownCar") < 0)
- {
- SetPVarInt(i, "HasBlownCar", 0);
- }
- if(GetPVarInt(i, "Horny") > 0)
- {
- SetPVarInt(i, "Horny", GetPVarInt(i, "Horny") -1);
- }
- if(GetPVarInt(i, "HadSex") > 0)
- {
- SetPVarInt(i, "HadSex", GetPVarInt(i, "HadSex") -1);
- }
- if(GetPVarInt(i, "RobbingSouthSex") > 1)
- {
- SetPVarInt(i, "RobbingSouthSex", GetPVarInt(i, "RobbingSouthSex") -1);
- new string[120];
- format(string, 120, "~b~ROBBERY IN PROGRESS ~N~ ~r~ STAY IN THE CHECKPOINT ~N~ ~p~ %d seconds left", GetPVarInt(i, "RobbingSouthSex"));
- GameTextForPlayer(i, string, 1000, 3);
- }
- if(GetPVarInt(i, "RobbingSouthSex") == 1)
- {
- new mrand = random(100000); new string[120];
- format(string, 120, "[ROBBERY] %s has robbed $%d from the South L.S Sex Shop!", PlayerInfo(i), mrand);
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- CNR_PrintString(string);
- format(string, 120, "[DISPATCH] %s has robbed the South Los Santos Sex Shop. Location: %s", PlayerInfo(i), zones[current_zone][zone_name]);
- IncreaseScore(i, 1);
- IncreaseWantedLevel(i, 4);
- GivePlayerMoney(i, mrand);
- if(GetPVarInt(i, "RobSkill") < 5)
- {
- SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
- format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased. It is now %d", GetPVarInt(i, "RobSkill"));
- SendClientMessage(i, COLOR_GREY, string);
- }
- SetPVarInt(i, "RobbingSouthSex", -1);
- SetGVarInt("SexShopRobbed", 300);
- }
- if(GetPVarInt(i, "RobbedSexShop") > 1)
- {
- SetPVarInt(i, "RobbedSexShop", GetPVarInt(i, "RobbedSexShop") -1);
- }
- if(GetGVarInt("SexShopRobbed") > 1)
- {
- SetGVarInt("SexShopRobbed", GetGVarInt("SexShopRobbed") -1);
- }
- if(GetPVarInt(i, "RobbingGasOne") > 1)
- {
- SetPVarInt(i, "RobbingGasOne", GetPVarInt(i, "RobbingGasOne") -1);
- new string[120];
- format(string, 120, "~b~ROBBERY IN PROGRESS ~N~ ~r~ STAY IN THE CHECKPOINT ~N~ ~p~ %d seconds left", GetPVarInt(i, "RobbingGasOne"));
- GameTextForPlayer(i, string, 1000, 3);
- }
- new string[120];
- if(GetPVarInt(i, "RobbingGasOne") == 1)
- {
- new mrand = random(75000);
- format(string, 120, "[ROBBERY] %s has robbed $%d from the Gas Station in south L.S.", PlayerInfo(i), mrand);
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- CNR_PrintString(string);
- format(string, 120, "[DISPATCH] %s has robbed the Gas Station in South L.S. Location: %s", PlayerInfo(i), zones[current_zone][zone_name]);
- SendCopMessage(string);
- format(string, 120, "Type /radiooff to turn off your Cop Radio and stop getting crime calls.");
- SendCopMessage(string);
- GivePlayerMoney(i, mrand);
- IncreaseScore(i, 1);
- IncreaseWantedLevel(i, 4);
- if(GetPVarInt(i, "RobSkill") < 5)
- {
- SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
- format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased! It is now %d", GetPVarInt(i, "RobSkill"));
- SendClientMessage(i, COLOR_GREY, string);
- }
- SetPVarInt(i, "RobbingGasOne", -1);
- SetGVarInt("GasOneRobbed", 300);
- }
- if(GetGVarInt("GasOneRobbed") > 1)
- {
- SetGVarInt("GasOneRobbed", GetGVarInt("GasOneRobbed") -1);
- }
- if(GetPVarInt(i, "RobbingDanceDance") > 1)
- {
- SetPVarInt(i, "RobbingDanceDance", GetPVarInt(i, "RobbingDanceDance") -1);
- format(string, 120, "~b~ROBBERY IN PROGRESS ~N~ ~r~ STAY IN THE CHECKPOINT ~N~ ~p~ %d seconds left", GetPVarInt(i, "RobbingDanceDance"));
- GameTextForPlayer(i, string, 1000, 3);
- }
- if(GetPVarInt(i, "RobbingDanceDance") == 1)
- {
- new mrand = random(65000);
- format(string, 120, "[ROBBERY] %s has robbed $%d from Dance Dance Revolution.",PlayerInfo(i), mrand);
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- CNR_PrintString(string);
- format(string, 120, "[DISPATCH] %s has robbed the Dance Dance Revolution. Location: %s", PlayerInfo(i), zones[current_zone][zone_name]);
- SendCopMessage(string);
- format(string, 120, "Type /radioof to turn off your Cop Radio.");
- SendCopMessage(string);
- IncreaseScore(i, 1);
- IncreaseWantedLevel(i, 4);
- GivePlayerMoney(i, mrand);
- if(GetPVarInt(i, "RobSkill") < 5)
- {
- SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
- format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased! It is now %d", GetPVarInt(i, "RobSkill"));
- SendClientMessage(i, COLOR_GREY, string);
- }
- SetPVarInt(i, "RobbingDancedance", -1);
- SetGVarInt("DanceDanceRobbed", 300);
- }
- if(GetGVarInt("DanceDancRobbed") > 1)
- {
- SetGVarInt("DanceDanceRobbed", GetGVarInt("DanceDanceRobbed") -1);
- }
- if(GetPVarInt(i, "RobbedRecently") > 1)
- {
- SetPVarInt(i, "RobbedRecently", GetPVarInt(i,"RobbedRecently") -1);
- }
- if(GetPVarInt(i, "RobbingAmmo") > 1)
- {
- SetPVarInt(i, "RobbingAmmo", GetPVarInt(i, "RobbingAmmo") -1);
- }
- if(GetPVarInt(i, "RobbingAmmo") > 1)
- {
- format(string, 120, "~b~ROBBERY IN PROGRESS ~N~ ~r~ STAY IN THE CHECKPOINT ~N~ ~p~ %d seconds left", GetPVarInt(i, "RobbingAmmo"));
- GameTextForPlayer(i, string, 1010, 3);
- }
- if(GetPVarInt(i, "RobbingAmmo") == 1)
- {
- format(string, 120, "[ROBBERY] %s has robbed weapons from the Central Los Santos Ammunation.", PlayerInfo(i));
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- CNR_PrintString(string);
- format(string, 120, "[DISPATCH] %s has robbed weapons from Ammunation. He's armed and dangerous. Location: %s", PlayerInfo(i), zones[current_zone][zone_name]);
- SendCopMessage(string);
- new arand = random(100);
- GivePlayerWeapon(i, 31, arand);
- new aranda = random(100);
- GivePlayerWeapon(i, 26, aranda);
- new arandb = random(120);
- GivePlayerWeapon(i, 22, arandb);
- new arandc = random(100);
- SetPlayerArmour(i, arandc);
- SendClientMessage(i, COLOR_RED, "You have robbed weapons from the Ammunation.");
- IncreaseWantedLevel(i, 4);
- IncreaseScore(i, 1);
- SetPVarInt(i, "RobbingAmmo", -1);
- SetGVarInt("AmmoRobbed", 400);
- if(GetPVarInt(i, "RobSkill") > 5 && GetPVarInt(i, "RobSkill") < 10)
- {
- SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
- format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased! It's now %d", GetPVarInt(i, "RobSkill"));
- SendClientMessage(i,COLOR_RED, string);
- }
- }
- if(GetPVarInt(i, "RobbingBurgerShot") > 1)
- {
- SetPVarInt(i, "RobbingBurgerShot", GetPVarInt(i, "RobbingBurgerShot") -1);
- format(string, 120, "~b~ROBBERY IN PROGRESS ~N~ ~r~ STAY IN THE CHECKPOINT ~N~ ~p~ %d seconds left", GetPVarInt(i, "RobbingBurgerShot"));
- GameTextForPlayer(i, string, 1010, 3);
- }
- if(GetPVarInt(i, "RobbingBurgerShot") == 1)
- {
- new mrand = random(50000);
- format(string, 120, "[ROBBERY] %s has robbed $%d from the Northern L.S Burger Shot.", PlayerInfo(i), mrand);
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- CNR_PrintString(string);
- format(string, 120, "[DISPATCH] %s has robbed the Northern Burger Shot. Location: %s", PlayerInfo(i), zones[current_zone][zone_name]);
- SendCopMessage(string);
- GivePlayerMoney(i, mrand);
- IncreaseScore(i, 1);
- IncreaseWantedLevel(i, 4);
- if(GetPVarInt(i, "RobSkill") < 5)
- {
- SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") +1);
- format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased! It's now %d", GetPVarInt(i, "RobSkill"));
- SendClientMessage(i, COLOR_RED, string);
- }
- SetGVarInt("BurgerShotRobbed", 120);
- SetPVarInt(i, "RobbingBurgerShot", -1);
- }
- if(GetGVarInt("BurgerShotRobbed") > 1)
- {
- SetGVarInt("BurgerShotRobbed", GetGVarInt("BurgerShotRobbed") -1);
- }
- if(GetPVarInt(i,"RobbingTatooShop") > 1)
- {
- SetPVarInt(i, "RobbingTatooShop", GetPVarInt(i, "RobbingTatooShop") -1);
- format(string, 120, "~b~ROBBERY IN PROGRESS ~N~ ~r~ STAY IN THE CHECKPOINT ~N~ ~p~ %d seconds left", GetPVarInt(i, "RobbingTatooShop"));
- GameTextForPlayer(i, string, 1010, 3);
- }
- if(GetPVarInt(i, "RobbingTatooShop") == 1)
- {
- new mrand = random(30000);
- format(string, 120, "[ROBBERY] %s has robbed $d from the Tatoo Shop.", PlayerInfo(i), mrand);
- CNR_PrintString(string);
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- format(string, 120, "[DISPATCH] %s has robbed the Tatoo Shop. Location: %s", PlayerInfo(i), zones[current_zone][zone_name]);
- SendCopMessage(string);
- GivePlayerMoney(i, mrand);
- IncreaseScore(i, 1);
- IncreaseWantedLevel(i, 4);
- SetPVarInt(i, "RobbingTatooShop", -1);
- SetGVarInt("TatooRobbed", 120);
- if(GetPVarInt(i, "RobSkill") < 3)
- {
- SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
- format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased! It is now %d", GetPVarInt(i, "RobSkill"));
- SendClientMessage(i, COLOR_RED, string);
- }
- }
- if(GetGVarInt("TatooRobbed") < 1)
- {
- SetGVarInt("TatooRobbed", GetGVarInt("TatooRobbed") -1);
- }
- if(GetPVarInt(i, "RobbingPigPen") > 1)
- {
- format(string, 120, "~b~ROBBERY IN PROGRESS ~N~ ~r~ STAY IN THE CHECKPOINT ~N~ ~p~ %d seconds left", GetPVarInt(i, "RobbingPigPen"));
- GameTextForPlayer(i, string, 1010, 3);
- }
- if(GetPVarInt(i, "RobbingPigPen") == 1)
- {
- new mrand = random(45000);
- format(string, 120, "[ROBBERY] %s has robbed %d from the the Pig Pen.", PlayerInfo(i), mrand);
- CNR_PrintString(string);
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- format(string, 120, "[DISPATCH] %s has robbed the Pig Pen in %s. Go arrest the suspect. Location: %s", PlayerInfo(i),zones[current_zone][zone_name]);
- SendCopMessage(string);
- SetPVarInt(i, "RobbingPigPen", -1);
- SetGVarInt("PigPenRobbed", 300);
- IncreaseScore(i, 1);
- IncreaseWantedLevel(i, 4);
- if(GetPVarInt(i, "RobSkill") < 5)
- {
- SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
- format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased! It is now %d", GetPVarInt(i, "RobSkill"));
- SendClientMessage(i, COLOR_RED, string);
- }
- }
- if(GetGVarInt("PigPenRobbed") > 1)
- {
- SetGVarInt("PigPenRobbed", GetGVarInt("PigPenRobbed") -1);
- }
- if(GetGVarInt("AirportBlown") > 1)
- {
- SetGVarInt("AirportBlown", GetGVarInt("AirportBlown") -1);
- }
- if(GetGVarInt("ParkBlown") > 1)
- {
- SetGVarInt("ParkBlown", GetGVarInt("ParkBlown") -1);
- }
- if(GetPVarInt(i, "RobbingGasStation") > 1)
- {
- format(string, 120, "~b~ROBBERY IN PROGRESS ~N~ ~r~ STAY IN THE CHECKPOINT ~N~ ~p~ %d seconds left", GetPVarInt(i, "RobbingGasStation"));
- GameTextForPlayer(i, string, 1010, 3);
- }
- if(GetPVarInt(i, "RobbingGasStation") > 1)
- {
- SetPVarInt(i, "RobbingGasStation", GetPVarInt(i, "RobbingGasStation") -1);
- }
- if(GetPVarInt(i, "RobbingGasStation") == 1)
- {
- new mrand = random(65000);
- format(string, 120, "[ROBBERY] %s has robbed $%d from the gas station in %s", PlayerInfo(i), mrand, zones[current_zone][zone_name]);
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- CNR_PrintString(string);
- format(string, 120, "[DISPATCH] %s has robbed the Gas Station in %s. Go arrest the suspect.", PlayerInfo(i), zones[current_zone][zone_name]);
- SendCopMessage(string);
- IncreaseScore(i, 1);
- IncreaseWantedLevel(i, 4);
- GivePlayerMoney(i, mrand);
- if(GetPVarInt(i, "RobSkill") < 5)
- {
- SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
- format(string, 120, "[SKILL UPGRADE] Your rob skill has increased to %s!", GetPVarInt(i, "RobSkill"));
- SendClientMessage(i, COLOR_RED, string);
- }
- SetPVarInt(i, "RobbingGasStation", -1);
- }
- if(GetGVarInt("SignBlown") > 1)
- {
- SetGVarInt("SignBlown", GetGVarInt("SignBlown") -1);
- }
- if(GetGVarInt("BankBlown") > 1)
- {
- SetGVarInt("BankBlown", GetGVarInt("BankBlown") -1);
- }
- if(GetPVarInt(i, "EatenSnacks") > 1)
- {
- SetPVarInt(i, "EatenSnacks", GetPVarInt(i, "EatenSnacks") -1);
- }
- if(GetPVarInt(i, "HasSmoked") > 1)
- {
- SetPVarInt(i, "HasSmoked", GetPVarInt(i, "HasSmoked") -1);
- }
- if(GetPVarInt(i, "UsedPot") > 1)
- {
- SetPVarInt(i, "UsedPot", GetPVarInt(i, "UsedPot") -1);
- }
- if(GetGVarInt("DrugHouseRobbed") > 1)
- {
- SetGVarInt("DrugHouseRobbed", GetGVarInt("DrugHouseRobbed") -1);
- }
- if(GetPVarInt(i, "RobbingDrugHouse") > 1)
- {
- format(string, 120, "~r~ ROBBERY IN PROGRESS ~N~ ~r~ STAY IN THE CHECKPOINT ~N~ ~p~ %d seconds left", GetPVarInt(i, "RobbingDrugHouse"));
- GameTextForPlayer(i, string, 1050, 3);
- SetPVarInt(i, "RobbingDrugHouse", GetPVarInt(i, "RobbingDrugHouse") -1);
- }
- if(GetPVarInt(i, "RobbingDrugHouse") == 1)
- {
- new mrand = random(GetGVarInt("DrugHouseCash"));
- format(string, 120, "[ROBBERY] %s has robbed $%d from the Drug House in %s", PlayerInfo(i), mrand, zones[current_zone][zone_name]);
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- CNR_PrintString(string);
- format(string, 120, "[DISPATCH] %s has robbed the Drug House in %s. Go arrest the suspect.", PlayerInfo(i), zones[current_zone][zone_name]);
- SendCopMessage(string);
- GivePlayerMoney(i, mrand);
- SetGVarInt("DrugHouseCash", GetGVarInt("DrugHouseCash") -mrand);
- IncreaseScore(i, 1);
- IncreaseWantedLevel(i, 4);
- SetPVarInt(i, "RobbingDrugHouse", -1);
- SetGVarInt("DrugHouseRobbed", 200);
- if(GetPVarInt(i, "RobSkill") < 10)
- {
- SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
- format(string, 120, "[SKILL UPGRADE] Your robbing skill is now %d!", GetPVarInt(i, "RobSkill"));
- SendClientMessage(i, COLOR_RED, string);
- return 1;
- }
- }
- if(GetGVarInt("SuburbanRobbed") > 1)
- {
- SetGVarInt("SuburbanRobbed", GetGVarInt("SuburbanRobbed") -1);
- }
- if(GetPVarInt(i, "RobbingSuburban") > 1)
- {
- SetPVarInt(i, "RobbingSuburban", GetPVarInt(i, "RobbingSuburban") -1);
- format(string, 120, "~r~ ROBBERY IN PROGRESS ~N~ ~b~ STAY IN THE CHECKPOINT ~n~ ~p~ %d seconds left", GetPVarInt(i, "RobbingSuburban"));
- GameTextForPlayer(i, string, 1100, 3);
- }
- if(GetPVarInt(i, "RobbingSuburban") == 1)
- {
- new mrand = random(35000);
- format(string, 120, "[ROBBERY] %s has robbed $%d from the Suburban in %s", PlayerInfo(i), mrand, zones[current_zone][zone_name]);
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- CNR_PrintString(string);
- format(string, 120, "[DISPATCH] %s has robbed the Suburban in %s. Go arrest the suspect.", PlayerInfo(i), zones[current_zone][zone_name]);
- SendCopMessage(string);
- IncreaseScore(i, 1);
- IncreaseWantedLevel(i, 4);
- SetPVarInt(i, "RobbingSuburban", -1);
- GivePlayerMoney(i, mrand);
- if(GetPVarInt(i, "RobSkill") < 5)
- {
- SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
- format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased to %d!", GetPVarInt(i, "RobSkill"));
- SendClientMessage(i, COLOR_RED, string);
- return 1;
- }
- }
- if(GetPVarInt(i, "RobbingBinco") > 1)
- {
- SetPVarInt(i, "RobbingBinco", GetPVarInt(i, "RobbingBinco") -1);
- format(string, 120, "~R~ ROBBERY IN PROGRESS ~n~ ~b~ STAY IN THE CHECKPOINT ~n~ ~P~ %d seconds left", GetPVarInt(i, "RobbingBinco"));
- GameTextForPlayer(i, string, 1100, 3);
- }
- if(GetPVarInt(i, "RobbingBinco") == 1)
- {
- new mrand = random(45000);
- format(string, 120, "[ROBBERY] %s has robbed $%d from the Binco in %s", PlayerInfo(i), mrand, zones[current_zone][zone_name]);
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- CNR_PrintString(string);
- format(string, 120, "[DISPATCH] %s has robbed the Binco in %s", PlayerInfo(i), zones[current_zone][zone_name]);
- SendCopMessage(string);
- IncreaseScore(i, 1);
- IncreaseWantedLevel(i, 4);
- SetPVarInt(i, "RobbingBinco", -1);
- GivePlayerMoney(i, mrand);
- if(GetPVarInt(i, "RobSkill") < 5)
- {
- SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
- format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased to %d", GetPVarInt(i, "RobSkill"));
- SendClientMessage(i, COLOR_RED, string);
- return 1;
- }
- }
- if(GetGVarInt("BincoRobbed") > 1)
- {
- SetGVarInt("BincoRobbed", GetGVarInt("BincoRobbed") -1);
- }
- if(GetPVarInt(i, "RobbingPizza") > 1)
- {
- SetPVarInt(i, "RobbingPizza", GetPVarInt(i, "RobbingPizza") -1);
- format(string, 120, "~r~ STAY IN THE CHECKPOINT ~N~ ~b~ ROBBERY IN PROGRESS ~n~ ~P~ %d seconds left", GetPVarInt(i, "RobbingPizza"));
- GameTextForPlayer(i, string, 1100, 3);
- }
- if(GetGVarInt("PizzaRobbed") > 1)
- {
- SetGVarInt("PizzaRobbed", GetGVarInt("PizzaRobbed") -1);
- }
- if(GetPVarInt(i, "RobbingPizza") == 1)
- {
- new mrand = random(25000);
- format(string, 120, "[ROBBERY] %s has robbed $%d from the Well Stacked Pizza Parlor in %s",PlayerInfo(i), mrand, zones[current_zone][zone_name]);
- SendClientMessageToAll(COLOR_LIGHTBLUE, string);
- CNR_PrintString(string);
- format(string, 120, "[DISPATCH] %s has robbed the Pizza Parlor in %s", PlayerInfo(i), zones[current_zone][zone_name]);
- SendCopMessage(string);
- GivePlayerMoney(i, mrand);
- SetPVarInt(i, "RobbingPizza", -1);
- IncreaseScore(i, 1);
- IncreaseWantedLevel(i, 4);
- if(GetPVarInt(i, "RobSkill") < 5)
- {
- SetPVarInt(i, "RobSkill", GetPVarInt(i, "RobSkill") + 1);
- format(string, 120, "[SKILL UPGRADE] Your robbing skill has increased to %d", GetPVarInt(i, "RobSkill"));
- return 1;
- }
- }
- }
- }
- //printf("Tick Count: %d", GetTickCount());
- return 1;
- }
- public BanWeapon(playerid)
- {
- if(GetPlayerWeapon(playerid) == 16 || GetPlayerWeapon(playerid) == 17 || GetPlayerWeapon(playerid) == 35 ||
- GetPlayerWeapon(playerid) == 36 || GetPlayerWeapon(playerid) == 37 || GetPlayerWeapon(playerid) == 38 ||
- GetPlayerWeapon(playerid) == 39 || GetPlayerWeapon(playerid) == 40 || GetPlayerWeapon(playerid) == 18)
- {
- return 1;
- }
- return 0;
- }
- public SaveStats()
- {
- for(new i = 0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i)) {
- if(PLAYERLIST_authed[i])
- {
- dUserSetINT(PlayerName(i)).("Score", GetPlayerScore(i));
- dUserSetINT(PlayerName(i)).("AdminLevel", GetPVarInt(i, "AdminLevel"));
- dUserSetINT(PlayerName(i)).("Cash", GetPlayerMoney(i));
- dUserSetINT(PlayerName(i)).("BankCash", GetPVarInt(i, "BankCash"));
- dUserSetINT(PlayerName(i)).("Banned", GetPVarInt(i, "Banned"));
- dUserSetINT(PlayerName(i)).("WantedLevel", GetPlayerWantedLevel(i));
- dUserSetINT(PlayerName(i)).("Warnings", GetPVarInt(i, "Warnings"));
- dUserSetINT(PlayerName(i)).("HasPack", GetPVarInt(i, "HasPack"));
- dUserSetINT(PlayerName(i)).("ArmyPermission", GetPVarInt(i, "ArmyPermission"));
- dUserSetINT(PlayerName(i)).("PackCash", GetPVarInt(i, "PackCash"));
- dUserSetINT(PlayerName(i)).("PackSnack", GetPVarInt(i, "PackSnack"));
- dUserSetINT(PlayerName(i)).("PackPipe", GetPVarInt(i, "PackPipe"));
- dUserSetINT(PlayerName(i)).("PackPot", GetPVarInt(i, "PackPot"));
- dUserSetINT(PlayerName(i)).("PackCondom", GetPVarInt(i, "PackCondom"));
- dUserSetINT(PlayerName(i)).("JailTime", GetPVarInt(i, "JailTime"));
- dUserSetINT(PlayerName(i)).("RobSkill", GetPVarInt(i, "RobSkill"));
- dUserSetINT(PlayerName(i)).("Elite", GetPVarInt(i, "Elite"));
- dUserSetINT(PlayerName(i)).("PackExp", GetPVarInt(i, "PackExp"));
- dUserSetINT(PlayerName(i)).("TerrorSkill", GetPVarInt(i, "TerrorSkill"));
- }
- }
- }
- return 1;
- }
- encode_tires(tires1, tires2, tires3, tires4) {
- return tires1 | (tires2 << 1) | (tires3 << 2) | (tires4 << 3);
- }
- stock CreateStrip(Float:x, Float:y, Float:z, Float:Angle)
- {
- for(new i = 0; i < sizeof(SInfo); i ++)
- {
- if(SInfo[i][SpikeCreated] == 0)
- {
- SInfo[i][SpikeCreated] = 1;
- SInfo[i][SX] = x;
- SInfo[i][SY] = y;
- SInfo[i][SZ] = z-0.7;
- SInfo[i][sObject] = CreateObject(2899, x, y, z-0.9, 0, 0, Angle-90);
- return 1;
- }
- }
- return 0;
- }
- stock RemoveClosestSpike(playerid)
- {
- for(new i = 0; i < sizeof(SInfo); i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 2.0, SInfo[i][SX], SInfo[i][SY], SInfo[i][SZ]))
- {
- if(SInfo[i][SpikeCreated] == 1)
- {
- SInfo[i][SpikeCreated]=0;
- SInfo[i][SX]=0.0;
- SInfo[i][SY]=0.0;
- SInfo[i][SZ]=0.0;
- DestroyObject(SInfo[i][sObject]);
- return 1;
- }
- }
- }
- return 0;
- }
- stock RemoveAllSpikes()
- {
- for(new i = 0; i < sizeof(SInfo); i++)
- {
- if(SInfo[i][SpikeCreated] == 1)
- {
- SInfo[i][SpikeCreated]=0;
- SInfo[i][SX]=0.0;
- SInfo[i][SY]=0.0;
- SInfo[i][SZ]=0.0;
- DestroyObject(SInfo[i][sObject]);
- }
- }
- return 0;
- }
- public IsABike(carid)
- {
- if(GetVehicleModel(carid) == 509 || GetVehicleModel(carid) == 481 || GetVehicleModel(carid) == 510)
- {
- return 1;
- }
- return 0;
- }
- public Weather()
- {
- new wrand = random(6);
- if(wrand == 1)
- {
- SendClientMessageToAll(COLOR_LIME, "[WEATHER ALERT] The weather has taken a turn for the worse. It seems if a storm is rolling in.");
- SetWeather(16);
- return 1;
- }
- if(wrand == 2)
- {
- SendClientMessageToAll(COLOR_LIME, "[WEATHER ALERT] The dust storm from Las Venturas is rolling in yet again. Expect low sight distance.");
- SetWeather(42);
- return 1;
- }
- if(wrand == 3)
- {
- SendClientMessageToAll(COLOR_LIME, "[WEATHER ALERT] Clouds are moving in from the coast, and will bring a chance of rain.");
- SetWeather(12);
- return 1;
- }
- if(wrand == 4)
- {
- SendClientMessageToAll(COLOR_LIME, "[WEATHER ALERT] The rain is coming in. Expect foggy conditions.");
- SetWeather(9);
- return 1;
- }
- if(wrand == 5)
- {
- SendClientMessageToAll(COLOR_LIME, "[WEATHER ALERT] It's gonna be a normal day, folks. Sunny skies all day.");
- SetWeather(10);
- return 1;
- }
- if(wrand == 6)
- {
- SendClientMessageToAll(COLOR_LIME, "[WEATHER ALERT] Seems as though the sun is in an odd position today. Expect odd colored skies.");
- SetWeather(2009);
- return 1;
- }
- return 1;
- }
- /**
- * It is much easier to actually make this print than to replace all of it in the script.
- * Same goes for public IRCAdmin
- */
- stock CNR_PrintString(msg[]) {
- print(msg);
- }
- public GivePlayerTeamWeapons(playerid)
- {
- if(gTeam[playerid] == Team_Cop)
- {
- GivePlayerWeapon(playerid, 3, 1);
- GivePlayerWeapon(playerid, 22, 100);
- GivePlayerWeapon(playerid, 29, 500);
- GivePlayerWeapon(playerid, 33, 10);
- SetPlayerArmour(playerid, 100.0);
- return 1;
- }
- if(gTeam[playerid] == Team_FBI)
- {
- GivePlayerWeapon(playerid, 3, 1);
- GivePlayerWeapon(playerid, 22, 100);
- GivePlayerWeapon(playerid, 29, 500);
- GivePlayerWeapon(playerid, 31, 100);
- SetPlayerArmour(playerid, 100.0);
- return 1;
- }
- if(gTeam[playerid] == Team_Army)
- {
- GivePlayerWeapon(playerid, 24, 50);
- GivePlayerWeapon(playerid, 31, 500);
- GivePlayerWeapon(playerid, 34, 20);
- GivePlayerWeapon(playerid, 26, 25);
- SetPlayerArmour(playerid, 100.0);
- return 1;
- }
- if(gTeam[playerid] == Team_Rape)
- {
- GivePlayerWeapon(playerid, 22, 100);
- return 1;
- }
- if(gTeam[playerid] == Team_Terror)
- {
- GivePlayerWeapon(playerid, 31, 100);
- GivePlayerWeapon(playerid, 32, 250);
- return 1;
- }
- if(gTeam[playerid] == Team_Steal)
- {
- GivePlayerWeapon(playerid, 22, 100);
- GivePlayerWeapon(playerid, 32, 100);
- return 1;
- }
- if(gTeam[playerid] == Team_PrvtMed)
- {
- GivePlayerWeapon(playerid, 22, 100);
- GivePlayerWeapon(playerid, 4, 1);
- return 1;
- }
- return 1;
- }
- public Taxes()
- {
- new string[120];
- for(new i = 0; i<MAX_PLAYERS; i++)
- {
- if(gTeam[i] == Team_Cop || gTeam[i] == Team_FBI || gTeam[i] == Team_Army)
- {
- format(string, 120, "[DAILY CHECK] You have gotten your daily check of $15,000. Keep up the good work!");
- SendCopMessage(string);
- format(string, 120, "[DAILY PAY] The Cops have recieved their daily pay of $15,000");
- CNR_PrintString(string);
- GivePlayerMoney(i, 15000);
- }
- }
- return 1;
- }
- //xObjects
- public Timer()
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- if(IsPlayerConnected(i))
- PlayerObjectUpdate(i);
- }
- PlayerObjectUpdate(playerid)
- {
- new Float:pos[3];
- GetPlayerPos(playerid,pos[0],pos[1],pos[2]);
- for(new i = 0; i < sizeof(Objects); i++)
- {
- if(!Player[playerid][view][i])
- {
- if(IsInReach(pos[0],pos[1],pos[2],Objects[i][ox],Objects[i][oy],Objects[i][oz],Objects[i][viewdist]))
- {
- Player[playerid][view][i] = true;
- Player[playerid][objid][i] = CreatePlayerObject(playerid,Objects[i][xmodelid],Objects[i][ox],Objects[i][oy],Objects[i][oz],Objects[i][orx],Objects[i][ory],Objects[i][orz],350.0);
- }
- } else if(!IsInReach(pos[0],pos[1],pos[2],Objects[i][ox],Objects[i][oy],Objects[i][oz],Objects[i][viewdist]))
- {
- Player[playerid][view][i] = false;
- DestroyPlayerObject(playerid,Player[playerid][objid][i]);
- }
- }
- }
- forward SetPlayerPosWithObjects(playerid,Float:x,Float:y,Float:z);
- public SetPlayerPosWithObjects(playerid,Float:x,Float:y,Float:z)
- {
- for(new i = 0; i < sizeof(Objects); i++)
- {
- if(!Player[playerid][view][i])
- {
- if(IsInReach(x,y,z,Objects[i][ox],Objects[i][oy],Objects[i][oz],Objects[i][viewdist]))
- {
- Player[playerid][view][i] = true;
- Player[playerid][objid][i] = CreatePlayerObject(playerid,Objects[i][xmodelid],Objects[i][ox],Objects[i][oy],Objects[i][oz],Objects[i][orx],Objects[i][ory],Objects[i][orz],350.0);
- }
- } else if(!IsInReach(x,y,z,Objects[i][ox],Objects[i][oy],Objects[i][oz],Objects[i][viewdist]))
- {
- Player[playerid][view][i] = false;
- DestroyPlayerObject(playerid,Player[playerid][objid][i]);
- }
- }
- SetPlayerPos(playerid,Float:x,Float:y,Float:z);
- }
- /////////
- //Los Santos Airpot explosions
- forward APPlantOne();
- forward APPlantTwo();
- forward APPlantThree();
- forward APPlantFour();
- forward APPlantFive();
- forward APPlantSix();
- forward APPlantSeven();
- forward APPlantEight();
- forward AirportExplode();
- forward AirportExplode2();
- forward AirportExplode3();
- forward AirportExplode4();
- //Bomb Objects
- new APBomb1;
- new APBomb2;
- new APBomb3;
- new APBomb4;
- new APBomb5;
- new APBomb6;
- new APBomb7;
- public APPlantOne()
- {
- for(new i = 0; i < MAX_PLAYERS; i ++ )
- {
- if(GetPVarInt(i, "BlowingAirport") == 1)
- {
- SetPlayerFacingAngle(i,227.48);
- TogglePlayerControllable(i, false);
- SetPlayerPos(i,1446.511230, -2259.595703, 13.546875);
- SetCameraBehindPlayer(i);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0,0);
- APBomb1 = CreateObject(1252, 1446.511230, -2259.595703, 13.546875 , 0, 0, 0);
- SetTimer("APPlantTwo", 5000, 0);
- }
- }
- return 1;
- }
- public APPlantTwo()
- {
- for(new i = 0; i<MAX_PLAYERS;i++)
- {
- if(GetPVarInt(i, "BlowingAirport") == 1)
- {
- SetPlayerFacingAngle(i,181.73);
- TogglePlayerControllable(i, false);
- SetPlayerPos(i, 1474.257080, -2247.815917, 13.546875);
- SetCameraBehindPlayer(i);
- APBomb2 = CreateObject(1252, 1474.257080, -2247.815917, 13.546875, 0, 0,0);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("APPlantThree", 1000*5, 0);
- }
- }
- return 1;
- }
- public APPlantThree()
- {
- for(new i = 0; i<MAX_PLAYERS;i++)
- {
- if(GetPVarInt(i, "BlowingAirport") == 1)
- {
- SetPlayerFacingAngle(i,137.86);
- TogglePlayerControllable(i, false);
- SetPlayerPos(i, 1501.784790, -2258.842773, 13.546875);
- SetCameraBehindPlayer(i);
- APBomb3 = CreateObject(1252, 1501.784790, -2258.842773, 13.546875, 0, 0,0);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("APPlantFour", 1000*5,0);
- }
- }
- return 1;
- }
- public APPlantFour()
- {
- for(new i = 0; i<MAX_PLAYERS;i++)
- {
- if(GetPVarInt(i, "BlowingAirport") == 1)
- {
- SetPlayerFacingAngle(i,45.74);
- TogglePlayerControllable(i, false);
- SetPlayerPos(i, 1502.540283, -2313.813232, 13.546875);
- SetCameraBehindPlayer(i);
- APBomb4 = CreateObject(1252, 1502.540283, -2313.813232, 13.546875, 0, 0,0);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("APPlantFive", 5000,0);
- }
- }
- return 1;
- }
- public APPlantFive()
- {
- for(new i = 0; i<MAX_PLAYERS;i++)
- {
- if(GetPVarInt(i, "BlowingAirport") == 1)
- {
- SetPlayerFacingAngle(i,3.13);
- TogglePlayerControllable(i, false);
- SetPlayerPos(i, 1475.110595, -2325.812011, 13.546875);
- SetCameraBehindPlayer(i);
- APBomb5 = CreateObject(1252, 1475.110595, -2325.812011, 13.546875, 0, 0,0);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("APPlantSix", 5000, 0);
- }
- }
- return 1;
- }
- public APPlantSix()
- {
- for(new i = 0; i<MAX_PLAYERS;i++)
- {
- if(GetPVarInt(i, "BlowingAirport") == 1)
- {
- SetPlayerFacingAngle(i,311.43);
- TogglePlayerControllable(i, false);
- SetPlayerPos(i, 1446.560058, -2314.601074, 13.546875);
- SetCameraBehindPlayer(i);
- APBomb6 = CreateObject(1252, 1446.560058, -2314.601074, 13.546875, 0, 0,0);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("APPlantSeven", 5000, 0);
- }
- }
- return 1;
- }
- public APPlantSeven()
- {
- for(new i = 0; i<MAX_PLAYERS;i++)
- {
- if(GetPVarInt(i, "BlowingAirport") == 1)
- {
- SetPlayerFacingAngle(i,88.36);
- TogglePlayerControllable(i, false);
- SetPlayerPos(i, 1474.212158, -2287.304687, 42.420486);
- SetCameraBehindPlayer(i);
- APBomb7 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("APPlantEight", 5000, 0);
- }
- }
- return 1;
- }
- public APPlantEight()
- {
- for(new i = 0; i<MAX_PLAYERS;i++)
- {
- if(GetPVarInt(i, "BlowingAirport") == 1)
- {
- TogglePlayerControllable(i, true);
- SetPlayerPos(i, 1418.392700, -2276.415771, 13.541189);
- SetCameraBehindPlayer(i);
- GameTextForPlayer(i, "~b~ STAND BACK ~N~ ~r~ IT WILL EXPLODE SOON", 3000, 3);
- SendClientMessage(i, COLOR_RED, "[TERRORISM] You have blown up the Airport. Run for your life!");
- SetTimer("AirportExplode", 1000*5, 0);
- SetPVarInt(i, "BlowingAirport", 0);
- SetPlayerFacingAngle(i, 264.50);
- }
- }
- return 1;
- }
- public AirportExplode()
- {
- CreateExplosion(1446.511230, -2259.595703, 13.546875, 10, 10);
- CreateExplosion(1474.257080, -2247.815917, 13.546875, 10, 10);
- CreateExplosion(1501.784790, -2258.842773, 13.546875, 10, 10);
- CreateExplosion(1502.540283, -2313.813232, 13.546875, 10, 10);
- CreateExplosion(1475.110595, -2325.812011, 13.546875, 10, 10);
- CreateExplosion(1446.560058, -2314.601074, 13.546875, 10, 10);
- CreateExplosion(1474.212158, -2287.304687, 42.420486, 10, 10);
- DestroyObject(APBomb1);
- DestroyObject(APBomb2);
- DestroyObject(APBomb3);
- DestroyObject(APBomb4);
- DestroyObject(APBomb5);
- DestroyObject(APBomb6);
- DestroyObject(APBomb7);
- SetTimer("AirportExplode2", 1000*5, 0);
- return 1;
- }
- public AirportExplode2()
- {
- CreateExplosion(1446.511230, -2259.595703, 13.546875, 10, 10);
- CreateExplosion(1474.257080, -2247.815917, 13.546875, 10, 10);
- CreateExplosion(1501.784790, -2258.842773, 13.546875, 10, 10);
- CreateExplosion(1502.540283, -2313.813232, 13.546875, 10, 10);
- CreateExplosion(1475.110595, -2325.812011, 13.546875, 10, 10);
- CreateExplosion(1446.560058, -2314.601074, 13.546875, 10, 10);
- CreateExplosion(1474.212158, -2287.304687, 42.420486, 10, 10);
- SetTimer("AirportExplode3", 1000*6, 0);
- return 1;
- }
- public AirportExplode3()
- {
- CreateExplosion(1446.511230, -2259.595703, 13.546875, 10, 10);
- CreateExplosion(1474.257080, -2247.815917, 13.546875, 10, 10);
- CreateExplosion(1501.784790, -2258.842773, 13.546875, 10, 10);
- CreateExplosion(1502.540283, -2313.813232, 13.546875, 10, 10);
- CreateExplosion(1475.110595, -2325.812011, 13.546875, 10, 10);
- CreateExplosion(1446.560058, -2314.601074, 13.546875, 10, 10);
- CreateExplosion(1474.212158, -2287.304687, 42.420486, 10, 10);
- SetTimer("AirportExplode4", 1000*7, 0);
- return 1;
- }
- public AirportExplode4()
- {
- CreateExplosion(1446.511230, -2259.595703, 13.546875, 10, 10);
- CreateExplosion(1474.257080, -2247.815917, 13.546875, 10, 10);
- CreateExplosion(1501.784790, -2258.842773, 13.546875, 10, 10);
- CreateExplosion(1502.540283, -2313.813232, 13.546875, 10, 10);
- CreateExplosion(1475.110595, -2325.812011, 13.546875, 10, 10);
- CreateExplosion(1446.560058, -2314.601074, 13.546875, 10, 10);
- CreateExplosion(1474.212158, -2287.304687, 42.420486, 10, 10);
- return 1;
- }
- //
- //Amusement park Blowing (PVar - BlowingPark) Public : ParkPlantOne and on
- forward ParkPlantOne();
- forward ParkPlantTwo();
- forward ParkPlantThree();
- forward ParkPlantFour();
- forward ParkPlantFive();
- forward ParkPlantSix();
- forward ParkPlantSeven();
- forward ParkPlantEight();
- forward ParkPlantNine();
- forward ParkPlantTen();
- forward ParkBlowOne();
- forward ParkBlowTwo();
- forward ParkBlowThree();
- forward ParkBlowFour();
- new ParkBomb1;
- new ParkBomb2;
- new ParkBomb3;
- new ParkBomb4;
- new ParkBomb5;
- new ParkBomb6;
- new ParkBomb7;
- new ParkBomb8;
- new ParkBomb9;
- public ParkPlantOne()
- {
- for(new i = 0; i < MAX_PLAYERS; i ++)
- {
- if(GetPVarInt(i, "BlowingPark") == 1)
- {
- TogglePlayerControllable(i, false);
- SetPlayerPos(i, 386.390991, -2016.805053, 7.835937);
- SetPlayerFacingAngle(i,271.95);
- SetCameraBehindPlayer(i);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- ParkBomb1 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
- SetTimer("ParkPlantTwo", 4000, false);
- }
- }
- return 1;
- }
- public ParkPlantTwo()
- {
- for(new i = 0; i < MAX_PLAYERS; i ++)
- {
- if(GetPVarInt(i, "BlowingPark") == 1)
- {
- TogglePlayerControllable(i, false);
- SetPlayerPos(i, 393.594512, -2016.958374, 7.835937);
- SetPlayerFacingAngle(i,89.59);
- SetCameraBehindPlayer(i);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- ParkBomb2 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
- SetTimer("ParkPlantThree", 4000, false);
- }
- }
- return 1;
- }
- public ParkPlantThree()
- {
- for(new i = 0; i < MAX_PLAYERS; i ++)
- {
- if(GetPVarInt(i, "BlowingPark") == 1)
- {
- TogglePlayerControllable(i, false);
- SetPlayerPos(i, 393.441101, -2040.196533, 7.835937);
- SetPlayerFacingAngle(i,93.03);
- SetCameraBehindPlayer(i);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- ParkBomb3 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
- SetTimer("ParkPlantFour", 4000, false);
- }
- }
- return 1;
- }
- public ParkPlantFour()
- {
- for(new i = 0; i < MAX_PLAYERS; i ++)
- {
- if(GetPVarInt(i, "BlowingPark") == 1)
- {
- TogglePlayerControllable(i, false);
- SetPlayerPos(i, 386.078521, -2040.287109, 7.835937 );
- SetPlayerFacingAngle(i,269.10);
- SetCameraBehindPlayer(i);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- ParkBomb4 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
- SetTimer("ParkPlantFive", 4000, false);
- }
- }
- return 1;
- }
- public ParkPlantFive()
- {
- for(new i = 0; i < MAX_PLAYERS; i ++)
- {
- if(GetPVarInt(i, "BlowingPark") == 1)
- {
- TogglePlayerControllable(i, false);
- SetPlayerPos(i,399.358306, -2053.864013, 7.835937);
- SetPlayerFacingAngle(i,90.50);
- SetCameraBehindPlayer(i);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- ParkBomb5 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
- SetTimer("ParkPlantSix", 4000, false);
- }
- }
- return 1;
- }
- public ParkPlantSix()
- {
- for(new i = 0; i < MAX_PLAYERS; i ++)
- {
- if(GetPVarInt(i, "BlowingPark") == 1)
- {
- TogglePlayerControllable(i, false);
- SetPlayerPos(i,399.360260, -2067.079345, 10.746990);
- SetPlayerFacingAngle(i,90.50);
- SetCameraBehindPlayer(i);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- ParkBomb6 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
- SetTimer("ParkPlantSeven", 4000, false);
- }
- }
- return 1;
- }
- public ParkPlantSeven()
- {
- for(new i = 0; i < MAX_PLAYERS; i ++)
- {
- if(GetPVarInt(i, "BlowingPark") == 1)
- {
- TogglePlayerControllable(i, false);
- SetPlayerPos(i,359.417694, -2071.052001, 10.695312);
- SetPlayerFacingAngle(i,359.32);
- SetCameraBehindPlayer(i);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- ParkBomb7 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
- SetTimer("ParkPlantEight", 4000, false);
- }
- }
- return 1;
- }
- public ParkPlantEight()
- {
- for(new i = 0; i < MAX_PLAYERS; i ++)
- {
- if(GetPVarInt(i, "BlowingPark") == 1)
- {
- TogglePlayerControllable(i, false);
- SetPlayerPos(i,382.292480, -2058.703857, 10.719718);
- SetPlayerFacingAngle(i,270.02);
- SetCameraBehindPlayer(i);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- ParkBomb8 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
- SetTimer("ParkPlantNine", 4000, false);
- }
- }
- return 1;
- }
- public ParkPlantNine()
- {
- for(new i = 0; i < MAX_PLAYERS; i ++)
- {
- if(GetPVarInt(i, "BlowingPark") == 1)
- {
- TogglePlayerControllable(i, false);
- SetPlayerPos(i,359.547882, -2052.848388, 8.015625 );
- SetPlayerFacingAngle(i,271.92);
- SetCameraBehindPlayer(i);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- ParkBomb9 = CreateObject(1252, 1474.212158, -2287.304687, 42.420486, 0, 0,0);
- SetTimer("ParkPlantTen", 4000, false);
- }
- }
- return 1;
- }
- public ParkPlantTen()
- {
- for(new i = 0; i < MAX_PLAYERS; i ++)
- {
- if(GetPVarInt(i, "BlowingPark") == 1)
- {
- SetPlayerPos(i,368.264892, -2011.568969, 7.671875 );
- SetPlayerFacingAngle(i,180.0);
- SetCameraBehindPlayer(i);
- TogglePlayerControllable(i, true);
- GameTextForPlayer(i, "~b~ STAND BACK ~n~ ~R~ IT WILL EXPLODE SOON", 5000, 3);
- SetTimer("ParkBlowOne", 5000, false);
- SetPVarInt(i, "BlowingPark", 0);
- }
- }
- return 1;
- }
- public ParkBlowOne()
- {
- CreateExplosion(386.390991, -2016.805053, 7.835937, 10, 10);
- CreateExplosion(393.594512, -2016.958374, 7.835937, 10, 10);
- CreateExplosion(393.441101, -2040.196533, 7.835937, 10, 10);
- CreateExplosion(386.078521, -2040.287109, 7.835937, 10, 10);
- CreateExplosion(399.358306, -2053.864013, 7.835937, 10, 10);
- CreateExplosion(399.360260, -2067.079345, 10.746990, 10, 10);
- CreateExplosion(359.417694, -2071.052001, 10.695312, 10, 10);
- CreateExplosion(382.292480, -2058.703857, 10.719718, 10, 10);
- CreateExplosion(359.547882, -2052.848388, 8.015625, 10, 10);
- new string[120];
- format(string, 120, "[TERRORISM] The Amusement Park has been blown up by a terrorist.");
- SendClientMessageToAll(COLOR_RED, string);
- CNR_PrintString(string);
- SetTimer("ParkBlowTwo", 5000, false);
- DestroyObject(ParkBomb1);
- DestroyObject(ParkBomb2);
- DestroyObject(ParkBomb3);
- DestroyObject(ParkBomb4);
- DestroyObject(ParkBomb5);
- DestroyObject(ParkBomb6);
- DestroyObject(ParkBomb7);
- DestroyObject(ParkBomb8);
- DestroyObject(ParkBomb9);
- return 1;
- }
- public ParkBlowTwo()
- {
- CreateExplosion(386.390991, -2016.805053, 7.835937, 10, 10);
- CreateExplosion(393.594512, -2016.958374, 7.835937, 10, 10);
- CreateExplosion(393.441101, -2040.196533, 7.835937, 10, 10);
- CreateExplosion(386.078521, -2040.287109, 7.835937, 10, 10);
- CreateExplosion(399.358306, -2053.864013, 7.835937, 10, 10);
- CreateExplosion(399.360260, -2067.079345, 10.746990, 10, 10);
- CreateExplosion(359.417694, -2071.052001, 10.695312, 10, 10);
- CreateExplosion(382.292480, -2058.703857, 10.719718, 10, 10);
- CreateExplosion(359.547882, -2052.848388, 8.015625, 10, 10);
- SetTimer("ParkBlowThree", 5000, false);
- return 1;
- }
- public ParkBlowThree()
- {
- CreateExplosion(386.390991, -2016.805053, 7.835937, 10, 10);
- CreateExplosion(393.594512, -2016.958374, 7.835937, 10, 10);
- CreateExplosion(393.441101, -2040.196533, 7.835937, 10, 10);
- CreateExplosion(386.078521, -2040.287109, 7.835937, 10, 10);
- CreateExplosion(399.358306, -2053.864013, 7.835937, 10, 10);
- CreateExplosion(399.360260, -2067.079345, 10.746990, 10, 10);
- CreateExplosion(359.417694, -2071.052001, 10.695312, 10, 10);
- CreateExplosion(382.292480, -2058.703857, 10.719718, 10, 10);
- CreateExplosion(359.547882, -2052.848388, 8.015625, 10, 10);
- SetTimer("ParkBlowFour", 5000, false);
- return 1;
- }
- public ParkBlowFour()
- {
- CreateExplosion(386.390991, -2016.805053, 7.835937, 10, 10);
- CreateExplosion(393.594512, -2016.958374, 7.835937, 10, 10);
- CreateExplosion(393.441101, -2040.196533, 7.835937, 10, 10);
- CreateExplosion(386.078521, -2040.287109, 7.835937, 10, 10);
- CreateExplosion(399.358306, -2053.864013, 7.835937, 10, 10);
- CreateExplosion(399.360260, -2067.079345, 10.746990, 10, 10);
- CreateExplosion(359.417694, -2071.052001, 10.695312, 10, 10);
- CreateExplosion(382.292480, -2058.703857, 10.719718, 10, 10);
- CreateExplosion(359.547882, -2052.848388, 8.015625, 10, 10);
- return 1;
- }
- // Vinewood sign
- forward SignPlantOne();
- forward SignPlantTwo();
- forward SignPlantThree();
- forward SignPlantFour();
- forward SignPlantFive();
- forward SignPlantSix();
- forward SignPlantSeven();
- forward SignPlantEight();
- forward SignPlantNine();
- forward SignPlantTen();
- forward SignPlant11();
- forward SignPlant12();
- forward SignPlant13();
- forward SignPlant14();
- forward SignPlant15();
- forward SignBlowOne();
- forward SignBlowTwo();
- forward SignBlowThree();
- forward SignBlowFour();
- forward SignBlowFive();
- forward SignBlowSix();
- forward SignBlowSeven();
- public SignPlantOne()
- {
- for(new i = 0; i<MAX_PLAYERS; i ++ )
- {
- if(GetPVarInt(i, "BlowingSign") == 1)
- {
- SetCameraBehindPlayer(i);
- TogglePlayerControllable(i, false);
- SetPlayerPos(i,1449.423461, -806.295959, 84.260368);
- SetPlayerFacingAngle(i,181.91);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("SignPlantTwo", 3000, 0);
- return 1;
- }
- }
- return 1;
- }
- public SignPlantTwo()
- {
- for(new i = 0; i<MAX_PLAYERS; i ++ )
- {
- if(GetPVarInt(i, "BlowingSign") == 1)
- {
- SetCameraBehindPlayer(i);
- TogglePlayerControllable(i, false);
- SetPlayerPos(i,1438.864135, -806.372375, 86.463600);
- SetPlayerFacingAngle(i,178.15);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("SignPlantThree", 3000, 0);
- return 1;
- }
- }
- return 1;
- }
- public SignPlantThree()
- {
- for(new i = 0; i<MAX_PLAYERS; i ++ )
- {
- if(GetPVarInt(i, "BlowingSign") == 1)
- {
- SetCameraBehindPlayer(i);
- TogglePlayerControllable(i, false);
- SetPlayerPos(i,1427.885253, -806.273071, 86.457664);
- SetPlayerFacingAngle(i,183.16);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("SignPlantFour", 3000, 0);
- return 1;
- }
- }
- return 1;
- }
- public SignPlantFour()
- {
- for(new i = 0; i<MAX_PLAYERS; i ++ )
- {
- if(GetPVarInt(i, "BlowingSign") == 1)
- {
- SetCameraBehindPlayer(i);
- TogglePlayerControllable(i, false);
- SetPlayerPos(i,1415.526611, -806.473693, 85.039077);
- SetPlayerFacingAngle(i,178.78);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("SignPlantFive", 3000, 0);
- return 1;
- }
- }
- return 1;
- }
- public SignPlantFive()
- {
- for(new i = 0; i<MAX_PLAYERS; i ++ )
- {
- if(GetPVarInt(i, "BlowingSign") == 1)
- {
- SetCameraBehindPlayer(i);
- TogglePlayerControllable(i, false);
- SetPlayerPos(i,1404.023315, -806.558349, 85.036766);
- SetPlayerFacingAngle(i,180.95);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("SignPlantSix", 3000, 0);
- return 1;
- }
- }
- return 1;
- }
- public SignPlantSix()
- {
- for(new i = 0; i<MAX_PLAYERS; i ++ )
- {
- if(GetPVarInt(i, "BlowingSign") == 1)
- {
- SetCameraBehindPlayer(i);
- TogglePlayerControllable(i, false);
- SetPlayerPos(i,1394.168090, -805.948608, 85.030563);
- SetPlayerFacingAngle(i, 180.00);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("SignPlantSeven", 3000, 0);
- return 1;
- }
- }
- return 1;
- }
- public SignPlantSeven()
- {
- for(new i = 0; i<MAX_PLAYERS; i ++ )
- {
- if(GetPVarInt(i, "BlowingSign") == 1)
- {
- SetCameraBehindPlayer(i);
- TogglePlayerControllable(i, false);
- SetPlayerPos(i,1385.198120, -806.237854, 86.335533);
- SetPlayerFacingAngle(i, 180.32);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("SignPlantEight", 3000, 0);
- return 1;
- }
- }
- return 1;
- }
- public SignPlantEight()
- {
- for(new i = 0; i<MAX_PLAYERS; i ++ )
- {
- if(GetPVarInt(i, "BlowingSign") == 1)
- {
- SetCameraBehindPlayer(i);
- TogglePlayerControllable(i, false);
- SetPlayerPos(i,1378.010620, -805.799560, 85.020629 );
- SetPlayerFacingAngle(i, 178.75);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("SignPlantNine", 3000, 0);
- return 1;
- }
- }
- return 1;
- }
- public SignPlantNine()
- {
- for(new i = 0; i<MAX_PLAYERS; i ++ )
- {
- if(GetPVarInt(i, "BlowingSign") == 1)
- {
- SetCameraBehindPlayer(i);
- TogglePlayerControllable(i, false);
- SetPlayerPos(i,1378.170043, -809.628662, 76.381591 );
- SetPlayerFacingAngle(i,3.96);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("SignPlantTen", 3000, 0);
- return 1;
- }
- }
- return 1;
- }
- public SignPlantTen()
- {
- for(new i = 0; i<MAX_PLAYERS; i ++ )
- {
- if(GetPVarInt(i, "BlowingSign") == 1)
- {
- SetCameraBehindPlayer(i);
- TogglePlayerControllable(i, false);
- SetPlayerPos(i,1393.239379, -810.093688, 75.517684);
- SetPlayerFacingAngle(i,356.44);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("SignPlant11", 3000, 0);
- return 1;
- }
- }
- return 1;
- }
- public SignPlant11()
- {
- for(new i = 0; i<MAX_PLAYERS; i ++ )
- {
- if(GetPVarInt(i, "BlowingSign") == 1)
- {
- SetCameraBehindPlayer(i);
- TogglePlayerControllable(i, false);
- SetPlayerPos(i,1408.747436, -810.150085, 75.205711);
- SetPlayerFacingAngle(i,349.23);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("SignPlant12", 3000, 0);
- return 1;
- }
- }
- return 1;
- }
- public SignPlant12()
- {
- for(new i = 0; i<MAX_PLAYERS; i ++ )
- {
- if(GetPVarInt(i, "BlowingSign") == 1)
- {
- SetCameraBehindPlayer(i);
- TogglePlayerControllable(i, false);
- SetPlayerPos(i,1421.206787, -810.518371, 75.501228);
- SetPlayerFacingAngle(i,350.17);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("SignPlant13", 3000, 0);
- return 1;
- }
- }
- return 1;
- }
- public SignPlant13()
- {
- for(new i = 0; i<MAX_PLAYERS; i ++ )
- {
- if(GetPVarInt(i, "BlowingSign") == 1)
- {
- SetCameraBehindPlayer(i);
- TogglePlayerControllable(i, false);
- SetPlayerPos(i,1432.677368, -809.366333, 76.692420);
- SetPlayerFacingAngle(i,351.11);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("SignPlant14", 3000, 0);
- return 1;
- }
- }
- return 1;
- }
- public SignPlant14()
- {
- for(new i = 0; i<MAX_PLAYERS; i ++ )
- {
- if(GetPVarInt(i, "BlowingSign") == 1)
- {
- SetCameraBehindPlayer(i);
- TogglePlayerControllable(i, false);
- SetPlayerPos(i,1448.768798, -809.982849, 75.858039);
- SetPlayerFacingAngle(i,347.98);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("SignPlant15", 3000, 0);
- return 1;
- }
- }
- return 1;
- }
- public SignPlant15()
- {
- for(new i = 0; i<MAX_PLAYERS; i ++ )
- {
- if(GetPVarInt(i, "BlowingSign") == 1)
- {
- SetCameraBehindPlayer(i);
- TogglePlayerControllable(i, true);
- SetPlayerPos(i,1439.137939, -864.297241, 52.024658);
- SetPlayerFacingAngle(i,13.96);
- //ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("SignBlowOne", 5000, 0);
- GameTextForPlayer(i, "~b~ STAND BACK ~N~ ~R~ IT WILL BLOW SOON", 5000, 3);
- new string[120];
- format(string, 120, "[TERRORISM] %s has blown up the Vinewood sign.", PlayerInfo(i));
- SendClientMessageToAll(COLOR_RED, string);
- CNR_PrintString(string);
- format(string, 120, "[DISPATCH] Terrorist %s has blown up the Vinewood sign.", PlayerInfo(i));
- SendCopMessage(string);
- IncreaseScore(i, 5);
- IncreaseWantedLevel(i, 6);
- SetPVarInt(i, "BlowingSign", 0);
- return 1;
- }
- }
- return 1;
- }
- public SignBlowOne()
- {
- CreateExplosion(1449.423461, -806.295959, 84.260368, 10, 10);
- CreateExplosion(1438.864135, -806.372375, 86.463600, 10, 10);
- CreateExplosion(1427.885253, -806.273071, 86.457664, 10, 10);
- CreateExplosion(1415.526611, -806.473693, 85.039077, 10, 10);
- CreateExplosion(1404.023315, -806.558349, 85.036766, 10, 10);
- CreateExplosion(1394.168090, -805.948608, 85.030563, 10, 10);
- CreateExplosion(1385.198120, -806.237854, 86.335533, 10, 10);
- CreateExplosion(1378.010620, -805.799560, 85.020629, 10, 10);
- CreateExplosion(1378.170043, -809.628662, 76.381591, 10, 10);
- CreateExplosion(1393.239379, -810.093688, 75.517684, 10, 10);
- CreateExplosion(1408.747436, -810.150085, 75.205711, 10, 10);
- CreateExplosion(1421.206787, -810.518371, 75.501228, 10, 10);
- CreateExplosion(1432.677368, -809.366333, 76.692420, 10, 10);
- CreateExplosion(1448.768798, -809.982849, 75.858039, 10, 10);
- SetTimer("SignBlowTwo", 5000, 0);
- return 1;
- }
- public SignBlowTwo()
- {
- CreateExplosion(1449.423461, -806.295959, 84.260368, 10, 10);
- CreateExplosion(1438.864135, -806.372375, 86.463600, 10, 10);
- CreateExplosion(1427.885253, -806.273071, 86.457664, 10, 10);
- CreateExplosion(1415.526611, -806.473693, 85.039077, 10, 10);
- CreateExplosion(1404.023315, -806.558349, 85.036766, 10, 10);
- CreateExplosion(1394.168090, -805.948608, 85.030563, 10, 10);
- CreateExplosion(1385.198120, -806.237854, 86.335533, 10, 10);
- CreateExplosion(1378.010620, -805.799560, 85.020629, 10, 10);
- CreateExplosion(1378.170043, -809.628662, 76.381591, 10, 10);
- CreateExplosion(1393.239379, -810.093688, 75.517684, 10, 10);
- CreateExplosion(1408.747436, -810.150085, 75.205711, 10, 10);
- CreateExplosion(1421.206787, -810.518371, 75.501228, 10, 10);
- CreateExplosion(1432.677368, -809.366333, 76.692420, 10, 10);
- CreateExplosion(1448.768798, -809.982849, 75.858039, 10, 10);
- SetTimer("SignBlowThree", 5000, 0);
- return 1;
- }
- public SignBlowThree()
- {
- CreateExplosion(1449.423461, -806.295959, 84.260368, 10, 10);
- CreateExplosion(1438.864135, -806.372375, 86.463600, 10, 10);
- CreateExplosion(1427.885253, -806.273071, 86.457664, 10, 10);
- CreateExplosion(1415.526611, -806.473693, 85.039077, 10, 10);
- CreateExplosion(1404.023315, -806.558349, 85.036766, 10, 10);
- CreateExplosion(1394.168090, -805.948608, 85.030563, 10, 10);
- CreateExplosion(1385.198120, -806.237854, 86.335533, 10, 10);
- CreateExplosion(1378.010620, -805.799560, 85.020629, 10, 10);
- CreateExplosion(1378.170043, -809.628662, 76.381591, 10, 10);
- CreateExplosion(1393.239379, -810.093688, 75.517684, 10, 10);
- CreateExplosion(1408.747436, -810.150085, 75.205711, 10, 10);
- CreateExplosion(1421.206787, -810.518371, 75.501228, 10, 10);
- CreateExplosion(1432.677368, -809.366333, 76.692420, 10, 10);
- CreateExplosion(1448.768798, -809.982849, 75.858039, 10, 10);
- SetTimer("SignBlowFour", 5000, 0);
- return 1;
- }
- public SignBlowFour()
- {
- CreateExplosion(1449.423461, -806.295959, 84.260368, 10, 10);
- CreateExplosion(1438.864135, -806.372375, 86.463600, 10, 10);
- CreateExplosion(1427.885253, -806.273071, 86.457664, 10, 10);
- CreateExplosion(1415.526611, -806.473693, 85.039077, 10, 10);
- CreateExplosion(1404.023315, -806.558349, 85.036766, 10, 10);
- CreateExplosion(1394.168090, -805.948608, 85.030563, 10, 10);
- CreateExplosion(1385.198120, -806.237854, 86.335533, 10, 10);
- CreateExplosion(1378.010620, -805.799560, 85.020629, 10, 10);
- CreateExplosion(1378.170043, -809.628662, 76.381591, 10, 10);
- CreateExplosion(1393.239379, -810.093688, 75.517684, 10, 10);
- CreateExplosion(1408.747436, -810.150085, 75.205711, 10, 10);
- CreateExplosion(1421.206787, -810.518371, 75.501228, 10, 10);
- CreateExplosion(1432.677368, -809.366333, 76.692420, 10, 10);
- CreateExplosion(1448.768798, -809.982849, 75.858039, 10, 10);
- SetTimer("SignBlowFive", 5000, 0);
- return 1;
- }
- public SignBlowFive()
- {
- CreateExplosion(1449.423461, -806.295959, 84.260368, 10, 10);
- CreateExplosion(1438.864135, -806.372375, 86.463600, 10, 10);
- CreateExplosion(1427.885253, -806.273071, 86.457664, 10, 10);
- CreateExplosion(1415.526611, -806.473693, 85.039077, 10, 10);
- CreateExplosion(1404.023315, -806.558349, 85.036766, 10, 10);
- CreateExplosion(1394.168090, -805.948608, 85.030563, 10, 10);
- CreateExplosion(1385.198120, -806.237854, 86.335533, 10, 10);
- CreateExplosion(1378.010620, -805.799560, 85.020629, 10, 10);
- CreateExplosion(1378.170043, -809.628662, 76.381591, 10, 10);
- CreateExplosion(1393.239379, -810.093688, 75.517684, 10, 10);
- CreateExplosion(1408.747436, -810.150085, 75.205711, 10, 10);
- CreateExplosion(1421.206787, -810.518371, 75.501228, 10, 10);
- CreateExplosion(1432.677368, -809.366333, 76.692420, 10, 10);
- CreateExplosion(1448.768798, -809.982849, 75.858039, 10, 10);
- SetTimer("SignBlowSix", 5000, 0);
- return 1;
- }
- public SignBlowSix()
- {
- CreateExplosion(1449.423461, -806.295959, 84.260368, 10, 10);
- CreateExplosion(1438.864135, -806.372375, 86.463600, 10, 10);
- CreateExplosion(1427.885253, -806.273071, 86.457664, 10, 10);
- CreateExplosion(1415.526611, -806.473693, 85.039077, 10, 10);
- CreateExplosion(1404.023315, -806.558349, 85.036766, 10, 10);
- CreateExplosion(1394.168090, -805.948608, 85.030563, 10, 10);
- CreateExplosion(1385.198120, -806.237854, 86.335533, 10, 10);
- CreateExplosion(1378.010620, -805.799560, 85.020629, 10, 10);
- CreateExplosion(1378.170043, -809.628662, 76.381591, 10, 10);
- CreateExplosion(1393.239379, -810.093688, 75.517684, 10, 10);
- CreateExplosion(1408.747436, -810.150085, 75.205711, 10, 10);
- CreateExplosion(1421.206787, -810.518371, 75.501228, 10, 10);
- CreateExplosion(1432.677368, -809.366333, 76.692420, 10, 10);
- CreateExplosion(1448.768798, -809.982849, 75.858039, 10, 10);
- SetTimer("SignBlowSeven", 5000, 0);
- return 1;
- }
- public SignBlowSeven()
- {
- CreateExplosion(1449.423461, -806.295959, 84.260368, 10, 10);
- CreateExplosion(1438.864135, -806.372375, 86.463600, 10, 10);
- CreateExplosion(1427.885253, -806.273071, 86.457664, 10, 10);
- CreateExplosion(1415.526611, -806.473693, 85.039077, 10, 10);
- CreateExplosion(1404.023315, -806.558349, 85.036766, 10, 10);
- CreateExplosion(1394.168090, -805.948608, 85.030563, 10, 10);
- CreateExplosion(1385.198120, -806.237854, 86.335533, 10, 10);
- CreateExplosion(1378.010620, -805.799560, 85.020629, 10, 10);
- CreateExplosion(1378.170043, -809.628662, 76.381591, 10, 10);
- CreateExplosion(1393.239379, -810.093688, 75.517684, 10, 10);
- CreateExplosion(1408.747436, -810.150085, 75.205711, 10, 10);
- CreateExplosion(1421.206787, -810.518371, 75.501228, 10, 10);
- CreateExplosion(1432.677368, -809.366333, 76.692420, 10, 10);
- CreateExplosion(1448.768798, -809.982849, 75.858039, 10, 10);
- //SetTimer("SignBlowTwo", 5000, 0);
- return 1;
- }
- //Bank Explode
- forward BankPlantOne();
- forward BankPlantTwo();
- forward BankPlantThree();
- forward BankPlantFour();
- forward BankPlantFive();
- forward BankPlantSix();
- forward BankPlantSeven();
- forward BankPlantEight();
- forward BankPlantNine();
- forward BankBlowOne();
- forward BankBlowTwo();
- forward BankBlowThree();
- forward BankBlowFour();
- forward BankBlowFive();
- public BankPlantOne()
- {
- for(new i =0; i<MAX_PLAYERS;i++)
- {
- if(GetPVarInt(i, "BlowingBank") == 1)
- {
- SetPlayerPos(i,1524.293457, -1062.841064, 25.06250);
- SetPlayerFacingAngle(i,93.88);
- TogglePlayerControllable(i, false);
- SetCameraBehindPlayer(i);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("BankPlantTwo", 3000, 0);
- return 1;
- }
- }
- return 1;
- }
- public BankPlantTwo()
- {
- for(new i =0; i<MAX_PLAYERS;i++)
- {
- if(GetPVarInt(i, "BlowingBank") == 1)
- {
- SetPlayerPos(i,1520.098510, -1060.029174, 25.062500);
- SetPlayerFacingAngle(i,177.23);
- TogglePlayerControllable(i, false);
- SetCameraBehindPlayer(i);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("BankPlantThree", 3000, 0);
- return 1;
- }
- }
- return 1;
- }
- public BankPlantThree()
- {
- for(new i =0; i<MAX_PLAYERS;i++)
- {
- if(GetPVarInt(i, "BlowingBank") == 1)
- {
- SetPlayerPos(i,2315.360107, 0.327747, 26.742187);
- SetPlayerFacingAngle(i,359.91);
- TogglePlayerControllable(i, false);
- SetCameraBehindPlayer(i);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("BankPlantFour", 3000, 0);
- return 1;
- }
- }
- return 1;
- }
- public BankPlantFour()
- {
- for(new i =0; i<MAX_PLAYERS;i++)
- {
- if(GetPVarInt(i, "BlowingBank") == 1)
- {
- SetPlayerPos(i,2314.882568, -16.652763, 26.74956);
- SetPlayerFacingAngle(i,181.93);
- TogglePlayerControllable(i, false);
- SetCameraBehindPlayer(i);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("BankPlantFive", 3000, 0);
- return 1;
- }
- }
- return 1;
- }
- public BankPlantFive()
- {
- for(new i =0; i<MAX_PLAYERS;i++)
- {
- if(GetPVarInt(i, "BlowingBank") == 1)
- {
- SetPlayerPos(i,1500.250366, -1060.013427, 25.062500);
- SetPlayerFacingAngle(i,177.23);
- TogglePlayerControllable(i, false);
- SetCameraBehindPlayer(i);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("BankPlantSix", 3000, 0);
- return 1;
- }
- }
- return 1;
- }
- public BankPlantSix()
- {
- for(new i =0; i<MAX_PLAYERS;i++)
- {
- if(GetPVarInt(i, "BlowingBank") == 1)
- {
- SetPlayerPos(i,1496.901611, -1074.039550, 25.062500 );
- SetPlayerFacingAngle(i,269.04);
- TogglePlayerControllable(i, false);
- SetCameraBehindPlayer(i);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("BankPlantSeven", 3000, 0);
- return 1;
- }
- }
- return 1;
- }
- public BankPlantSeven()
- {
- for(new i =0; i<MAX_PLAYERS;i++)
- {
- if(GetPVarInt(i, "BlowingBank") == 1)
- {
- SetPlayerPos(i,1518.261230, -1102.591430, 25.060787);
- SetPlayerFacingAngle(i,357.09);
- TogglePlayerControllable(i, false);
- SetCameraBehindPlayer(i);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("BankPlantEight", 3000, 0);
- return 1;
- }
- }
- return 1;
- }
- public BankPlantEight()
- {
- for(new i =0; i<MAX_PLAYERS;i++)
- {
- if(GetPVarInt(i, "BlowingBank") == 1)
- {
- SetPlayerPos(i,1547.264160, -1087.768432, 25.055089 );
- SetPlayerFacingAngle(i,91.09);
- TogglePlayerControllable(i, false);
- SetCameraBehindPlayer(i);
- ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("BankPlantNine", 3000, 0);
- return 1;
- }
- }
- return 1;
- }
- public BankPlantNine()
- {
- for(new i =0; i<MAX_PLAYERS;i++)
- {
- if(GetPVarInt(i, "BlowingBank") == 1)
- {
- new current_zone = player_zone[i];
- SetPlayerPos(i,1561.317382, -1060.291381, 23.742670);
- SetPlayerFacingAngle(i,137.12);
- TogglePlayerControllable(i, true);
- SetCameraBehindPlayer(i);
- //ApplyAnimation(i, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- SetTimer("BankBlowOne", 5000, 0);
- new string[120];
- format(string, 120, "[TERRORISM] Terrorist %s has blown up the bank in %s", PlayerInfo(i), zones[current_zone][zone_name]);
- SendClientMessageToAll(COLOR_RED, string);
- CNR_PrintString(string);
- format(string, 120, "[DISPATCH] Terrorist %s has blown up the Bank in %s. Go arrest him.", PlayerInfo(i), zones[current_zone][zone_name]);
- SendCopMessage(string);
- IncreaseWantedLevel(i, 6);
- IncreaseScore(i, 3);
- SetPVarInt(i, "BlowingBank", 0);
- GameTextForPlayer(i, "~B~ STAND BACK ~N~ ~R~ IT WILL EXPLODE SOON", 5000, 3);
- return 1;
- }
- }
- return 1;
- }
- public BankBlowOne()
- {
- CreateExplosion(1524.293457, -1062.841064, 25.062500, 10, 10);
- CreateExplosion(1520.098510, -1060.029174, 25.062500, 10, 10);
- CreateExplosion(2315.360107, 0.327747, 26.742187, 10, 10);
- CreateExplosion(2314.882568, -16.652763, 26.749565, 10, 10);
- CreateExplosion(1500.250366, -1060.013427, 25.062500, 10, 10);
- CreateExplosion(1496.901611, -1074.039550, 25.062500, 10, 10);
- CreateExplosion(1518.261230, -1102.591430, 25.060787, 10, 10);
- CreateExplosion(1547.264160, -1087.768432, 25.055089, 10, 10);
- SetTimer("BankBlowTwo", 5000, 0);
- return 1;
- }
- public BankBlowTwo()
- {
- CreateExplosion(1524.293457, -1062.841064, 25.062500, 10, 10);
- CreateExplosion(1520.098510, -1060.029174, 25.062500, 10, 10);
- CreateExplosion(2315.360107, 0.327747, 26.742187, 10, 10);
- CreateExplosion(2314.882568, -16.652763, 26.749565, 10, 10);
- CreateExplosion(1500.250366, -1060.013427, 25.062500, 10, 10);
- CreateExplosion(1496.901611, -1074.039550, 25.062500, 10, 10);
- CreateExplosion(1518.261230, -1102.591430, 25.060787, 10, 10);
- CreateExplosion(1547.264160, -1087.768432, 25.055089, 10, 10);
- SetTimer("BankBlowThree", 5000, 0);
- return 1;
- }
- public BankBlowThree()
- {
- CreateExplosion(1524.293457, -1062.841064, 25.062500, 10, 10);
- CreateExplosion(1520.098510, -1060.029174, 25.062500, 10, 10);
- CreateExplosion(2315.360107, 0.327747, 26.742187, 10, 10);
- CreateExplosion(2314.882568, -16.652763, 26.749565, 10, 10);
- CreateExplosion(1500.250366, -1060.013427, 25.062500, 10, 10);
- CreateExplosion(1496.901611, -1074.039550, 25.062500, 10, 10);
- CreateExplosion(1518.261230, -1102.591430, 25.060787, 10, 10);
- CreateExplosion(1547.264160, -1087.768432, 25.055089, 10, 10);
- SetTimer("BankBlowFour", 5000, 0);
- return 1;
- }
- public BankBlowFour()
- {
- CreateExplosion(1524.293457, -1062.841064, 25.062500, 10, 10);
- CreateExplosion(1520.098510, -1060.029174, 25.062500, 10, 10);
- CreateExplosion(2315.360107, 0.327747, 26.742187, 10, 10);
- CreateExplosion(2314.882568, -16.652763, 26.749565, 10, 10);
- CreateExplosion(1500.250366, -1060.013427, 25.062500, 10, 10);
- CreateExplosion(1496.901611, -1074.039550, 25.062500, 10, 10);
- CreateExplosion(1518.261230, -1102.591430, 25.060787, 10, 10);
- CreateExplosion(1547.264160, -1087.768432, 25.055089, 10, 10);
- SetTimer("BankBlowFive", 5000, 0);
- return 1;
- }
- public BankBlowFive()
- {
- CreateExplosion(1524.293457, -1062.841064, 25.062500, 10, 10);
- CreateExplosion(1520.098510, -1060.029174, 25.062500, 10, 10);
- CreateExplosion(2315.360107, 0.327747, 26.742187, 10, 10);
- CreateExplosion(2314.882568, -16.652763, 26.749565, 10, 10);
- CreateExplosion(1500.250366, -1060.013427, 25.062500, 10, 10);
- CreateExplosion(1496.901611, -1074.039550, 25.062500, 10, 10);
- CreateExplosion(1518.261230, -1102.591430, 25.060787, 10, 10);
- CreateExplosion(1547.264160, -1087.768432, 25.055089, 10, 10);
- //SetTimer("BankBlowThree", 5000, 0);
- return 1;
- }
- forward ShowPlayerSpeedo(playerid);
- public ShowPlayerSpeedo(playerid) {
- SpeedoBox[playerid] = TextDrawCreate(0,435,"_");
- TextDrawUseBox(SpeedoBox[playerid],1);
- TextDrawTextSize(SpeedoBox[playerid],640,480);
- TextDrawBoxColor(SpeedoBox[playerid], COLOR_GREEN);
- TextDrawSetShadow(SpeedoBox[playerid],0);
- TextDrawShowForPlayer(playerid,SpeedoBox[playerid]);
- SpeedTDraw[playerid] = TextDrawCreate(3,433,"~l~Speed:");
- TextDrawSetShadow(SpeedTDraw[playerid],0);
- TextDrawShowForPlayer(playerid, SpeedTDraw[playerid]);
- vSpeed[playerid] = TextDrawCreate(63,433,"_");
- TextDrawSetShadow(vSpeed[playerid],0);
- TextDrawShowForPlayer(playerid,vSpeed[playerid]);
- DamageTDraw[playerid] = TextDrawCreate(303,433,"~l~Health:");
- TextDrawSetShadow(DamageTDraw[playerid],0);
- TextDrawShowForPlayer(playerid,DamageTDraw[playerid]);
- vDamage[playerid] = TextDrawCreate(363,433,"_");
- TextDrawSetShadow(vDamage[playerid],0);
- TextDrawShowForPlayer(playerid,vDamage[playerid]);
- }
- forward RemovePlayerSpeedo(i);
- public RemovePlayerSpeedo(i) {
- TextDrawHideForPlayer(i, SpeedoBox[i]);
- TextDrawHideForPlayer(i, SpeedTDraw[i]);
- TextDrawHideForPlayer(i, DamageTDraw[i]);
- TextDrawHideForPlayer(i, FuelTDraw[i]);
- TextDrawHideForPlayer(i, vSpeed[i]);
- TextDrawHideForPlayer(i, vDamage[i]);
- return 1;
- }
- forward PutPlayerInSF(playerid);
- forward PutPlayerInLS(playerid);
- forward PutPlayerInLV(playerid);
- public PutPlayerInSF(playerid) {
- SetPlayerPos(playerid,-1413.557250, -300.654418, 14.141115);
- SetPlayerInterior(playerid, 0);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "[AIR PORT] Welcome to San Fierro!");
- return 1;
- }
- public PutPlayerInLS(playerid) {
- SetPlayerPos(playerid,1631.639526, -2242.050048, 13.506203);
- SetPlayerInterior(playerid, 0);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "[AIR PORT] Welcome to Los Santos!");
- return 1;
- }
- public PutPlayerInLV(playerid) {
- SetPlayerPos(playerid, 1685.137939, 1448.447631, 10.770167);
- SetPlayerInterior(playerid, 0);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "[AIR PORT] Welcome to Las Venturas!");
- return 1;
- }
- // 1.1 Editions
- // From the KCNR include that I have made.
- stock PlayerHasCash(playerid, cash)
- {
- if(GetPlayerMoney(playerid >= cash)) return 1;
- else return 0;
- }
- stock PlayerCash(playerid, cash)
- {
- GivePlayerMoney(playerid, GetPlayerMoney(playerid) + cash);
- return 1;
- }
- // Returns 1 if they can rob, 0 if not
- stock PlayerCanRob(playerid)
- {
- if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_Army || gTeam[playerid] == Team_FBI)
- {
- return 0;
- }
- else if(gTeam[playerid] == TEAM_MEDIC || gTeam[playerid] == Team_Civi || gTeam[playerid] == Team_Rape || gTeam[playerid] == Team_Terror || gTeam[playerid] == Team_Steal ||
- gTeam[playerid] == Prvtmed)
- {
- return 1;
- }
- } // if (!PlayerCanRob(playerid)) return SendClientMessage(playerid, COLOR_ERROR, "You cannot rob this place.");
- stock IsCop(playerid)
- {
- if(gTeam[playerid] == Team_Cop || gTeam[playerid] == Team_Army || gTeam[playerid] == Team_FBI)
- {
- return 1;
- }
- else
- {
- return 0;
- }
- }
- stock IsArmyVehicle(id) {
- for (new i = 0; i < sizeof ArmyVehicle; i++) {
- if (id == ArmyVehicle[i])
- return true;
- }
- return false;
- }
- stock IsLSPDVehicle(id) {
- for (new i = 0; i < sizeof LSPD; i++) {
- if (id == LSPD[i])
- return true;
- }
- return false;
- }
- stock PlayerInfo(playerid) {
- new pname[30], string[40];
- GetPlayerName(playerid, pname, 30);
- format(string, sizeof string, "%s (%d)", pname, playerid);
- return string;
- }
Add Comment
Please, Sign In to add comment