rendered paste body#include <a_samp>
#include <dudb>
#include <float>
#include <dprop>
//#pragma dynamic 8192
#pragma dynamic 20000
#define MAX_PLAYERS_ 200
#define COLOR_GRAD1 0xB4B5B7FF
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_GRAD3 0xCBCCCEFF
#define COLOR_GRAD4 0xD8D8D8FF
#define COLOR_GRAD5 0xE3E3E3FF
#define COLOR_GRAD6 0xF0F0F0FF
#define COLOR_AQUA 0x7CFC00AA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_BLUE 0x244ACCFF //0x0000BBAA
#define COLOR_TAN 0xBDB76BAA
#define COLOR_PURPLE 0x800080AA
#define COLOR_INVISWHITE 0xFFFFFF00
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_DARKRED 0x660000AA
#define COLOR_ABHGREEN 0x61785C
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_BRIGHTRED 0xFF0000AA
#define COLOR_INDIGO 0x4B00B0AA
#define COLOR_SYSTEM 0xEFEFF7AA
#define COLOR_ALLDEPT 0xFF8282AA
#define COLOR_PSCBLUE 0x0070B2AA
#define COLOR_SANTORANGE 0xFF6C3BAA
#define COLOR_INVIS 0xAFAFAF00
#define COLOR_CRIMBLUE 0x244ACCFF //0x2641FEAA
#define COLOR_WANTED 0xCC0066AA
#define COLOR_FADE1 0xE6E6E6E6
#define COLOR_FADE2 0xC8C8C8C8
#define COLOR_FADE3 0xAAAAAAAA
#define COLOR_FADE4 0x8C8C8C8C
#define COLOR_FADE5 0x6E6E6E6E
#define COLOR_UNDERCOVER 0x00000000
#define Baggagebox1 606
#define SemiTrailer2 450
#define Baggagebox2 607
#define SemiTrailer3 591
#define FarmTrailer 610
#define Stairs 608
#define PetrolTrailer 584
#define UtilsTrailer 611
#define SemiTrailer1 435
#define Team_LSPD 1
#define Team_SWAT 2
#define Team_DCP 3
#define Team_Army 4
#define Team_ArmyMed 5
#define Team_EMS 6
#define Team_Fire 7
#define Team_GOV 8
#define Team_DMV 9
#define Team_Civ 10
#define Team_L1A 11
#define Team_Smoke 12
#define Team_Taxi 13
#define Team_SANN 14
#define Team_Jail 15
#define Team_SFPD 16
#define Team_LVPD 17
#define Team_SASP 18
#define Team_BF 19
#define Team_CN 20
#define Team_CF 21
#define Team_YAKUZA 22
#define Team_CU 23
#define Team_SATA 24
#define Team_STONER 25
#define Team_UTIL 26
#define Team_Wanted 27
#define Team_DCPT 28
#define Team_BattleTan 29
#define Team_BattlePurple 30
#define Team_BLACKWATER 31
#define Team_L2M 32
#define Team_L3M 33
#define Team_WLD 34
#define Team_MHS 35
#define Team_Injured 36
#define Team_BFL 37
#define Team_SFPROST 38
#define Team_SFPROSTG 39
#define Team_DIABLO 40
#define Team_SARA 41
#define Team_ATCLS 42
#define Team_ATCSF 43
#define Team_ATCLV 44
#define Team_ATCVM 45
#define Team_LSPROST 46
#define Team_LVPROST 47
#define Team_VIP 48
#define FULLTANK 100
#define GASPRICE 2
#define MAX_VECTOR 700
#define MAX_GAS 70
#define MIN_GAS 30
#define RAND_GAS 40
#define NUMVALUES 4
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
#define P_OFFSET 3
#define CP_LVSTADIUM 0
forward Speedometer();
forward ConsumirCombustible();
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
forward clocktime();
forward MoneyGrubScoreUpdate();
forward SavePosTimer(playerid);
forward AdminArea(playerid);
forward UpdateSpeed(playerid);
forward SendTextTimer();
forward Givecashdelaytimer(playerid);
//forward GrubModeReset();
forward SetPlayerRandomSpawn(playerid);
forward SetupPlayerForClassSelection(playerid);
forward GameModeExitFunc();
forward CountDown();
forward OnPlayerCommandText(playerid, cmdtext[]);
forward OnPlayerPrivmsg(playerid, recieverid, text[]);
forward OnPlayerConnect(playerid);
forward OnPlayerSpawn(playerid);
forward OnGameModeInit();
forward OnPlayerRequestClass(playerid, classid);
forward OnPlayerDisconnect(playerid);
forward OnPlayerDeath(playerid, killerid, reason);
forward OnPlayerText(playerid,text[]);
forward PayDay();
forward PayTaxes();
forward checkit();
forward OnPlayerEnterCheckpoint(playerid);
forward checkpointUpdate();
forward isPlayerInArea(playerID, Float:data[4]);
forward SetPlayerFlash ();
forward SetPlayerFlashRev ();
forward SetPlayerColorFlash (playerid);
forward PlayJailSound(sound , stopsound, duration, Float: jailx, Float: jaily, Float: jailz);
forward SetPlayerUnjail ();
forward StopJail ();
forward OffTheHook();
forward SetPlayerToTeamColor(playerid);
forward SendTeamBeepMessage (team, color, string[]);
forward SendTeamMessage(team, color, string[]);
forward weatherzone();
forward Timer_DayHeartbeat();
forward OnVehicleSpawn(vehicleid);
forward ViewTagsBasedOnTeam();
forward update_zones();
forward IsPlayerInCircle(playerid,Float:x,Float:y,radius);
forward GetPlayerDistanceToPoint(playerid,Float:x,Float:y);
forward GetClosestPlayer(p1);
forward AutokickBRB(playerid);
forward AutokickAFK(playerid);
forward AutoUnjailLSPD(giveplayerid);
forward AutoUnjailSFPD(giveplayerid);
forward AutoUnjailSFPDBayside(giveplayerid);
forward AutoUnjailLVPD(giveplayerid);
forward AutoUnjailStatePen(giveplayerid);
forward AutoUnjailARMY(giveplayerid);
forward AutoUntiePlayer(playerid,giveplayerid);
forward Remove911CallMarker(i);
forward SetPlayerPosEx(playerid,Float:X,Float:Y,Float:Z,Float:Ang,Int);
forward Float:GetDistanceToCar(playerid,carid);
forward GetClosestCar(playerid);
forward GiveTeamMoney(team, amount);
forward CurePlayer(playerid,giveplayerid);
forward KillInjured(i);
forward CheckHealth();
forward CheckResOrderDistance();
forward Taze1(giveplayerid);
forward Taze2(giveplayerid);
forward Taze3(giveplayerid);
forward EndTaze(giveplayerid);
forward GiveSniper(playerid);
forward GivePistol(playerid);
forward GiveNVG(playerid);
forward GiveTVG(playerid);
forward GiveM16(playerid);
forward GiveCamera(playerid);
forward GiveFireEx(playerid);
forward GiveSWATSkin(playerid);
forward GiveArmor(playerid);
forward IsACopCar(carid);
forward IsServiceVehicle(vehicleid);
forward IsATrailer(carid);
forward IsAnAmbulance(carid);
// MENU DEFINES -----------
new Menu:Weapons;
new Menu:Pistols;
new Menu:Shotguns;
new Menu:Armor;
new Menu:SMG;
new Menu:Thrown;
new Menu:Rifle;
new Menu:Assault;
new buyweaponC;
new buyweaponT;
// GATE DEFINES ----------
new Gate_NAVB;
new Gate_PRISON_OUT;
new Gate_PRISON_IN;
new Gate_PRISON_1A;
new Gate_PRISON_1B;
new Gate_PRISON_2A;
new Gate_A69V;
new Gate_A69;
new Gate_LVPDIMPOUND1;
new Gate_LVPDIMPOUND2;
new Stedfrontgate;
new Myfrontdoor1;
new Myfrontdoor2;
// PICKUP DEFINES ----------
new pk_SFPDout;
new pk_SFPDin;
new pk_BANKout;
new pk_BANKin;
new pk_SFSTADIUMout;
new pk_SFSTADIUMin;
new pk_LSSTADIUMout;
new pk_SFSTADIUMin3;
new pk_LVSTADIUMout;
new pk_LVSTADIUMin;
new pk_SFCITYHALLout;
new pk_SFCITYHALLin;
new pk_BISTROout;
new pk_BISTROoutLS;
new pk_BISTROin;
new pk_DINERout;
new pk_DINERin;
new pk_CALIGout;
new pk_CALIGin;
new pk_CAINEout;
new pk_CAINEin;
new pk_UTILjob;
new pk_DONUTout;
new pk_DONUTin;
new pk_TAXIjob;
new pk_DCPTjob;
new pk_CHRISout;
new pk_CHRISin;
new pk_PBSTADIUMpk;
new pk_SANNjob;
new pk_PBSTADIUMpk2;
new pk_LSSTADIUMin;
new pk_LSSTADIUMcarout;
new pk_LSSTADIUMcarin;
new pk_HOUSEJoeOut;
new pk_HOUSEJoeIn;
new pk_chrishouseenter;
new pk_chrishouseexit;
new pk_vgbhouse;
new pk_eddyhouse;
new pk_INFOstatepen1;
new pk_INFOstatepen2;
new pk_INFOstatepen3;
new pk_HOUSEVagoriderOut;
new pk_HOUSEVagoriderIn;
new pk_secretin;
new pk_secretout;
new pk_ATC_LS;
new pk_ATC_SF;
new pk_ATC_LV;
new pk_ATC_VM;
new pk_HOUSEKaleemOut;
new pk_HOUSEKaleemIn;
new pk_BFhqIn;
new pk_BFhqOut;
new pk_SFnormPROSTjob;
new pk_SFgayPROSTjob;
new pk_LSnormPROSTjob;
new pk_LVnormPROSTjob;
new pk_CLINICin;
new pk_SFHOSPout;
new pk_vipbistro;
new pk_vipdiner;
new pk_vipbank;
new pk_vipair;
new pk_vipenter;
new pk_vipexit;
new pk_casino;
new pk_vipgun;
new pk_jbin;
new pk_jbout;
new pk_vipenterls;
new pk_BaySFPDout;
new pk_BaySFPDin;
new pk_DispatchIconD3;
new pk_SexhouseIn;
new pk_SexhouseOut;
new pk_SupasaveIn;
new pk_SupasaveOut;
new pk_BrothelSFIn;
new pk_BrothelSFOut;
new pk_BrothelLSIn;
new pk_BrothelLSOut;
new pk_LSDonutOut;
new pk_LSDonutIn;
new pk_AmmunBaysideMainIn;
new pk_AmmunBaysideMainOut;
new pk_FCPDin;
new pk_FCPDout;
// VEHICLE DEFINES ----------
// END ----------
new Text:Textdraw;
new Text:Textdraw2;
// ZONES
enum zoneinfo {
zone_name[30], // This is the lenght of the names
Float:zone_minx,
Float:zone_miny,
Float:zone_minz,
Float:zone_maxx,
Float:zone_maxy,
Float:zone_maxz
}
new Float:zones[][zoneinfo] = { // min x, min y, min z, max X, max Y, max Z
{ "Mount Chiliad", -2861.00, -2113.70, -10.00, -2102.0, -1308.00, 500.00},
{ "Yellow Bell Golf Course", 1117.20, 2708.00, -10.00, 1533.00, 2883.00, 20.00},
{ "'Clair`s Tune Shop'", 2140.00, 2463.00, -10.00, 2217.00, 2500.00, 20.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 (San Fierro)", -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},
{ "Caligula's Palace", 2087.30, 1543.20, -89.00, 2437.30, 1703.20, 110.90},
{ "Caligula's Palace", 2137.40, 1703.20, -89.00, 2437.30, 1783.20, 110.90},
{ "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},
{ "City Hall", -2867.80, 277.40, -9.10, -2593.40, 458.40, 200.00},
{ "Come-A-Lot", 2087.30, 943.20, -89.00, 2623.10, 1203.20, 110.90},
{ "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, -10.00, -1922.00, 224.70, 50.00},
{ "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 San Fierro", -1982.30, 744.10, -6.10, -1871.70, 1274.20, 200.00},
{ "Downtown San Fierro", -1871.70, 1176.40, -4.50, -1620.30, 1274.20, 200.00},
{ "Downtown San Fierro", -1700.00, 744.20, -6.10, -1580.00, 1176.50, 200.00},
{ "Downtown San Fierro", -1580.00, 744.20, -6.10, -1499.80, 1025.90, 200.00},
{ "Downtown San Fierro", -2078.60, 578.30, -7.60, -1499.80, 744.20, 200.00},
{ "Downtown San Fierro", -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 Naval Base", -1794.90, 249.90, -9.10, -1242.90, 578.30, 200.00},
{ "Easter Basin Naval Base", -1794.90, -50.00, -0.00, -1499.80, 249.90, 200.00},
{ "Easter Bay International", -1499.80, -50.00, -0.00, -1242.90, 249.90, 200.00},
{ "Easter Bay International", -1731.90, -700.10, -3.00, -1214.00, -50.00, 200.00},
{ "Easter Bay International", -1213.90, -500.10, 0.00, -1132.80, -50.00, 200.00},
{ "Easter Bay International", -1242.90, -50.00, 0.00, -1213.90, 578.30, 200.00},
{ "Easter Bay International", -1213.90, -50.00, -4.50, -947.90, 578.30, 200.00},
{ "Easter Bay International", -1315.40, -405.30, 15.40, -1264.40, -209.50, 25.40},
{ "Easter Bay International", -1354.30, -287.30, 15.40, -1315.40, -209.50, 25.40},
{ "Easter Bay International", -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, 2218.00, 0.00, -209.00, 2580.30, 200.00},
{ "El Castillo del Diablo", -208.00, 2123.00, -7.60, 114.00, 2337.00, 200.00},
{ "El Castillo del Diablo", -208.00, 2337.50, 0.00, 8.40, 2487.00, 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},
{ "Town of 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},
{ "Town of 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, 337.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},
{ "Kings", -2329.30, 458.40, -7.60, -1993.20, 578.30, 200.00},
{ "Kings", -2411.20, 265.20, -9.10, -1993.20, 373.50, 200.00},
{ "Kings", -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, -209.00, 2217.00, 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, 2581.30, 2.00, -133.60, 2816.80, 200.00},
{ "Las Venturas International", 1236.60, 1203.20, -89.00, 1457.30, 1883.10, 110.90},
{ "Las Venturas International", 1457.30, 1203.20, -89.00, 1777.30, 1883.10, 110.90},
{ "Las Venturas International", 1457.30, 1143.20, -89.00, 1777.40, 1203.20, 110.90},
{ "Las Venturas International", 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, 100.80, 1386.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", 339.60, 1228.50, 0.00, 664.30, 1635.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},
{ "Town of Palomino Creek", 2160.20, -149.00, 0.00, 2576.90, 228.30, 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, 2707.00, 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},
{ "Royal Casino", 2087.30, 1383.20, -89.00, 2437.30, 1543.20, 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},
{ "Spinybed", 2121.40, 2663.10, -89.00, 2498.20, 2861.50, 110.90},
{ "Starfish Casino", 2437.30, 1783.20, -89.00, 2685.10, 2012.10, 110.90},
{ "Starfish Casino", 2437.30, 1858.10, -39.00, 2495.00, 1970.80, 60.90},
{ "Starfish Casino", 2162.30, 1883.20, -89.00, 2437.30, 2012.10, 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 Camel's Toe", 2087.30, 1203.20, -89.00, 2640.40, 1383.20, 110.90},
{ "The Clown's Pocket", 2162.30, 1783.20, -89.00, 2437.30, 1883.20, 110.90},
{ "The Emerald Isle", 2011.90, 2202.70, -89.00, 2237.40, 2462.20, 110.90},
{ "The Farm", -1209.60, -1317.10, 114.90, -908.10, -787.30, 251.90},
{ "The Four Dragons Casino", 1817.30, 863.20, -89.00, 2027.30, 1083.20, 110.90},
{ "The High Roller", 1817.30, 1283.20, -89.00, 2027.30, 1469.20, 110.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 Pink Swan", 1817.30, 1083.20, -89.00, 2027.30, 1283.20, 110.90},
{ "The Sherman Dam", -968.70, 1929.40, -3.00, -490.00, 2155.20, 200.00},
{ "The Strip", 2027.40, 863.20, -89.00, 2087.30, 1703.20, 110.90},
{ "The Strip", 2106.70, 1863.20, -89.00, 2162.30, 2202.70, 110.90},
{ "The Strip", 2027.40, 1783.20, -89.00, 2162.30, 1863.20, 110.90},
{ "The Strip", 2027.40, 1703.20, -89.00, 2137.40, 1783.20, 110.90},
{ "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, 2339.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},
{ "Restricted Area", -76.40, 1640.00, -31.90, 411.90, 2104.50, 110.90},
//MAIN ZONES
{ "Los Santos City Limits", 44.60, -2892.90, -242.90, 2997.00, -768.00, 900.00},
{ "Metropolitan Las Venturas", 869.40, 596.30, -242.90, 2997.00, 2994.00, 900.00},
{ "Bone County", -479.00, 596.50, -242.90, 869.00, 2993.00, 900.00},
{ "Tierra Robada (Flint County)", -2997.40, 1659.60, -242.90, -481.50, 2992.00, 900.00},
{ "Tierra Robada (Flint County)", -1213.90, 596.30, -242.90, -481.50, 1659.60, 900.00},
{ "San Fierro City Limits", -2997.40, -1115.50, -242.90, -1213.90, 1659.60, 900.00},
{ "Red County", -1213.90, -768.00, -242.90, 2997.00, 596.30, 900.00},
{ "Flint County", -1213.90, -2892.90, -242.90, 44.60, -768.00, 900.00},
{ "Whetstone (Flint County)", -2997.40, -2892.90, -242.90, -1213.90, -1115.50, 900.00}
};
new afk[MAX_PLAYERS];
new brb[MAX_PLAYERS];
new Float:checkGas[MAX_GAS][4];
#define MAX_PLAYERS_FUEL MAX_PLAYERS
new Text:medidorTanque[MAX_PLAYERS_FUEL];
new combustible[MAX_VECTOR];
new SinGas[MAX_PLAYERS_FUEL];
new Menu:MenuGas;
enum SavePlayerPosEnum
{
Float:LastX,
Float:LastY,
Float:LastZ
}
new SavePlayerPos[MAX_PLAYERS_FUEL][SavePlayerPosEnum];
new TankString[MAX_PLAYERS_FUEL][255];
new SpeedString[MAX_PLAYERS_FUEL][255];
new Float:Kilometers[MAX_PLAYERS_FUEL];
//new CaligulasTimer = 3000;
new PLAYERLIST_authed[MAX_PLAYERS];
new gteam[MAX_PLAYERS];
#pragma tabsize 0
#define MAX_JAILZONES 1
new JailStatus[MAX_PLAYERS] = 0;
new gHour;
new gAAreaTime = 3000;
new WantedLevel[MAX_PLAYERS];
#define MAX_WANTED_LEVEL 5
#define MAX_SAVE 64
new giveplayername[MAX_PLAYERS];
new GodTimer;
new God[MAX_PLAYERS];
new L3M[MAX_PLAYERS];
new L2M[MAX_PLAYERS];
new Agent[MAX_PLAYERS];
new VIP[MAX_PLAYERS];
new VIPPK[MAX_PLAYERS];
new DiseaseTimer;
new DiseasedPlayer[MAX_PLAYERS];
new InjuredTimer;
new InjuredPlayer[MAX_PLAYERS];
new InjuredActivation[MAX_PLAYERS];
new PlayerIsADispatcher[MAX_PLAYERS];
new DispatchActivated;
new STMSPlayer[MAX_PLAYERS];
new GiveMoneyTimer;
new GiveMoney[MAX_PLAYERS];
new Count=5;
//new realchat = 1;
new zoneupdates[MAX_PLAYERS_];
new player_zone[MAX_PLAYERS_];
new zoneupdate;
new job[MAX_PLAYERS];
new bank[MAX_PLAYERS];
new playerCheckpoint[MAX_PLAYERS];
new gPlayerClass[MAX_PLAYERS];
new gPhoneBook[MAX_PLAYERS];
new JailTime[MAX_PLAYERS];
new FlashTime[MAX_PLAYERS];
new Float: jailxt, Float: jailyt, Float: jailzt;
new stopsoundt;
new gPublicEnemy = INVALID_PLAYER_ID;
new gSuperCop = INVALID_PLAYER_ID;
new gPlayerMission[MAX_PLAYERS];
new bool:BattleSpawn[MAX_PLAYERS];
#define MAX_GANGS 32
new playerGang[MAX_PLAYERS];
enum pCrime
{
pBplayer[32],
pAccusing[32],
pAccusedof[32],
pVictim[32],
};
#define FILE_SETTINGS "settings.cfg"
#define MAX_POINTS 16
new playerColors[100] = {
0xFF8C13FF,0xC715FFFF,0x20B2AAFF,0xDC143CFF,0x6495EDFF,0xf0e68cFF,0x778899FF,0xFF1493FF,0xF4A460FF,0xEE82EEFF,0xFFD720FF,
0x8b4513FF,0x4949A0FF,0x148b8bFF,0x14ff7fFF,0x556b2fFF,0x0FD9FAFF,0x10DC29FF,0x534081FF,0x0495CDFF,0xEF6CE8FF,0xBD34DAFF,
0x247C1BFF,0x0C8E5DFF,0x635B03FF,0xCB7ED3FF,0x65ADEBFF,0x5C1ACCFF,0xF2F853FF,0x11F891FF,0x7B39AAFF,0x53EB10FF,0x54137DFF,
0x275222FF,0xF09F5BFF,0x3D0A4FFF,0x22F767FF,0xD63034FF,0x9A6980FF,0xDFB935FF,0x3793FAFF,0x90239DFF,0xE9AB2FFF,0xAF2FF3FF,
0x057F94FF,0xB98519FF,0x388EEAFF,0x028151FF,0xA55043FF,0x0DE018FF,0x93AB1CFF,0x95BAF0FF,0x369976FF,0x18F71FFF,0x4B8987FF,
0x491B9EFF,0x829DC7FF,0xBCE635FF,0xCEA6DFFF,0x20D4ADFF,0x2D74FDFF,0x3C1C0DFF,0x12D6D4FF,0x48C000FF,0x2A51E2FF,0xE3AC12FF,
0xFC42A8FF,0x2FC827FF,0x1A30BFFF,0xB740C2FF,0x42ACF5FF,0x2FD9DEFF,0xFAFB71FF,0x05D1CDFF,0xC471BDFF,0x94436EFF,0xC1F7ECFF,
0xCE79EEFF,0xBD1EF2FF,0x93B7E4FF,0x3214AAFF,0x184D3BFF,0xAE4B99FF,0x7E49D7FF,0x4C436EFF,0xFA24CCFF,0xCE76BEFF,0xA04E0AFF,
0x9F945CFF,0xDCDE3DFF,0x10C9C5FF,0x70524DFF,0x0BE472FF,0x8A2CD7FF,0x6152C2FF,0xCF72A9FF,0xE59338FF,0xEEDC2DFF,0xD8C762FF,
0x3FE65CFF
};
enum pInfo{
pAdmin,
pLevel,
pInt,
pLocal,
pPnumber,
pPassword[128],
pCash,
pAccount,
pExp,
gPupgrade,
pKills,
pCB,
pHW,
pSR,
pWA,
pPEN,
pGun1,
pGun2,
pGun3,
pGun4,
pGun5,
pGun6,
pAmmo1,
pAmmo2,
pAmmo3,
pAmmo4,
pAmmo5,
pAmmo6,
Float:pSHealth,
Float:pHealth,
Float:pPos_x,
Float:pPos_y,
Float:pPos_z,
pTeam,
pModel,
pPhousekey,
pPbiskey
};
new PlayerInfo[MAX_PLAYERS][pInfo];
new Float:TelePos[MAX_PLAYERS][6];
new Mobile[MAX_PLAYERS];
new RingTone[MAX_PLAYERS];
new CellTime[MAX_PLAYERS];
new BigEar[MAX_PLAYERS];
new gdebug = 1;
new gOoc[MAX_PLAYERS];
new noooc;
new adds = 1;
new addtimer = 60000;
#define SLOTS 4
forward AreaProcess();
forward KeyPress();
#define KEYPRESS_INTERVAL 200
#define MOVE_SPEED 2.0
#define MINX -100.0 // area where you can use the keys
#define MINY 1600.0
#define MAXX 400.0
#define MAXY 2200.0
new Float:doors[2][3] = {
{215.941, 1875.5, 13.903},
{211.842, 1875.5, 13.903}
};
new objects[2];
new doors_open[2];
new last_keys[SLOTS];
forward InfiniteLife();
forward AIDSInfected();
forward PickDestroy(o);
new weapmod[600] = {1212,331,333,334,335,336,337,338,339,341,321,322,323,324,
325,326,342,343,344,345,345,345,346,347,348,349,350,351,352,353,355,356,372,357,
358,359,360,361,362,363,364,365,366,367,368,369,371};
new PickUpMoney[101] = {false, ...};
new DropPick[101] = {false, ...};
forward Float:GetPlayerArmourEx(p);
forward Dschool_Yes(playerid);
forward Dschool_No(playerid);
forward Dschool_Dis(playerid);
new File:DSchool;
new Float:PlayerRandomSpawn[3][4] = {
{1743.4808,-1863.3073,13.5752,355.0688}, // SF Air
{-1985.2026,138.0730,27.6875,87.4658}, // SF Cranberry Station
{-2493.7268,2270.7651,4.9844,193.5153} // SF Bayside
};
actualizarMedidor(playerid,string[255])
{
new tmp[255];
TankString[playerid]=string;
TextDrawDestroy(medidorTanque[playerid]);
format(tmp, sizeof(tmp), "%s %s",TankString[playerid],SpeedString[playerid]);
medidorTanque[playerid] = TextDrawCreate(500.0, 100.0,tmp);
TextDrawFont(medidorTanque[playerid],3);
TextDrawColor(medidorTanque[playerid], COLOR_GREEN);
TextDrawLetterSize(medidorTanque[playerid], 1, 1.33);
TextDrawTextSize(medidorTanque[playerid], 50.0, 35.0);
TextDrawSetOutline(medidorTanque[playerid],1);
TextDrawShowForPlayer(playerid,medidorTanque[playerid]);
}
//-----------------------------------------------------------------------------------------------------
public Speedometer()
{
new type;
for (new player=0;player<MAX_PLAYERS_FUEL;player++)
{
if ((IsPlayerConnected(player))&&(IsPlayerInAnyVehicle(player)))
{
new wid = GetPlayerVehicleID(player);
type=GetVehicleTypeFromId(GetVehicleModel(wid));
if ((type==1)|(type==2)|(type==3))
{
fuelgauge(player);
}
else
{
fuelgauge2(player);
}
}
}
}
//-----------------------------------------------------------------------------------------------------
fuelgauge(playerid)
{
new tmp[255];
new Float:x,Float:y,Float:z;
new Float:distance;
GetPlayerPos(playerid, x, y, z);
distance = floatsqroot(floatpower(floatabs(floatsub(x,SavePlayerPos[playerid][LastX])),2)+floatpower(floatabs(floatsub(y,SavePlayerPos[playerid][LastY])),2)+floatpower(floatabs(floatsub(z,SavePlayerPos[playerid][LastZ])),2));
SavePlayerPos[playerid][LastX] = x;
SavePlayerPos[playerid][LastY] = y;
SavePlayerPos[playerid][LastZ] = z;
format(tmp, sizeof(tmp), "KpH:%d",floatround(distance * 7.2));
SpeedString[playerid]=tmp;
Kilometers[playerid]=Kilometers[playerid]+floatround(distance * 7.2);
if (Kilometers[playerid]>3000.0)
{
Kilometers[playerid]=0.0;
if (GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
{
combustible[GetPlayerVehicleID(playerid)]--;
format(tmp, sizeof(tmp), "Fuel:%d", combustible[GetPlayerVehicleID(playerid)]);
actualizarMedidor(playerid,tmp);
}
}
format(tmp, sizeof(tmp), "%s %s",TankString[playerid],SpeedString[playerid]);
TextDrawDestroy(medidorTanque[playerid]);
medidorTanque[playerid] = TextDrawCreate(500.0, 100.0,tmp);
TextDrawFont(medidorTanque[playerid],3);
TextDrawColor(medidorTanque[playerid], COLOR_GREEN);
TextDrawLetterSize(medidorTanque[playerid], 1, 1.33);
TextDrawTextSize(medidorTanque[playerid], 50.0, 35.0);
TextDrawSetOutline(medidorTanque[playerid],1);
TextDrawShowForPlayer(playerid,medidorTanque[playerid]);
}
//-----------------------------------------------------------------------------------------------------
fuelgauge2(playerid)
{
new tmp[255];
new Float:x,Float:y,Float:z;
new Float:distance;
GetPlayerPos(playerid, x, y, z);
distance = floatsqroot(floatpower(floatabs(floatsub(x,SavePlayerPos[playerid][LastX])),2)+floatpower(floatabs(floatsub(y,SavePlayerPos[playerid][LastY])),2)+floatpower(floatabs(floatsub(z,SavePlayerPos[playerid][LastZ])),2));
SavePlayerPos[playerid][LastX] = x;
SavePlayerPos[playerid][LastY] = y;
SavePlayerPos[playerid][LastZ] = z;
format(tmp, sizeof(tmp), "MPH:%d",floatround(distance* 5.3));
SpeedString[playerid]=tmp;
format(tmp, sizeof(tmp), "%s %s","_",SpeedString[playerid]);
TextDrawDestroy(medidorTanque[playerid]);
medidorTanque[playerid] = TextDrawCreate(500.0, 100.0,tmp);
TextDrawFont(medidorTanque[playerid],3);
TextDrawColor(medidorTanque[playerid], COLOR_GREEN);
TextDrawLetterSize(medidorTanque[playerid], 1, 1.33);
TextDrawTextSize(medidorTanque[playerid], 50.0, 35.0);
TextDrawSetOutline(medidorTanque[playerid],1);
TextDrawShowForPlayer(playerid,medidorTanque[playerid]);
}
//-----------------------------------------------------------------------------------------------------
public ConsumirCombustible()
{
new player;
new type;
new string[255];
for (player=0;player<MAX_PLAYERS_FUEL;player++)
{
if ((IsPlayerConnected(player))&&(IsPlayerInAnyVehicle(player)))
{
new wid = GetPlayerVehicleID(player);
type=GetVehicleTypeFromId(GetVehicleModel(wid));
if ((type==1)|(type==2)|(type==3))
{
if (GetPlayerState(player)==PLAYER_STATE_DRIVER)
{
combustible[wid]--;
}
format(string, sizeof(string), "Fuel:%d", combustible[wid]);
if (combustible[wid]<1)
{
format(string, sizeof(string), "EMPTY");
if (GetPlayerState(player)==PLAYER_STATE_DRIVER)
{
SinGas[player]=wid;
TogglePlayerControllable(player,false);
}
combustible[wid]=0;
}
actualizarMedidor(player,string);
}
}
}
}
main()
{
print("\n----------------------------------");
print(" [ERP] ELITE ROLE PLAYERS ");
print("----------------------------------\n");
}
public checkit() for(new i=0;i<GetMaxPlayers();i++) if(IsPlayerConnected(i)) SetPlayerScore(i,GetPlayerMoney(i));
LockLSPDCars(playerid)
{
SetVehicleParamsForPlayer(1, playerid, 0, 1);
SetVehicleParamsForPlayer(2, playerid, 0, 1);
SetVehicleParamsForPlayer(3, playerid, 0, 1);
SetVehicleParamsForPlayer(4, playerid, 0, 1);
SetVehicleParamsForPlayer(5, playerid, 0, 1);
SetVehicleParamsForPlayer(6, playerid, 0, 1);
SetVehicleParamsForPlayer(7, playerid, 0, 1);
SetVehicleParamsForPlayer(8, playerid, 0, 1);
SetVehicleParamsForPlayer(9, playerid, 0, 1);
SetVehicleParamsForPlayer(10, playerid, 0, 1);
SetVehicleParamsForPlayer(11, playerid, 0, 1);
SetVehicleParamsForPlayer(12, playerid, 0, 1);
SetVehicleParamsForPlayer(13, playerid, 0, 1);
SetVehicleParamsForPlayer(14, playerid, 0, 1);
SetVehicleParamsForPlayer(15, playerid, 0, 1);
SetVehicleParamsForPlayer(212, playerid, 0, 1);
SetVehicleParamsForPlayer(213, playerid, 0, 1);
SetVehicleParamsForPlayer(214, playerid, 0, 1);
SetVehicleParamsForPlayer(215, playerid, 0, 1);
SetVehicleParamsForPlayer(216, playerid, 0, 1);
SetVehicleParamsForPlayer(217, playerid, 0, 1);
SetVehicleParamsForPlayer(218, playerid, 0, 1);
}
UnlockLSPDCars(playerid)
{
SetVehicleParamsForPlayer(1, playerid, 0, 0);
SetVehicleParamsForPlayer(2, playerid, 0, 0);
SetVehicleParamsForPlayer(3, playerid, 0, 0);
SetVehicleParamsForPlayer(4, playerid, 0, 0);
SetVehicleParamsForPlayer(5, playerid, 0, 0);
SetVehicleParamsForPlayer(6, playerid, 0, 0);
SetVehicleParamsForPlayer(7, playerid, 0, 0);
SetVehicleParamsForPlayer(8, playerid, 0, 0);
SetVehicleParamsForPlayer(9, playerid, 0, 0);
SetVehicleParamsForPlayer(10, playerid, 0, 0);
SetVehicleParamsForPlayer(11, playerid, 0, 0);
SetVehicleParamsForPlayer(12, playerid, 0, 0);
SetVehicleParamsForPlayer(13, playerid, 0, 0);
SetVehicleParamsForPlayer(14, playerid, 0, 0);
SetVehicleParamsForPlayer(15, playerid, 0, 0);
SetVehicleParamsForPlayer(212, playerid, 0, 0);
SetVehicleParamsForPlayer(213, playerid, 0, 0);
SetVehicleParamsForPlayer(214, playerid, 0, 0);
SetVehicleParamsForPlayer(215, playerid, 0, 0);
SetVehicleParamsForPlayer(216, playerid, 0, 0);
SetVehicleParamsForPlayer(217, playerid, 0, 0);
SetVehicleParamsForPlayer(218, playerid, 0, 0);
}
LockSFPDCars(playerid)
{
SetVehicleParamsForPlayer(16, playerid, 0, 1);
SetVehicleParamsForPlayer(17, playerid, 0, 1);
SetVehicleParamsForPlayer(18, playerid, 0, 1);
SetVehicleParamsForPlayer(19, playerid, 0, 1);
SetVehicleParamsForPlayer(20, playerid, 0, 1);
SetVehicleParamsForPlayer(21, playerid, 0, 1);
SetVehicleParamsForPlayer(22, playerid, 0, 1);
SetVehicleParamsForPlayer(23, playerid, 0, 1);
SetVehicleParamsForPlayer(24, playerid, 0, 1);
SetVehicleParamsForPlayer(25, playerid, 0, 1);
SetVehicleParamsForPlayer(26, playerid, 0, 1);
SetVehicleParamsForPlayer(27, playerid, 0, 1);
SetVehicleParamsForPlayer(28, playerid, 0, 1);
SetVehicleParamsForPlayer(29, playerid, 0, 1);
SetVehicleParamsForPlayer(30, playerid, 0, 1);
SetVehicleParamsForPlayer(31, playerid, 0, 1);
SetVehicleParamsForPlayer(194, playerid, 0, 1);
SetVehicleParamsForPlayer(195, playerid, 0, 1);
SetVehicleParamsForPlayer(196, playerid, 0, 1);
SetVehicleParamsForPlayer(197, playerid, 0, 1);
SetVehicleParamsForPlayer(198, playerid, 0, 1);
SetVehicleParamsForPlayer(199, playerid, 0, 1);
SetVehicleParamsForPlayer(200, playerid, 0, 1);
SetVehicleParamsForPlayer(201, playerid, 0, 1);
SetVehicleParamsForPlayer(202, playerid, 0, 1);
SetVehicleParamsForPlayer(203, playerid, 0, 1);
SetVehicleParamsForPlayer(204, playerid, 0, 1);
}
UnlockSFPDCars(playerid)
{
SetVehicleParamsForPlayer(16, playerid, 0, 0);
SetVehicleParamsForPlayer(17, playerid, 0, 0);
SetVehicleParamsForPlayer(18, playerid, 0, 0);
SetVehicleParamsForPlayer(19, playerid, 0, 0);
SetVehicleParamsForPlayer(20, playerid, 0, 0);
SetVehicleParamsForPlayer(21, playerid, 0, 0);
SetVehicleParamsForPlayer(22, playerid, 0, 0);
SetVehicleParamsForPlayer(23, playerid, 0, 0);
SetVehicleParamsForPlayer(24, playerid, 0, 0);
SetVehicleParamsForPlayer(25, playerid, 0, 0);
SetVehicleParamsForPlayer(26, playerid, 0, 0);
SetVehicleParamsForPlayer(27, playerid, 0, 0);
SetVehicleParamsForPlayer(28, playerid, 0, 0);
SetVehicleParamsForPlayer(29, playerid, 0, 0);
SetVehicleParamsForPlayer(30, playerid, 0, 0);
SetVehicleParamsForPlayer(31, playerid, 0, 0);
SetVehicleParamsForPlayer(194, playerid, 0, 0);
SetVehicleParamsForPlayer(195, playerid, 0, 0);
SetVehicleParamsForPlayer(196, playerid, 0, 0);
SetVehicleParamsForPlayer(197, playerid, 0, 0);
SetVehicleParamsForPlayer(198, playerid, 0, 0);
SetVehicleParamsForPlayer(199, playerid, 0, 0);
SetVehicleParamsForPlayer(200, playerid, 0, 0);
SetVehicleParamsForPlayer(201, playerid, 0, 0);
SetVehicleParamsForPlayer(202, playerid, 0, 0);
SetVehicleParamsForPlayer(203, playerid, 0, 0);
SetVehicleParamsForPlayer(204, playerid, 0, 0);
}
LockLVPDCars(playerid)
{
SetVehicleParamsForPlayer(32, playerid, 0, 1);
SetVehicleParamsForPlayer(33, playerid, 0, 1);
SetVehicleParamsForPlayer(34, playerid, 0, 1);
SetVehicleParamsForPlayer(35, playerid, 0, 1);
SetVehicleParamsForPlayer(36, playerid, 0, 1);
SetVehicleParamsForPlayer(37, playerid, 0, 1);
SetVehicleParamsForPlayer(38, playerid, 0, 1);
SetVehicleParamsForPlayer(39, playerid, 0, 1);
SetVehicleParamsForPlayer(40, playerid, 0, 1);
SetVehicleParamsForPlayer(41, playerid, 0, 1);
SetVehicleParamsForPlayer(42, playerid, 0, 1);
SetVehicleParamsForPlayer(43, playerid, 0, 1);
SetVehicleParamsForPlayer(44, playerid, 0, 1);
SetVehicleParamsForPlayer(45, playerid, 0, 1);
SetVehicleParamsForPlayer(46, playerid, 0, 1);
SetVehicleParamsForPlayer(47, playerid, 0, 1);
SetVehicleParamsForPlayer(48, playerid, 0, 1);
SetVehicleParamsForPlayer(205, playerid, 0, 1);
SetVehicleParamsForPlayer(206, playerid, 0, 1);
SetVehicleParamsForPlayer(207, playerid, 0, 1);
SetVehicleParamsForPlayer(208, playerid, 0, 1);
SetVehicleParamsForPlayer(209, playerid, 0, 1);
SetVehicleParamsForPlayer(310, playerid, 0, 1);
}
UnlockLVPDCars(playerid)
{
SetVehicleParamsForPlayer(32, playerid, 0, 0);
SetVehicleParamsForPlayer(33, playerid, 0, 0);
SetVehicleParamsForPlayer(34, playerid, 0, 0);
SetVehicleParamsForPlayer(35, playerid, 0, 0);
SetVehicleParamsForPlayer(36, playerid, 0, 0);
SetVehicleParamsForPlayer(37, playerid, 0, 0);
SetVehicleParamsForPlayer(38, playerid, 0, 0);
SetVehicleParamsForPlayer(39, playerid, 0, 0);
SetVehicleParamsForPlayer(40, playerid, 0, 0);
SetVehicleParamsForPlayer(41, playerid, 0, 0);
SetVehicleParamsForPlayer(42, playerid, 0, 0);
SetVehicleParamsForPlayer(43, playerid, 0, 0);
SetVehicleParamsForPlayer(44, playerid, 0, 0);
SetVehicleParamsForPlayer(45, playerid, 0, 0);
SetVehicleParamsForPlayer(46, playerid, 0, 0);
SetVehicleParamsForPlayer(47, playerid, 0, 0);
SetVehicleParamsForPlayer(48, playerid, 0, 0);
SetVehicleParamsForPlayer(205, playerid, 0, 0);
SetVehicleParamsForPlayer(206, playerid, 0, 0);
SetVehicleParamsForPlayer(207, playerid, 0, 0);
SetVehicleParamsForPlayer(208, playerid, 0, 0);
SetVehicleParamsForPlayer(209, playerid, 0, 0);
SetVehicleParamsForPlayer(310, playerid, 0, 0);
}
LockSASPCars(playerid)
{
SetVehicleParamsForPlayer(49, playerid, 0, 1);
SetVehicleParamsForPlayer(50, playerid, 0, 1);
SetVehicleParamsForPlayer(51, playerid, 0, 1);
SetVehicleParamsForPlayer(52, playerid, 0, 1);
SetVehicleParamsForPlayer(53, playerid, 0, 1);
SetVehicleParamsForPlayer(54, playerid, 0, 1);
SetVehicleParamsForPlayer(55, playerid, 0, 1);
SetVehicleParamsForPlayer(56, playerid, 0, 1);
SetVehicleParamsForPlayer(57, playerid, 0, 1);
SetVehicleParamsForPlayer(58, playerid, 0, 1);
SetVehicleParamsForPlayer(59, playerid, 0, 1);
SetVehicleParamsForPlayer(60, playerid, 0, 1);
SetVehicleParamsForPlayer(61, playerid, 0, 1);
SetVehicleParamsForPlayer(62, playerid, 0, 1);
SetVehicleParamsForPlayer(63, playerid, 0, 1);
SetVehicleParamsForPlayer(64, playerid, 0, 1);
SetVehicleParamsForPlayer(210, playerid, 0, 1);
SetVehicleParamsForPlayer(211, playerid, 0, 1);
SetVehicleParamsForPlayer(224, playerid, 0, 1);
SetVehicleParamsForPlayer(300, playerid, 0, 1);
SetVehicleParamsForPlayer(301, playerid, 0, 1);
SetVehicleParamsForPlayer(302, playerid, 0, 1);
SetVehicleParamsForPlayer(303, playerid, 0, 1);
SetVehicleParamsForPlayer(304, playerid, 0, 1);
SetVehicleParamsForPlayer(305, playerid, 0, 1);\
SetVehicleParamsForPlayer(332, playerid, 0, 1);
}
UnlockSASPCars(playerid)
{
SetVehicleParamsForPlayer(49, playerid, 0, 0);
SetVehicleParamsForPlayer(50, playerid, 0, 0);
SetVehicleParamsForPlayer(51, playerid, 0, 0);
SetVehicleParamsForPlayer(52, playerid, 0, 0);
SetVehicleParamsForPlayer(53, playerid, 0, 0);
SetVehicleParamsForPlayer(54, playerid, 0, 0);
SetVehicleParamsForPlayer(55, playerid, 0, 0);
SetVehicleParamsForPlayer(56, playerid, 0, 0);
SetVehicleParamsForPlayer(57, playerid, 0, 0);
SetVehicleParamsForPlayer(58, playerid, 0, 0);
SetVehicleParamsForPlayer(59, playerid, 0, 0);
SetVehicleParamsForPlayer(60, playerid, 0, 0);
SetVehicleParamsForPlayer(61, playerid, 0, 0);
SetVehicleParamsForPlayer(62, playerid, 0, 0);
SetVehicleParamsForPlayer(63, playerid, 0, 0);
SetVehicleParamsForPlayer(64, playerid, 0, 0);
SetVehicleParamsForPlayer(210, playerid, 0, 0);
SetVehicleParamsForPlayer(211, playerid, 0, 0);
SetVehicleParamsForPlayer(224, playerid, 0, 0);
SetVehicleParamsForPlayer(300, playerid, 0, 0);
SetVehicleParamsForPlayer(301, playerid, 0, 0);
SetVehicleParamsForPlayer(302, playerid, 0, 0);
SetVehicleParamsForPlayer(303, playerid, 0, 0);
SetVehicleParamsForPlayer(304, playerid, 0, 0);
SetVehicleParamsForPlayer(305, playerid, 0, 0);
SetVehicleParamsForPlayer(332, playerid, 0, 0);
}
LockArmyCars(playerid)
{
SetVehicleParamsForPlayer(65, playerid, 0, 1);
SetVehicleParamsForPlayer(66, playerid, 0, 1);
SetVehicleParamsForPlayer(67, playerid, 0, 1);
SetVehicleParamsForPlayer(68, playerid, 0, 1);
SetVehicleParamsForPlayer(69, playerid, 0, 1);
SetVehicleParamsForPlayer(70, playerid, 0, 1);
SetVehicleParamsForPlayer(71, playerid, 0, 1);
SetVehicleParamsForPlayer(72, playerid, 0, 1);
SetVehicleParamsForPlayer(73, playerid, 0, 1);
SetVehicleParamsForPlayer(74, playerid, 0, 1);
SetVehicleParamsForPlayer(75, playerid, 0, 1);
SetVehicleParamsForPlayer(76, playerid, 0, 1);
SetVehicleParamsForPlayer(77, playerid, 0, 1);
SetVehicleParamsForPlayer(78, playerid, 0, 1);
SetVehicleParamsForPlayer(79, playerid, 0, 1);
SetVehicleParamsForPlayer(80, playerid, 0, 1);
SetVehicleParamsForPlayer(81, playerid, 0, 1);
SetVehicleParamsForPlayer(82, playerid, 0, 1);
SetVehicleParamsForPlayer(83, playerid, 0, 1);
SetVehicleParamsForPlayer(84, playerid, 0, 1);
SetVehicleParamsForPlayer(85, playerid, 0, 1);
SetVehicleParamsForPlayer(86, playerid, 0, 1);
SetVehicleParamsForPlayer(87, playerid, 0, 1);
SetVehicleParamsForPlayer(88, playerid, 0, 1);
SetVehicleParamsForPlayer(89, playerid, 0, 1);
SetVehicleParamsForPlayer(90, playerid, 0, 1);
SetVehicleParamsForPlayer(91, playerid, 0, 1);
SetVehicleParamsForPlayer(92, playerid, 0, 1);
SetVehicleParamsForPlayer(93, playerid, 0, 1);
SetVehicleParamsForPlayer(94, playerid, 0, 1);
SetVehicleParamsForPlayer(95, playerid, 0, 1);
SetVehicleParamsForPlayer(96, playerid, 0, 1);
SetVehicleParamsForPlayer(97, playerid, 0, 1);
SetVehicleParamsForPlayer(98, playerid, 0, 1);
SetVehicleParamsForPlayer(99, playerid, 0, 1);
SetVehicleParamsForPlayer(100, playerid, 0, 1);
SetVehicleParamsForPlayer(101, playerid, 0, 1);
SetVehicleParamsForPlayer(102, playerid, 0, 1);
SetVehicleParamsForPlayer(103, playerid, 0, 1);
SetVehicleParamsForPlayer(104, playerid, 0, 1);
SetVehicleParamsForPlayer(249, playerid, 0, 1);
SetVehicleParamsForPlayer(250, playerid, 0, 1);
SetVehicleParamsForPlayer(251, playerid, 0, 1);
SetVehicleParamsForPlayer(252, playerid, 0, 1);
SetVehicleParamsForPlayer(373, playerid, 0, 1);
SetVehicleParamsForPlayer(374, playerid, 0, 1);
SetVehicleParamsForPlayer(375, playerid, 0, 1);
SetVehicleParamsForPlayer(376, playerid, 0, 1);
}
UnlockArmyCars(playerid)
{
SetVehicleParamsForPlayer(65, playerid, 0, 0);
SetVehicleParamsForPlayer(66, playerid, 0, 0);
SetVehicleParamsForPlayer(67, playerid, 0, 0);
SetVehicleParamsForPlayer(68, playerid, 0, 0);
SetVehicleParamsForPlayer(69, playerid, 0, 0);
SetVehicleParamsForPlayer(70, playerid, 0, 0);
SetVehicleParamsForPlayer(71, playerid, 0, 0);
SetVehicleParamsForPlayer(72, playerid, 0, 0);
SetVehicleParamsForPlayer(73, playerid, 0, 0);
SetVehicleParamsForPlayer(74, playerid, 0, 0);
SetVehicleParamsForPlayer(75, playerid, 0, 0);
SetVehicleParamsForPlayer(76, playerid, 0, 0);
SetVehicleParamsForPlayer(77, playerid, 0, 0);
SetVehicleParamsForPlayer(78, playerid, 0, 0);
SetVehicleParamsForPlayer(79, playerid, 0, 0);
SetVehicleParamsForPlayer(80, playerid, 0, 0);
SetVehicleParamsForPlayer(81, playerid, 0, 0);
SetVehicleParamsForPlayer(82, playerid, 0, 0);
SetVehicleParamsForPlayer(83, playerid, 0, 0);
SetVehicleParamsForPlayer(84, playerid, 0, 0);
SetVehicleParamsForPlayer(85, playerid, 0, 0);
SetVehicleParamsForPlayer(86, playerid, 0, 0);
SetVehicleParamsForPlayer(87, playerid, 0, 0);
SetVehicleParamsForPlayer(88, playerid, 0, 0);
SetVehicleParamsForPlayer(89, playerid, 0, 0);
SetVehicleParamsForPlayer(90, playerid, 0, 0);
SetVehicleParamsForPlayer(91, playerid, 0, 0);
SetVehicleParamsForPlayer(92, playerid, 0, 0);
SetVehicleParamsForPlayer(93, playerid, 0, 0);
SetVehicleParamsForPlayer(94, playerid, 0, 0);
SetVehicleParamsForPlayer(95, playerid, 0, 0);
SetVehicleParamsForPlayer(96, playerid, 0, 0);
SetVehicleParamsForPlayer(97, playerid, 0, 0);
SetVehicleParamsForPlayer(98, playerid, 0, 0);
SetVehicleParamsForPlayer(99, playerid, 0, 0);
SetVehicleParamsForPlayer(100, playerid, 0, 0);
SetVehicleParamsForPlayer(101, playerid, 0, 0);
SetVehicleParamsForPlayer(102, playerid, 0, 0);
SetVehicleParamsForPlayer(103, playerid, 0, 0);
SetVehicleParamsForPlayer(104, playerid, 0, 0);
SetVehicleParamsForPlayer(249, playerid, 0, 0);
SetVehicleParamsForPlayer(250, playerid, 0, 0);
SetVehicleParamsForPlayer(251, playerid, 0, 0);
SetVehicleParamsForPlayer(252, playerid, 0, 0);
SetVehicleParamsForPlayer(373, playerid, 0, 0);
SetVehicleParamsForPlayer(374, playerid, 0, 0);
SetVehicleParamsForPlayer(375, playerid, 0, 0);
SetVehicleParamsForPlayer(376, playerid, 0, 0);
}
LockEMSCars(playerid)
{
SetVehicleParamsForPlayer(105, playerid, 0, 1);
SetVehicleParamsForPlayer(106, playerid, 0, 1);
SetVehicleParamsForPlayer(107, playerid, 0, 1);
SetVehicleParamsForPlayer(108, playerid, 0, 1);
SetVehicleParamsForPlayer(109, playerid, 0, 1);
SetVehicleParamsForPlayer(110, playerid, 0, 1);
SetVehicleParamsForPlayer(111, playerid, 0, 1);
SetVehicleParamsForPlayer(112, playerid, 0, 1);
SetVehicleParamsForPlayer(113, playerid, 0, 1);
SetVehicleParamsForPlayer(114, playerid, 0, 1);
SetVehicleParamsForPlayer(115, playerid, 0, 1);
SetVehicleParamsForPlayer(116, playerid, 0, 1);
SetVehicleParamsForPlayer(117, playerid, 0, 1);
SetVehicleParamsForPlayer(414, playerid, 0, 1);
SetVehicleParamsForPlayer(415, playerid, 0, 1);
SetVehicleParamsForPlayer(416, playerid, 0, 1);
SetVehicleParamsForPlayer(417, playerid, 0, 1);
}
UnlockEMSCars(playerid)
{
SetVehicleParamsForPlayer(105, playerid, 0, 0);
SetVehicleParamsForPlayer(106, playerid, 0, 0);
SetVehicleParamsForPlayer(107, playerid, 0, 0);
SetVehicleParamsForPlayer(108, playerid, 0, 0);
SetVehicleParamsForPlayer(109, playerid, 0, 0);
SetVehicleParamsForPlayer(110, playerid, 0, 0);
SetVehicleParamsForPlayer(111, playerid, 0, 0);
SetVehicleParamsForPlayer(112, playerid, 0, 0);
SetVehicleParamsForPlayer(113, playerid, 0, 0);
SetVehicleParamsForPlayer(114, playerid, 0, 0);
SetVehicleParamsForPlayer(115, playerid, 0, 0);
SetVehicleParamsForPlayer(116, playerid, 0, 0);
SetVehicleParamsForPlayer(117, playerid, 0, 0);
SetVehicleParamsForPlayer(414, playerid, 0, 0);
SetVehicleParamsForPlayer(415, playerid, 0, 0);
SetVehicleParamsForPlayer(416, playerid, 0, 0);
SetVehicleParamsForPlayer(417, playerid, 0, 0);
}
LockFDSACars(playerid)
{
SetVehicleParamsForPlayer(118, playerid, 0, 1);
SetVehicleParamsForPlayer(119, playerid, 0, 1);
SetVehicleParamsForPlayer(120, playerid, 0, 1);
SetVehicleParamsForPlayer(121, playerid, 0, 1);
SetVehicleParamsForPlayer(122, playerid, 0, 1);
SetVehicleParamsForPlayer(123, playerid, 0, 1);
SetVehicleParamsForPlayer(219, playerid, 0, 1);
SetVehicleParamsForPlayer(220, playerid, 0, 1);
SetVehicleParamsForPlayer(221, playerid, 0, 1);
SetVehicleParamsForPlayer(222, playerid, 0, 1);
SetVehicleParamsForPlayer(253, playerid, 0, 1);
SetVehicleParamsForPlayer(254, playerid, 0, 1);
SetVehicleParamsForPlayer(329, playerid, 0, 1);
}
UnlockFDSACars(playerid)
{
SetVehicleParamsForPlayer(118, playerid, 0, 0);
SetVehicleParamsForPlayer(119, playerid, 0, 0);
SetVehicleParamsForPlayer(120, playerid, 0, 0);
SetVehicleParamsForPlayer(121, playerid, 0, 0);
SetVehicleParamsForPlayer(122, playerid, 0, 0);
SetVehicleParamsForPlayer(123, playerid, 0, 0);
SetVehicleParamsForPlayer(219, playerid, 0, 0);
SetVehicleParamsForPlayer(220, playerid, 0, 0);
SetVehicleParamsForPlayer(221, playerid, 0, 0);
SetVehicleParamsForPlayer(222, playerid, 0, 0);
SetVehicleParamsForPlayer(253, playerid, 0, 0);
SetVehicleParamsForPlayer(254, playerid, 0, 0);
SetVehicleParamsForPlayer(329, playerid, 0, 0);
}
LockAdminCars(playerid)
{
SetVehicleParamsForPlayer(124, playerid, 0, 1);
SetVehicleParamsForPlayer(125, playerid, 0, 1);
SetVehicleParamsForPlayer(126, playerid, 0, 1);
SetVehicleParamsForPlayer(127, playerid, 0, 1);
SetVehicleParamsForPlayer(128, playerid, 0, 1);
SetVehicleParamsForPlayer(129, playerid, 0, 1);
SetVehicleParamsForPlayer(130, playerid, 0, 1);
SetVehicleParamsForPlayer(223, playerid, 0, 1);
SetVehicleParamsForPlayer(225, playerid, 0, 1);
SetVehicleParamsForPlayer(226, playerid, 0, 1);
SetVehicleParamsForPlayer(333, playerid, 0, 1);
SetVehicleParamsForPlayer(377, playerid, 0, 1);
SetVehicleParamsForPlayer(390, playerid, 0, 1);
SetVehicleParamsForPlayer(435, playerid, 0, 1);
}
UnlockAdminCars(playerid)
{
SetVehicleParamsForPlayer(124, playerid, 0, 0);
SetVehicleParamsForPlayer(125, playerid, 0, 0);
SetVehicleParamsForPlayer(126, playerid, 0, 0);
SetVehicleParamsForPlayer(127, playerid, 0, 0);
SetVehicleParamsForPlayer(128, playerid, 0, 0);
SetVehicleParamsForPlayer(129, playerid, 0, 0);
SetVehicleParamsForPlayer(130, playerid, 0, 0);
SetVehicleParamsForPlayer(223, playerid, 0, 0);
SetVehicleParamsForPlayer(225, playerid, 0, 0);
SetVehicleParamsForPlayer(226, playerid, 0, 0);
SetVehicleParamsForPlayer(333, playerid, 0, 0);
SetVehicleParamsForPlayer(377, playerid, 0, 0);
SetVehicleParamsForPlayer(390, playerid, 0, 0);
SetVehicleParamsForPlayer(435, playerid, 0, 0);
}
LockGOVCars(playerid)
{
SetVehicleParamsForPlayer(131, playerid, 0, 1);
SetVehicleParamsForPlayer(132, playerid, 0, 1);
SetVehicleParamsForPlayer(133, playerid, 0, 1);
SetVehicleParamsForPlayer(134, playerid, 0, 1);
SetVehicleParamsForPlayer(135, playerid, 0, 1);
SetVehicleParamsForPlayer(136, playerid, 0, 1);
SetVehicleParamsForPlayer(426, playerid, 0, 1);
SetVehicleParamsForPlayer(427, playerid, 0, 1);
SetVehicleParamsForPlayer(428, playerid, 0, 1);
SetVehicleParamsForPlayer(429, playerid, 0, 1);
SetVehicleParamsForPlayer(430, playerid, 0, 1);
SetVehicleParamsForPlayer(431, playerid, 0, 1);
SetVehicleParamsForPlayer(432, playerid, 0, 1);
SetVehicleParamsForPlayer(433, playerid, 0, 1);
SetVehicleParamsForPlayer(434, playerid, 0, 1);
}
UnlockGOVCars(playerid)
{
SetVehicleParamsForPlayer(131, playerid, 0, 0);
SetVehicleParamsForPlayer(132, playerid, 0, 0);
SetVehicleParamsForPlayer(133, playerid, 0, 0);
SetVehicleParamsForPlayer(134, playerid, 0, 0);
SetVehicleParamsForPlayer(135, playerid, 0, 0);
SetVehicleParamsForPlayer(136, playerid, 0, 0);
SetVehicleParamsForPlayer(426, playerid, 0, 0);
SetVehicleParamsForPlayer(427, playerid, 0, 0);
SetVehicleParamsForPlayer(428, playerid, 0, 0);
SetVehicleParamsForPlayer(429, playerid, 0, 0);
SetVehicleParamsForPlayer(430, playerid, 0, 0);
SetVehicleParamsForPlayer(431, playerid, 0, 0);
SetVehicleParamsForPlayer(432, playerid, 0, 0);
SetVehicleParamsForPlayer(433, playerid, 0, 0);
SetVehicleParamsForPlayer(434, playerid, 0, 0);
}
LockDMVCars(playerid)
{
SetVehicleParamsForPlayer(161, playerid, 0, 1);
SetVehicleParamsForPlayer(162, playerid, 0, 1);
SetVehicleParamsForPlayer(163, playerid, 0, 1);
SetVehicleParamsForPlayer(164, playerid, 0, 1);
SetVehicleParamsForPlayer(165, playerid, 0, 1);
SetVehicleParamsForPlayer(166, playerid, 0, 1);
SetVehicleParamsForPlayer(167, playerid, 0, 1);
SetVehicleParamsForPlayer(270, playerid, 0, 1);
SetVehicleParamsForPlayer(271, playerid, 0, 1);
SetVehicleParamsForPlayer(272, playerid, 0, 1);
SetVehicleParamsForPlayer(273, playerid, 0, 1);
}
UnlockDMVCars(playerid)
{
SetVehicleParamsForPlayer(161, playerid, 0, 0);
SetVehicleParamsForPlayer(162, playerid, 0, 0);
SetVehicleParamsForPlayer(163, playerid, 0, 0);
SetVehicleParamsForPlayer(164, playerid, 0, 0);
SetVehicleParamsForPlayer(165, playerid, 0, 0);
SetVehicleParamsForPlayer(166, playerid, 0, 0);
SetVehicleParamsForPlayer(167, playerid, 0, 0);
SetVehicleParamsForPlayer(270, playerid, 0, 0);
SetVehicleParamsForPlayer(271, playerid, 0, 0);
SetVehicleParamsForPlayer(272, playerid, 0, 0);
SetVehicleParamsForPlayer(273, playerid, 0, 0);
}
LockBFLCars(playerid)
{
SetVehicleParamsForPlayer(168, playerid, 0, 1);
SetVehicleParamsForPlayer(169, playerid, 0, 1);
SetVehicleParamsForPlayer(170, playerid, 0, 1);
SetVehicleParamsForPlayer(171, playerid, 0, 1);
SetVehicleParamsForPlayer(122, playerid, 0, 1);
SetVehicleParamsForPlayer(173, playerid, 0, 1);
SetVehicleParamsForPlayer(174, playerid, 0, 1);
}
UnlockBFLCars(playerid)
{
SetVehicleParamsForPlayer(168, playerid, 0, 0);
SetVehicleParamsForPlayer(169, playerid, 0, 0);
SetVehicleParamsForPlayer(170, playerid, 0, 0);
SetVehicleParamsForPlayer(171, playerid, 0, 0);
SetVehicleParamsForPlayer(172, playerid, 0, 0);
SetVehicleParamsForPlayer(173, playerid, 0, 0);
SetVehicleParamsForPlayer(174, playerid, 0, 0);
}
LockSACars(playerid)
{
SetVehicleParamsForPlayer(177, playerid, 0, 1);
SetVehicleParamsForPlayer(178, playerid, 0, 1);
SetVehicleParamsForPlayer(180, playerid, 0, 1);
SetVehicleParamsForPlayer(181, playerid, 0, 1);
SetVehicleParamsForPlayer(182, playerid, 0, 1);
SetVehicleParamsForPlayer(183, playerid, 0, 1);
SetVehicleParamsForPlayer(184, playerid, 0, 1);
SetVehicleParamsForPlayer(185, playerid, 0, 1);
}
UnlockSACars(playerid)
{
SetVehicleParamsForPlayer(177, playerid, 0, 0);
SetVehicleParamsForPlayer(178, playerid, 0, 0);
SetVehicleParamsForPlayer(180, playerid, 0, 0);
SetVehicleParamsForPlayer(181, playerid, 0, 0);
SetVehicleParamsForPlayer(182, playerid, 0, 0);
SetVehicleParamsForPlayer(183, playerid, 0, 0);
SetVehicleParamsForPlayer(184, playerid, 0, 0);
SetVehicleParamsForPlayer(185, playerid, 0, 0);
}
LockCORLEONECars(playerid)
{
SetVehicleParamsForPlayer(186, playerid, 0, 1);
SetVehicleParamsForPlayer(187, playerid, 0, 1);
SetVehicleParamsForPlayer(188, playerid, 0, 1);
SetVehicleParamsForPlayer(189, playerid, 0, 1);
SetVehicleParamsForPlayer(190, playerid, 0, 1);
SetVehicleParamsForPlayer(191, playerid, 0, 1);
SetVehicleParamsForPlayer(192, playerid, 0, 1);
SetVehicleParamsForPlayer(193, playerid, 0, 1);
}
UnlockCORLEONECars(playerid)
{
SetVehicleParamsForPlayer(186, playerid, 0, 0);
SetVehicleParamsForPlayer(187, playerid, 0, 0);
SetVehicleParamsForPlayer(188, playerid, 0, 0);
SetVehicleParamsForPlayer(189, playerid, 0, 0);
SetVehicleParamsForPlayer(190, playerid, 0, 0);
SetVehicleParamsForPlayer(191, playerid, 0, 0);
SetVehicleParamsForPlayer(192, playerid, 0, 0);
SetVehicleParamsForPlayer(193, playerid, 0, 0);
}
LockTAXICars(playerid)
{
SetVehicleParamsForPlayer(240, playerid, 0, 1);
SetVehicleParamsForPlayer(241, playerid, 0, 1);
SetVehicleParamsForPlayer(242, playerid, 0, 1);
SetVehicleParamsForPlayer(243, playerid, 0, 1);
SetVehicleParamsForPlayer(244, playerid, 0, 1);
}
UnlockTAXICars(playerid)
{
SetVehicleParamsForPlayer(240, playerid, 0, 0);
SetVehicleParamsForPlayer(241, playerid, 0, 0);
SetVehicleParamsForPlayer(242, playerid, 0, 0);
SetVehicleParamsForPlayer(243, playerid, 0, 0);
SetVehicleParamsForPlayer(244, playerid, 0, 0);
}
LockUTILCars(playerid)
{
SetVehicleParamsForPlayer(255, playerid, 0, 1);
SetVehicleParamsForPlayer(256, playerid, 0, 1);
SetVehicleParamsForPlayer(257, playerid, 0, 1);
SetVehicleParamsForPlayer(258, playerid, 0, 1);
SetVehicleParamsForPlayer(259, playerid, 0, 1);
SetVehicleParamsForPlayer(260, playerid, 0, 1);
}
UnlockUTILCars(playerid)
{
SetVehicleParamsForPlayer(255, playerid, 0, 0);
SetVehicleParamsForPlayer(256, playerid, 0, 0);
SetVehicleParamsForPlayer(257, playerid, 0, 0);
SetVehicleParamsForPlayer(258, playerid, 0, 0);
SetVehicleParamsForPlayer(259, playerid, 0, 0);
SetVehicleParamsForPlayer(260, playerid, 0, 0);
}
LockSATACars(playerid)
{
SetVehicleParamsForPlayer(261, playerid, 0, 1);
SetVehicleParamsForPlayer(262, playerid, 0, 1);
SetVehicleParamsForPlayer(263, playerid, 0, 1);
SetVehicleParamsForPlayer(264, playerid, 0, 1);
SetVehicleParamsForPlayer(265, playerid, 0, 1);
SetVehicleParamsForPlayer(266, playerid, 0, 1);
SetVehicleParamsForPlayer(267, playerid, 0, 1);
SetVehicleParamsForPlayer(268, playerid, 0, 1);
SetVehicleParamsForPlayer(269, playerid, 0, 1);
}
UnlockSATACars(playerid)
{
SetVehicleParamsForPlayer(261, playerid, 0, 0);
SetVehicleParamsForPlayer(262, playerid, 0, 0);
SetVehicleParamsForPlayer(263, playerid, 0, 0);
SetVehicleParamsForPlayer(264, playerid, 0, 0);
SetVehicleParamsForPlayer(265, playerid, 0, 0);
SetVehicleParamsForPlayer(266, playerid, 0, 0);
SetVehicleParamsForPlayer(267, playerid, 0, 0);
SetVehicleParamsForPlayer(268, playerid, 0, 0);
SetVehicleParamsForPlayer(269, playerid, 0, 0);
}
LockDCPTCars(playerid)
{
SetVehicleParamsForPlayer(274, playerid, 0, 1);
SetVehicleParamsForPlayer(275, playerid, 0, 1);
SetVehicleParamsForPlayer(276, playerid, 0, 1);
SetVehicleParamsForPlayer(277, playerid, 0, 1);
SetVehicleParamsForPlayer(278, playerid, 0, 1);
}
UnlockDCPTCars(playerid)
{
SetVehicleParamsForPlayer(274, playerid, 0, 0);
SetVehicleParamsForPlayer(275, playerid, 0, 0);
SetVehicleParamsForPlayer(276, playerid, 0, 0);
SetVehicleParamsForPlayer(277, playerid, 0, 0);
SetVehicleParamsForPlayer(278, playerid, 0, 0);
}
LockDCPCars(playerid)
{
SetVehicleParamsForPlayer(357, playerid, 0, 1);
SetVehicleParamsForPlayer(358, playerid, 0, 1);
SetVehicleParamsForPlayer(359, playerid, 0, 1);
SetVehicleParamsForPlayer(360, playerid, 0, 1);
SetVehicleParamsForPlayer(361, playerid, 0, 1);
SetVehicleParamsForPlayer(362, playerid, 0, 1);
SetVehicleParamsForPlayer(363, playerid, 0, 1);
SetVehicleParamsForPlayer(364, playerid, 0, 1);
SetVehicleParamsForPlayer(365, playerid, 0, 1);
}
UnlockDCPCars(playerid)
{
SetVehicleParamsForPlayer(357, playerid, 0, 0);
SetVehicleParamsForPlayer(358, playerid, 0, 0);
SetVehicleParamsForPlayer(359, playerid, 0, 0);
SetVehicleParamsForPlayer(360, playerid, 0, 0);
SetVehicleParamsForPlayer(361, playerid, 0, 0);
SetVehicleParamsForPlayer(362, playerid, 0, 0);
SetVehicleParamsForPlayer(363, playerid, 0, 0);
SetVehicleParamsForPlayer(364, playerid, 0, 0);
SetVehicleParamsForPlayer(365, playerid, 0, 0);
}
LockSANNCars(playerid)
{
SetVehicleParamsForPlayer(281, playerid, 0, 1);
SetVehicleParamsForPlayer(282, playerid, 0, 1);
SetVehicleParamsForPlayer(283, playerid, 0, 1);
SetVehicleParamsForPlayer(284, playerid, 0, 1);
SetVehicleParamsForPlayer(285, playerid, 0, 1);
SetVehicleParamsForPlayer(286, playerid, 0, 1);
}
UnlockSANNCars(playerid)
{
SetVehicleParamsForPlayer(281, playerid, 0, 0);
SetVehicleParamsForPlayer(282, playerid, 0, 0);
SetVehicleParamsForPlayer(283, playerid, 0, 0);
SetVehicleParamsForPlayer(284, playerid, 0, 0);
SetVehicleParamsForPlayer(285, playerid, 0, 0);
SetVehicleParamsForPlayer(286, playerid, 0, 0);
}
LockBLACKWATERCars(playerid)
{
SetVehicleParamsForPlayer(291, playerid, 0, 1);
SetVehicleParamsForPlayer(292, playerid, 0, 1);
SetVehicleParamsForPlayer(293, playerid, 0, 1);
SetVehicleParamsForPlayer(294, playerid, 0, 1);
SetVehicleParamsForPlayer(295, playerid, 0, 1);
SetVehicleParamsForPlayer(296, playerid, 0, 1);
SetVehicleParamsForPlayer(297, playerid, 0, 1);
SetVehicleParamsForPlayer(298, playerid, 0, 1);
SetVehicleParamsForPlayer(299, playerid, 0, 1);
}
UnlockBLACKWATERCars(playerid)
{
SetVehicleParamsForPlayer(291, playerid, 0, 0);
SetVehicleParamsForPlayer(292, playerid, 0, 0);
SetVehicleParamsForPlayer(293, playerid, 0, 0);
SetVehicleParamsForPlayer(294, playerid, 0, 0);
SetVehicleParamsForPlayer(295, playerid, 0, 0);
SetVehicleParamsForPlayer(296, playerid, 0, 0);
SetVehicleParamsForPlayer(297, playerid, 0, 0);
SetVehicleParamsForPlayer(298, playerid, 0, 0);
SetVehicleParamsForPlayer(299, playerid, 0, 0);
}
LockDIABLOCars(playerid)
{
SetVehicleParamsForPlayer(321, playerid, 0, 1);
SetVehicleParamsForPlayer(322, playerid, 0, 1);
SetVehicleParamsForPlayer(402, playerid, 0, 1);
SetVehicleParamsForPlayer(403, playerid, 0, 1);
SetVehicleParamsForPlayer(404, playerid, 0, 1);
SetVehicleParamsForPlayer(405, playerid, 0, 1);
SetVehicleParamsForPlayer(406, playerid, 0, 1);
SetVehicleParamsForPlayer(407, playerid, 0, 1);
SetVehicleParamsForPlayer(408, playerid, 0, 1);
SetVehicleParamsForPlayer(409, playerid, 0, 1);
}
UnlockDIABLOCars(playerid)
{
SetVehicleParamsForPlayer(321, playerid, 0, 0);
SetVehicleParamsForPlayer(322, playerid, 0, 0);
SetVehicleParamsForPlayer(402, playerid, 0, 0);
SetVehicleParamsForPlayer(403, playerid, 0, 0);
SetVehicleParamsForPlayer(404, playerid, 0, 0);
SetVehicleParamsForPlayer(405, playerid, 0, 0);
SetVehicleParamsForPlayer(406, playerid, 0, 0);
SetVehicleParamsForPlayer(407, playerid, 0, 0);
SetVehicleParamsForPlayer(408, playerid, 0, 0);
SetVehicleParamsForPlayer(409, playerid, 0, 0);
}
LockMHSCars(playerid)
{
SetVehicleParamsForPlayer(323, playerid, 0, 1);
SetVehicleParamsForPlayer(324, playerid, 0, 1);
SetVehicleParamsForPlayer(325, playerid, 0, 1);
SetVehicleParamsForPlayer(326, playerid, 0, 1);
SetVehicleParamsForPlayer(327, playerid, 0, 1);
SetVehicleParamsForPlayer(328, playerid, 0, 1);
}
UnlockMHSCars(playerid)
{
SetVehicleParamsForPlayer(323, playerid, 0, 0);
SetVehicleParamsForPlayer(324, playerid, 0, 0);
SetVehicleParamsForPlayer(325, playerid, 0, 0);
SetVehicleParamsForPlayer(326, playerid, 0, 0);
SetVehicleParamsForPlayer(327, playerid, 0, 1);
SetVehicleParamsForPlayer(328, playerid, 0, 1);
}
LockATCCars(playerid)
{
SetVehicleParamsForPlayer(291, playerid, 0, 1);
SetVehicleParamsForPlayer(292, playerid, 0, 1);
SetVehicleParamsForPlayer(293, playerid, 0, 1);
SetVehicleParamsForPlayer(294, playerid, 0, 1);
}
UnlockATCCars(playerid)
{
SetVehicleParamsForPlayer(291, playerid, 0, 0);
SetVehicleParamsForPlayer(292, playerid, 0, 0);
SetVehicleParamsForPlayer(293, playerid, 0, 0);
SetVehicleParamsForPlayer(294, playerid, 0, 0);
}
LockCFCars(playerid)
{
SetVehicleParamsForPlayer(348, playerid, 0, 1);
SetVehicleParamsForPlayer(349, playerid, 0, 1);
SetVehicleParamsForPlayer(350, playerid, 0, 1);
SetVehicleParamsForPlayer(351, playerid, 0, 1);
SetVehicleParamsForPlayer(352, playerid, 0, 1);
SetVehicleParamsForPlayer(353, playerid, 0, 1);
SetVehicleParamsForPlayer(354, playerid, 0, 1);
SetVehicleParamsForPlayer(355, playerid, 0, 1);
SetVehicleParamsForPlayer(356, playerid, 0, 1);
}
UnlockCFCars(playerid)
{
SetVehicleParamsForPlayer(348, playerid, 0, 0);
SetVehicleParamsForPlayer(349, playerid, 0, 0);
SetVehicleParamsForPlayer(350, playerid, 0, 0);
SetVehicleParamsForPlayer(351, playerid, 0, 0);
SetVehicleParamsForPlayer(352, playerid, 0, 0);
SetVehicleParamsForPlayer(353, playerid, 0, 0);
SetVehicleParamsForPlayer(354, playerid, 0, 0);
SetVehicleParamsForPlayer(355, playerid, 0, 0);
SetVehicleParamsForPlayer(356, playerid, 0, 0);
}
LockSTONERCars(playerid)
{
SetVehicleParamsForPlayer(366, playerid, 0, 1);
SetVehicleParamsForPlayer(367, playerid, 0, 1);
SetVehicleParamsForPlayer(368, playerid, 0, 1);
SetVehicleParamsForPlayer(369, playerid, 0, 1);
SetVehicleParamsForPlayer(370, playerid, 0, 1);
SetVehicleParamsForPlayer(371, playerid, 0, 1);
}
UnlockSTONERCars(playerid)
{
SetVehicleParamsForPlayer(366, playerid, 0, 0);
SetVehicleParamsForPlayer(367, playerid, 0, 0);
SetVehicleParamsForPlayer(368, playerid, 0, 0);
SetVehicleParamsForPlayer(369, playerid, 0, 0);
SetVehicleParamsForPlayer(370, playerid, 0, 0);
SetVehicleParamsForPlayer(371, playerid, 0, 0);
}
LockSARACars(playerid)
{
SetVehicleParamsForPlayer(391, playerid, 0, 1);
SetVehicleParamsForPlayer(392, playerid, 0, 1);
SetVehicleParamsForPlayer(393, playerid, 0, 1);
SetVehicleParamsForPlayer(394, playerid, 0, 1);
SetVehicleParamsForPlayer(395, playerid, 0, 1);
SetVehicleParamsForPlayer(396, playerid, 0, 1);
SetVehicleParamsForPlayer(397, playerid, 0, 1);
SetVehicleParamsForPlayer(398, playerid, 0, 1);
SetVehicleParamsForPlayer(410, playerid, 0, 1);
}
UnlockSARACars(playerid)
{
SetVehicleParamsForPlayer(391, playerid, 0, 0);
SetVehicleParamsForPlayer(392, playerid, 0, 0);
SetVehicleParamsForPlayer(393, playerid, 0, 0);
SetVehicleParamsForPlayer(394, playerid, 0, 0);
SetVehicleParamsForPlayer(395, playerid, 0, 0);
SetVehicleParamsForPlayer(396, playerid, 0, 0);
SetVehicleParamsForPlayer(397, playerid, 0, 0);
SetVehicleParamsForPlayer(398, playerid, 0, 0);
SetVehicleParamsForPlayer(410, playerid, 0, 0);
}
LockBFCars(playerid)
{
SetVehicleParamsForPlayer(418, playerid, 0, 1);
SetVehicleParamsForPlayer(419, playerid, 0, 1);
SetVehicleParamsForPlayer(420, playerid, 0, 1);
SetVehicleParamsForPlayer(421, playerid, 0, 1);
SetVehicleParamsForPlayer(422, playerid, 0, 1);
SetVehicleParamsForPlayer(423, playerid, 0, 1);
SetVehicleParamsForPlayer(424, playerid, 0, 1);
SetVehicleParamsForPlayer(425, playerid, 0, 1);
}
UnlockBFCars(playerid)
{
SetVehicleParamsForPlayer(418, playerid, 0, 0);
SetVehicleParamsForPlayer(419, playerid, 0, 0);
SetVehicleParamsForPlayer(420, playerid, 0, 0);
SetVehicleParamsForPlayer(421, playerid, 0, 0);
SetVehicleParamsForPlayer(422, playerid, 0, 0);
SetVehicleParamsForPlayer(423, playerid, 0, 0);
SetVehicleParamsForPlayer(424, playerid, 0, 0);
SetVehicleParamsForPlayer(425, playerid, 0, 0);
}
LockVIPCars(playerid)
{
SetVehicleParamsForPlayer(439, playerid, 0, 1);
SetVehicleParamsForPlayer(440, playerid, 0, 1);
SetVehicleParamsForPlayer(441, playerid, 0, 1);
SetVehicleParamsForPlayer(442, playerid, 0, 1);
SetVehicleParamsForPlayer(443, playerid, 0, 1);
SetVehicleParamsForPlayer(444, playerid, 0, 1);
SetVehicleParamsForPlayer(446, playerid, 0, 1);
SetVehicleParamsForPlayer(447, playerid, 0, 1);
}
UnlockVIPCars(playerid)
{
SetVehicleParamsForPlayer(439, playerid, 0, 0);
SetVehicleParamsForPlayer(440, playerid, 0, 0);
SetVehicleParamsForPlayer(441, playerid, 0, 0);
SetVehicleParamsForPlayer(442, playerid, 0, 0);
SetVehicleParamsForPlayer(443, playerid, 0, 0);
SetVehicleParamsForPlayer(444, playerid, 0, 0);
SetVehicleParamsForPlayer(446, playerid, 0, 0);
SetVehicleParamsForPlayer(447, playerid, 0, 0);
}
LockSWATCars(playerid)
{
SetVehicleParamsForPlayer(227, playerid, 0, 1);
SetVehicleParamsForPlayer(228, playerid, 0, 1);
SetVehicleParamsForPlayer(229, playerid, 0, 1);
SetVehicleParamsForPlayer(230, playerid, 0, 1);
SetVehicleParamsForPlayer(231, playerid, 0, 1);
SetVehicleParamsForPlayer(232, playerid, 0, 1);
SetVehicleParamsForPlayer(233, playerid, 0, 1);
SetVehicleParamsForPlayer(234, playerid, 0, 1);
SetVehicleParamsForPlayer(235, playerid, 0, 1);
SetVehicleParamsForPlayer(236, playerid, 0, 1);
SetVehicleParamsForPlayer(237, playerid, 0, 1);
SetVehicleParamsForPlayer(238, playerid, 0, 1);
SetVehicleParamsForPlayer(239, playerid, 0, 1);
}
UnlockSWATCars(playerid)
{
SetVehicleParamsForPlayer(227, playerid, 0, 0);
SetVehicleParamsForPlayer(228, playerid, 0, 0);
SetVehicleParamsForPlayer(229, playerid, 0, 0);
SetVehicleParamsForPlayer(230, playerid, 0, 0);
SetVehicleParamsForPlayer(231, playerid, 0, 0);
SetVehicleParamsForPlayer(232, playerid, 0, 0);
SetVehicleParamsForPlayer(233, playerid, 0, 0);
SetVehicleParamsForPlayer(234, playerid, 0, 0);
SetVehicleParamsForPlayer(235, playerid, 0, 0);
SetVehicleParamsForPlayer(236, playerid, 0, 0);
SetVehicleParamsForPlayer(237, playerid, 0, 0);
SetVehicleParamsForPlayer(238, playerid, 0, 0);
SetVehicleParamsForPlayer(239, playerid, 0, 0);
}
public OnGameModeInit()
{
print("GameModeInit()");
GiveMoneyTimer = SetTimer("Money",60000,1);
SetTimer("UpdateZone",1000,1);
GodTimer = SetTimer("InfiniteLife",50,1);
DiseaseTimer = SetTimer("AIDSInfected",5000,1);
InjuredTimer = SetTimer("CheckHealth",50,1);
SetTimer("checkpointUpdate", 1100, 1);
SetTimer("Timer_DayHeartbeat", 120000, 1);
LimitGlobalChatRadius(15);
new i;
for (i=0;i<MAX_VECTOR;i++)
{
combustible[i]=random(RAND_GAS)+MIN_GAS;
}
SetTimer("ConsumirCombustible",60000,1);
//inicio el speedometer
SetTimer("Speedometer",500,1);
//Creo el menu para la estacion de servicio
MenuGas = CreateMenu("GasStation",2,25.0,200.0,75.0,0.0);
AddMenuItem(MenuGas,0,"FULL Tank");
AddMenuItem(MenuGas,0,"HALF Tank");
AddMenuItem(MenuGas,0,"Exit");
for (i=0;i<MAX_PLAYERS_FUEL;i++)
{
medidorTanque[i] = TextDrawCreate(500.0, 128.0, "FUEL:(NIVEL)");
}
//SetTimer("CaligulasPayArea", CaligulasTimer,1);
//============== ALLOW WEAPONS INSIDE =================
AllowInteriorWeapons(1);
//============== ALLOW TIRE POPPING =================
EnableTirePopping(1);
//============== BETTER RUN ANIMATION =================
UsePlayerPedAnims();
//============== SHOW MARKERS =================
ShowPlayerMarkers(0);
//============= ADMIN TELEPORT ================
AllowAdminTeleport(1);
//============= DISABLE CAMERA, NIGHTVISION AND THERMALVISION ================
SetDisabledWeapons(43,44,45);
//============= THERE IS NO DISPATCHER ================
DispatchActivated=(0);
//======================SKINS======================================================================================================
AddPlayerClass(250,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILLIAN /0
AddPlayerClass(37,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILLIAN /1
AddPlayerClass(96,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // CIVILLIAN /2
AddPlayerClass(0,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILLIAN /3
AddPlayerClass(27,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILLIAN /4
AddPlayerClass(29,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // CIVILLIAN /5
AddPlayerClass(193,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILLIAN /6
AddPlayerClass(122,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILLIAN /7
AddPlayerClass(63,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // CIVILLIAN /8
AddPlayerClass(28,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILLIAN /9
AddPlayerClass(172,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILLIAN /10
AddPlayerClass(192,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // CIVILLIAN /11
AddPlayerClass(188,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILLIAN /12
AddPlayerClass(180,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILLIAN /13
AddPlayerClass(261,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // CIVILLIAN /14
AddPlayerClass(262,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILLIAN /15
AddPlayerClass(228,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILLIAN /16
AddPlayerClass(202,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // CIVILLIAN /17
AddPlayerClass(203,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILLIAN /18
AddPlayerClass(186,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILLIAN /19
AddPlayerClass(153,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // CIVILLIAN /20
AddPlayerClass(161,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILLIAN /21
AddPlayerClass(162,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILLIAN /22
AddPlayerClass(60,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // CIVILLIAN /23
AddPlayerClass(120,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILLIAN /24
AddPlayerClass(147,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILLIAN /25
AddPlayerClass(223,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // CIVILLIAN /26
AddPlayerClass(225,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // DRIVER /27
AddPlayerClass(61,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // PILOT /28
AddPlayerClass(108,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // CIVILLIAN /29
AddPlayerClass(160,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILLIAN /30
AddPlayerClass(46,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // MAFIA /31
AddPlayerClass(59,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // MAFIA /32
AddPlayerClass(112,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // MAFIA /33
AddPlayerClass(113,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // MAFIA /34
AddPlayerClass(124,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // MAFIA-2 /35
AddPlayerClass(125,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // MAFIA-2 /36
AddPlayerClass(126,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // MAFIA-2 /37
AddPlayerClass(127,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // MAFIA-2 /38
AddPlayerClass(235,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // TAXI DRIVER /39
AddPlayerClass(240,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // HOOKER /40
AddPlayerClass(141,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // HOOKER /41
AddPlayerClass(243,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // HOOKER /42
AddPlayerClass(249,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // CIVILLIAN /43
AddPlayerClass(98,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILLIAN /44
AddPlayerClass(23,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILLIAN /45
AddPlayerClass(163,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // CIA /46
AddPlayerClass(164,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIA /47
AddPlayerClass(165,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIA /48
AddPlayerClass(102,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // GPB /49
AddPlayerClass(103,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // GPB /50
AddPlayerClass(104,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // GPB /51
AddPlayerClass(191,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // CIVILIAN /52
AddPlayerClass(115,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // TR /53
AddPlayerClass(116,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // TR /54
AddPlayerClass(173,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // TR /55
AddPlayerClass(174,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // TR /56
AddPlayerClass(175,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // TR /57
AddPlayerClass(50,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // Train /58
AddPlayerClass(189,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // WAITER /59
AddPlayerClass(80,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // Boxer /60
AddPlayerClass(81,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // Boxer /61
AddPlayerClass(30,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // CIVILIAN /62
AddPlayerClass(117,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILIAN /63
AddPlayerClass(118,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILIAN /64
AddPlayerClass(18,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // CIVILIAN /65
AddPlayerClass(200,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILIAN /66
AddPlayerClass(258,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILIAN /67
AddPlayerClass(140,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // CIVILIAN /68
AddPlayerClass(154,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILIAN /69
AddPlayerClass(171,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // CIVILIAN /70
AddPlayerClass(1,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // CIVILIAN /71 NEW PEDS START HERE
AddPlayerClass(2,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILIAN /72
AddPlayerClass(156,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILIAN /73
AddPlayerClass(190,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // CIVILIAN /74
AddPlayerClass(194,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILIAN /75
AddPlayerClass(195,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILIAN /76
AddPlayerClass(268,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // CIVILIAN /77
AddPlayerClass(269,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILIAN /78
AddPlayerClass(270,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // CIVILIAN /79
AddPlayerClass(271,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // CIVILIAN /80
AddPlayerClass(272,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILIAN /81
AddPlayerClass(290,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILIAN /82
AddPlayerClass(291,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // CIVILIAN /83
AddPlayerClass(292,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILIAN /84
AddPlayerClass(293,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILIAN /85
AddPlayerClass(296,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // CIVILIAN /86
AddPlayerClass(297,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0); // CIVILIAN /87
AddPlayerClass(298,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // CIVILIAN /88
AddPlayerClass(299,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // CIVILIAN /89
AddPlayerClass(184,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // CIVILIAN /90
AddPlayerClass(123,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // CIVILIAN /91
AddPlayerClass(294,1749.6090,-1861.5525,13.5774,346.0998,0,0,0,0,0,0); // CIVILIAN /92
//======================SKINS END===================================================================================================
//========================================================VEHICLES==================================================================
//================================== LSPD (15) =====================================================
AddStaticVehicleEx(497,1518.0334,-1657.1544,13.7654,179.9993,86,1,900); // LSPD h /1
AddStaticVehicleEx(596,1535.8073,-1677.1653,13.1162,0.1865,86,1,900); // LSPD 1 /2
AddStaticVehicleEx(596,1535.7666,-1669.3986,13.1162,0.3206,86,1,900); // LSPD 2 /3
AddStaticVehicleEx(596,1601.3431,-1692.1271,5.6232,89.9369,86,1,900); // LSPD 3 /4
AddStaticVehicleEx(596,724.0054,-1433.2017,13.2601,89.8461,1,1,900); // LSPD sub 3 /217 (From substation) /5
AddStaticVehicleEx(596,1587.5381,-1711.0997,5.6241,178.7589,1,1,900); // LSPD 5 /6
AddStaticVehicleEx(596,1584.8687,-1671.8252,6.0854,269.4359,86,1,900); // LSPD 6 /7
AddStaticVehicleEx(596,1570.4263,-1711.1177,6.0813,0.5533,86,1,900); // LSPD 7 /8
AddStaticVehicleEx(596,1574.6467,-1711.1395,5.6117,179.1971,1,1,900); // LSPD 8 /9
AddStaticVehicleEx(427,1528.7992,-1683.8604,6.0225,270.0515,86,1,900); // LSPD 9 enforcer /10
AddStaticVehicleEx(490,1544.9265,-1684.3397,5.6115,89.1406,0,0,900); // LSPD 10 fbi /11
AddStaticVehicleEx(596,1545.3253,-1672.1320,5.6112,89.4142,86,1,900); // LSPD 11 /12
AddStaticVehicleEx(490,1545.2515,-1676.1619,5.6110,269.8500,0,0,900); // LSPD 12 fbi /13
AddStaticVehicleEx(596,1545.1528,-1662.9398,5.6117,89.1848,86,1,900); // LSPD 13 /14
AddStaticVehicleEx(596,1603.1326,-1630.8914,13.2257,89.7944,86,1,900); // LSPD 14 /15
//================================== SFPD (16) =====================================================
AddStaticVehicleEx(497,-1680.0122,705.8054,30.7673,89.8423,79,1,1800); // SFPD h /16
AddStaticVehicleEx(597,-1608.4775,749.4617,-5.4393,180.3250,79,1,1800); // SFPD 1 /17
AddStaticVehicleEx(597,-1596.0869,749.9055,-5.0713,359.9376,79,1,1800); // SFPD 2 /18
AddStaticVehicleEx(597,-2228.3423,2350.5493,4.8739,130.6911,1,1,1800); // Bay SFPD /198 (From bay) /19
AddStaticVehicleEx(597,-1572.7266,722.6786,-5.4596,269.3374,79,1,1800); // SFPD 4 /20
AddStaticVehicleEx(597,-1588.0996,749.6820,-5.4732,180.2537,79,1,1800); // SFPD 6 /21
AddStaticVehicleEx(599,-1573.1064,710.0662,-5.0522,89.1650,79,1,1800); // SFPD 7 /22
AddStaticVehicleEx(599,-1584.0267,750.1234,-5.4726,359.4985,1,1,1800); // SFPD 8 /23
AddStaticVehicleEx(490,-1604.3643,693.2012,-5.1205,179.2544,0,0,1800); // SFPD 9 fbi /24
AddStaticVehicleEx(597,-1612.5070,693.4691,-5.4730,179.8019,1,1,1800); // SFPD 10 un cap /25
AddStaticVehicleEx(597,-1624.6816,693.7122,-5.4729,359.4479,1,1,1800); // SFPD 11 /26
//AddStaticVehicleEx(490,-1600.2299,693.3104,-5.1120,180.0092,0,0,1800); // SFPD 12 fbi /27
AddStaticVehicleEx(597,-2252.0256,2305.8984,4.5694,270.5022,79,1,1800); // BAY SFPD 3 /27
AddStaticVehicleEx(597,-1605.9957,673.5344,6.9555,181.1841,79,1,1800); // SFPD 13 /28
AddStaticVehicleEx(597,-1628.6826,651.4995,6.9626,0.3319,79,1,1800); // SFPD 14 /29
AddStaticVehicleEx(597,-1614.2505,725.1246,13.1753,269.6951,79,1,1800); // SFPD 15 /30
AddStaticVehicleEx(597,-1605.4164,725.0745,11.5482,269.5339,79,1,1800); // SFPD 16 un cap /31
//================================== LVPD (17) =====================================================
AddStaticVehicleEx(497,2332.0994,2393.0808,11.0021,88.8132,86,1,900); // LVPD h /32
AddStaticVehicleEx(497,2331.8499,2380.0657,10.9969,89.7431,86,1,900); // LVPD h /33
AddStaticVehicleEx(598,2260.6189,2442.5417,10.5801,1.8195,0,1,900); // LVPD 1 /34
AddStaticVehicleEx(598,2273.4839,2442.2056,10.5521,179.8874,0,1,900); // LVPD 2 /35
AddStaticVehicleEx(598,2277.8469,2477.4382,10.5472,0.5284,0,1,900); // LVPD 3 /36
AddStaticVehicleEx(598,2256.1753,2477.5896,10.5564,178.2905,0,1,900); // LVPD 4 /37
AddStaticVehicleEx(598,2269.1897,2459.9915,10.9597,358.1306,0,1,900); // LVPD 5 /38
AddStaticVehicleEx(598,2297.8020,2460.2600,3.4155,271.4604,0,1,900); // LVPD 6 /38
AddStaticVehicleEx(598,2281.5486,2474.0376,3.4097,0.4484,0,1,900); // LVPD 7 /40
AddStaticVehicleEx(598,2272.7620,2473.5969,3.0062,179.9150,0,1,900); // LVPD 8 /41
AddStaticVehicleEx(490,2240.1555,2466.0481,3.4008,268.1517,0,0,900); // LVPD 9 fbi /42
AddStaticVehicleEx(598,2285.7988,2430.2417,3.0327,178.1063,0,1,900); // LVPD 10 /43
AddStaticVehicleEx(598,2268.3042,2430.6245,3.0197,359.7885,0,1,900); // LVPD 11 /44
AddStaticVehicleEx(490,2240.0708,2461.4373,3.4017,269.3698,0,0,900); // LVPD 12 fbi /45
AddStaticVehicleEx(598,2255.3381,2430.5195,3.4633,179.7162,0,1,900); // LVPD 13 un cap /46
AddStaticVehicleEx(598,2239.7527,2447.0227,3.4072,89.9513,0,1,900); // LVPD extra car /47
AddStaticVehicleEx(598,2268.1443,2473.6333,3.0194,180.9037,0,1,900); // LVPD 15 un cap /48
//================================== SASP (16) =====================================================
AddStaticVehicleEx(490,-210.2959,989.4485,19.6594,90.0643,0,0,7200); // FCPD 1 /49
AddStaticVehicleEx(599,-210.4248,994.4156,19.7604,269.2874,113,110,7200); // FCPD 2 /50
AddStaticVehicleEx(599,-227.3869,998.8006,19.7545,270.7843,113,110,7200); // FCPD 3 /51
AddStaticVehicleEx(427,-228.4662,984.9250,19.3424,0.6703,113,110,7200); // FCPD 4 fbi (now is an enforcer) /52
AddStaticVehicleEx(497,613.6780,-573.1824,26.3135,178.5293,113,110,7200); // DILPD h /53
AddStaticVehicleEx(599,617.3381,-585.7084,17.3586,269.9781,113,110,7200); // DILPD 1 /54
AddStaticVehicleEx(599,621.3718,-596.9868,17.3729,269.8966,113,110,7200); // DILPD 2 /55
AddStaticVehicleEx(599,621.4861,-601.7017,17.3435,268.9757,113,110,7200); // DILPD 3 /56
AddStaticVehicleEx(599,-373.4936,2252.4138,42.5499,283.6724,113,110,7200); // RANGER CHRISVILLE /57
AddStaticVehicleEx(599,636.2723,-563.8201,16.4498,180.5799,113,110,7200); // DILPD 5 /58
AddStaticVehicleEx(599,636.3401,-555.4733,16.3860,179.8849,113,110,7200); // DILPD 6 uncap /59
AddStaticVehicleEx(599,-2156.6604,-2395.7354,30.7277,50.9600,113,110,7200); // APPD 1 /60
AddStaticVehicleEx(599,-2177.7690,-2369.4231,30.8145,50.9570,113,110,7200); // APPD 2 /61
AddStaticVehicleEx(497,-2211.8499,-2372.4075,31.6201,265.9167,113,110,7200); // APPD h /62
AddStaticVehicleEx(599,-1399.8063,2634.6877,55.8795,90.6367,113,110,7200); // EQPD 1 /63
AddStaticVehicleEx(599,-1399.6091,2643.9116,55.8534,270.6652,113,110,7200); // EQPD 2 /64
//================================== ARMY (39) =====================================================
AddStaticVehicleEx(470,204.1015,1860.3086,13.1338,269.3304,86,86,900); // a69 hummer 1 /65
AddStaticVehicleEx(470,220.4730,1919.9799,17.6332,180.2181,86,86,900); // a69 hummer 2 /66
AddStaticVehicleEx(470,269.8249,1965.7596,17.6345,270.3045,53,53,900); // a69 hummer 4 /67
AddStaticVehicleEx(470,283.3355,1977.6411,17.6338,1.3440,53,53,900); // a69 hummer 6 /68
AddStaticVehicleEx(470,2670.1477,-2130.3596,13.5364,88.8362,53,53,900); // a97 hummer 7 /69
AddStaticVehicleEx(470,273.5251,1977.6168,17.6338,359.7676,53,53,900); // a69 hummer 8 /70
AddStaticVehicleEx(470,278.7473,2001.3993,17.6352,179.6011,53,53,900); // a69 hummer 9 /71
AddStaticVehicleEx(470,273.2179,2001.5416,17.6331,180.1823,53,53,900); // a69 hummer 10 /72
AddStaticVehicleEx(470,269.7633,1987.4630,17.6343,270.1096,53,53,900); // a97 hummer 12 /73
AddStaticVehicleEx(520,-1455.8026,501.1346,18.4436,265.2827,0,1,900); // navy hydra /74
AddStaticVehicleEx(520,-1313.9706,496.5860,18.4114,5.4954,0,1,900); // navy hydra /75
AddStaticVehicleEx(425,-1608.0240,284.6393,7.7715,359.2212,0,1,900); // navy hunter-helipad /76
AddStaticVehicleEx(425,-1412.5332,518.3428,18.8151,270.0115,0,1,900); // navalbase-hunter-ship /77
AddStaticVehicleEx(470,-1356.8451,455.8693,7.1806,358.7301,2,1,900); // navy patriot /78
AddStaticVehicleEx(433,-1395.2882,457.0395,7.1705,90.5635,2,1,900); // navy barracks /79
AddStaticVehicleEx(430,-1440.9650,504.9929,0.2260,86.6937,112,20,900); // army boat /80
AddStaticVehicleEx(430,-1439.8911,510.0699,0.0106,92.3916,112,20,900); // army boat /81
AddStaticVehicleEx(425,340.4435,1982.6835,18.2108,89.5286,53,53,900); // a69 hunter 1 /82
AddStaticVehicleEx(425,340.4222,1967.6387,18.2224,89.6240,53,53,900); // a69 hunter 2 /83
AddStaticVehicleEx(425,341.1947,1949.2537,18.2103,91.3588,53,53,900); // a69 hunter 3 /84
AddStaticVehicleEx(596,2658.3484,-2113.5334,13.2701,89.6719,53,53,900); // a97 mp car 2 1 /85
AddStaticVehicleEx(520,300.7262,2053.3748,18.3639,180.0142,53,53,900); //a69 hydra 2 /86
AddStaticVehicleEx(596,2658.0027,-2119.2939,13.2679,93.8619,53,53,900); // A97 MP CAR 1 /87
AddStaticVehicleEx(433,2641.7622,-2138.2751,13.9835,0.5945,53,53,900); // A97 barracks 3 /88
AddStaticVehicleEx(433,275.0581,1949.0891,18.0773,271.9843,53,53,900); // a69 barracks 2 /89
AddStaticVehicleEx(433,274.9811,1954.5260,18.0810,271.3702,53,53,900); // a69 barracks 1 /90
AddStaticVehicleEx(430,-1294.8073,486.9211,0.0377,269.4915,112,20,900); // navb launch 3 /91
AddStaticVehicleEx(470,2671.1470,-2104.4648,13.5412,87.8843,2,1,900); // a97 hummer 2 /92
AddStaticVehicleEx(470,-1361.0387,455.1689,7.1805,358.9630,2,1,900); // navb hummer 2 /93
AddStaticVehicleEx(470,-1597.2966,314.8843,7.1810,91.6974,2,1,900); // nab hummer 3 /94
AddStaticVehicleEx(470,-1304.7185,478.8110,7.1804,90.4030,2,1,900); // navb hummer 4 /95
AddStaticVehicleEx(432,-1330.4694,446.5174,7.1806,358.3433,2,1,900); // navb tank 1 /96
AddStaticVehicleEx(432,272.3771,2014.5034,17.6535,269.5012,53,53,900); // a69 tank 1 /97
AddStaticVehicleEx(432,272.4257,2020.6881,17.6535,269.2421,53,53,900); // a69 tank 2 /98
AddStaticVehicleEx(432,272.6522,2026.7123,17.6535,268.5181,53,53,900); // a69 tank 3 /99
AddStaticVehicleEx(432,272.0865,2032.7859,17.6533,271.2823,53,53,900); // a69 tank 4 /100
AddStaticVehicleEx(520,2694.1313,-2112.6113,14.2720,39.4537,53,53,900); // a97 tank 2 /101
AddStaticVehicleEx(432,-1316.3387,446.9916,7.2004,0.3995,2,1,900); // navb tank 3 /102
AddStaticVehicleEx(432,-1308.7894,446.7558,7.2003,1.3817,2,1,900); // navb tank 4 /103
AddStaticVehicleEx(487,124.9839,1851.2159,17.8719,2.7531,110,110,900); // maverick-a69 /104
//================================== EMS (13) =====================================================
AddStaticVehicleEx(487,1141.1915,-1301.6726,13.7790,359.5254,6,118,900); // LSEMS h /105 // Old colors: 6,118
AddStaticVehicleEx(487,1632.8173,1819.7025,10.9987,1.4079,6,118,900); // LVEMS h /106
AddStaticVehicleEx(487,-2592.2192,605.3431,14.6298,180.6835,6,118,900); // SFEMS h /107
AddStaticVehicleEx(487,-301.4733,1080.8013,19.9188,89.3036,6,118,900); // FCEMS h /108
AddStaticVehicleEx(416,-2660.5298,593.6694,14.6027,271.1312,6,118,900); // sfems-ambu1 /109
AddStaticVehicleEx(416,-2646.3037,594.0845,14.6037,270.8950,6,118,900); // sfems-ambu2 /110
AddStaticVehicleEx(416,1179.6938,-1338.9152,13.9553,271.4140,6,118,900); // lsems-ambu1 /111
AddStaticVehicleEx(416,1179.9696,-1308.8545,13.8708,267.4069,6,118,900); // lsems-ambu2 /112
AddStaticVehicleEx(416,-304.5927,1031.9628,19.7429,270.7845,6,118,900); // fcems-ambu1 /113
AddStaticVehicleEx(416,-1506.8527,2524.6936,55.8367,0.1344,6,118,900); // eqems-ambu1 /114
AddStaticVehicleEx(416,1601.2111,1850.5566,10.9691,180.1402,6,118,900); // lvems-ambu1 /115
AddStaticVehicleEx(416,1592.1902,1819.1622,10.9697,359.5950,6,118,900); // lvems-ambu2 /116
AddStaticVehicleEx(416,1614.8680,1839.0599,10.9696,179.4646,6,118,900); // lvems-ambu3 /117
//================================== FDSA (6) =====================================================
AddStaticVehicleEx(407,-2022.5205,84.0058,28.3054,270.3085,3,1,900); // SF FDSA truck 1 /118
AddStaticVehicleEx(407,-2022.2531,92.6428,28.3223,270.3860,3,1,900); // SF FDSA truck 2 /119
AddStaticVehicleEx(416,-2052.2539,75.3392,28.5400,90.2358,3,3,900); // SF FDSA ambu 1 /120
AddStaticVehicleEx(487,-2063.1799,53.0849,28.6601,271.7888,3,3,900); // SF FDSA leviathan /121
AddStaticVehicleEx(416,-2052.4451,83.9599,28.5454,90.2752,3,3,900); // SF FDSA ambu 2 /122
AddStaticVehicleEx(407,-333.6132,1062.7302,19.3640,268.0581,3,1,900); // fortcarson ems firetruck /123
//================================== ADMIN (7) =====================================================
AddStaticVehicleEx(421,1310.8972,-820.5881,75.2704,239.6649,0,0,1800); // mans washington 1 /124
AddStaticVehicleEx(421,1249.1240,-805.1872,84.0218,179.4134,0,0,1800); // mans washington 2 /125
AddStaticVehicleEx(421,1241.8080,-813.8017,84.0267,185.0313,0,0,1800); // mansion washington 3 /126
//AddStaticVehicleEx(421,-2815.7007,-1512.1796,139.1716,270.2305,0,0,1800); // camp 1 /127
//AddStaticVehicleEx(421,-2825.1704,-1524.7263,139.1331,89.5416,0,0,1800); // camp 2 /128
AddStaticVehicleEx(421,-1655.3682,1315.1570,6.8706,134.7734,0,0,1800); // SF 1 /127
AddStaticVehicleEx(421,-1651.9813,1311.5630,6.8657,314.0256,0,0,1800); // SF 2 /128
AddStaticVehicleEx(421,-2825.1611,-1528.5056,139.1328,91.4082,0,0,1800); // camp 3 /129
AddStaticVehicleEx(487,1291.3212,-788.7206,96.6314,179.9645,0,0,1800); // ERP mansion heli /130
//================================== GOVERNMENT (6) =====================================================
AddStaticVehicleEx(409,2453.4648,1125.0951,10.6227,90.1291,0,0,900); // gov-limo /131
AddStaticVehicleEx(421,2462.6018,1125.1672,10.7052,90.1277,0,0,900); // gov-washington1 LV /132
AddStaticVehicleEx(421,2444.7944,1125.0996,10.7028,89.2789,0,0,900); // gov-washington2 LV /133
AddStaticVehicleEx(421,-2754.7261,398.9885,4.1556,179.1701,0,0,900); // gov-washington1 SF /134
AddStaticVehicleEx(421,-2744.6060,367.3881,4.1986,1.3512,0,0,900); // gov-washington2 SF /135
AddStaticVehicleEx(409,-2744.7063,380.1553,3.9713,358.3938,0,0,900); // gov-limo /136
//================================== BATTLEFIELD (6) =====================================================
AddStaticVehicle(470,-1116.1143,1065.0446,1342.8993,256.0361,0,0); // hummer 1 /137
AddStaticVehicle(432,-1115.2899,1026.0938,1343.6908,346.1180,0,0); // rhino 1 /138
AddStaticVehicle(432,-988.8837,1093.3802,1342.9551,152.6085,0,0); // rhino 2 /139
AddStaticVehicle(470,-986.7679,1054.6956,1343.2997,64.6934,0,0); // hummer 2 /140
AddStaticVehicle(468,-974.2149,1085.7273,1344.9829,91.1219,104,104); // sanchez 1 /141
AddStaticVehicle(468,-1131.9889,1032.6810,1345.7274,272.2303,104,104); // sanchez 2 /142
//================================== STADIUM (12) =====================================================
AddStaticVehicle(451,-1397.2697,906.8984,1041.2610,271.6667,3,3); // race car 1 /143
AddStaticVehicle(451,-1389.7417,907.0044,1040.8750,269.1415,1,1); // race car 2 /144
AddStaticVehicle(451,-1382.5874,906.8456,1040.9161,270.3313,6,6); // race car 3 /145
AddStaticVehicle(504,-1363.1805,932.7535,1036.3239,4.1939,6,0); // stadium car 1 /146
AddStaticVehicle(504,-1358.1395,932.8470,1036.3230,6.1684,1,0); // stadium car 2 /147
AddStaticVehicle(504,-1354.5789,934.0455,1036.3417,8.3946,3,0); // stadium car 3 /148
AddStaticVehicle(504,-1487.1912,948.3915,1036.6770,327.7770,6,0); // stadium car 4 /149
AddStaticVehicle(504,-1491.8424,951.1602,1036.7476,324.0399,1,0); // stadium car 5 /150
AddStaticVehicle(504,-1496.2350,953.6964,1036.7920,319.4073,3,0); // stadium car 6 /151
AddStaticVehicle(571,-1417.9561,906.2100,1041.3430,270.3237,0,0); // race gokart 1 /152
AddStaticVehicle(571,-1414.2351,906.2308,1041.3502,270.3237,0,0); // race gokart 2 /153
AddStaticVehicle(571,-1410.2761,906.2531,1041.3518,270.3237,0,0); // race gokart 3 /154
//================================== BIKE STADIUM (6) =====================================================
AddStaticVehicle(468,-1478.5829,1556.2130,1052.1964,272.8492,110,1); // sanchez 1 /155
AddStaticVehicle(468,-1490.5647,1556.2032,1052.5313,269.5511,110,1); // sanchez 2 /156
AddStaticVehicle(468,-1487.0175,1556.1758,1052.5313,269.5511,110,1); // sanchez 3 /157
AddStaticVehicle(468,-1482.7974,1556.1432,1052.5313,269.5511,110,1); // sanchez 4 /158
AddStaticVehicle(468,-1436.8707,1556.1385,1052.5313,270.2613,110,1); // sanchez 5 /159
AddStaticVehicle(468,-1432.7069,1556.1832,1052.5313,270.6164,110,1); // sanchez 6 /160
//=========================================== DMV (7) =====================================================
AddStaticVehicleEx(403,-2081.1169,-84.1451,34.9984,0.2075,1,1,180); // dmv1 /161
AddStaticVehicleEx(426,-2072.7981,-83.4771,34.9977,180.0378,1,1,180); // dmv2 /162
AddStaticVehicleEx(484,-1615.6226,-58.1439,-0.4529,137.7493,1,1,180); // dmv3 /163
AddStaticVehicleEx(519,-1156.4967,-424.4482,14.3247,0.4201,1,1,180); // dmv5 /164
AddStaticVehicleEx(411,-2020.5406,-94.2494,34.9978,88.5975,1,1,180); // Infernus /165
AddStaticVehicleEx(487,-2026.7114,-83.7284,35.6925,90.0630,1,1,180); // dmv maverick /166
AddStaticVehicleEx(521,-2038.9041,-106.5459,34.7604,181.2140,1,1,180); // dmv pcj-600 /167
//======================== BLL B&F LEGAL (7) ===================================================
AddStaticVehicleEx(579,1897.2371,1988.9362,7.5250,359.7288,43,43,900); // /168
AddStaticVehicleEx(579,1901.0922,1988.3842,7.5260,358.4464,43,43,900); // /169
AddStaticVehicleEx(445,1893.6921,1989.3633,7.5226,0.8774,0,0,900); // /170
AddStaticVehicleEx(480,1911.1316,1933.8889,7.5291,180.0808,0,0,900); // /171
AddStaticVehicleEx(409,1905.5023,1997.4413,7.5248,182.3327,43,43,900); // /172
AddStaticVehicleEx(409,1912.0970,1996.8796,7.1629,179.7531,43,43,900); // /173
AddStaticVehicleEx(487,1871.5605,1976.3662,13.3360,270.0266,43,43,900); // /174
AddStaticVehicleEx(484,2365.7832,513.8180,0.0562,179.5589,4,26,900); // coords lv civilian boat 2
AddStaticVehicleEx(484,2293.8481,513.7171,0.2166,179.2831,3,26,900); // coords lv civillian boat 3
//=============================================== SA (9) =====================================================
AddStaticVehicleEx(587,2176.4756,1705.5555,10.7922,89.9434,0,0,900); // calligulas-euros /177
AddStaticVehicleEx(587,2176.5012,1709.6985,10.7934,90.4811,0,0,900); // calligulas-euros1 /178
AddStaticVehicleEx(560,2176.3669,1713.6646,10.7924,90.7737,0,0,900); // calligulas-sultan2 /179
AddStaticVehicleEx(579,2176.3320,1717.5751,10.9808,90.7275,0,0,900); // coordinates caligulas huntley 3 /180
AddStaticVehicleEx(587,-2120.1519,-114.0819,35.0473,179.1806,0,0,900); // coordinates drug factory euros 1 /181
AddStaticVehicleEx(587,-2128.5125,-114.3762,35.2498,179.9469,0,0,900); // coordinates drug factory euros 2 /182
AddStaticVehicleEx(487,-2155.0881,-180.4132,41.3217,0.0399,0,0,900); // coordinates factory heli /183
AddStaticVehicleEx(560,-2149.6272,-222.0919,35.2526,0.3962,0,0,900); // coordinates factory sultan /184
AddStaticVehicleEx(579,-2145.2903,-222.0847,35.2510,359.8564,0,0,900); // coordinates factory huntley /185
//=============================================== CORLEONE VEHICLES (8) =====================================================
AddStaticVehicleEx(413,-2169.8081,366.7218,35.4452,269.8716,1,1,900); // security van bistro /186
AddStaticVehicleEx(421,-2244.6091,340.9759,34.4164,179.4550,1,1,900); // security van 2 /187
AddStaticVehicleEx(421,-2239.0078,387.3983,35.1759,91.6373,1,1,900); // bistro washington 1 /188
AddStaticVehicleEx(421,-2239.0654,391.4498,35.1732,90.5661,1,1,900); // bistro washington 2 /189
AddStaticVehicleEx(421,-2239.0061,395.1724,35.1615,90.0444,1,1,900); // bistro washington 3 /190
AddStaticVehicleEx(413,-2239.0554,399.7170,35.3529,86.9856,1,1,900); // bistro box 1 /191
AddStaticVehicleEx(413,-2239.0671,404.3736,35.3027,91.5187,1,1,900); // bistro box 2 /192
AddStaticVehicleEx(413,-2239.0845,409.1867,35.2615,89.9861,1,1,900); // bistro box 3 /193
//=============================================== SFPD BAYSIDE (11) =====================================================
AddStaticVehicleEx(497,-2227.5222,2326.5239,7.6851,179.7615,79,1,1800); // bay pd heli /194
AddStaticVehicleEx(599,-2252.3069,2329.8999,4.6950,89.5740,1,1,1800); // bay bp car1 ADMINISTRATIVE /195
AddStaticVehicleEx(597,-2251.9087,2336.0261,4.6950,269.6414,79,1,1800); // bay pd jeep /196
AddStaticVehicleEx(597,-2252.2063,2317.9622,4.6950,90.4274,79,1,1800); // bay pd car2 /197
AddStaticVehicleEx(597,-1572.7639,734.6711,-5.4731,270.1226,79,1,1800); // SFPD 3 /19 (from SFPD) /198
AddStaticVehicleEx(597,-2204.9065,2402.6860,4.8447,134.9055,79,1,1800); // bay pd car 3 /199
AddStaticVehicleEx(430,-1477.4279,691.2412,0.1829,180.3094,79,1,900); // sfpd boat in SF /200
AddStaticVehicleEx(430,-1476.9144,710.0643,-0.2315,180.1910,79,1,900); // sfpd boat in SF 2 /201
AddStaticVehicleEx(430,-2201.2363,2417.2803,-0.1860,45.3641,79,1,900); // coords bay police boat 1 /202
AddStaticVehicleEx(430,-2209.0073,2409.6863,-0.0747,45.6870,79,1,900); // coords bay police boat 2 /203
AddStaticVehicleEx(430,-2221.2246,2397.0930,-0.0582,45.5207,79,1,900); // coords bay police boat 3 /204
//=============================================== LVPD BOATS (5) =====================================================
AddStaticVehicleEx(430,1631.8669,569.6307,0.0514,179.7169,86,1,900); // coords lv boat 1 /205
AddStaticVehicleEx(430,1624.6245,569.7783,-0.0672,179.1087,86,1,900); // coords lv boat 2 /206
AddStaticVehicleEx(497,1648.5054,607.9327,7.9580,90.0804,86,1,900); // coords lv heli /207
AddStaticVehicleEx(599,1641.1875,624.1728,11.0110,179.8093,86,1,900); // coordinates lv police jeep /208
AddStaticVehicleEx(598,1645.5143,624.2561,11.0106,359.9401,86,1,900); // coordinates lv police jeep 2 /209
//=============================================== SASP BOATS (2) =====================================================
AddStaticVehicleEx(430,-420.6293,1167.7177,-0.1207,88.9792,113,110,900); // coords fc boat 1 /210
AddStaticVehicleEx(430,-420.1540,1159.6011,-0.1016,91.2191,113,110,900); // coords fc boa /211
//=============================================== LSPD BOATS (8) =====================================================
AddStaticVehicleEx(430,728.6833,-1494.8029,-0.3382,179.6846,86,1,900); // ls pd boat 1 /212
AddStaticVehicleEx(430,718.0262,-1494.6045,-0.1957,179.1859,86,1,900); // ls pd boat 2 /213
AddStaticVehicleEx(430,736.3803,-1493.0061,-0.1717,179.9409,86,1,900); // ls pd boat 3 /214
AddStaticVehicleEx(596,739.5372,-1433.2836,13.7391,90.4978,1,1,900); // lspd sub 1 /215
AddStaticVehicleEx(596,731.5450,-1433.2719,13.2413,90.1128,86,1,900); // lspd sub 2 /216
AddStaticVehicleEx(596,1601.6178,-1704.2872,5.6240,269.3167,86,1,900); // lspd 4 /5 (From LSPD) /217
AddStaticVehicleEx(497,705.6303,-1464.1299,17.8699,178.7396,86,1,900); // coordiantes ls police heli /218
//================================== FDSA CONTINUED (4) =====================================================
AddStaticVehicleEx(487,1733.7408,2094.2612,15.8457,89.7452,3,3,900); // LV FDSA maverick /219
AddStaticVehicleEx(407,1750.7271,2077.3936,11.0573,179.8861,3,1,900); // LV FDSA truck 1 /220
AddStaticVehicleEx(407,1757.3315,2077.2288,11.0543,180.4392,3,1,900); // LV FDSA truck 2 /221
AddStaticVehicleEx(416,1769.9963,2077.4285,10.9696,179.8296,3,3,900); // LV FDAS ambu /222
//================================== MISC POLICE (2) =====================================================
AddStaticVehicleEx(487,-2815.7751,-1494.3591,139.4657,185.3108,0,0,900); // Heli Campsite /223
AddStaticVehicleEx(599,-210.5421,999.3796,19.8470,270.1447,113,110,900); // coords trooper jeep /224
//================================== CAINE HOUSE CARS (2) =====================================================
AddStaticVehicleEx(421,-2661.9377,989.1833,64.7935,359.5343,0,0,-1); // caine nebula /225
AddStaticVehicleEx(490,-2666.4548,989.5596,65.0010,0.1987,0,0,-1); // caine house FBI rancher /226
//================================== SWAT VEHICLES (13) =====================================================
AddStaticVehicleEx(525,-1623.2529,649.7551,-5.1079,90.5453,79,79,900); // enforcer SFPD /227 --> TOW TRUCK
AddStaticVehicleEx(427,-1902.9332,-1529.3752,21.4063,259.0294,0,0,900); // SWAT ENFORCER 1
AddStaticVehicleEx(427,-1902.1226,-1548.4625,21.8818,263.4476,0,0,900); // SWAT ENFORCER 2
AddStaticVehicleEx(427,-1902.1277,-1560.2626,21.8770,264.3625,0,0,900); // SWAT ENFORCER 3
AddStaticVehicleEx(601,-1831.7130,-1592.3145,21.4124,355.4760,0,0,900); // SWAT TANK 1
AddStaticVehicleEx(601,-1820.9268,-1592.8152,21.4123,1.9916,0,0,900); // SWAT TANK 2
AddStaticVehicleEx(447,-1769.4078,-1607.8895,21.4560,168.5116,0,0,900); // SWAT HELI 1
AddStaticVehicleEx(427,-1788.4355,768.3860,25.0224,91.5113,0,0,900); // SWAT VAN 1
AddStaticVehicleEx(427,-1788.4445,775.3148,25.0226,91.2900,0,0,900); // SWAT VAN 2
AddStaticVehicleEx(427,-1788.6274,782.8590,25.0225,90.8127,0,0,900); // SWAT VAN 3
AddStaticVehicleEx(601,-1792.4470,751.2745,24.5484,1.7699,0,0,900); // SWAT TANK 1
AddStaticVehicleEx(601,-1782.8396,751.1685,24.5483,1.5771,0,0,900); // SWAT TANK 2
AddStaticVehicleEx(447,-1781.8458,777.6758,36.5590,354.3091,0,0,900); // SWAT HELI
//================================== TAXIS (5) =====================================================
AddStaticVehicleEx(420,2148.7046,1408.6395,10.5633,359.5203,6,6,180); // taxi 1 LV /240
AddStaticVehicleEx(420,2142.3213,1408.7238,10.7406,359.6017,6,6,180); // taxi 2 LV /241
AddStaticVehicleEx(420,2145.6116,1398.3608,10.5923,0.5422,6,6,180); // taxi 3 LV /342
AddStaticVehicleEx(420,2118.1931,-1157.5421,23.8519,0.3112,6,6,180); // taxi 4 LS /243
AddStaticVehicleEx(420,2137.6743,-1132.8713,25.2789,91.0081,6,6,180); // taxi 5 LS /244
//================================== SATA VEHICLES LV (4) =====================================================
AddStaticVehicleEx(431,1090.5061,1339.1232,10.9190,90.1419,6,6,900); // bus 1 /245
AddStaticVehicleEx(431,1090.5890,1332.0702,10.9225,89.5387,6,6,900); // bus 2 /246
AddStaticVehicleEx(431,1090.6111,1325.4341,10.9190,90.2879,6,6,900); // bus 3 /247
AddStaticVehicleEx(431,1036.5555,1308.1871,10.9290,269.2137,6,6,900); // bus 4 /248
//================================= MISC ARMY (6)=============================================================
AddStaticVehicleEx(597,-1280.7131,478.5860,7.1798,89.3873,110,110,900); // NAVB MP CAR 1 /249
AddStaticVehicleEx(597,-1267.9572,478.4487,7.1751,89.3637,110,110,900); // NAVB MP CAR 2 /250
AddStaticVehicleEx(598,296.7540,1875.8093,17.6307,359.6250,110,110,900); // A69 MP CAR 2 /251
AddStaticVehicleEx(598,211.4307,1920.0237,17.6318,179.4640,110,110,900); // A69 MP CAR 3 /252
AddStaticVehicleEx(407,-1376.6663,-478.6345,14.2699,200.4831,6,1,900); // FDSA SF AIR TRUCK 2 /253
AddStaticVehicleEx(416,-1357.3938,-474.5411,14.2643,163.3727,6,1,900); // FDSA SF AIR AMBULANCE 1 /254
//============================= UTILITY SAPW CARS (6)===================================================================
AddStaticVehicleEx(552,-1867.9653,-218.0588,18.2521,268.9334,1,6,180); // util van 1 /255
AddStaticVehicleEx(525,-1859.4570,-218.2172,18.2521,268.9329,6,6,180); // tow truck 1 /256
AddStaticVehicleEx(525,-1885.0502,-183.5542,18.2744,269.1753,6,6,180); // tow truck 2 /257
AddStaticVehicleEx(525,-1885.1456,-187.7328,18.2754,269.5296,6,6,180); // tow truck 3 /258
AddStaticVehicleEx(552,-1885.0010,-192.7908,18.2738,269.8689,1,6,180); // util van 2 /259
AddStaticVehicleEx(525,-1849.5038,-199.8201,18.0641,180.0832,6,6,180); // tow truck 4 /260
//======================== SATA VEHICLES (8) ===================================================
AddStaticVehicleEx(431,-1749.4497,954.8829,24.5738,269.3021,6,6,900); // Bus /261
AddStaticVehicleEx(409,-1705.6157,988.1455,17.4176,89.8997,0,0,900); // Limo - Black /262
AddStaticVehicleEx(420,-1720.1272,1003.6895,17.4177,270.4195,6,6,900); // taxi /263
AddStaticVehicleEx(420,-1686.3168,1024.5212,17.4173,267.5261,0,0,900); // taxi - Special Owner Color /264
AddStaticVehicleEx(409,2211.5959,1841.4379,10.5742,359.8012,0,0,900); // Limo- black /265
AddStaticVehicleEx(431,2191.7224,1848.7324,10.5959,88.1664,6,6,900); // Bus /266
AddStaticVehicleEx(420,2198.7515,1879.1616,10.5675,179.6830,6,6,900); // Taxi /267
AddStaticVehicleEx(420,2200.1448,1856.6011,10.5768,178.7970,6,6,900); // Taxi /268
AddStaticVehicleEx(420,-1718.2173,988.1667,17.4186,89.9014,6,6,900); // Taxi /269
//============================ DMV CONTINUED (4) =======================================================
AddStaticVehicleEx(416,-2053.3181,-106.5251,35.1533,180.2989,1,1,180); // Ambulance /270
AddStaticVehicleEx(407,-2049.7158,-106.4816,35.0131,180.3981,1,1,180); // Fire Truck /271
AddStaticVehicleEx(597,-2041.6761,-106.3214,34.9626,181.3394,1,1,180); // Police Car /272
AddStaticVehicleEx(426,-2046.0233,-106.3772,35.0917,180.7208,1,1,180); // Premier /273
//============================ DCPT VEHICLES (5) =======================================================
AddStaticVehicleEx(599,-1604.6993,912.2233,7.7290,270.0894,24,24,900); // jeep 1 /274
AddStaticVehicleEx(599,-1585.0342,858.0139,7.5964,89.7648,24,24,900); // DCP 2 /275
AddStaticVehicleEx(599,-1592.4600,858.0464,7.7349,89.4861,24,24,900); // DCP 3 /276
AddStaticVehicleEx(599,-1606.2389,858.1028,7.7365,89.8982,24,24,900); // DCP 4 /277
AddStaticVehicleEx(599,-1588.9755,912.2296,7.7298,270.5604,24,24,900); // DCP 5 /278
//============================ CEEJAY / GANGSTA HOUSE CARS (2) =======================================================
AddStaticVehicleEx(402,303.4589,-1160.1665,80.9955,133.7449,0,0,-1); // CeeJay Buffalo /279
AddStaticVehicleEx(559,306.3094,-1163.3345,80.9949,133.1558,0,0,-1); // Gangsta Jester /280
//============================ SANN VEHICLES (6) =======================================================
AddStaticVehicleEx(582,760.1475,-1366.5057,13.5725,359.9642,1,1,240); // LS Side Job: News Van 1 /281
AddStaticVehicleEx(582,736.9847,-1349.5527,13.5669,269.8264,1,1,240); // LS Side Job: News Van 2 /282
AddStaticVehicleEx(582,736.9453,-1344.9570,13.5739,269.3277,1,1,240); // LS Side Job: News Van 3 /283
AddStaticVehicleEx(582,736.8517,-1337.2101,13.5931,270.7078,1,1,240); // LS Side Job: News Van 4 /284
AddStaticVehicleEx(488,743.6397,-1363.2904,25.8461,269.2948,1,1,240); // LS Side Job: News Heli 1 /285
AddStaticVehicleEx(488,743.5543,-1376.9471,25.8719,270.5362,1,1,240); // LS Side Job: News Heli 2 /286
//============================ HOUSE CAR - POLICE121 (1) =======================================================
AddStaticVehicleEx(402,1524.7791,2576.7048,10.8219,358.7197,0,0,-1); // Buffalo Police121 /287
//============================ HOUSE CARS - GAMER/PIMP/BLADE (3) =================================================
AddStaticVehicleEx(402,-2104.7053,900.5793,76.3183,359.0570,0,0,-1); // buffalo PIMP /288
AddStaticVehicleEx(560,-2108.2864,900.9637,76.3977,357.0577,3,3,-1); // premier Gamer /289
AddStaticVehicleEx(480,-2121.4292,906.8039,78.6839,268.6617,3,3,-1); // Comet Blade /290
//============================ ATC VEHICLES (4) =======================================================
AddStaticVehicleEx(552,-1306.0623,37.7020,14.1435,224.3047,1,86,900); // SF ATC /291
AddStaticVehicleEx(552,1795.3354,-2456.3457,13.5473,268.4490,1,86,900); // LS ATC /292
AddStaticVehicleEx(552,1436.4470,1532.7670,10.8136,267.4220,1,86,900); // LV ATC /293
AddStaticVehicleEx(552,419.4417,2545.9858,16.3372,0.2548,1,86,900); // VM ATC /294
//============================ TEMPORARY VEHICLES (9) =======================================================
//--------- TEMP LV CIV VEHICLES ---------- //
AddStaticVehicleEx(413,2631.7739,1665.4312,10.7517,271.2370,125,83,900); // LV36
AddStaticVehicleEx(405,2554.9033,744.3187,10.7524,178.5170,47,83,900); // LV39
AddStaticVehicleEx(426,2090.5820,2479.7690,10.7557,180.7171,106,83,900); // LV41
AddStaticVehicleEx(579,1368.6217,1967.1537,11.3812,90.6421,126,83,900); // LV41
AddStaticVehicleEx(422,1370.0662,2012.2827,11.3014,91.3040,18,83,900); // LV42
//--------- TEMP LV CIV VEHICLES ---------- //
//============================ SWAT LV (6) =======================================================
AddStaticVehicleEx(599,-1399.6558,2653.3879,55.8768,270.1326,113,110,900); // EQPD jeep 3 /300
AddStaticVehicleEx(599,-2163.1440,-2390.7590,30.7281,51.1694,113,110,900); // APPD jeep 3 /301
//============================ SASP PRISON (4) =======================================================
AddStaticVehicleEx(599,0.2385,-300.9982,5.4241,89.8723,113,110,7200); // sasp car 1 /302
AddStaticVehicleEx(599,-61.5041,-303.9554,5.4324,272.3365,113,110,7200); // sasp car 2 /303
AddStaticVehicleEx(599,-1.7403,-336.0010,5.4382,268.9005,113,110,7200); // sasp car 3 /304
AddStaticVehicleEx(497,-41.8133,-368.3437,8.1179,0.1532,113,110,7200); // sasp chopper1 /305
//============================ HOUSE CAR - WHEELMAN (1) =======================================================
AddStaticVehicleEx(559,1612.3763,2578.0474,10.5755,359.4591,116,116,-1); // wheelman dblue jester /306
//============================ HOUSE CAR - HASH_MYTH (1) =======================================================
AddStaticVehicleEx(477,329.6332,-1774.8947,4.8021,260.8766,6,6,-1); // zr350 hash_mythm /307
//============================ HOUSE CAR - JOSH_CALONE (1) =======================================================
AddStaticVehicleEx(560,283.1401,-1160.9321,80.9583,222.9927,0,0,900); // sultan josh_calone /308
//============================ HOUSE CAR - SQUEAK25 (2) =======================================================
AddStaticVehicleEx(470,2815.2610,2163.2278,10.7431,269.7057,1,1,-1); // squeak patriot /309
AddStaticVehicleEx(598,2810.2493,2152.0542,10.7484,272.6233,1,1,900); // squeak lvpd car /310
//============================ HOUSE CAR - BARRY (1) =======================================================
AddStaticVehicleEx(424,1961.3612,2755.3101,10.9543,220.7038,86,1,-1); // BF injection /311
//============================ HOUSE CAR - PATRICK (1) =======================================================
AddStaticVehicleEx(559,-2721.8887,980.3433,54.4609,186.9038,0,0,-1); // Patrick jester /312
//============================ HOUSE CAR - HYPO (1) =======================================================
AddStaticVehicleEx(560,-1435.8569,-1538.5839,101.4626,87.6368,0,0,-1); // Hypo Sultan /313
//============================ HOUSE CAR - BOUNTY (1) =======================================================
AddStaticVehicleEx(580,286.4900,-1156.7382,80.6361,224.9191,0,0,900); // Bounty Stafford /314
//============================ HOUSE CAR - JOE (1) =======================================================
AddStaticVehicleEx(424,259.8559,-1219.2795,74.9011,213.9527,0,0,-1); // Joe BF injection /315
//============================ HOUSE CAR - MIST (1) =======================================================
AddStaticVehicleEx(402,-2445.7009,-122.8555,25.9086,95.4200,1,1,-1); // Buffalo
//============================ HOUSE CAR - JOHNNYJB (1) =======================================================
AddStaticVehicleEx(477,-2437.8281,2450.8552,13.5587,180.0171,1,1,-1); // Zr350 - WHite /317
//============================ HOUSE CAR - RAZOR (1) =======================================================
AddStaticVehicleEx(480,-2459.0774,-95.7077,25.7372,94.5864,6,6,-1); // Razor buffalo /318
//============================ HOUSE CAR - VARMINT (1) =======================================================
AddStaticVehicleEx(424 ,1357.5027,-616.2667,108.9137,108.2127,1,3,-1); // Varmint Nebula /319
//============================ HOUSE CAR - SPENCER (1) =======================================================
AddStaticVehicleEx(560,266.1942,-1774.1730,3.9711,269.5289,0,0,-1); // Spencer Sultan /320
//============================ TRANSPORTER CARS (2) =======================================================
AddStaticVehicleEx(435,2174.5667,-2267.4534,12.9634,222.5112,3,3,900); // Diablo Truck Trailer /321
AddStaticVehicleEx(403,2166.6563,-2273.1599,12.9496,227.1622,3,3,900); // Diablo Semi /322
//============================ MAX HOTEL SERVICE CARS (2) (323-332) =======================================================
AddStaticVehicleEx(411,2686.6191,-1671.3097,9.2769,180.4483,1,1,900); // outside sara 2nd hq infernus
AddStaticVehicleEx(411,2691.7957,-1671.3690,9.2977,179.1581,1,1,900); // outside sara 2nd hq infernus
AddStaticVehicleEx(541,2676.4678,-1671.4106,9.2271,180.1573,1,1,900); // outside sara 2nd hq bullet
AddStaticVehicleEx(451,2681.4951,-1671.3757,9.2519,180.1886,1,1,900); // outside sara 2nd hq turismo
AddStaticVehicleEx(451,2676.3076,-1671.4861,9.2262,180.9270,1,1,900); // outside sara 2nd hq turismo
AddStaticVehicleEx(411,-1406.1462,-266.5976,1043.4878,347.6222,1,1,900); // inside sara 2nd hq infernus
AddStaticVehicleEx(541,-1410.0126,-265.8041,1043.4896,346.9754,1,1,900); // inside sara 2nd hq bullet
AddStaticVehicleEx(451,-1403.1891,-267.3642,1043.4879,347.3455,1,1,900); // inside sara 2nd hq turismo
AddStaticVehicleEx(541,-1404.0056,-252.9278,1043.4186,347.3410,1,1,900); // inside sara 2nd hq bullet
AddStaticVehicleEx(451,-1400.0135,-253.4482,1043.4064,351.2420,1,1,900); // inside sara 2nd hq turismo
//============================ CHRIS HOUSE CAR 1 (1) =======================================================
AddStaticVehicleEx(426,-2038.6281,-42.0711,35.0940,88.5227,0,0,-1); // Chris' Premeir (Locked for ERP Admin) /333
//============================ STED HOUSE (1) =======================================================
AddStaticVehicleEx(402,-682.2963,966.2440,12.0153,90.9760,3,3,-1); // Sted Buffalo /334
//============================ CHRISVILLE CONTINUED (13) =======================================================
AddStaticVehicleEx(427,-366.6440,2243.0256,42.6163,192.7384,113,110,7200); // SASP Enforcer /335
AddStaticVehicleEx(430,-483.8907,2176.2773,40.8920,92.9988,113,110,900); // SASP Boat Chrisville /336
AddStaticVehicleEx(493,-488.9578,2194.6265,40.8749,91.6269,20,0,900); // Boat Lake /337
AddStaticVehicleEx(400,1391.9415,385.5903,19.6328,66.7022,41,41,900); // coordinates rc car 5
AddStaticVehicleEx(445,199.5732,-155.6096,1.4531,179.7590,61,61,900); // coordinates rc car 11
AddStaticVehicleEx(422,176.2896,-6.9832,1.4531,180.0114,6,1,900); // coordinates rc car 12
AddStaticVehicleEx(500,216.0194,-140.3358,1.4565,0.0304,123,123,900); // coordinates rc car 13
AddStaticVehicleEx(493,779.0206,-1896.1522,0.3575,144.6941,1,1,900); // citizen ls boat 11
AddStaticVehicleEx(484,2355.8801,-2533.8875,0.1773,178.5862,75,0,900); // citizen ls boat 9
AddStaticVehicleEx(484,2320.4426,-2402.1326,-0.2088,133.5078,0,106,900); // citizen ls boat 7
AddStaticVehicleEx(493,2498.2593,-2268.1267,-0.1246,89.5591,0,6,900); // citizen ls boat 5
AddStaticVehicleEx(484,2694.9241,-2312.0994,-0.0001,89.4757,0,45,900); // citizen ls boat 3
AddStaticVehicleEx(493,2788.1748,-2259.7834,-0.0686,90.7773,0,43,900); // citizen ls boat 1
//============================ CORLEONE FAMILY CARS (9) =======================================================
AddStaticVehicleEx(487,-1474.1462,1488.8995,8.2653,86.7662,0,0,900); // Triad Hidden Chopper /348
AddStaticVehicleEx(409,-2186.7097,705.2283,53.6907,179.9261,1,1,900); // Triad gang car /349
AddStaticVehicleEx(603,-2283.2190,-118.7569,35.0474,180.7402,1,1,900); // Triad gang car /350
AddStaticVehicleEx(560,-2277.6436,-118.5489,35.0247,180.2399,1,1,900); // Triad gang car /351
AddStaticVehicleEx(560,-2272.3066,-118.5162,35.0248,180.6797,1,1,900); // Triad gang car /352
AddStaticVehicleEx(603,-2289.9011,-118.6172,35.0495,181.2986,1,1,900); // Triad gang car /353
AddStaticVehicleEx(409,-2274.3774,-132.4418,35.1203,269.8842,1,1,900); // Triad gang car /354
AddStaticVehicleEx(468,-2281.4348,-132.6386,34.8952,359.0447,1,1,900); // Triad gang car /355
AddStaticVehicleEx(468,-2284.2258,-132.5704,34.8906,358.5614,1,1,900); // Triad gang car /356
//============================ DCP PRISON (7) =======================================================
AddStaticVehicleEx(599,-32.3003,-280.0713,5.6168,270.2793,24,24,900); // jeep 1 /357
//AddStaticVehicleEx(599,-32.4839,-290.1815,5.6159,89.1128,24,24,900); // jeep 2 /358 REPLACED
AddStaticVehicleEx(599,-1565.4984,893.1018,7.2376,180.1726,24,24,900); // jeep 2 /358 -- NEW
AddStaticVehicleEx(599,-32.1903,-297.0894,5.6189,270.1674,24,24,900); // jeep 3 /359
//AddStaticVehicleEx(599,0.4059,-308.1392,5.6194,269.3208,24,24,900); // jeep 4 /360 REPLACED
AddStaticVehicleEx(599,-1581.0492,912.2074,7.7347,269.7125,24,24,900); // jeep 4 /360 -- NEW
AddStaticVehicleEx(599,-63.3114,-317.9080,5.6196,270.2368,24,24,900); // jeep 5 /361
//AddStaticVehicleEx(427,-0.8770,-322.2641,5.5614,89.3494,24,24,900); // enforcer /362 REPLACED
AddStaticVehicleEx(427,-1565.5056,879.3693,7.1733,179.6988,24,24,900); // enforcer /362 -- NEW
AddStaticVehicleEx(427,-1.0901,-329.2523,5.5633,89.6889,24,24,900); // enforcer 2 /363
AddStaticVehicleEx(427,-14.7215,-273.7955,5.5616,179.9738,24,24,900); // enforcer 3 /364
AddStaticVehicleEx(497,-8.4754,-368.4887,8.1161,0.0862,24,24,900); // heli /365
//============================ STONER FREIGHT (6) =======================================================
AddStaticVehicleEx(403,1601.1057,2369.8306,10.9225,181.0108,44,44,-1); // Truck 1 (Dark Green) /366 REAL
//AddStaticVehicleEx(403,-104.5282,-1123.3892,1.4297,112.5224,44,44,900); // Truck 1 (Dark Green) /366 FOR TESTING RS HAUL
//AddStaticVehicleEx(403,-2135.7317,-221.8022,35.9103,219.2340,44,44,900); // Truck 1 (Dark Green) /366 FOR TESTING SMOKING ACES HQ
AddStaticVehicleEx(403,1608.2301,2370.0508,10.9214,181.6702,44,44,-1); // Truck 2 (Dark Green) /367
AddStaticVehicleEx(403,1616.5070,2369.7854,10.9267,179.6808,44,44,-1); // Truck 3 (Dark Green) /368
AddStaticVehicleEx(435,1634.7639,2346.6519,10.9221,90.9413,1,1,-1); // Trailor 1 (Dark Green) /369 REAL
//AddStaticVehicleEx(435,-97.8814,-1109.6281,2.4903,97.6076,1,1,-1); // Trailor 1 (Dark Green) /369 FOR TESTING RS HAUL
//AddStaticVehicleEx(435,-2138.2781,-218.8118,35.9151,219.7173,1,1,-1); // Trailor 1 (Dark Green) /369 FOR TESTING SMOKING ACES HQ
AddStaticVehicleEx(435,1634.7747,2329.5295,10.9281,90.4622,1,1,-1); // Trailor 2 (Dark Green) /370
AddStaticVehicleEx(435,1636.8854,2303.1570,10.4710,89.6125,1,1,-1); // Trailor 3 (Dark Green) /371
//============================ MAX HOUSE (1) =======================================================
AddStaticVehicleEx(560,-2712.9639,824.9294,50.0234,181.2325,33,33,-1); // MAX sultan /372
//================================== ARMY HELIS (4) =====================================================
AddStaticVehicleEx(548,2690.4094,-2128.4258,13.5469,90.4978,0,0,900); // cargobob a97 /373
AddStaticVehicleEx(548,-1231.3707,456.4339,7.4126,89.7406,0,0,900); // casrgobob2 navb /374
AddStaticVehicleEx(548,226.3560,1888.0348,19.2818,359.6256,0,0,900); // cargobob a69 /375
AddStaticVehicleEx(548,287.7846,1924.1052,17.8169,233.9944,0,0,900); // cargobob a69 2 /376
//================================== ERP TRAIN (1) =====================================================
CreateVehicle(537,-1208.1002,-1514.5530,34.4725,86.7601,0,0,1800); // erp train /377
CreateVehicle(569,-1208.1002,-1514.5530,34.4725,86.7601,0,0,1800); // erp train car /378
CreateVehicle(569,-1208.1002,-1514.5530,34.4725,86.7601,0,0,1800); // erp train car /379
CreateVehicle(569,-1208.1002,-1514.5530,34.4725,86.7601,0,0,1800); // erp train car /380
//================================== SATA TRAINS (8) =====================================================
CreateVehicle(537,-1943.3127,158.0254,27.0006,357.3614,1,1,300); // train sf /381
CreateVehicle(569,-1943.3127,158.0254,27.0006,357.3614,1,1,300); // train sf car /382
CreateVehicle(569,-1943.3127,158.0254,27.0006,357.3614,1,1,300); // train sf car /383
CreateVehicle(569,-1943.3127,158.0254,27.0006,357.3614,1,1,300); // train sf car /384
CreateVehicle(537,1988.6415,-1953.8002,13.5469,89.0552,1,1,300); // train ls /385
CreateVehicle(569,1988.6415,-1953.8002,13.5469,89.0552,1,1,300); // train ls car /386
CreateVehicle(569,1988.6415,-1953.8002,13.5469,89.0552,1,1,300); // train ls car /387
CreateVehicle(569,1988.6415,-1953.8002,13.5469,89.0552,1,1,300); // train ls car /388
//============================ VAGORIDER HOUSE (1) =======================================================
AddStaticVehicleEx(402,-198.2429,2776.8320,61.5425,88.8920,0,0,-1); // Vagorider Buffalo /389
//=========================== CHRIS HOUSE CAR (1) ==========================================
AddStaticVehicleEx(560,-2038.9868,-45.7629,35.0661,266.5446,86,86,-1); // Chris-house-sultan /390
//=========================== SAN ANDREAS RACING ASSOCIATION (5) ===================================
AddStaticVehicleEx(562,-1955.5031,302.4465,35.1293,209.6531,1,1,900); // SARA Elgy /391
AddStaticVehicleEx(562,-1956.8629,273.3196,40.7066,338.0389,1,1,900); // SARA Elgy 2 /392
AddStaticVehicleEx(559,-1947.0801,264.3237,35.1308,26.0856,1,1,900); // SARA Jester 1 /393
AddStaticVehicleEx(559,-1951.9482,255.9996,40.7111,48.6224,1,1,900); // SARA Jester 2 /394
AddStaticVehicleEx(487,-1958.7813,273.6114,47.7031,261.4578,106,1,900); // SARA Maverick 1 /395
AddStaticVehicleEx(599,-1928.2616,275.1475,40.7064,182.8213,1,106,900); // SARA Security /396
AddStaticVehicleEx(416,-1936.6298,274.6325,40.7060,179.9842,1,106,900); // SARA Medic /397
AddStaticVehicleEx(562,-1029.5112,-1183.5710,128.9240,90.0426,0,0,900); // eddys car Reg /398'
//=========================== JOHNNYJB HOUSE CAR (1) ==========================================
AddStaticVehicleEx(580,-2433.8787,2450.9434,13.5134,182.3546,1,1,-1); // Stafford - White /399
//=========================== SCHADUW HOUSE CAR (1) ==========================================
AddStaticVehicleEx(490,1282.2729,2529.6248,10.5933,268.6376,0,0,-1); // Schaduw Buffalo /400
//=========================== KRIS HOUSE CAR (1) ==========================================
AddStaticVehicleEx(477,888.4216,-1669.1509,13.2828,0.8152,3,3,-1); // Kristjan zr350 /401
//=========================== DIABLO VEHICLES (8) ==========================================
AddStaticVehicleEx(545,-1707.3842,25.4823,3.4133,226.0314,45,45,900); // HUSTLER
AddStaticVehicleEx(545,-1711.2915,21.2562,3.4207,225.6438,45,45,900); // HUSTLER
AddStaticVehicleEx(545,-1716.4170,17.4624,3.4481,226.1938,45,45,900); // HUSTLER
AddStaticVehicleEx(409,-1711.5262,7.5483,3.4321,315.6677,45,45,900); // LIMO
AddStaticVehicleEx(468,-1696.2776,10.9052,3.4138,45.1419,45,45,900); // SANCHEZ
AddStaticVehicleEx(580,-1698.9779,8.1447,3.4142,44.1003,45,45,900); // STAFFORD
AddStaticVehicleEx(487,-1633.4810,105.9960,-11.1555,315.4388,45,45,900); // HELICOPTER
AddStaticVehicleEx(422,-2272.3242,2309.3235,4.5473,269.5728,34,34,900); // coordinates sf car 69
//======================== SARA TOW TRUCK (1) ===================================================
AddStaticVehicleEx(525,-1927.6326,244.0985,40.9271,1.6758,6,6,-1); // SARA Towtruck /410
//======================== BIRDY HOUSE CAR (1) ===================================================
AddStaticVehicleEx(402,-2218.5208,-2407.0896,31.2272,230.5630,0,0,-1); // Birdy Buffalo /411
//======================== KALEEM HOUSE CAR (1) ===================================================
AddStaticVehicleEx(402,874.7040,-1658.2692,13.4231,180.0854,1,1,-1); // Vortex Byffalo /412
//======================== ROME HOUSE CAR (1) ===================================================
AddStaticVehicleEx(402,-374.7119,1163.9412,19.5763,229.5413,0,0,-1); // Rome buffalo /413
//======================== EMS CONTINUED (14) ===================================================
AddStaticVehicleEx(416,-2654.8403,619.0374,14.1964,89.3239,6,118,900); // SFEMS /414
AddStaticVehicleEx(416,-2206.6492,-2298.7612,30.7745,322.0637,6,118,900); // APEMS /415
AddStaticVehicleEx(416,-2666.0674,619.1503,14.1961,89.5460,6,118,900); // SFEMS /416
AddStaticVehicleEx(416,1222.0101,302.9988,19.7269,159.7704,6,118,900); // Montgomery EMS /417
//======================== BARZINI FAMILY (8) ===================================================
AddStaticVehicleEx(413,-2110.8679,-1.0127,35.2500,86.8364,83,83,900); // Aryon-Brother Hood, Van 1
AddStaticVehicleEx(413,-2110.7112,-5.6316,35.2535,89.8628,83,83,900); // Aryon-Brother Hood, Van 2
AddStaticVehicleEx(402,-2126.0432,-35.6142,35.2542,272.1747,83,83,900); // Aryon-Brother Hood, Buffalo 1
AddStaticVehicleEx(402,-2126.3320,-23.5840,35.2516,268.1047,83,83,900); // Aryon-Brother Hood, Buffalo 2
AddStaticVehicleEx(579,-2126.4121,-13.5170,35.2530,271.2678,83,83,900); // Aryon-Brother Hood, Huntley 1
AddStaticVehicleEx(579,-2126.0940,-7.1466,35.2501,270.1889,83,83,900); // Aryon-Brother Hood, Huntley 2
AddStaticVehicleEx(413,-2105.0676,-9.2588,35.2491,271.9054,83,83,900); // Aryon-Brother Hood, Van 3
AddStaticVehicleEx(487,-2111.5042,-15.6420,40.6413,84.7232,83,83,900); // Aryon-Brother Hood, Heli 1
//======================== GOVERNMENT CONTINUED (11) ===================================================
AddStaticVehicleEx(413,-2970.3201,457.6649,4.7966,272.3180,0,0,900); // Pony /426
AddStaticVehicleEx(413,-2980.1982,457.3889,4.7966,269.7269,0,0,900); // Pony /427
AddStaticVehicleEx(421,-2990.4939,479.8144,4.7966,270.7236,0,0,900); // Washington /428
AddStaticVehicleEx(421,-2990.7844,474.1191,4.7966,271.1756,0,0,900); // Washington /429
AddStaticVehicleEx(421,-2990.8699,467.8819,4.7966,269.4083,0,0,900); // Washington /430
AddStaticVehicleEx(421,-2991.2644,462.1470,4.7965,269.9536,0,0,900); // Washington /431
AddStaticVehicleEx(487,-2962.3132,480.2619,4.7909,103.4970,0,0,900); // Mavrick /432
AddStaticVehicleEx(484,-2940.7302,497.6717,-0.3140,149.0086,0,0,900); // Boat /433
AddStaticVehicleEx(484,-2970.1108,493.4913,-0.6857,344.8204,0,0,900); // Boat /434
//================================== ERP TRAIN 2 (4) =====================================================
CreateVehicle(537,-1647.4817,1260.4775,8.3756,44.9051,0,0,300); // SF CITY /435
CreateVehicle(569,-1647.4817,1260.4775,8.3756,44.9051,0,0,300); // SF CITY car1 /436
CreateVehicle(569,-1647.4817,1260.4775,8.3756,44.9051,0,0,300); // SF CITY car2 /437
CreateVehicle(569,-1647.4817,1260.4775,8.3756,44.9051,0,0,300); // SF CITY car3 /438
//============================== VIP CARS (6) ==========================================================
AddStaticVehicleEx(541,-2653.0571,-88.3971,3.9136,356.6227,0,0,1200); // V.I.P Car SF 1 /439
//========================= [ERP]XMADMOLX HOUSE CAR (1) =====================================================
AddStaticVehicleEx(477,-1435.8016,-1542.8379,101.9471,90.3131,126,126,900); // pink zr350 /445
//======================== LS VIP CARS (2) ==============================================================
AddStaticVehicleEx(541,490.8093,-1552.0685,17.5288,31.3241,0,0,900); // LS VIP CAR /446
AddStaticVehicleEx(560,478.2805,-1513.5992,20.0643,358.5407,1,1,900); // LS VIP CAR 2 /447
//================================== SF CITY TRAMS (3) =====================================================
AddStaticVehicleEx(449,-2264.6890,527.3108,35.5904,180.4075,1,1,300); // SF CITY 1
AddStaticVehicleEx(449,-2264.7612,537.4412,35.5542,180.4091,1,1,300); // SF CITY 2
AddStaticVehicleEx(449,-2264.8315,547.2737,35.5191,0.4107,1,1,300); // SF CITY 3
//================================== CIVIVILIAN SAN FIERRO () =====================================================
AddStaticVehicleEx(487,-1224.3553,-10.2645,14.3404,45.5609,16,1,900); // sf air mav
AddStaticVehicleEx(484,2363.0281,517.1569,0.1981,265.0690,26,26,900); // boat lv
AddStaticVehicleEx(484,-2231.2881,2449.3596,-0.1362,227.5983,3,0,900); // marquis
AddStaticVehicleEx(587,2710.9783,2410.9238,6.5067,17.6139,125,1,900); // sf car spawn euro
AddStaticVehicleEx(560,-2763.1963,-312.4381,6.7664,2.7444,4,4,900); // coordinates sf car 1
AddStaticVehicleEx(500,-2756.7278,-281.1826,6.7663,0.4958,65,65,900); // coordinates sf car 3
AddStaticVehicleEx(400,-2755.2617,-311.4716,6.7642,184.9937,53,119,900); // coordinates sf car 7
AddStaticVehicleEx(516,-2746.7996,-281.5828,6.7664,179.6661,14,14,900); // coordinates sf car 8
AddStaticVehicleEx(422,-2623.5305,-55.1253,4.0616,0.3775,1,66,900); // coordinates sf car 10
AddStaticVehicleEx(545,-2627.4045,-34.5452,4.0615,179.6904,3,1,900); // coordinates sf car 11
AddStaticVehicleEx(542,-2633.5330,-55.7224,4.0616,179.7465,35,35,900); // coordinates sf car 12
AddStaticVehicleEx(413,-2669.6499,-34.0757,4.0632,359.6643,3,3,900); // coordinates sf car 13
AddStaticVehicleEx(587,-1938.3923,585.4088,34.8454,180.1726,44,44,900); // coordinates sf car 18
AddStaticVehicleEx(516,-2231.2275,293.0117,34.8439,180.3773,41,41,900); // coordinates sf car 21
AddStaticVehicleEx(579,-2222.7021,305.8887,34.8430,180.1511,37,37,900); // coordinates sf car 22
AddStaticVehicleEx(587,-1634.0518,1293.8167,6.7651,134.2415,91,91,900); // coordinates sf car 29
AddStaticVehicleEx(426,-2617.5710,1377.8213,6.8654,0.4489,2,2,900); // coordinates sf car 30
AddStaticVehicleEx(516,-2637.7900,1333.4373,6.9211,180.1311,34,34,900); // coordinates sf car 34
AddStaticVehicleEx(400,-2543.1953,598.9310,14.3821,269.7780,44,84,900); // coordinates sf car 38
AddStaticVehicleEx(421,-2572.8069,632.5599,14.3905,90.2738,4,4,900); // coordinates sf car 40
AddStaticVehicleEx(542,-2589.6812,622.3262,14.3909,270.6089,0,0,900); // coordinates sf car 41
AddStaticVehicleEx(516,-2490.8459,741.6503,34.9453,179.3699,36,36,900); // coordinates sf car 45
AddStaticVehicleEx(445,-2455.9705,741.9858,34.9508,0.2176,37,37,900); // coordinates sf car 46
AddStaticVehicleEx(542,-1824.0709,1291.3281,31.7898,18.6269,83,83,900); // coordinates sf car 54
AddStaticVehicleEx(413,-1836.9302,1307.6260,41.0797,20.5710,33,33,900); // coordinates sf car 55
AddStaticVehicleEx(400,-1797.0378,1312.2186,50.3769,176.9509,95,15,900); // coordinates sf car 57
AddStaticVehicleEx(579,-1804.7095,1293.9043,59.6632,356.9785,13,13,900); // coordinates sf car 614
AddStaticVehicleEx(500,-2461.6699,2224.2158,4.5708,179.6321,93,93,900); // coordinates sf car 65
AddStaticVehicleEx(516,-2476.6555,2224.1760,4.5709,359.6980,27,27,900); // coordinates sf car 67
AddStaticVehicleEx(421,-2272.2114,2327.2793,4.5453,90.0508,37,37,900); // coordinates sf car 70
AddStaticVehicleEx(421,-2301.0298,2414.5068,4.7966,135.2359,37,37,900); // sf bay civ car 1 71
AddStaticVehicleEx(421,-2287.0872,2400.0591,4.7961,314.2264,37,37,900); // sf bay civ car 2 72
AddStaticVehicleEx(426,-1897.7030,-757.0011,31.9590,89.8892,94,94,900); // coordinates sf car 78
AddStaticVehicleEx(542,-1871.3793,-824.0269,31.9549,269.3585,93,93,900); // coordinates sf car 79
AddStaticVehicleEx(516,-1871.7642,-954.6313,31.9543,89.8346,75,75,900); // coordinates sf car 80
AddStaticVehicleEx(426,-2265.3455,121.2219,35.1035,269.4156,23,23,900); // coordinates sf car 89
AddStaticVehicleEx(516,-2267.0293,93.4925,35.1048,87.9376,61,61,900); // coordinates sf car 90
AddStaticVehicleEx(445,-2267.7122,73.5734,35.0933,268.8001,95,95,900); // coordinates sf car 91
AddStaticVehicleEx(422,-2267.6711,81.4842,35.1043,89.5383,6,1,900); // coordinates sf car 92
AddStaticVehicleEx(500,-2528.6084,322.2519,35.0480,71.5196,123,123,900); // coordinates sf car 93
AddStaticVehicleEx(540,-2480.3586,393.2577,27.8713,141.5286,70,70,900); // coordinates sf car 97
AddStaticVehicleEx(400,-2502.8391,361.6438,27.6988,62.7405,1,84,900); // coordinates sf car 100
AddStaticVehicleEx(540,-1976.1873,172.9978,27.5495,90.5623,-1,-1,900); // car sf station 1
AddStaticVehicleEx(516,-1977.7764,104.4352,27.5471,179.2671,-1,-1,900); // sf station car 2
AddStaticVehicleEx(484,-2324.4443,2309.3308,0.1223,179.5006,3,1,900); // bay marquis 2
AddStaticVehicleEx(493,-2263.8489,2424.3728,-0.0493,224.9215,3,4,900); // bay jetmax 2
AddStaticVehicleEx(484,2353.7861,513.6755,0.0039,180.2893,26,26,900); // coords lv civilian boat 1
AddStaticVehicleEx(405,-1973.9336,104.6209,27.5484,359.1436,-1,-1,900); // new civ car at SF station
//================================== CIVIVILIAN LOS SANTOS () =====================================================
AddStaticVehicleEx(579,-2147.2854,-2444.0564,30.4589,142.1428,4,4,900); // coordinates ap car 1
AddStaticVehicleEx(426,-2194.1504,-2266.2083,30.4587,323.2855,33,33,900); // coordinates ap car 2
AddStaticVehicleEx(500,-1574.1155,-2730.6990,48.3767,324.8596,65,65,900); // coordinates Wetstone car 1
AddStaticVehicleEx(445,-33.8084,-2495.2117,36.4826,213.9834,120,120,900); // coordinates Wetstone car 2
AddStaticVehicleEx(540,-13.1311,-2509.3342,36.4892,302.0724,106,106,900); // coordinates Wetstone car 3
AddStaticVehicleEx(400,347.0717,-1809.3831,4.3550,359.4493,53,119,900); // coordinates ls car 2
AddStaticVehicleEx(516,318.2305,-1788.8450,4.5130,359.5477,14,14,900); // coordinates ls car 3
AddStaticVehicleEx(579,1098.7715,-1757.8700,13.1857,270.1800,58,58,900); // coordinates ls car 4
AddStaticVehicleEx(422,1062.2496,-1740.2523,13.3043,90.0426,1,66,900); // coordinates ls car 5
AddStaticVehicleEx(500,1276.5710,-2039.8370,58.8592,88.8351,47,47,900); // coordinates ls car 11
AddStaticVehicleEx(516,2107.2129,-1782.8564,13.2219,180.2702,44,44,900); // coordinates ls car 14
AddStaticVehicleEx(445,2052.5613,-1904.3530,13.3806,359.8077,13,13,900); // coordinates ls car 15
AddStaticVehicleEx(516,2065.5864,-1904.1827,13.3808,179.5130,0,0,900); // coordinates ls car 16
AddStaticVehicleEx(579,1981.0396,-1985.6455,13.3811,359.7287,41,41,900); // coordinates ls car 17
AddStaticVehicleEx(400,1938.8411,-2089.7278,13.3952,269.5376,37,37,900); // coordinates ls car 18
AddStaticVehicleEx(542,1948.0994,-2117.3323,13.3793,89.6686,110,84,900); // coordinates ls car 19
AddStaticVehicleEx(421,1948.1316,-2133.3232,13.3790,269.9624,94,107,900); // coordinates ls car 21
AddStaticVehicleEx(402,2498.8376,-1953.0719,13.2625,359.4802,3,3,900); // coordinates ls car 23
AddStaticVehicleEx(445,2228.5962,-1156.1261,25.6535,270.1344,36,36,900); // coordinates ls car 41
AddStaticVehicleEx(587,2205.8286,-1169.0516,25.5635,270.1022,37,37,900); // coordinates ls car 42
AddStaticVehicleEx(426,1589.3152,-1054.5728,23.7405,307.6581,6,6,900); // coordinates ls car 48
AddStaticVehicleEx(542,1682.7289,-1009.6479,23.7327,197.8206,41,41,900); // coordinates ls car 49
AddStaticVehicleEx(400,1676.2794,-1120.4291,23.7402,89.3384,36,36,900); // coordinates ls car 52
AddStaticVehicleEx(405,1558.3657,-1011.5644,23.7403,359.9309,95,15,900); // coordinates ls car 53
AddStaticVehicleEx(545,1542.9214,-2361.3252,13.4296,178.9220,72,72,900); // coordinates ls car 55
AddStaticVehicleEx(579,1512.0779,-2361.2786,13.4257,0.1051,83,30,900); // coordinates ls car 56
AddStaticVehicleEx(445,1560.5990,-2322.0620,13.4238,269.7948,13,13,900); // coordinates ls car 57
AddStaticVehicleEx(402,1536.3562,-2211.7385,13.4296,179.6453,72,72,900); // coordinates ls car 58
AddStaticVehicleEx(422,1365.3116,-2340.9751,13.4219,270.3706,117,117,900); // coordinates ls car 64
AddStaticVehicleEx(421,1411.2684,-2330.6216,13.4219,359.6839,34,34,900); // coordinates ls car 65
AddStaticVehicleEx(402,1438.0846,-2347.6951,13.5342,359.4521,81,81,900); // coordinates ls car 67
AddStaticVehicleEx(579,1777.1798,-1897.5682,13.2622,269.7465,83,83,900); // coordinates ls car 72
AddStaticVehicleEx(400,1777.0824,-1926.3643,13.2621,89.7035,3,3,900); // coordinates ls car 73
AddStaticVehicleEx(542,1803.9462,-1905.9359,13.2744,269.6223,94,94,900); // coordinates ls car 74
AddStaticVehicleEx(516,1777.1522,-1913.7616,13.2616,269.3384,93,93,900); // coordinates ls car 75
AddStaticVehicleEx(545,2255.0566,-82.8407,26.4033,179.6833,75,75,900); // coordinates rc car 1
AddStaticVehicleEx(587,2264.7068,-82.6318,26.4050,359.6251,119,89,900); // coordinates rc car 2
//================================== CIVILIAN LAS VENTURAS ()=======================================
AddStaticVehicleEx(426,2039.5594,1008.8506,10.6014,179.3674,121,8,900); // LV
AddStaticVehicleEx(445,2171.9443,1120.1710,12.4911,334.1247,25,6,900); // LV2
AddStaticVehicleEx(422,2231.1543,1285.1287,10.6022,2.0004,45,53,900); // LV4
AddStaticVehicleEx(405,2075.3672,1401.1246,10.6070,0.5514,56,43,900); // LV5
AddStaticVehicleEx(405,2186.6221,1978.8994,10.7460,270.4840,84,83,900); // LV8
AddStaticVehicleEx(560,2170.9343,1996.7140,10.7473,90.5413,109,83,900); // LV9
AddStaticVehicleEx(560,2155.1074,2199.6824,10.6036,358.5417,112,83,900); // LV10
AddStaticVehicleEx(579,2119.5181,2145.6025,10.6038,181.1909,116,83,900); // LV11
AddStaticVehicleEx(587,2103.4697,2059.6091,10.7545,272.3735,117,63,900); // LV12
AddStaticVehicleEx(405,2103.8337,2079.2244,10.7501,270.3510,100,83,900); // LV13
AddStaticVehicleEx(426,2119.7805,1908.6733,10.6033,179.7574,80,83,900); // LV14
AddStaticVehicleEx(422,2133.6484,1016.1426,10.7564,270.5898,65,83,900); // LV18
AddStaticVehicleEx(445,2141.5623,1029.0302,10.7509,269.5033,15,83,900); // LV19
AddStaticVehicleEx(500,2171.8525,1025.7233,10.7547,269.0200,35,83,900); // LV20
AddStaticVehicleEx(421,2119.6716,956.3652,10.7415,271.9142,36,83,900); // LV20
AddStaticVehicleEx(521,1708.1653,1316.5793,10.7538,359.7975,8,83,900); // LV22
AddStaticVehicleEx(560,1641.4196,1305.1167,10.7605,90.5276,30,83,900); // LV23
AddStaticVehicleEx(421,2119.9309,1408.4811,10.7553,180.6194,91,83,900); // LV24
AddStaticVehicleEx(422,2142.4136,1398.3492,10.7371,179.4267,93,83,900); // LV25
AddStaticVehicleEx(413,2103.9993,1408.4126,10.7554,180.4629,115,83,900); // LV26
AddStaticVehicleEx(421,2392.4727,1659.1686,10.7530,1.0939,83,1,900); // LV27
AddStaticVehicleEx(445,2403.9490,1677.5032,10.7463,3.2497,83,97,900); // LV28
AddStaticVehicleEx(545,2511.5398,1664.8965,10.7789,271.1238,66,83,900); // LV29
AddStaticVehicleEx(587,2482.4639,1667.8524,10.7508,1.0645,0,83,900); // LV29
AddStaticVehicleEx(422,1370.0662,2012.2827,11.3014,91.3040,18,83,900); // LV42
//================================== CIVILIAN AIRPLANES () =====================================================
AddStaticVehicleEx(592,1543.0054,1447.4774,10.5792,91.4168,105,105,900); // coordiantes lv andromada
AddStaticVehicleEx(519,1330.9561,1570.5941,10.5645,269.5490,0,0,900); // coordiantes lv shamal
AddStaticVehicleEx(519,1304.0190,1323.4604,10.5634,270.9349,0,0,900); // coordiantes lv shamal
AddStaticVehicleEx(487,1655.3408,1546.8961,10.7949,357.8828,1,3,900); // coordiantes lv maverick
AddStaticVehicleEx(487,1644.3485,1551.6125,10.8145,1.1072,1,94,900); // coordiantes lv maverick 2
AddStaticVehicleEx(487,-1186.7941,26.0760,14.1593,44.3606,1,16,900); // coordiantes sf maverick 1
AddStaticVehicleEx(487,-1224.2103,-10.1597,14.1752,44.5811,1,13,900); // coordiantes sf maverick 2
AddStaticVehicleEx(592,-1676.0343,-183.7101,14.1590,314.4185,1,1,900); // coordiantes sf andromada
AddStaticVehicleEx(519,-1482.9637,-190.5813,14.1605,357.1305,0,0,900); // coordiantes sf shamal 1
AddStaticVehicleEx(519,-1269.7894,-367.1831,14.1626,275.5912,0,0,900); // coordiantes sf shamal 2
AddStaticVehicleEx(487,365.4004,2535.9543,16.6762,179.1733,1,65,900); // coordiantes bc maverick 1
AddStaticVehicleEx(519,324.8541,2539.8284,17.4829,178.4124,0,0,900); // coordiantes bc shamal 1
AddStaticVehicleEx(519,291.4729,2543.2192,17.5267,179.0167,0,0,900); // coordiantes bc shamal 2
AddStaticVehicleEx(592,389.5996,2508.7749,16.5032,90.0149,46,46,900); // coordiantes bc andromada
AddStaticVehicleEx(592,1937.2228,-2423.1492,13.5549,183.7745,0,0,900); // coordiantes ls andromada
AddStaticVehicleEx(487,1871.1759,-2287.5347,13.5713,270.1613,106,1,900); // coordiantes ls maverick 1
AddStaticVehicleEx(487,1872.0219,-2275.4741,13.5595,269.9647,121,1,900); // coordiantes ls maverick 2
AddStaticVehicleEx(519,1889.3867,-2626.0923,13.3287,0.7120,0,0,900); // coordiantes ls shamal 1
AddStaticVehicleEx(519,1822.5477,-2623.7217,13.3287,0.3132,0,0,900); // coordiantes ls shamal 2
AddStaticVehicleEx(521,2074.9250,1492.3463,10.2394,358.4595,4,3,900); // LV-BIKE-1
AddStaticVehicleEx(521,1152.8284,1069.4771,10.5664,58.3791,6,8,900); // LV-BIKE-2
AddStaticVehicleEx(521,1079.0939,-1764.3790,12.9352,270.8850,34,4,900); // LS-BIKE-1
AddStaticVehicleEx(468,688.2579,-1277.9788,13.1289,148.5994,23,45,900); // LS-BIKE-2
AddStaticVehicleEx(468,-368.9040,-1420.8455,25.2936,1.1146,13,63,900); // SANCHEZ-1
AddStaticVehicleEx(521,-2315.0708,-122.5438,34.8826,359.5819,43,64,900); // SF-BIKE-1
AddStaticVehicleEx(521,-2539.0366,-703.2086,138.8870,1.0977,15,34,900); // SF-BIKE-2
AddStaticVehicleEx(468,-2402.8650,-2208.0808,32.8579,345.9299,101,1,900); // SANCHEZ-2
AddStaticVehicleEx(468,-2650.7646,-2101.1133,75.8902,211.5405,19,23,900); // SANCHEZ-3
AddStaticVehicleEx(468,-569.3117,-551.4465,25.0919,286.8043,17,2,900); // SANCHEZ-4
AddStaticVehicleEx(468,757.2122,885.9210,-1.6435,349.8002,24,83,900); // SANCHEZ-5
AddStaticVehicleEx(468,-1451.8807,2657.5615,55.8359,181.6277,37,2,900); // SANCHEZ-6
//======================VEHICLES TO LINK TO INTERIOR======================
LinkVehicleToInterior(137,10);
LinkVehicleToInterior(138,10);
LinkVehicleToInterior(139,10);
LinkVehicleToInterior(140,10);
LinkVehicleToInterior(141,10);
LinkVehicleToInterior(142,10);
LinkVehicleToInterior(143,15);
LinkVehicleToInterior(144,15);
LinkVehicleToInterior(145,15);
LinkVehicleToInterior(146,15);
LinkVehicleToInterior(147,15);
LinkVehicleToInterior(148,15);
LinkVehicleToInterior(149,15);
LinkVehicleToInterior(150,15);
LinkVehicleToInterior(151,15);
LinkVehicleToInterior(152,15);
LinkVehicleToInterior(153,15);
LinkVehicleToInterior(154,15);
LinkVehicleToInterior(155,14);
LinkVehicleToInterior(156,14);
LinkVehicleToInterior(157,14);
LinkVehicleToInterior(158,14);
LinkVehicleToInterior(159,14);
LinkVehicleToInterior(160,14);
LinkVehicleToInterior(328,7);
LinkVehicleToInterior(329,7);
LinkVehicleToInterior(330,7);
LinkVehicleToInterior(331,7);
LinkVehicleToInterior(332,7);
//======================END VEHICLES========================================================================
//=================================================== VEHICLE PARTS =======================================================
AddVehicleComponent(2,1025); //
AddVehicleComponent(3,1025); //
AddVehicleComponent(4,1025); //
AddVehicleComponent(5,1025); //
AddVehicleComponent(6,1025); //
AddVehicleComponent(7,1025); //
AddVehicleComponent(8,1025); //
AddVehicleComponent(9,1025); //
AddVehicleComponent(10,1025); //
AddVehicleComponent(10,1010); // NOS
AddVehicleComponent(11,1025); //
AddVehicleComponent(12,1025); //
AddVehicleComponent(13,1025); //
AddVehicleComponent(14,1025); //
AddVehicleComponent(15,1025); //
AddVehicleComponent(17,1025); //
AddVehicleComponent(18,1025); //
AddVehicleComponent(19,1025); //
AddVehicleComponent(20,1025); //
AddVehicleComponent(21,1025); //
AddVehicleComponent(22,1025); //
AddVehicleComponent(23,1025); //
AddVehicleComponent(23,1010); // NOS
AddVehicleComponent(24,1025); //
AddVehicleComponent(25,1025); //
AddVehicleComponent(25,1010); // NOS
AddVehicleComponent(26,1025); //
AddVehicleComponent(26,1010); // NOS
AddVehicleComponent(31,1025); //
AddVehicleComponent(31,1010); // NOS
AddVehicleComponent(27,1025); //
AddVehicleComponent(28,1025); //
AddVehicleComponent(29,1025); //
AddVehicleComponent(30,1025); //
AddVehicleComponent(31,1025); //
AddVehicleComponent(31,1010); // NOS
AddVehicleComponent(34,1025); //
AddVehicleComponent(34,1010); // NOS
AddVehicleComponent(35,1025); //
AddVehicleComponent(36,1025); //
AddVehicleComponent(37,1025); //
AddVehicleComponent(38,1025); //
AddVehicleComponent(38,1010); // NOS
AddVehicleComponent(39,1025); //
AddVehicleComponent(40,1025); //
AddVehicleComponent(41,1025); //
AddVehicleComponent(41,1010); // NOS
AddVehicleComponent(42,1025); //
AddVehicleComponent(43,1025); //
AddVehicleComponent(44,1025); //
AddVehicleComponent(44,1010); // NOS
AddVehicleComponent(45,1025); //
AddVehicleComponent(46,1025); //
AddVehicleComponent(46,1010); // NOS
AddVehicleComponent(47,1025); //
AddVehicleComponent(47,1010); // NOS
AddVehicleComponent(48,1025); //
AddVehicleComponent(48,1010); // NOS
AddVehicleComponent(49,1025); //
AddVehicleComponent(49,1010); // NOS
AddVehicleComponent(50,1025); //
AddVehicleComponent(50,1010); // NOS
AddVehicleComponent(51,1025); //
AddVehicleComponent(51,1010); // NOS
AddVehicleComponent(52,1025); //
AddVehicleComponent(54,1025); //
AddVehicleComponent(54,1010); // NOS
AddVehicleComponent(55,1025); //
AddVehicleComponent(55,1010); // NOS
AddVehicleComponent(56,1025); //
AddVehicleComponent(56,1010); // NOS
AddVehicleComponent(57,1025); //
AddVehicleComponent(58,1025); //
AddVehicleComponent(58,1010); // NOS
AddVehicleComponent(59,1025); //
AddVehicleComponent(59,1010); // NOS
AddVehicleComponent(60,1025); //
AddVehicleComponent(60,1010); // NOS
AddVehicleComponent(61,1025); //
AddVehicleComponent(61,1010); // NOS
AddVehicleComponent(63,1025); //
AddVehicleComponent(63,1010); // NOS
AddVehicleComponent(64,1025); //
AddVehicleComponent(64,1010); // NOS
AddVehicleComponent(124,1010); //
AddVehicleComponent(125,1010); //
AddVehicleComponent(126,1010); //
AddVehicleComponent(127,1010); //
AddVehicleComponent(128,1010); //
AddVehicleComponent(129,1010); //
AddVehicleComponent(195,1010); //
AddVehicleComponent(196,1010); //
AddVehicleComponent(197,1010); //
AddVehicleComponent(198,1010); //
AddVehicleComponent(199,1010); //
AddVehicleComponent(208,1010); //
AddVehicleComponent(209,1010); //
AddVehicleComponent(224,1010); // NOS
AddVehicleComponent(225,1025); //
//AddVehicleComponent(226,1025); //
AddVehicleComponent(226,1010); // NOS
AddVehicleComponent(227,1010); // NOS
AddVehicleComponent(228,1010); // NOS
AddVehicleComponent(229,1010); // NOS
AddVehicleComponent(230,1010); // NOS
AddVehicleComponent(231,1010); // NOS
AddVehicleComponent(232,1010); // NOS
AddVehicleComponent(233,1010); // NOS
AddVehicleComponent(234,1010); // NOS
AddVehicleComponent(235,1010); // NOS
AddVehicleComponent(236,1010); // NOS
AddVehicleComponent(237,1010); // NOS
AddVehicleComponent(238,1010); // NOS
AddVehicleComponent(300,1010); // NOS
AddVehicleComponent(301,1010); // NOS
AddVehicleComponent(302,1010); // NOS
AddVehicleComponent(303,1010); // NOS
AddVehicleComponent(304,1010); // NOS
AddVehicleComponent(305,1010); // NOS
//PIMP
AddVehicleComponent(288,1010); // NOS
//AddVehicleComponent(288,1074); // RIMS
//AddVehicleComponent(288,1087); // HYDR
//AddVehicleComponent(288,1026); // SKIRT
//AddVehicleComponent(288,1027); // SKIRT
//AddVehicleComponent(288,1028); // EXHAUST
//AddVehicleComponent(288,1032); // RSCOOP
//AddVehicleComponent(288,1138); // SPOIL
//AddVehicleComponent(288,1141); // RBUMPER
//AddVehicleComponent(288,1169); // FBUMPER
//ChangeVehiclePaintjob(288, 1);
//GAMER
AddVehicleComponent(289,1010); // NOS
AddVehicleComponent(289,1074); // RIMS
AddVehicleComponent(289,1005); // SCOOP
//BLADE
AddVehicleComponent(290,1010); // NOS
AddVehicleComponent(290,1025); // RIMS
AddVehicleComponent(290,1087); // HYDR
//BOUNTY
AddVehicleComponent(314,1010); // NOS
//JOE
AddVehicleComponent(315,1010); // NOS
//CHRIS
AddVehicleComponent(333,1010); // NOS
AddVehicleComponent(390,1010); // NOS
AddVehicleComponent(390,1087); // HYDR
AddVehicleComponent(390,1138); // SPOIL
AddVehicleComponent(390,1141); // RBUMPER
AddVehicleComponent(390,1169); // FBUMPER
// ====================================================================================================================
//LSPD
SetVehicleNumberPlate(2,"P--002--");
SetVehicleToRespawn(2);
SetVehicleNumberPlate(3,"P--003--");
SetVehicleToRespawn(3);
SetVehicleNumberPlate(4,"P--004--");
SetVehicleToRespawn(4);
SetVehicleNumberPlate(5,"PA-005--");
SetVehicleToRespawn(5);
SetVehicleNumberPlate(6,"PA-006--");
SetVehicleToRespawn(6);
SetVehicleNumberPlate(7,"P--007--");
SetVehicleToRespawn(7);
SetVehicleNumberPlate(8,"P--008--");
SetVehicleToRespawn(8);
SetVehicleNumberPlate(9,"PA-009--");
SetVehicleToRespawn(9);
SetVehicleNumberPlate(10,"PT-010--");
SetVehicleToRespawn(10);
SetVehicleNumberPlate(11,"P--011--");
SetVehicleToRespawn(11);
SetVehicleNumberPlate(12,"P--012--");
SetVehicleToRespawn(12);
SetVehicleNumberPlate(13,"P--013--");
SetVehicleToRespawn(13);
SetVehicleNumberPlate(14,"P--014--");
SetVehicleToRespawn(14);
SetVehicleNumberPlate(15,"P--015--");
SetVehicleToRespawn(15);
SetVehicleNumberPlate(215,"P--215--");
SetVehicleToRespawn(215);
SetVehicleNumberPlate(216,"P--216--");
SetVehicleToRespawn(216);
SetVehicleNumberPlate(217,"P--217--");
SetVehicleToRespawn(217);
//SFPD
SetVehicleNumberPlate(17,"P--017--");
SetVehicleToRespawn(17);
SetVehicleNumberPlate(18,"P--018--");
SetVehicleToRespawn(18);
SetVehicleNumberPlate(19,"PA-019--");
SetVehicleToRespawn(19);
SetVehicleNumberPlate(20,"P--020--");
SetVehicleToRespawn(20);
SetVehicleNumberPlate(21,"P--021--");
SetVehicleToRespawn(21);
SetVehicleNumberPlate(22,"P--022--");
SetVehicleToRespawn(22);
SetVehicleNumberPlate(23,"P--023--");
SetVehicleToRespawn(23);
SetVehicleNumberPlate(24,"P--024--");
SetVehicleToRespawn(24);
SetVehicleNumberPlate(25,"PA-025--");
SetVehicleToRespawn(25);
SetVehicleNumberPlate(26,"PA-026--");
SetVehicleToRespawn(26);
SetVehicleNumberPlate(27,"P--027--");
SetVehicleToRespawn(27);
SetVehicleNumberPlate(28,"P--028--");
SetVehicleToRespawn(28);
SetVehicleNumberPlate(29,"P--029--");
SetVehicleToRespawn(29);
SetVehicleNumberPlate(30,"P--030--");
SetVehicleToRespawn(30);
SetVehicleNumberPlate(31,"P--031--");
SetVehicleToRespawn(31);
SetVehicleNumberPlate(195,"PA-195--");
SetVehicleToRespawn(195);
SetVehicleNumberPlate(196,"P--196--");
SetVehicleToRespawn(196);
SetVehicleNumberPlate(197,"P--197--");
SetVehicleToRespawn(197);
SetVehicleNumberPlate(198,"P--198--");
SetVehicleToRespawn(198);
SetVehicleNumberPlate(199,"P--199--");
SetVehicleToRespawn(199);
SetVehicleNumberPlate(230,"PT-230--");
SetVehicleToRespawn(230);
//LVPD
SetVehicleNumberPlate(34,"PA-034--");
SetVehicleToRespawn(34);
SetVehicleNumberPlate(35,"P--035--");
SetVehicleToRespawn(35);
SetVehicleNumberPlate(36,"P--036--");
SetVehicleToRespawn(36);
SetVehicleNumberPlate(37,"P--037--");
SetVehicleToRespawn(37);
SetVehicleNumberPlate(38,"P--038--");
SetVehicleToRespawn(38);
SetVehicleNumberPlate(39,"P--039--");
SetVehicleToRespawn(39);
SetVehicleNumberPlate(40,"P--040--");
SetVehicleToRespawn(40);
SetVehicleNumberPlate(41,"PA-041--");
SetVehicleToRespawn(41);
SetVehicleNumberPlate(42,"P--042--");
SetVehicleToRespawn(42);
SetVehicleNumberPlate(43,"P--043--");
SetVehicleToRespawn(43);
SetVehicleNumberPlate(44,"P--044--");
SetVehicleToRespawn(44);
SetVehicleNumberPlate(45,"P--045--");
SetVehicleToRespawn(45);
SetVehicleNumberPlate(46,"P--046--");
SetVehicleToRespawn(46);
SetVehicleNumberPlate(47,"P--047--");
SetVehicleToRespawn(47);
SetVehicleNumberPlate(48,"P--048--");
SetVehicleToRespawn(48);
SetVehicleNumberPlate(208,"P--208--");
SetVehicleToRespawn(208);
SetVehicleNumberPlate(209,"P--209--");
SetVehicleToRespawn(209);
SetVehicleNumberPlate(236,"PT-236--");
SetVehicleToRespawn(236);
//SASP
SetVehicleNumberPlate(49,"P--049--");
SetVehicleToRespawn(49);
SetVehicleNumberPlate(50,"P--050--");
SetVehicleToRespawn(50);
SetVehicleNumberPlate(51,"P--051--");
SetVehicleToRespawn(51);
SetVehicleNumberPlate(52,"P--052--");
SetVehicleToRespawn(52);
SetVehicleNumberPlate(54,"P--054--");
SetVehicleToRespawn(54);
SetVehicleNumberPlate(55,"P--055--");
SetVehicleToRespawn(55);
SetVehicleNumberPlate(56,"P--056--");
SetVehicleToRespawn(56);
SetVehicleNumberPlate(57,"P--057--");
SetVehicleToRespawn(57);
SetVehicleNumberPlate(58,"P--058--");
SetVehicleToRespawn(58);
SetVehicleNumberPlate(59,"P--059--");
SetVehicleToRespawn(59);
SetVehicleNumberPlate(60,"P--060--");
SetVehicleToRespawn(60);
SetVehicleNumberPlate(61,"P--061--");
SetVehicleToRespawn(61);
SetVehicleNumberPlate(63,"P--063--");
SetVehicleToRespawn(63);
SetVehicleNumberPlate(64,"P--064--");
SetVehicleToRespawn(64);
SetVehicleNumberPlate(224,"P--224--");
SetVehicleToRespawn(224);
SetVehicleNumberPlate(227,"P--227--");
SetVehicleToRespawn(227);
SetVehicleNumberPlate(228,"PT-228--");
SetVehicleToRespawn(228);
SetVehicleNumberPlate(229,"PT-229--");
SetVehicleToRespawn(229);
SetVehicleNumberPlate(231,"PT-231--");
SetVehicleToRespawn(231);
SetVehicleNumberPlate(232,"PT-232--");
SetVehicleToRespawn(232);
SetVehicleNumberPlate(233,"PT-233--");
SetVehicleToRespawn(233);
SetVehicleNumberPlate(234,"P--234--");
SetVehicleToRespawn(234);
SetVehicleNumberPlate(235,"P--235--");
SetVehicleToRespawn(235);
SetVehicleNumberPlate(237,"PT-237--");
SetVehicleToRespawn(237);
SetVehicleNumberPlate(238,"PT-238--");
SetVehicleToRespawn(238);
SetVehicleNumberPlate(239,"PT-239--");
SetVehicleToRespawn(239);
SetVehicleNumberPlate(300,"P--300--");
SetVehicleToRespawn(300);
SetVehicleNumberPlate(301,"P--301--");
SetVehicleToRespawn(301);
SetVehicleNumberPlate(302,"P--302--");
SetVehicleToRespawn(302);
SetVehicleNumberPlate(303,"P--303--");
SetVehicleToRespawn(303);
SetVehicleNumberPlate(304,"P--304--");
SetVehicleToRespawn(304);
SetVehicleNumberPlate(305,"P--305--");
SetVehicleToRespawn(305);
//CAINE CARS
SetVehicleNumberPlate(225,"--ERP8--");
SetVehicleToRespawn(225);
SetVehicleNumberPlate(226,"--ERP9--");
SetVehicleToRespawn(226);
//CEEJAY CAR
SetVehicleNumberPlate(279,"BNV--279");
SetVehicleToRespawn(279);
//GANGSTA
SetVehicleNumberPlate(280,"HKL--280");
SetVehicleToRespawn(280);
//UTILITY VEHICLES
SetVehicleNumberPlate(255,"U--255--");
SetVehicleToRespawn(255);
SetVehicleNumberPlate(256,"U--256--");
SetVehicleToRespawn(256);
SetVehicleNumberPlate(257,"U--257--");
SetVehicleToRespawn(257);
SetVehicleNumberPlate(258,"U--258--");
SetVehicleToRespawn(258);
SetVehicleNumberPlate(259,"U--259--");
SetVehicleToRespawn(259);
SetVehicleNumberPlate(260,"U--260--");
SetVehicleToRespawn(260);
//FDSA TRUCKS
SetVehicleNumberPlate(118,"F--118--");
SetVehicleToRespawn(118);
SetVehicleNumberPlate(119,"F--119--");
SetVehicleToRespawn(119);
SetVehicleNumberPlate(120,"A--120--");
SetVehicleToRespawn(120);
SetVehicleNumberPlate(121,"F--121--");
SetVehicleToRespawn(121);
SetVehicleNumberPlate(122,"A--122--");
SetVehicleToRespawn(122);
SetVehicleNumberPlate(123,"F--123--");
SetVehicleToRespawn(123);
SetVehicleNumberPlate(220,"F--220--");
SetVehicleToRespawn(220);
SetVehicleNumberPlate(221,"F--221--");
SetVehicleToRespawn(221);
SetVehicleNumberPlate(222,"A--222--");
SetVehicleToRespawn(222);
//ADMIN
SetVehicleNumberPlate(124,"--ERP1--");
SetVehicleToRespawn(124);
SetVehicleNumberPlate(125,"--ERP2--");
SetVehicleToRespawn(125);
SetVehicleNumberPlate(126,"--ERP3--");
SetVehicleToRespawn(126);
SetVehicleNumberPlate(127,"--ERP4--");
SetVehicleToRespawn(127);
SetVehicleNumberPlate(128,"--ERP5--");
SetVehicleToRespawn(128);
SetVehicleNumberPlate(129,"--ERP6--");
SetVehicleToRespawn(129);
//GOVERNMENT
SetVehicleNumberPlate(131,"G--131--");
SetVehicleToRespawn(131);
SetVehicleNumberPlate(132,"G--132--");
SetVehicleToRespawn(132);
SetVehicleNumberPlate(133,"G--133--");
SetVehicleToRespawn(133);
SetVehicleNumberPlate(134,"G--134--");
SetVehicleToRespawn(134);
SetVehicleNumberPlate(135,"G--135--");
SetVehicleToRespawn(135);
SetVehicleNumberPlate(136,"G--136--");
SetVehicleToRespawn(136);
//EMS
SetVehicleNumberPlate(109,"A--109--");
SetVehicleToRespawn(109);
SetVehicleNumberPlate(110,"A--110--");
SetVehicleToRespawn(110);
SetVehicleNumberPlate(111,"A--111--");
SetVehicleToRespawn(111);
SetVehicleNumberPlate(112,"A--112--");
SetVehicleToRespawn(112);
SetVehicleNumberPlate(113,"A--113--");
SetVehicleToRespawn(113);
SetVehicleNumberPlate(114,"A--114--");
SetVehicleToRespawn(114);
SetVehicleNumberPlate(115,"A--115--");
SetVehicleToRespawn(115);
SetVehicleNumberPlate(116,"A--116--");
SetVehicleToRespawn(116);
SetVehicleNumberPlate(117,"A--117--");
SetVehicleToRespawn(117);
//DMV
SetVehicleNumberPlate(161,"D--161--");
SetVehicleToRespawn(161);
SetVehicleNumberPlate(162,"D--162--");
SetVehicleToRespawn(162);
SetVehicleNumberPlate(163,"D--163--");
SetVehicleToRespawn(163);
SetVehicleNumberPlate(164,"D--164--");
SetVehicleToRespawn(164);
SetVehicleNumberPlate(165,"D--165--");
SetVehicleToRespawn(165);
SetVehicleNumberPlate(166,"D--166--");
SetVehicleToRespawn(166);
SetVehicleNumberPlate(167,"D--167--");
SetVehicleToRespawn(167);
SetVehicleNumberPlate(270,"D--270--");
SetVehicleToRespawn(270);
SetVehicleNumberPlate(271,"D--271--");
SetVehicleToRespawn(271);
SetVehicleNumberPlate(272,"D--272--");
SetVehicleToRespawn(272);
SetVehicleNumberPlate(273,"D--273--");
SetVehicleToRespawn(273);
//TAXIS
SetVehicleNumberPlate(240,"T--240--");
SetVehicleToRespawn(240);
SetVehicleNumberPlate(241,"T--241--");
SetVehicleToRespawn(241);
SetVehicleNumberPlate(242,"T--242--");
SetVehicleToRespawn(242);
SetVehicleNumberPlate(243,"T--243--");
SetVehicleToRespawn(243);
SetVehicleNumberPlate(244,"T--244--");
SetVehicleToRespawn(244);
//DCP
SetVehicleNumberPlate(274,"G--274--");
SetVehicleToRespawn(274);
SetVehicleNumberPlate(275,"G--275--");
SetVehicleToRespawn(275);
SetVehicleNumberPlate(276,"G--276--");
SetVehicleToRespawn(276);
SetVehicleNumberPlate(277,"G--277--");
SetVehicleToRespawn(277);
SetVehicleNumberPlate(278,"G--278--");
SetVehicleToRespawn(278);
//SATA
SetVehicleNumberPlate(245,"B--245--");
SetVehicleToRespawn(245);
SetVehicleNumberPlate(246,"B--246--");
SetVehicleToRespawn(246);
SetVehicleNumberPlate(247,"B--247--");
SetVehicleToRespawn(247);
SetVehicleNumberPlate(248,"B--248--");
SetVehicleToRespawn(248);
//BATTLEFIELD
SetVehicleNumberPlate(137,"-PURPLE-");
SetVehicleToRespawn(137);
SetVehicleNumberPlate(140,"-TANNIN-");
SetVehicleToRespawn(140);
//ARMY
SetVehicleNumberPlate(65,"X--065--");
SetVehicleToRespawn(65);
SetVehicleNumberPlate(66,"X--066--");
SetVehicleToRespawn(66);
SetVehicleNumberPlate(67,"X--067--");
SetVehicleToRespawn(67);
SetVehicleNumberPlate(68,"X--068--");
SetVehicleToRespawn(68);
SetVehicleNumberPlate(69,"X--069--");
SetVehicleToRespawn(69);
SetVehicleNumberPlate(70,"X--070--");
SetVehicleToRespawn(70);
SetVehicleNumberPlate(71,"X--071--");
SetVehicleToRespawn(71);
SetVehicleNumberPlate(72,"X--072--");
SetVehicleToRespawn(72);
SetVehicleNumberPlate(73,"X--073--");
SetVehicleToRespawn(73);
SetVehicleNumberPlate(78,"X--078--");
SetVehicleToRespawn(78);
SetVehicleNumberPlate(93,"X--093--");
SetVehicleToRespawn(93);
SetVehicleNumberPlate(94,"X--094--");
SetVehicleToRespawn(94);
SetVehicleNumberPlate(95,"X--095--");
SetVehicleToRespawn(95);
SetVehicleNumberPlate(87,"MP-087--");
SetVehicleToRespawn(87);
SetVehicleNumberPlate(249,"MP-249--");
SetVehicleToRespawn(249);
SetVehicleNumberPlate(250,"MP-250--");
SetVehicleToRespawn(250);
SetVehicleNumberPlate(251,"MP-251--");
SetVehicleToRespawn(251);
SetVehicleNumberPlate(252,"MP-252--");
SetVehicleToRespawn(252);
//SANN
SetVehicleNumberPlate(281,"CYR--281");
SetVehicleToRespawn(281);
SetVehicleNumberPlate(282,"CGH--282");
SetVehicleToRespawn(282);
SetVehicleNumberPlate(283,"CDS--283");
SetVehicleToRespawn(283);
SetVehicleNumberPlate(284,"CUU--284");
SetVehicleToRespawn(284);
//POLICE121 HOUSE
SetVehicleNumberPlate(287,"HYR--287");
SetVehicleToRespawn(287);
//PIMP HOUSE
SetVehicleNumberPlate(288,"JHZ--288");
SetVehicleToRespawn(288);
//GAMER HOUSE
SetVehicleNumberPlate(289,"IKK--289");
SetVehicleToRespawn(289);
//BLADE HOUSE
SetVehicleNumberPlate(290,"RZB--290");
SetVehicleToRespawn(290);
//ATC VEHICLES
SetVehicleNumberPlate(291,"G--291--");
SetVehicleToRespawn(291);
SetVehicleNumberPlate(292,"G--292--");
SetVehicleToRespawn(292);
SetVehicleNumberPlate(293,"G--293--");
SetVehicleToRespawn(293);
SetVehicleNumberPlate(294,"G--294--");
SetVehicleToRespawn(294);
//WHEELMAN HOUSE
SetVehicleNumberPlate(306,"QMJ--306");
SetVehicleToRespawn(306);
//HASH_MYTH HOUSE
SetVehicleNumberPlate(307,"OAL--307");
SetVehicleToRespawn(307);
//JOSH_CALONE HOUSE
SetVehicleNumberPlate(308,"LXZ--308");
SetVehicleToRespawn(308);
//SQUEAK25 HOUSE
SetVehicleNumberPlate(309,"P--309--");
SetVehicleToRespawn(309);
SetVehicleNumberPlate(310,"SQU--310");
SetVehicleToRespawn(310);
//BARRY HOUSE
SetVehicleNumberPlate(311,"MKL--311");
SetVehicleToRespawn(311);
//PATRICK HOUSE
SetVehicleNumberPlate(312,"VTY--312");
SetVehicleToRespawn(312);
//HYPO HOUSE
SetVehicleNumberPlate(313,"SHZ--313");
SetVehicleToRespawn(313);
//BOUNTY HOUSE
SetVehicleNumberPlate(314,"PXQ--314");
SetVehicleToRespawn(314);
//JOE HOUSE
SetVehicleNumberPlate(315,"ZXP--315");
SetVehicleToRespawn(315);
//MIST HOUSE
SetVehicleNumberPlate(316,"KLM--316");
SetVehicleToRespawn(316);
//JOHNNYJB HOUSE
SetVehicleNumberPlate(317,"ODS--317");
SetVehicleToRespawn(317);
SetVehicleNumberPlate(399,"UXL--399");
SetVehicleToRespawn(399);
//RAZOR HOUSE
SetVehicleNumberPlate(318,"HFC--318");
SetVehicleToRespawn(318);
//VARMINT HOUSE
SetVehicleNumberPlate(319,"JBL--319");
SetVehicleToRespawn(319);
//SPENCER HOUSE
SetVehicleNumberPlate(320,"SNT--320");
SetVehicleToRespawn(320);
//MAX HOTEL
SetVehicleNumberPlate(323,"CJG--323");
SetVehicleToRespawn(323);
SetVehicleNumberPlate(324,"CUI--324");
SetVehicleToRespawn(324);
SetVehicleNumberPlate(325,"CPO--325");
SetVehicleToRespawn(325);
SetVehicleNumberPlate(326,"CMZ--326");
SetVehicleToRespawn(326);
SetVehicleNumberPlate(327,"CVB--327");
SetVehicleToRespawn(327);
SetVehicleNumberPlate(328,"CXS--328");
SetVehicleToRespawn(328);
//STED HOUSE
SetVehicleNumberPlate(334,"KSM--334");
SetVehicleToRespawn(334);
//DCP PRISON
SetVehicleNumberPlate(357,"G-357--");
SetVehicleToRespawn(357);
SetVehicleNumberPlate(358,"G-358--");
SetVehicleToRespawn(358);
SetVehicleNumberPlate(359,"G-359--");
SetVehicleToRespawn(359);
SetVehicleNumberPlate(360,"G-360--");
SetVehicleToRespawn(360);
SetVehicleNumberPlate(361,"G-361--");
SetVehicleToRespawn(361);
SetVehicleNumberPlate(362,"G-362--");
SetVehicleToRespawn(362);
SetVehicleNumberPlate(363,"G-363--");
SetVehicleToRespawn(363);
SetVehicleNumberPlate(364,"G-364--");
SetVehicleToRespawn(364);
//STONER FREIGHT
SetVehicleNumberPlate(366,"CHJ--366");
SetVehicleToRespawn(367);
SetVehicleNumberPlate(367,"CVB--367");
SetVehicleToRespawn(367);
SetVehicleNumberPlate(368,"CXD--368");
SetVehicleToRespawn(368);
SetVehicleNumberPlate(369,"TRB--369");
SetVehicleToRespawn(369);
SetVehicleNumberPlate(370,"TNG--370");
SetVehicleToRespawn(370);
SetVehicleNumberPlate(371,"TLL--371");
SetVehicleToRespawn(371);
//MAX HOUSE
SetVehicleNumberPlate(372,"OLG--372");
SetVehicleToRespawn(372);
//VAGORIDER HOUSE
SetVehicleNumberPlate(389,"LLC--389");
SetVehicleToRespawn(389);
//CHRISVILLE
SetVehicleNumberPlate(333,"--ERP7--");
SetVehicleToRespawn(333);
SetVehicleNumberPlate(390,"ERP--390");
SetVehicleToRespawn(390);
//SARA
SetVehicleNumberPlate(391,"CFG--391");
SetVehicleToRespawn(391);
SetVehicleNumberPlate(392,"CVB--392");
SetVehicleToRespawn(392);
SetVehicleNumberPlate(393,"CYU--393");
SetVehicleToRespawn(393);
SetVehicleNumberPlate(394,"CDD--394");
SetVehicleToRespawn(394);
SetVehicleNumberPlate(395,"CLO--395");
SetVehicleToRespawn(395);
SetVehicleNumberPlate(396,"CKM--396");
SetVehicleToRespawn(396);
SetVehicleNumberPlate(398,"NNB--398");
SetVehicleToRespawn(398);
SetVehicleNumberPlate(399,"JSR--069");
SetVehicleToRespawn(399);
SetVehicleNumberPlate(410,"CLZ--410");
SetVehicleToRespawn(410);
//SCHADUW HOUSE
SetVehicleNumberPlate(400,"ZDP--400");
SetVehicleToRespawn(400);
//KRISTJAN HOUSE
SetVehicleNumberPlate(401,"JVV--401");
SetVehicleToRespawn(401);
//SATA
SetVehicleNumberPlate(261,"B--261--");
SetVehicleToRespawn(261);
SetVehicleNumberPlate(262,"T--262--");
SetVehicleToRespawn(262);
SetVehicleNumberPlate(263,"T--263--");
SetVehicleToRespawn(263);
SetVehicleNumberPlate(264,"T--264--");
SetVehicleToRespawn(264);
SetVehicleNumberPlate(265,"T--265--");
SetVehicleToRespawn(265);
SetVehicleNumberPlate(266,"B--266--");
SetVehicleToRespawn(266);
SetVehicleNumberPlate(267,"T--267--");
SetVehicleToRespawn(267);
SetVehicleNumberPlate(268,"T--268--");
SetVehicleToRespawn(268);
SetVehicleNumberPlate(269,"T--269--");
SetVehicleToRespawn(269);
//BIRDY HOUSE
SetVehicleNumberPlate(411,"SVX--411");
SetVehicleToRespawn(411);
//KALEEM HOUSE
SetVehicleNumberPlate(412,"VAG--412");
SetVehicleToRespawn(412);
//ROME HOUSE
SetVehicleNumberPlate(413,"ZEL--413");
SetVehicleToRespawn(413);
//GOV CONTINUED
SetVehicleNumberPlate(426,"G--426--");
SetVehicleToRespawn(426);
SetVehicleNumberPlate(427,"G--427--");
SetVehicleToRespawn(427);
SetVehicleNumberPlate(428,"G--428--");
SetVehicleToRespawn(428);
SetVehicleNumberPlate(429,"G--429--");
SetVehicleToRespawn(429);
SetVehicleNumberPlate(430,"G--430--");
SetVehicleToRespawn(430);
SetVehicleNumberPlate(431,"G--431--");
SetVehicleToRespawn(431);
//VIP CARS
SetVehicleNumberPlate(339,"X-VIP1--");
SetVehicleToRespawn(339);
SetVehicleNumberPlate(440,"X-VIP2--");
SetVehicleToRespawn(440);
SetVehicleNumberPlate(440,"X-VIP3--");
SetVehicleToRespawn(441);
SetVehicleNumberPlate(442,"X-VIP4--");
SetVehicleToRespawn(442);
SetVehicleNumberPlate(446,"X-VIP5--");
SetVehicleToRespawn(446);
SetVehicleNumberPlate(447,"X-VIP6--");
SetVehicleToRespawn(447);
//=================================================== PICKUP ICONS =======================================================
pk_SFPDout = CreatePickup(1272,2,-1605.3739,710.9567,13.8672); // SFPD - Outside /17
pk_SFPDin = CreatePickup(1272,2,246.4433,110.7203,1003.2188); // SFPD - Inside /18
pk_BANKout = CreatePickup(1272,2,-2455.5457,503.8424,30.0781); // SF BANK - Outside /19
pk_BANKin = CreatePickup(1272,2,2305.0549,-16.1405,26.7422); // SF BANK - Inside /20 // NOT SET YET
pk_SFSTADIUMout = CreatePickup(1238,2,-2109.6648,-445.7484,38.7344); // SF STADIUM - Outside /21
pk_SFSTADIUMin = CreatePickup(1239,2,-1443.5007,933.1899,1036.4967); // SF STADIUM - Inside (derby area) /22
pk_LSSTADIUMout = CreatePickup(1238,2,2695.6570,-1704.7561,11.8438); // LS STADIUM Outside /23
pk_SFSTADIUMin3 = CreatePickup(1239,2,-1400.7296,903.8184,1041.5242); // SF STADIUM - Inside (race area) /24
pk_LVSTADIUMout = CreatePickup(1272,2,1100.6165,1598.0647,12.5469); // BIKE (LV) STADIUM - Outside /25
pk_LVSTADIUMin = CreatePickup(1272,2,-1464.6499,1556.3730,1052.531); // BIKE (LV) STADIUM - Inside /26
pk_SFCITYHALLout = CreatePickup(1272,2,-2766.0642,375.5400,6.3347); // SF City Hall - Outside /27
pk_SFCITYHALLin = CreatePickup(1272,2,389.9715,176.0146,1008.3828); // SF City Hall - Inside /28
pk_BISTROout = CreatePickup(1272,2,-2224.2783,331.9789,35.3203); // SF BISTRO - Outside /29
pk_BISTROoutLS = CreatePickup(1272,2,555.8774,-1469.9099,14.8450); // LS BISTRO - Outside /29
pk_BISTROin = CreatePickup(1272,2,-795.0228,489.2862,1376.1953); // SF BISTRO - Inside /30
pk_DINERout = CreatePickup(1272,2,-1942.0780,2379.3779,49.7031); // DINER - Outside /31
pk_DINERin = CreatePickup(1272,2,681.4571,-451.1817,-25.6172); // DINER- Inside /32
pk_CALIGout = CreatePickup(1272,2,2168.2341,1618.7316,999.9782); // CALIGULAS - Outside /33
pk_CALIGin = CreatePickup(1272,2,2171.3411,1618.7308,999.9766); // CALIGULAS- Inside /34
pk_CAINEout = CreatePickup(1273,2,-2655.4346,985.7931,64.9913); // CAINE HOUSE - Outside /35
pk_CAINEin = CreatePickup(1273,2,225.6801,1021.4510,1084.0177); // CAINE HOUSE - Inside /36
pk_UTILjob = CreatePickup(1239,2,-1874.0033,-218.2336,18.3750); // UTIL JOB PICKUP /37
pk_DONUTout = CreatePickup(1272,2,-2518.6238,2318.6914,4.9844); // SF DONUT SHOP Outside /38 --now Bayside--
pk_DONUTin = CreatePickup(1272,2,460.5562,-88.5735,999.5547); // SF DONUT SHOP Inside /39
pk_TAXIjob = CreatePickup(1239,2,2200.7917,1394.8052,11.0625); // LV TAXI JOB PICKUP /40
pk_DCPTjob = CreatePickup(1239,2,-1581.2753,867.9247,7.6953); // SF DCP PICKUP /41
pk_CHRISout = CreatePickup(1273,2,300.2403,-1154.4736,81.3828); // CHRIS HOUSE Outside /42
pk_CHRISin = CreatePickup(1273,2,232.7040,1186.9115,1080.2578); // CHRIS HOUSE Inside /43
pk_PBSTADIUMpk = CreatePickup(1313,2,-2109.6699,-442.5396,38.7344); // PAINTBALL STADIUM pickup (outside) /44
pk_SANNjob = CreatePickup(1239,2,751.8196,-1357.9432,13.5000); // LS SANN JOB PICKUP /45
pk_vgbhouse = CreatePickup(1239,2,1797.4614,-1578.8190,14.0845); // LS SANN JOB PICKUP /45
pk_eddyhouse = CreatePickup(1239,2,1204.8101,-12.5868,1000.9219); // LS SANN JOB PICKUP /45
buyweaponC = CreatePickup(1239, 2, -973.3464,1034.0214,1348.7338); // BATTLE WEAPON BUY PICKUP PURPLE /51
buyweaponT = CreatePickup(1239, 2, -1133.8058,1085.5948,1349.4969); // BATTLE WEAPON BUY PICKUP TAN /52
pk_PBSTADIUMpk2 = CreatePickup(1239,2,-1051.6392,1099.6512,1343.1617); // PAINTBALL STADIUM pickup (inside) /53
pk_LSSTADIUMin = CreatePickup(1239,2,-1400.8896,-260.5912,1043.6563); // LS STADIUM Inside /54
pk_LSSTADIUMcarout = CreatePickup(1238,2,2696.9800,-1672.2861,9.4871); // LS STADIUM Car Outside /55
pk_LSSTADIUMcarin = CreatePickup(1238,2,-1406.4951,-252.4833,1043.5922); // LS STADIUM Car Inside /56
pk_HOUSEJoeOut = CreatePickup(1273,2,251.4031,-1220.2327,76.1024); // JOE HOUSE outisde PK /57
pk_HOUSEJoeIn = CreatePickup(1273,2,234.8171,1063.7198,1084.2123); // JOE HOUSE inside PK /58
pk_chrishouseenter = CreatePickup(1277,2,263.9103,-1766.7469,4.7543); // CHRIS HOUSE ENTER PK
pk_chrishouseexit = CreatePickup(1277,2,2322.2241,-1149.4266,1050.7031); // Chris House EXIT PK
pk_INFOstatepen1 = CreatePickup(1239,2,-10.5164,-269.3663,5.4297); // INFO STATE PEN 1 /74
pk_INFOstatepen2 = CreatePickup(1239,2,16.7465,-255.7235,5.4361); // INFO STATE PEN 2 /75
pk_INFOstatepen3 = CreatePickup(1239,2,-66.6441,-353.0141,1.2004); // INFO STATE PEN 3 /76
pk_HOUSEVagoriderOut = CreatePickup(1273,2,-201.3991,2771.7195,62.3458); // VAGORIDER HOUSE Exterior /77
pk_HOUSEVagoriderIn = CreatePickup(1273,2,266.7293,304.8545,999.1484); // VAGORIDER HOUSE Interior /78
pk_secretin = CreatePickup(1239,2,-3012.795410,2379.758057,15.899318); // VIP-CRACKHOUSE ENTER
pk_secretout = CreatePickup(1239,2,2548.8000,-1294.8004,1060.9844); //VIP-CRACKHOUSE EXIT
pk_ATC_LS = CreatePickup(1239,2, 1797.5999,-2461.2947,13.5547); // LS ATC JOB pk
pk_ATC_SF = CreatePickup(1239,2, -1307.8965,32.4405,14.1484); // SF ATC JOB pk
pk_ATC_LV = CreatePickup(1239,2, 1438.8936,1527.7117,10.8203); // LV ATC JOB pk
pk_ATC_VM = CreatePickup(1239,2, 414.2574,2534.1497,16.5573); // VM ATC JOB pk
pk_HOUSEKaleemOut = CreatePickup(1273,2,1496.8713,-688.9222,95.2040); // KALEEM HOUSE outside pk
pk_HOUSEKaleemIn = CreatePickup(1273,2,374.0246,-2319.3545,10.8175); // KALEEM HOUSE inside pk
pk_BFhqOut = CreatePickup(1273,2,2018.0676,1916.2892,12.3419); // BARZINI HQ outside pk
pk_BFhqIn = CreatePickup(1273,2,2016.3832,1017.6550,996.8750); // BARZINI HQ inside pk
pk_SFnormPROSTjob = CreatePickup(1239,2,942.0522,-50.2489,1001.1246); // SF PROSTITUTE JOB pk
pk_SFgayPROSTjob = CreatePickup(1239,2,-2551.6768,188.6168,5.9024); // SF gay PROSTITUTE JOB pk (old icon is 322)
pk_LSnormPROSTjob = CreatePickup(1239,2,741.9272,1434.2535,1102.7031); // LS PROSTITUTE JOB pk
pk_LVnormPROSTjob = CreatePickup(1239,2,2090.7869,2189.5115,10.8203); // LV PROSTITUTE JOB pk
pk_CLINICin = CreatePickup(1272,2,354.1301,168.1511,1019.9844); // HOSPITAL interior pk
pk_SFHOSPout = CreatePickup(1272,2,-2655.0710,640.1633,14.4545); // SF HOSPITAL outside
pk_vipbistro = CreatePickup(1239,2,-2997.4668,2360.3950,15.1142); // VIP-BISTRO
pk_vipdiner = CreatePickup(1239,2,-2982.1611,2234.7769,3.5041); // VIP-PATRIOT
pk_vipbank = CreatePickup(1239,2,-3043.6165,2394.6614,15.1142); // VIP-BANK
pk_vipair = CreatePickup(1239,2,-3024.2202,2232.7058,1.7900); // VIP-AIR
pk_vipenter = CreatePickup(1239,2,-2623.3840,-99.0390,7.2031); // VIP-ENTER-SF
pk_vipexit = CreatePickup(1239,2,-3000.9260,2378.3130,15.0290); // VIP-EXIT
pk_vipgun = CreatePickup(1239,2,-2973.3831,2427.0212,15.1437); //VIP-GUNS
pk_casino = CreatePickup(1239,2,-3044.0198,2354.9055,15.1142); //VIP-GUNS
pk_jbin = CreatePickup(1272,2,-283.6644,1469.3953,1084.3750); //JB-HOUSE-IN
pk_jbout = CreatePickup(1272,2,-2479.7405,2449.9756,17.3230); //JB-HOUSE-OUT
pk_vipenterls = CreatePickup(1239,2,477.7553,-1534.3127,19.6787); //VIP-ENTER-LS
pk_BaySFPDout = CreatePickup(1272,2,-2236.9646,2354.2153,4.97999); //SFPD BAYSIDE outside
pk_BaySFPDin = CreatePickup(1272,2,244.6662,63.3258,1003.6406); //SFPD BAYSIDE inside
pk_DispatchIconD3 = CreatePickup(1239,2,272.4054,108.0353,1004.6172); //DISPATCHER LOGIN ICON DISTRICT 3
pk_SexhouseIn = CreatePickup(1272,2,343.7175,304.9638,999.1484); // SF SEXHOUSE PK inside
pk_SexhouseOut = CreatePickup(1272,2,-2242.1931,649.5974,49.4453); // SF SEXHOUSE PK outside
pk_SupasaveIn = CreatePickup(1272,2,8.6009,-31.5700,1003.5494); // SF SUPASAVE inside
pk_SupasaveOut = CreatePickup(1272,2,-2442.7214,755.4182,35.1719); // SF SUPASAVE outside
pk_BrothelSFIn = CreatePickup(1272,2,964.7331,-53.1483,1001.1172); // SF BROTHEL inside
pk_BrothelSFOut = CreatePickup(1272,2,-2489.8945,-154.9104,25.6172); // SF BROTHEL outside
pk_BrothelLSIn = CreatePickup(1272,2,744.4409,1436.3513,1102.7031); // LS BROTHEL inside
pk_BrothelLSOut = CreatePickup(1272,2,1648.3293,-1562.1910,13.5385); // LS BROTHEL outside
pk_LSDonutOut = CreatePickup(1272,2,1038.2703,-1340.7288,13.7415); // LS DONUT inside
pk_LSDonutIn = CreatePickup(1272,2,376.9268,-192.0171,1000.6328); // LS DONUT outside
pk_AmmunBaysideMainIn = CreatePickup(1272,2,314.0856,-141.8815,999.6016); // BAYSIDE AMMUNATION inside
pk_FCPDin = CreatePickup(1272,2,322.2820,302.3664,999.1484); // FCPD inside
pk_FCPDout = CreatePickup(1272,2,-217.8414,979.1033,19.5040); // FCPD outside
// =============================================== OBJECTS ==========================================================
Gate_NAVB = CreateObject(987,-1526.008422,482.632171,6.193644,0.000000,0.000000,-179.589782);// NAVB GATE 1
Gate_PRISON_OUT = CreateObject(3475,-73.722290,-348.304687,-1.031950,0.000000,0.000000,-180.000000);// CAR ENTRANCE GATE to exit
Gate_PRISON_IN = CreateObject(3475,-69.1009,-358.159699,-1.183625,0.000000,0.000000,0.000000);// CAR ENTRANCE GATE to enter
Gate_PRISON_1A = CreateObject(986,-5.046140,-268.113494,6.136659,0.000000,0.000000,-179.934799);// ENTRANCE MAIN GATE
Gate_PRISON_2A = CreateObject(986,0.193485,-268.030364,6.136659,0.000000,0.000000,0.000000);// ENTRANCE MAIN GATE
Gate_PRISON_1B = CreateObject(986,-7.784434,-259.905944,3.743084,0.000000,0.000000,0.000000);// ENTRANCE MAIN GATE
Stedfrontgate = CreateObject(969,-693.4413,961.4699,11.2265, 0, 0, 90); // Sted front gate
Myfrontdoor1 = CreateObject(1497,-689.5584,943.2401,12.5, 0, 0, 0); // steddoor1
Myfrontdoor2 = CreateObject(1497,-688.0491,943.2401,12.5, 0, 0, 0); // steddoor2
CreateObject(986,-1521.892456,482.090637,6.942317,0.000000,0.000000,0.000000);// NAVB FENCE AT BOOTH
Gate_A69V = CreateObject(987,340.627838,1794.739868,17.247370,00.000000,00.000000,33.75); // Area 69 Vehicle
Gate_A69 = CreateObject(986,96.718552,1921.027954,18.848816,00.000000,00.000000,90); // Area 69 Gate
Gate_LVPDIMPOUND1 = CreateObject(987,2478.289795,2519.513672,9.820313,0,0,270); // LVPD Impound Gate
Gate_LVPDIMPOUND2 = CreateObject(987,2513.072998,2424.210938,9.845070,0,0,0); // LVPD Impound Gate 2
//PRISON--------------------------------------------------------------------------------------------
CreateObject(3279,13.106591,-223.273666,4.237047,0.000000,0.000000,-90.100097);// PRISON TOWER IN
CreateObject(3279,11.614504,-273.239318,5.343664,0.000000,0.000000,-90.000000);// PRISON TOWER OUT
CreateObject(986,-3.779422,-263.894561,3.749915,0.000000,0.000000,-90.000000);// FENCE 1
CreateObject(986,-1.052418,-263.894561,3.749915,0.000000,0.000000,-90.000000);// FENCE 2
CreateObject(967,-2.361020,-268.906555,4.450785,0.000000,0.000000,-87.949752);// GUARD HUT
CreateObject(3626,15.258153,-259.247619,5.652011,0.000000,0.000000,-90.150009);// GUARD SHACK
CreateObject(3626,-26.883697,-231.646148,5.649255,0.000000,0.000000,-180.350021);// INMATE SHACK
//AIR TRAFFIC CONTROL -----------------------------------------------------------------------------
CreateObject(3279,1794.728149,-2461.277343,12.474142,0.000000,0.000000,0.000000); // LS ATC TOWER
CreateObject(3279,-1309.843261,34.535499,13.061765,0.000000,0.000000,-45.300056); // SF ATC TOWER
CreateObject(3279,1436.037597,1527.850708,9.726966,0.000000,0.000000,0.000000); // LV ATC TOWER
//STED -----------------------------------------------------------------------------
CreateObject(1508,-670.2585,967.2992,13.25, 0, 0, 0); // sted back gate
CreateObject(1508,-686.3004,931.8094,13.2, 0, 0, 90); // sted backdoor1
CreateObject(1508,-689.9363,931.8094,13.2, 0, 0, 90); // sted backdoor2
// ============================MENU ITEMS ===========================================================================
Weapons = CreateMenu("Weapons",1,20,120,150,40);
AddMenuItem(Weapons,0,"Pistols");
AddMenuItem(Weapons,0,"Shotguns");
AddMenuItem(Weapons,0,"Armor");
AddMenuItem(Weapons,0,"SMG");
AddMenuItem(Weapons,0,"Thrown");
AddMenuItem(Weapons,0,"Rifle");
AddMenuItem(Weapons,0,"Assault");
Pistols = CreateMenu("Weapons",1,20,120,150,40); // pistols
SetMenuColumnHeader(Pistols,0,"Weapons Cost");
AddMenuItem(Pistols,0,"9mm $300");
AddMenuItem(Pistols,0,"Silenced 9mm $400");
AddMenuItem(Pistols,0,"Deagle $500");
Shotguns = CreateMenu("Weapons",1,20,120,150,40); //shotguns
SetMenuColumnHeader(Shotguns,0,"Shotguns Cost");
AddMenuItem(Shotguns,0,"Shotgun $1200");
AddMenuItem(Shotguns,0,"Sawnoff Shotgun $6800");
AddMenuItem(Shotguns,0,"Combat Shotgun $3500");
Armor = CreateMenu("Weapons",1,20,120,150,40); //Armor
SetMenuColumnHeader(Armor,0,"Armor Cost");
AddMenuItem(Armor,0,"Armor normal $500");
AddMenuItem(Armor,0,"Armor Full $1000");
SMG = CreateMenu("Weapons",1,20,120,150,40); //SMG
SetMenuColumnHeader(SMG,0,"SMG Cost");
AddMenuItem(SMG,0,"SMG (MP5) $700");
Thrown = CreateMenu("Weapons",1,20,120,150,40); //SMG
SetMenuColumnHeader(Thrown,0,"Thrown Cost");
AddMenuItem(Thrown,0,"Frag Grenade $2000");
AddMenuItem(Thrown,0,"Tear Gas $300");
Rifle = CreateMenu("Weapons",1,20,120,150,40); //SMG
SetMenuColumnHeader(Rifle,0,"Rifle Cost");
AddMenuItem(Rifle,0,"Country Rifle $5500");
AddMenuItem(Rifle,0,"Sniper Rifle $10000");
Assault = CreateMenu("Weapons",1,20,120,150,40); //SMG
SetMenuColumnHeader(Assault,0,"Assault Cost");
AddMenuItem(Assault,0,"AK47 $8100");
AddMenuItem(Assault,0,"M4 $8000");
// ==================================================================================================================
//Misc
SetGameModeText("ERP Roleplay");
//severtime stuff
new m, s;
gettime(gHour, m, s);
SetTimer("realtime", (3600 - (m * 60) - s) * 1000, 0);
// Run the function first on the hour (that will return milliseconds left in the hour)
SetWorldTime(gHour);
//timer
SetTimer("checkit",5000,1);
SetTimer("AdminArea",gAAreaTime,1);
SetTimer("PayDay", 900000,1); // 15min
SetTimer("AreaProcess",1000,1);
//area51gates
objects[0] = CreateObject(2927, doors[0][0], doors[0][1], doors[0][2],0.0,0.0,0.0); // Coords taken from main.scm,
objects[1] = CreateObject(2929, doors[1][0], doors[1][1], doors[1][2],0.0,0.0,0.0); // modelid from MTA's all.models
SetTimer("KeyPress",KEYPRESS_INTERVAL,1);
//for the licences
if(!fopen("DSchool",io_read))
{
//print("\r\n\r\nError: No driving school data found. Creating new data file...");
DSchool=fopen("DSchool",io_readwrite);
}
else
{
//print("\r\n\r\nDriving School data found. Now loading data...");
DSchool=fopen("DSchool",io_readwrite);
}
fclose(DSchool);
return 1;
}
stock SystemMsg(playerid,msg[]) {
if ((IsPlayerConnected(playerid))&&(strlen(msg)>0)) {
SendClientMessage(playerid,COLOR_SYSTEM,msg);
}
return 1;
}
stock GetPlayerId(playername[]) //By Alex "Y_Less" Cole (Edited by Sacky && Smugller)
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if(strcmp(playername,Player(i),true)==0)
{
return i;
}
}
}
return INVALID_PLAYER_ID;
}
stock Add(data1, data2) {
return data1 + data2;
}
stock Subtract(data1, data2) {
return data1 - data2;
}
public SetPlayerRandomSpawn(playerid)
{
new rand = random(sizeof(PlayerRandomSpawn));
SetPlayerPos(playerid, PlayerRandomSpawn[rand][0], PlayerRandomSpawn[rand][1], PlayerRandomSpawn[rand][2]);
SetPlayerFacingAngle(playerid,PlayerRandomSpawn[rand][3]);
return 1;
}
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){
//GameTextForPlayer(i,zones[j][zone_name],1500,1);
TextDrawDestroy(Textdraw2);
Textdraw = TextDrawCreate(4.000000,422.000000,zones[j][zone_name]);
TextDrawAlignment(Textdraw,0);
TextDrawBackgroundColor(Textdraw,0x000000ff);
TextDrawFont(Textdraw,1);
TextDrawLetterSize(Textdraw,0.500000,2.000000);
TextDrawColor(Textdraw,0xffffffcc);
TextDrawSetOutline(Textdraw,1);
TextDrawSetProportional(Textdraw,1);
TextDrawShowForPlayer(i,Textdraw);
//TextDrawSetString(Textdraw, zones[j][zone_name]);
}
else if(strcmp(zones[j][zone_name],zones[player_zone_before][zone_name],true) != 0){
//GameTextForPlayer(i,zones[j][zone_name],1500,1);
TextDrawDestroy(Textdraw);
Textdraw2 = TextDrawCreate(4.000000,422.000000,zones[j][zone_name]);
TextDrawAlignment(Textdraw2,0);
TextDrawBackgroundColor(Textdraw2,0x000000ff);
TextDrawFont(Textdraw2,1);
TextDrawLetterSize(Textdraw2,0.500000,2.000000);
TextDrawColor(Textdraw2,0xffffffcc);
TextDrawSetOutline(Textdraw2,1);
TextDrawSetProportional(Textdraw2,1);
TextDrawShowForPlayer(i,Textdraw2);
//TextDrawSetString(Textdraw, zones[j][zone_name]);
}
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 < 900.0) return 1;
return 0;
}
public PayDay()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new string[256];
/*
new givewelfarepay[512];
givewelfarepay = dini_Get("Government.txt", "WELFARE" );
new oldTOTALBUDGET[512];
new newTOTALBUDGET;
oldTOTALBUDGET = dini_Get("Government.txt", "TOTALBUDGET" );
*/
if(gteam[i] == Team_LSPD){
SendClientMessage(i,COLOR_GREEN, "(PAY) You have received an LSPD paycheck.");
SendClientMessage(i,COLOR_YELLOW, "You have earned $1000.");
GivePlayerMoney(i, 1000);
}
if(gteam[i] == Team_SFPD){
SendClientMessage(i,COLOR_GREEN, "(PAY) You have received an SFPD paycheck.");
SendClientMessage(i,COLOR_YELLOW, "You have earned $1700.");
GivePlayerMoney(i, 1700);
}
if(gteam[i] == Team_SWAT){
SendClientMessage(i,COLOR_GREEN, "(PAY) You have received an SWAT paycheck.");
SendClientMessage(i,COLOR_YELLOW, "You have earned $1500.");
GivePlayerMoney(i, 1000);
}
if(gteam[i] == Team_SASP){
SendClientMessage(i,COLOR_GREEN, "(PAY) You have received an SASP paycheck.");
SendClientMessage(i,COLOR_YELLOW, "You have earned $1000.");
GivePlayerMoney(i, 1000);
}
if(gteam[i] == Team_DCP){
SendClientMessage(i,COLOR_GREEN, "(PAY) You have received a DCP paycheck.");
SendClientMessage(i,COLOR_YELLOW, "You have earned $1200.");
GivePlayerMoney(i, 1200);
}
if(gteam[i] == Team_Army){
SendClientMessage(i,COLOR_GREEN, "(PAY) You have received a U.S. Army paycheck.");
SendClientMessage(i,COLOR_YELLOW, "You have earned $2000.");
GivePlayerMoney(i, 2000);
}
if(gteam[i] == Team_ArmyMed){
SendClientMessage(i,COLOR_GREEN, "(PAY) You have received a U.S. Army paycheck.");
SendClientMessage(i,COLOR_YELLOW, "You have earned $2000.");
GivePlayerMoney(i, 2000);
}
if(gteam[i] == Team_EMS){
SendClientMessage(i,COLOR_GREEN, "(PAY) You have received a SAEMS paycheck.");
SendClientMessage(i,COLOR_YELLOW, "You have earned $1500.");
GivePlayerMoney(i, 1500);
}
if(gteam[i] == Team_GOV){
SendClientMessage(i,COLOR_GREEN, "(PAY) You have received a Government paycheck.");
SendClientMessage(i,COLOR_YELLOW, "You have earned $2000.");
GivePlayerMoney(i, 2000);
}
if(gteam[i] == Team_BLACKWATER){
SendClientMessage(i,COLOR_GREEN, "(PAY) You have received a Blackwater USA paycheck.");
SendClientMessage(i,COLOR_YELLOW, "You have earned $800.");
GivePlayerMoney(i, 800);
}
if(gteam[i] == Team_Fire){
SendClientMessage(i,COLOR_GREEN, "(PAY) You have received an FDSA paycheck.");
SendClientMessage(i,COLOR_YELLOW, "You have earned $2000.");
GivePlayerMoney(i, 2000);
}
if(gteam[i] == Team_DMV){
SendClientMessage(i,COLOR_GREEN, "(PAY) You have received a DMV paycheck.");
SendClientMessage(i,COLOR_YELLOW, "You have earned $1500.");
GivePlayerMoney(i, 1500);
}
if(gteam[i] == Team_UTIL){
SendClientMessage(i,COLOR_GREEN, "(PAY) You have received a SAPW paycheck.");
SendClientMessage(i,COLOR_YELLOW, "You have earned $100.");
GivePlayerMoney(i, 100);
}
if(gteam[i] == Team_ATCLS || gteam[i] == Team_ATCSF || gteam[i] == Team_ATCLV || gteam[i] == Team_ATCVM ){
SendClientMessage(i,COLOR_GREEN, "(PAY) You have received an FAA paycheck.");
SendClientMessage(i,COLOR_YELLOW, "You have earned $100.");
GivePlayerMoney(i, 100);
}
if(gteam[i] == Team_SANN){
SendClientMessage(i,COLOR_GREEN, "(PAY) You have received a San Andreas News Network paycheck.");
SendClientMessage(i,COLOR_YELLOW, "You have earned $100.");
GivePlayerMoney(i, 100);
}
//if(dini_Exists("Government.txt")){
//if( strval(oldTOTALBUDGET) > 0 ) {
if((gteam[i]!=Team_LSPD || gteam[i]!=Team_SFPD || gteam[i]!=Team_SWAT || gteam[i]!=Team_SASP ||
gteam[i]!=Team_SWAT || gteam[i]!=Team_DCP || gteam[i]!=Team_Army || gteam[i]!=Team_ArmyMed ||
gteam[i]!=Team_L1A || gteam[i]!=Team_UTIL || gteam[i]!=Team_Fire || gteam[i]!=Team_EMS ||
gteam[i]!=Team_DMV || gteam[i]!=Team_DCPT || gteam[i]!=Team_GOV || gteam[i]!=Team_ATCLS ||
gteam[i]!=Team_ATCSF || gteam[i]!=Team_ATCLV || gteam[i]!=Team_ATCVM || gteam[i]!=Team_SANN) && (GetPlayerMoney(i) < 1000)) {
SendClientMessage(i,COLOR_GREEN, "(PAY) You have received a San Andreas welfare paycheck.");
format(string, sizeof(string), "You have benefitted from an income of $50.");
SendClientMessage(i, COLOR_YELLOW, string);
GivePlayerMoney(i, 50);
}
}
}
}
stock JailStatusCheck() {
for(new i=0;i<MAX_PLAYERS;i++){
if(JailStatus[i] ==1){
if(IsPlayerConnected(i)) {
for(new j=0;j<MAX_JAILZONES;j++) {
if(IsPlayerInArea(i,192.4049,172.8904,195.2248,176.7238)) {
}else{
SetPlayerInterior(i,3);
SetPlayerPos(i,193.6751,175.0777,1003.023);
SetPlayerColor(i, COLOR_SYSTEM);
}
}
}
}
}
}
stock 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 OnPlayerRequestClass(playerid, classid)
{
gPlayerClass[playerid] = classid;
switch (classid) {
case 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92:
{
GameTextForPlayer(playerid, "~w~Civilian", 4000, 4);
SetPlayerFacingAngle(playerid, 270.9620);
SetPlayerPos(playerid, -1988.5476,702.8239,46.5683);
SetPlayerCameraPos(playerid, -1985.6891,702.8427,46.5683);
SetPlayerCameraLookAt(playerid, -1988.5476,702.8239,46.5683);
}
case 59:
{
GameTextForPlayer(playerid, "~w~Restaurant Waiter", 4000, 4);
SetPlayerFacingAngle(playerid, 270.9620);
SetPlayerPos(playerid, -1988.5476,702.8239,46.5683);
SetPlayerCameraPos(playerid, -1985.6891,702.8427,46.5683);
SetPlayerCameraLookAt(playerid, -1988.5476,702.8239,46.5683);
}
case 60,61:
{
GameTextForPlayer(playerid, "~w~Boxer", 4000, 4);
SetPlayerFacingAngle(playerid, 270.9620);
SetPlayerPos(playerid, -1988.5476,702.8239,46.5683);
SetPlayerCameraPos(playerid, -1985.6891,702.8427,46.5683);
SetPlayerCameraLookAt(playerid, -1988.5476,702.8239,46.5683);
}
}
return 1;
}
Float:GetPlayerArmourEx(p)
{
new Float:a;
GetPlayerArmour(p, a);
return a;
}
stock OnGameModeExit()
{
print("GameModeExit()");
KillTimer(GiveMoneyTimer);
KillTimer(GodTimer);
KillTimer(DiseaseTimer);
KillTimer(InjuredTimer);
DestroyObject(objects[0]);
DestroyObject(objects[1]);
return 1;
}
public clocktime(){
new hour,minute,second;
gettime(hour,minute,second);
new string[256];
if (minute <= 9){format(string,25,"%d:0%d",hour,minute);}
else {format(string,25,"%d:%d",hour,minute);}
new Text:Clock;
Clock=TextDrawCreate(550,47,string);
TextDrawLetterSize(Clock,0.7,1.7);
TextDrawFont(Clock,3);
TextDrawShowForAll(Clock);
SetTimer("time",30000,9999);
return 1;
}
stock Money()
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i) && GiveMoney[i] == 1)
{
GivePlayerMoney(i,100);
}
}
}
SendMessageToAdmins(const str[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i)) {
if (IsPlayerAdmin(i) || gteam[i]==Team_L1A ) {
SendClientMessage(i, 0xFF6406FF, str);
}
}
}
}
SendClientCallToL1A(const str[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i)) {
if (gteam[i]==Team_L1A || (Agent[i]==1) ) {
SendClientMessage(i, COLOR_YELLOW, str);
}
}
}
}
SendMessageToModerators(const str[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i)) {
if ( (L2M[i]==1) || (L3M[i]==1) ) {
SendClientMessage(i, COLOR_YELLOW, str);
}
}
}
}
SendMessageToAgents(const str[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i)) {
if ( (Agent[i]==1) || (gteam[i]==Team_L1A) ) {
SendClientMessage(i, COLOR_YELLOW, str);
}
}
}
}
SendMessageToVIP(const str[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i)) {
if ( (VIP[i]==1) || (Agent[i]==1) || (gteam[i]==Team_L1A) ) {
SendClientMessage(i, COLOR_YELLOW, str);
}
}
}
}
SendMessageToAllEmerg(const str[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i)) {
if (gteam[i]==Team_LSPD || gteam[i]==Team_SFPD || gteam[i]==Team_SWAT || gteam[i]==Team_SASP || gteam[i]==Team_DCP || gteam[i] == Team_DCPT || gteam[i]==Team_Army || gteam[i]==Team_Army || gteam[i]==Team_GOV || gteam[i]==Team_Fire || gteam[i]==Team_EMS || gteam[i]==Team_BLACKWATER || gteam[i]==Team_L1A || Agent[i]==1) {
SendClientMessage(i, COLOR_WHITE, str);
}
}
}
}
SendMessageToTaxi(const str[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i)) {
if (gteam[i]==Team_Taxi || gteam[i]==Team_SATA) {
SendClientMessage(i, COLOR_YELLOW, str);
}
}
}
}
SendMessageToDispatch(const str[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i)) {
if (PlayerIsADispatcher[i]) {
SendClientMessage(i, COLOR_CRIMBLUE, str);
}
}
}
}
SendMessageToDispatchGrey(const str[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i)) {
if (PlayerIsADispatcher[i]) {
SendClientMessage(i, COLOR_GREY, str);
}
}
}
}
SendMessageToDispatchWhite(const str[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i)) {
if (PlayerIsADispatcher[i]) {
SendClientMessage(i, COLOR_WHITE, str);
}
}
}
}
SendMessageToLaw(const str[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i)) {
if (gteam[i]==Team_LSPD || gteam[i]==Team_SFPD || gteam[i]==Team_SWAT || gteam[i]==Team_SASP || gteam[i]==Team_DCP || gteam[i]==Team_SWAT || gteam[i] == Team_DCPT || gteam[i]==Team_L1A || gteam[i]==Team_GOV || Agent[i]==1) {
SendClientMessage(i, COLOR_CRIMBLUE, str);
}
}
}
}
SendMessageToGOV(const str[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i)) {
if (gteam[i]==Team_GOV) {
SendClientMessage(i, COLOR_ORANGE, str);
}
}
}
}
SendMessageToBattleTan(const str[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i)) {
if (gteam[i]==Team_BattleTan) {
SendClientMessage(i, COLOR_TAN, str);
}
}
}
}
SendMessageToBattlePurple(const str[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i)) {
if (gteam[i]==Team_BattlePurple) {
SendClientMessage(i, COLOR_PURPLE, str);
}
}
}
}
SendMessageToSmoke(const str[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i)) {
if (gteam[i]==Team_Smoke) {
SendClientMessage(i, COLOR_RED, str);
}
}
}
}
SendMessageToCF(const str[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i)) {
if (gteam[i]==Team_CF) {
SendClientMessage(i, 0x88AB54FF, str);
}
}
}
}
SendMessageToSTONER(const str[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i)) {
if (gteam[i]==Team_STONER) {
SendClientMessage(i, 0x88AB54FF, str);
}
}
}
}
SendMessageToBLACKWATER(const str[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i)) {
if (gteam[i]==Team_SARA) {
SendClientMessage(i, COLOR_GREEN, str);
}
}
}
}
SendMessageToUTIL(const str[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i)) {
if (gteam[i]==Team_UTIL) {
SendClientMessage(i, COLOR_YELLOW, str);
}
}
}
}
SendMessageToEMS(const str[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i)) {
if (gteam[i]==Team_Fire || gteam[i]==Team_EMS) {
SendClientMessage(i, COLOR_RED, str);
}
}
}
}
SendMessageToEMSGrey(const str[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i)) {
if (gteam[i]==Team_Fire || gteam[i]==Team_EMS) {
SendClientMessage(i, COLOR_GREY, str);
}
}
}
}
SendMessageToEMSWhite(const str[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i)) {
if (gteam[i]==Team_Fire || gteam[i]==Team_EMS) {
SendClientMessage(i, COLOR_WHITE, str);
}
}
}
}
SendMessageToArmy(const str[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i)) {
if (gteam[i]==Team_Army || gteam[i]==Team_ArmyMed) {
SendClientMessage(i, COLOR_GREEN, str);
}
}
}
}
SendMessageToLawWhite(const str[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i)) {
if (gteam[i]==Team_LSPD || gteam[i]==Team_SFPD || gteam[i]==Team_SWAT || gteam[i]==Team_SASP || gteam[i]==Team_DCP || gteam[i]==Team_Army || gteam[i]==Team_Army || gteam[i]==Team_SWAT || gteam[i]==Team_L1A || Agent[i]==1) {
SendClientMessage(i, COLOR_WHITE, str);
}
}
}
}
SendMessageToLawGrey(const str[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i)) {
if (gteam[i]==Team_LSPD || gteam[i]==Team_SFPD || gteam[i]==Team_SWAT || gteam[i]==Team_SASP || gteam[i]==Team_DCP || gteam[i]==Team_Army || gteam[i]==Team_Army || gteam[i]==Team_SWAT || gteam[i]==Team_L1A || Agent[i]==1) {
SendClientMessage(i, COLOR_GREY, str);
}
}
}
}
SendMessageToAir(const str[])
{
new vehicleid;
for (new i = 0; i < MAX_PLAYERS; i++)
{
vehicleid = GetPlayerVehicleID(i);
if (IsPlayerConnected(i)) {
if ( gteam[i]==Team_ATCLS || gteam[i]==Team_ATCSF || gteam[i]==Team_ATCLV || gteam[i]==Team_ATCVM || GetVehicleModel(vehicleid) == 592 || GetVehicleModel(vehicleid) == 577 || GetVehicleModel(vehicleid) == 511 || GetVehicleModel(vehicleid) == 548 || GetVehicleModel(vehicleid) == 425 || GetVehicleModel(vehicleid) == 487 || GetVehicleModel(vehicleid) == 553 || GetVehicleModel(vehicleid) == 417 || GetVehicleModel(vehicleid) == 497 || GetVehicleModel(vehicleid) == 519 || GetVehicleModel(vehicleid) == 488){
SendClientMessage(i, 0x5F6D87FF, str);
}
}
}
}
SendMessageToAirFromTower(const str[])
{
new vehicleid;
for (new i = 0; i < MAX_PLAYERS; i++)
{
vehicleid = GetPlayerVehicleID(i);
if (IsPlayerConnected(i)) {
if ( gteam[i]==Team_ATCLS || gteam[i]==Team_ATCSF || gteam[i]==Team_ATCLV || gteam[i]==Team_ATCVM || GetVehicleModel(vehicleid) == 592 || GetVehicleModel(vehicleid) == 577 || GetVehicleModel(vehicleid) == 511 || GetVehicleModel(vehicleid) == 548 || GetVehicleModel(vehicleid) == 425 || GetVehicleModel(vehicleid) == 487 || GetVehicleModel(vehicleid) == 553 || GetVehicleModel(vehicleid) == 417 || GetVehicleModel(vehicleid) == 497 || GetVehicleModel(vehicleid) == 519 || GetVehicleModel(vehicleid) == 488){
SendClientMessage(i, 0xB8C426FF, str);
}
}
}
}
SendMessageToATC(const str[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i)) {
if ( gteam[i]==Team_ATCLS || gteam[i]==Team_ATCSF || gteam[i]==Team_ATCLV || gteam[i]==Team_ATCVM){
SendClientMessage(i, 0xB38A53FF, str);
}
}
}
}
SendMessageToDiablo(const str[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i)) {
if (gteam[i]==Team_DIABLO) {
SendClientMessage(i, COLOR_YELLOW, str);
}
}
}
}
ImpoundCarForAll(vehicleid)
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
SetVehicleParamsForPlayer(vehicleid,i, 0, 1);
}
}
UnlockCarForLaw(vehicleid)
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if ( gteam[i]==Team_LSPD || gteam[i]==Team_SFPD || gteam[i]==Team_SWAT || gteam[i]==Team_SASP || gteam[i]==Team_DCP || gteam[i]==Team_L1A) {
SetVehicleParamsForPlayer(vehicleid,i, 0, 0);
}
}
}
ReleaseCarFromImpound(vehicleid)
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
SetVehicleParamsForPlayer(vehicleid,i, 0, 0);
}
}
SendMessage(playerid, const str[])
{
SendClientMessage(playerid, COLOR_YELLOW, str);
}
public OnPlayerConnect(playerid)
{
afk[playerid]=0;
brb[playerid]=0;
STMSPlayer[playerid] = 0;
InjuredActivation[playerid] = 0;
InjuredPlayer[playerid] = 0;
DiseasedPlayer[playerid] = 0;
printf("OnPlayerConnect(%d)", playerid);
zoneupdates[playerid] = 0;
player_zone[playerid] = -1;
SendClientMessage(playerid, COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, "[ERP] ELITE ROLE PLAYERS");
SendClientMessage(playerid, COLOR_GREY, "Welcome to the Elite Role Players server.");
SendClientMessage(playerid, COLOR_GREY, "For information pertaining to the server, type /Help.");
SendClientMessage(playerid, COLOR_GREY, "Type /Register [And a password] to register an account on the sever.");
SendClientMessage(playerid, COLOR_GREY, "If you are already registered, please login by typing /Login [And your password].");
SendClientMessage(playerid, COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
playerCheckpoint[playerid]=999;
bank[playerid]=0;
playerGang[playerid]=0;
job[playerid]=0;
PLAYERLIST_authed[playerid]=false;
new randphone = 1000 + random(8999);//minimum 1000 max 9999 //giving one at the start
PlayerInfo[playerid][pPnumber] = randphone;
PlayerInfo[playerid][pAdmin] = 0;
SetPlayerMapIcon(playerid,1,-1618.7448,693.2925,7.1875,30,COLOR_BLUE);//SFPD Map Icon
SetPlayerMapIcon(playerid,2,2272.7397,2458.6477,10.8203,30,COLOR_BLUE);//LVPD Map Icon
SetPlayerMapIcon(playerid,3,1588.9675,-1676.8035,5.6621,30,COLOR_BLUE);//LSPD Map Icon
SetPlayerMapIcon(playerid,4,620.4504,-571.3275,26.1432,30,COLOR_BLUE);//DILPD Map Icon
SetPlayerMapIcon(playerid,5,-217.6055,979.1139,19.5027,30,COLOR_BLUE);//FCPD Map Icon
SetPlayerMapIcon(playerid,6,-1392.4149,2640.7173,55.9678,30,COLOR_BLUE);//EQPD Map Icon
SetPlayerMapIcon(playerid,7,-2159.2634,-2381.1118,37.7891,30,COLOR_BLUE);//APPD Map Icon
SetPlayerMapIcon(playerid,8,-2648.4749,620.2503,14.4531,22,COLOR_YELLOW); //SFEMS Map Icon
SetPlayerMapIcon(playerid,9,1164.7240,-1309.8326,31.6641,22,COLOR_YELLOW); //LSEMS Map Icon
SetPlayerMapIcon(playerid,10,-318.2705,1044.3834,27.0711,22,COLOR_YELLOW); //FCEMS Map Icon
SetPlayerMapIcon(playerid,11,-1514.7819,2520.6362,55.8798,22,COLOR_YELLOW); //EQEMS Map Icon
SetPlayerMapIcon(playerid,12,1608.8983,1780.0814,37.4834,22,COLOR_YELLOW); //LVEMS Map Icon
SetPlayerMapIcon(playerid,13,-2455.5457,503.8424,30.0781,52,COLOR_GREEN); //SF BANK Map Icon
SetPlayerMapIcon(playerid,14,-2224.2783,331.9789,35.3203,50,COLOR_GREY); //SF BISTRO Map Icon
//SetPlayerMapIcon(playerid,15,-1954.6375,304.0252,41.0471,55,COLOR_BLUE); //SF WANG Map Icon
//SetPlayerMapIcon(playerid,16,-1658.8352,1210.0579,7.2500,55,COLOR_BLUE); //SF OTTO's Map Icon
SetPlayerMapIcon(playerid,17,-1942.0780,2379.3779,49.7031,49,COLOR_GREY); //DINER Map Icon
SetPlayerMapIcon(playerid,18,725.6343,-1451.0448,17.6953,30,COLOR_BLUE); //LSPD SUBSTATION Map Icon
SetPlayerMapIcon(playerid,19,-2227.7246,2354.8740,4.9895,30,COLOR_BLUE); //SFPD BAYSIDE SUBSTATION Map Icon
SetPlayerMapIcon(playerid,20,1626.1371,615.0314,7.7813,30,COLOR_BLUE); //LVPD SUBSTATION Map Icon
SetPlayerMapIcon(playerid,21,-1874.0033,-218.2336,18.3750,11,COLOR_YELLOW); //SA PUBLIC WORKS SF Map Icon
SetPlayerMapIcon(playerid,22,-2518.6238,2318.6914,4.9844,17,COLOR_RED); //DONUT SHOP SF Map Icon
SetPlayerMapIcon(playerid,23,2173.9021,1403.7736,11.0625,42,COLOR_YELLOW); //TAXI DEPOT LV Map Icon
SetPlayerMapIcon(playerid,24,-1573.5713,885.1329,7.6129,30,COLOR_BLUE); //SF DCP Map Icon
//SetPlayerMapIcon(playerid,25,1075.9056,1298.2501,10.8203,8,COLOR_YELLOW); //LV SATA Map Icon
//SetPlayerMapIcon(playerid,26,751.8196,-1357.9432,13.5000,37,COLOR_ORANGE); //LV SATA Map Icon
SetPlayerMapIcon(playerid,27,-2112.0923,-444.3250,38.7344,33,COLOR_GREY); //SF STADIUM Map Icon
//SetPlayerMapIcon(playerid,28,-66.7878,-1131.5851,48.4297,13,COLOR_WHITE); //RS HAUL Map Icon
SetPlayerMapIcon(playerid,29,1038.6432,-1340.6903,13.7379,17,COLOR_RED); //DONUT SHOP LS Map Icon
SetPlayerMapIcon(playerid,30,593.7910,-1250.9275,18.2569,52,COLOR_GREEN); //LS BANK Map Icon
SetPlayerMapIcon(playerid,31,555.8774,-1469.9099,14.8450,50,COLOR_GREY); //LS BISTRO Map Icon
//SetPlayerMapIcon(playerid,1,-2040.0447,81.0964,41.8052,20,COLOR_RED); //SF FDSA Map Icon
//SetPlayerMapIcon(playerid,2,1755.3179,2091.5872,20.9720,20,COLOR_RED); //LV FDSA Map Icon
SetPlayerMapIcon(playerid,15,-2242.1931,649.5974,49.4453,21,COLOR_RED); //SF SEX HOUSE Map Icon
SetPlayerMapIcon(playerid,16,1648.3293,-1562.1910,13.5385,21,COLOR_RED); //SF BROTHEL Map Icon
SetPlayerMapIcon(playerid,25,-2489.8945,-154.9104,25.6172,21,COLOR_RED); //LS SEX HOUSE Map Icon
SetPlayerMapIcon(playerid,26,-2442.7214,755.4182,35.1719,38,COLOR_GREY); //SF SUPASAVE Map Icon
SetPlayerMapIcon(playerid,28,-2485.5542,2272.7744,4.9844,6,COLOR_GREY); //BAYSIDE AMMUNATION Map Icon
//OLD LICENSE PART ---------------------BROTHEL
new PName[MAX_PLAYER_NAME];
GetPlayerName(playerid,PName,sizeof(PName));
DSchool=fopen("DSchool",io_readwrite);
if(strcmp(dini_Get("DSchool",PName),"Y",false)==0)
{
if(strlen(dini_Get("DSchool",PName))==1) // seems streams with no data also run through this part.
{
fclose(DSchool);
}
else // If there is no data present,
{
Dschool_No(playerid); // Make some!
}
}
else if(strcmp(dini_Get("DSchool",PName),"N",false)==0)
{
fclose(DSchool);
}
else if(strcmp(dini_Get("DSchool",PName),"D",false)==0)
{
fclose(DSchool);
}
else
{
Dschool_No(playerid);
}
//AUTO BAN SYSTEM -----------------------
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playername));
if(strfind(playername, "putwhatuwannabanhere[GoR]", true) == -1){ // CURRENTLY DISABLED
}
else
{
new string[256];
GetPlayerName(playerid,playername,sizeof(playername));
SendClientMessageToAll(COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_BRIGHTRED, "ERP ADMINISTRATIVE NOTICE - AUTOMATED INTRUDER DETECTION AND DISPOSAL SYSTEM");
SendClientMessageToAll(COLOR_GREY, "A [UaG] member has been detected.");
format(string, sizeof(string), "%s has been automatically banned, as [UaG] members are not tolerated on this server.", playername);
SendClientMessageToAll(COLOR_GREY, string);
SendClientMessageToAll(COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
Ban(playerid);
}
return 1;
}
dcmd_register(playerid,params[]) {
// The command shouldn't work if we already are authed
if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid,"You are already authed.");
// The command shouldn't work if an account with this
// nick already exists
if (udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"The account already exists, please use /Login [And your password].");
// Did he forgot the password?
if (strlen(params)==0) return SystemMsg(playerid,"USAGE: /Register [And a password].");
// We save the money to the accstate
if (udb_Create(PlayerName(playerid),params)) return SystemMsg(playerid,"Account created. You may and must now login.");
return true;
}
dcmd_login(playerid,params[]) {
new tmp4[256];
new playername[MAX_PLAYER_NAME];
// The command shouldn't work if we already are authed
if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid,"You are already logged in.");
// The command shouldn't work if an account with this
// nick does not exists
if (!udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"Sorry but that account does not exist, please use /Register [And a password].");
// Did he forgot the password?
if (strlen(params)==0) return SystemMsg(playerid,"USAGE: /Login [And our password].");
if (udb_CheckLogin(PlayerName(playerid),params)) {
// Login was correct
// Following thing is the same like the missing SetPlayerCommand
GivePlayerMoney(playerid,dUserINT(PlayerName(playerid)).("money")-GetPlayerMoney(playerid));
SetPlayerPos(playerid,
float(dUserINT(PlayerName(playerid)).("x")),
float(dUserINT(PlayerName(playerid)).("y")),
float(dUserINT(PlayerName(playerid)).("z")));
SetPlayerInterior(playerid,dUserINT(PlayerName(playerid)).("interior")-GetPlayerInterior(playerid));
tmp4 = dini_Get(udb_encode(playername), "gbank");
tmp4 = dini_Get(udb_encode(playername), "bank");
PLAYERLIST_authed[playerid]=true;
return SystemMsg(playerid,"You are now logged in.");
}
return true;
}
stock PlayerName(playerid) {
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
return name;
}
public OnPlayerDisconnect(playerid)
{
Agent[playerid] = 0;
L2M[playerid] = 0;
L3M[playerid] = 0;
VIP[playerid] = 0;
STMSPlayer[playerid] = 0;
InjuredActivation[playerid] = 0;
InjuredPlayer[playerid] = 0;
DiseasedPlayer[playerid] = 0;
if (PlayerIsADispatcher[playerid]==1) {
DispatchActivated=0;
PlayerIsADispatcher[playerid]=0;
}
if(WantedLevel[playerid]>0){
WantedLevel[playerid]=0;
}
printf("OnPlayerDisconnect(%d)", playerid);
player_zone[playerid] = 0;
zoneupdates[playerid] = 0;
player_zone[playerid] = -1;
if (PLAYERLIST_authed[playerid]) {
// Was loggedin, so save the data!
dUserSetINT(PlayerName(playerid)).("money",GetPlayerMoney(playerid));
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
dUserSetINT(PlayerName(playerid)).("x",floatround(x));
dUserSetINT(PlayerName(playerid)).("y",floatround(y));
dUserSetINT(PlayerName(playerid)).("z",floatround(z));
dUserSetINT(PlayerName(playerid)).("interior",GetPlayerInterior(playerid));
}
PLAYERLIST_authed[playerid]=false;
return false;
}
public InfiniteLife()
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i) && God[i] == 1)
{
SetPlayerHealth(i, 250);
SetPlayerArmour(i, 100);
}
}
}
public CheckHealth()
{
for (new i = 0; i < MAX_PLAYERS; i++) {
if (InjuredActivation[i]==1) {
if (DiseasedPlayer[i]==0 ) {
if (IsPlayerConnected(i) ) {
if (gteam[i]!=Team_BattleTan ) {
if (gteam[i]!=Team_BattlePurple ) {
new Float:health;
GetPlayerHealth(i,health);
if (health <= 11) {
SendClientMessage(i, COLOR_BRIGHTRED, "YOU ARE CRITICALLY INJURED.");
SendClientMessage(i, COLOR_GREY, "Use /EMS [Location] to call for emergencey medical assistance.");
InjuredPlayer[i] = 0;
SetPlayerHealth(i,17);
}
}
}
}
}
}
}
}
public AIDSInfected()
{
for (new i = 0; i < MAX_PLAYERS; i++) {
if (IsPlayerConnected(i) ) {
if ( DiseasedPlayer[i]==1 ) {
new Float:health;
GetPlayerHealth(i,health);
SetPlayerHealth(i,health-2);
}
}
}
}
public OnPlayerSpawn(playerid){
InjuredPlayer[playerid] = 0;
InjuredActivation[playerid] = 1;
DiseasedPlayer[playerid] = 0;
TogglePlayerControllable(playerid,1);
PlayerIsADispatcher[playerid]=0;
for(new i=0; i < MAX_PLAYERS; i++){
if (IsPlayerConnected(i)){
if (gteam[i]==Team_LSPD || gteam[i]==Team_SFPD || gteam[i]==Team_SWAT || gteam[i]==Team_SASP || gteam[i]==Team_DCP || gteam[i] == Team_DCPT) {
for(new j=i+1; j < MAX_PLAYERS; j++){
if (IsPlayerConnected(j)){
if (gteam[j]==Team_LSPD || gteam[j]==Team_SFPD || gteam[j]==Team_SWAT || gteam[j]==Team_SASP || gteam[j]==Team_DCP || gteam[j] == Team_DCPT) {
if(GetDistanceBetweenPlayers(i,j) < 200) {
ShowPlayerMarkers(1);
SetPlayerMarkerForPlayer (i,j,COLOR_BLUE);
SetPlayerMarkerForPlayer (j,i,COLOR_BLUE);
}
}
}
}
}
}
}
if (BattleSpawn[playerid] && gteam[playerid]==Team_BattleTan) {
SetPlayerPos(playerid, -1133.0667,1050.9171,1345.7560);
SetPlayerInterior(playerid,10);
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_WHITE,"THE SAN ANDREAS PAINTBALL BATTLEFIELD");
SendClientMessage(playerid,COLOR_GREY,"You were eliminated and have re-entered the game.");
SendClientMessage(playerid,COLOR_TAN,"Welcome back to the TAN team.");
SendClientMessage(playerid,COLOR_GREY,"Your objective is to eliminate the opposing team.");
SendClientMessage(playerid,COLOR_GREY,"You may use /r [Message] to communicate with your team.");
SendClientMessage(playerid,COLOR_GREY,"To exit the battlefield at any time type /ExitBattle.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SetPlayerColor(playerid,0xBDB76BAA);
SetPlayerSkin(playerid, 122);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,8,1);
GivePlayerWeapon(playerid,23,100);
GivePlayerWeapon(playerid,29,100);
GivePlayerWeapon(playerid,27,100);
GivePlayerWeapon(playerid,30,500);
GivePlayerWeapon(playerid,34,40);
GivePlayerWeapon(playerid,35,5);
gteam[playerid] = 29;
SetPlayerTeam(playerid,29);
//ViewTagsBasedOnTeam();
}
else
{
if (BattleSpawn[playerid] && gteam[playerid]==Team_BattlePurple) {
SetPlayerPos(playerid, -973.0212,1067.7780,1345.0072);
SetPlayerInterior(playerid,10);
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_WHITE,"THE SAN ANDREAS PAINTBALL BATTLEFIELD");
SendClientMessage(playerid,COLOR_GREY,"You were eliminated and have re-entered the game.");
SendClientMessage(playerid,COLOR_PURPLE,"Welcome back to the PURPLE team.");
SendClientMessage(playerid,COLOR_GREY,"Your objective is to eliminate the opposing team.");
SendClientMessage(playerid,COLOR_GREY,"You may use /r [Message] to communicate with your team.");
SendClientMessage(playerid,COLOR_GREY,"To exit the battlefield at any time type /ExitBattle.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SetPlayerColor(playerid,0x800080AA);
SetPlayerSkin(playerid, 287);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,4,1);
GivePlayerWeapon(playerid,24,100);
GivePlayerWeapon(playerid,29,100);
GivePlayerWeapon(playerid,25,100);
GivePlayerWeapon(playerid,31,500);
GivePlayerWeapon(playerid,34,40);
GivePlayerWeapon(playerid,35,5);
gteam[playerid] = 30;
SetPlayerTeam(playerid,30);
//ViewTagsBasedOnTeam();
}
else
{
zoneupdates[playerid] = 1;
player_zone[playerid] = -1;
if(!zoneupdate) zoneupdate = SetTimer("update_zones",1000,4);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockSWATCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockSACars(playerid);
LockCORLEONECars(playerid);
LockTAXICars(playerid);
LockSATACars(playerid);
LockSTONERCars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSANNCars(playerid);
LockBLACKWATERCars(playerid);
LockMHSCars(playerid);
LockDIABLOCars(playerid);
LockCFCars(playerid);
LockSARACars(playerid);
LockBFCars(playerid);
LockVIPCars(playerid);
LockBFLCars(playerid);
LockATCCars(playerid);
gteam[playerid] = Team_Civ;
SetPlayerTeam(playerid,Team_Civ);
SetPlayerArmour(playerid,0);
SetPlayerHealth(playerid,100);
SetPlayerRandomSpawn(playerid);
SetPlayerColor(playerid, playerColors[playerid]);
SetPlayerColor(playerid,COLOR_GREY);
}
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
new sendername[MAX_PLAYER_NAME];
new string[256];
BattleSpawn[playerid] = true;
InjuredPlayer[playerid] = 0;
InjuredActivation[playerid] = 0;
STMSPlayer[playerid] = 0;
DiseasedPlayer[playerid]=0;
zoneupdates[playerid] = 0;
player_zone[playerid] = -1;
if (PlayerIsADispatcher[playerid]==1) {
DispatchActivated=0;
PlayerIsADispatcher[playerid]=0;
}
dini_Set("TruckLoads.txt",sendername, "0" );
//TextDrawHideForPlayer(playerid, Textdraw);
TextDrawDestroy(Textdraw);
TextDrawDestroy(Textdraw2);
if (gteam[playerid]== Team_BattlePurple || gteam[playerid]== Team_BattleTan) {
new killer[MAX_PLAYER_NAME];
GetPlayerName(killerid, killer, sizeof(killer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "(BATTLE INFO) %s has been eliminated.", sendername);
SendMessageToBattleTan(string);
format(string, sizeof(string), "(BATTLE INFO) %s has been eliminated.", sendername);
SendMessageToBattlePurple(string);
GivePlayerMoney(killerid, 1000);
}else{
SendClientMessage(playerid,COLOR_YELLOW,"You have died.");
SendClientMessage(playerid,COLOR_YELLOW,"Your pocket money has been liquidated.");
ResetPlayerMoney(playerid);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
format(string, sizeof(string), "SAN ANDREAS NEWS NETWORK UPDATE");
SendClientMessageToAll(COLOR_SANTORANGE,string);
format(string, sizeof(string), "Breaking News: %s has just been killed.",sendername);
SendClientMessageToAll(COLOR_GREY,string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
printf("OnPlayerDeath(%d, %d, %d)", playerid, killerid, reason);
if(gteam[playerid]==Team_LSPD || gteam[playerid]==Team_SFPD || gteam[playerid]==Team_SWAT || gteam[playerid]==Team_SASP || gteam[playerid]==Team_DCP || gteam[playerid]==Team_Army || gteam[playerid]==Team_Army || gteam[playerid]==Team_SWAT) {
}else{
if(WantedLevel[killerid]<6){
WantedLevel[killerid]++;
}else{
if(WantedLevel[killerid]>5){
WantedLevel[killerid]=5;
}}
}
}
if(killerid != INVALID_PLAYER_ID && IsPlayerConnected(killerid)) {
if((IsPlayerInAnyVehicle(killerid))&&(reason==WEAPON_MP5||reason==WEAPON_UZI||reason==WEAPON_TEC9)&&(!(IsPlayerInAnyVehicle(playerid))))
{ new killer[MAX_PLAYER_NAME];
GetPlayerName(killerid, killer, sizeof(killer));
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
format(string, sizeof(string), "ERP ADMINISTRATIVE NOTICE");
SendClientMessageToAll(COLOR_BRIGHTRED,string);
format(string, sizeof(string), "%s has been automatically kicked from the server for having committed a drive-by.",killer);
SendClientMessageToAll(COLOR_GREY,string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
Kick(killerid);
}
}
if (killerid == INVALID_PLAYER_ID)
{
// - Defines
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
new weap[200];
new ammo; // not used
new temp;
new s[256];
new PX;
new PY;
// - End of Defines
for(new i=0;i<15;i++){
// Getting random pos near to player
format(s, 256 ,"%.0f", X);
temp = strval(s);
PX = random((temp+2)-(temp-2))+(temp-2);
format(s, 256 ,"%.0f", Y);
temp = strval(s);
PY = random((temp+2)-(temp-2))+(temp-2);
// end of pos
// Placing Pickups
if(i<12){
GetPlayerWeaponData(playerid, i, weap[i], ammo);
if(weapmod[weap[i]] == 1212){
new pickid = CreatePickup(1212, 3,PX, PY, Z);
PickUpMoney[pickid]=true;
DropPick[pickid]=true;
} else {
DropPick[CreatePickup(weapmod[weap[i]], 3,PX, PY, Z)]=true;
}
}
if(i==13)DropPick[CreatePickup(1240, 3,PX, PY, Z)]=true;
if(i==14)if(GetPlayerArmourEx(playerid)>0.0)DropPick[CreatePickup(1242, 3,PX, PY, Z)]=true; else {
new pickid = CreatePickup(1212, 3,PX, PY, Z);
PickUpMoney[pickid]=true;
DropPick[pickid]=true;
}
if(i==15){
new pickid = CreatePickup(1212, 3,PX, PY, Z);
PickUpMoney[pickid]=true;
DropPick[pickid]=true;
}
}
// End of placing pickups
}
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(PickUpMoney[pickupid])GivePlayerMoney(playerid, 500); // Will give you 500$ when you pickup money
if(DropPick[pickupid])SetTimerEx("PickDestroy", 500, 0, "d", pickupid); // Destroying pickups
{
if ( pickupid == pk_SFPDout )
{
SendClientMessage(playerid,COLOR_YELLOW,"Welcome to the San Fierro Metropolitan Police Department Headquarters.");
SendClientMessage(playerid,COLOR_GREY,"SFPD South Operations Command.");
SendClientMessage(playerid,COLOR_GREY,"Current Supervisor: [ERP]PIMP");
SetPlayerPos(playerid,246.2904,112.4062,1003.2188);
SetPlayerFacingAngle(playerid,2.2168);
SetPlayerInterior(playerid,10);
}
if ( pickupid == pk_SFPDin )
{
SendClientMessage(playerid,COLOR_YELLOW,"You have exited the SFPD headquarters.");
SetPlayerPos(playerid,-1605.2977,716.3244,11.9395);
SetPlayerInterior(playerid,0);
}
if ( pickupid == pk_BANKout )
{
SendClientMessage(playerid,COLOR_YELLOW,"You have entered the San Fierro branch and headquarters of the Bank of San Andreas.");
SetPlayerPos(playerid,2307.1575,-16.1545,26.749);
SetPlayerFacingAngle(playerid,273.3021);
SetPlayerInterior(playerid,0);
}
if ( pickupid == pk_BANKin )
{
SendClientMessage(playerid,COLOR_YELLOW,"You have exited the San Fierro branch and headquarters of the Bank of San Andreas.");
SetPlayerPos(playerid,-2453.7473,503.8027,30.0798);
SetPlayerFacingAngle(playerid,270.1060);
SetPlayerInterior(playerid,0);
}
}
if ( pickupid == pk_SFSTADIUMout )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_WHITE,"SAN FIERRO STADIUM");
SendClientMessage(playerid,COLOR_GREY,"Welcome to the San Fierro Stadium.");
SendClientMessage(playerid,COLOR_GREY,"Type /EnterSFRace to enter the San Fierro Stadium racing circuit.");
SendClientMessage(playerid,COLOR_GREY,"Type /EnterSFDerby to enter the San Fierro Stadium destruction derby.");
SendClientMessage(playerid,COLOR_GREY,"Weapons are strictly prohibited inside the stadium.");
SendClientMessage(playerid,COLOR_GREY,"A $1000 entrance fee will be applied upon admission.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
if ( pickupid == pk_SFSTADIUMin )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_WHITE,"SAN FIERRO STADIUM");
SendClientMessage(playerid,COLOR_GREY,"Type /EnterSFRace to enter the San Fierro Stadium racing circuit.");
SendClientMessage(playerid,COLOR_GREY,"Type /EnterSFDerby to enter the San Fierro Stadium destruction derby.");
SendClientMessage(playerid,COLOR_GREY,"Type /ExitSFStadium to exit the San Fierro Stadium.");
SendClientMessage(playerid,COLOR_GREY,"A $1000 entrance fee will be applied upon tranistion to either of the above areas (except exit).");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
if ( pickupid == pk_LSSTADIUMout )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_WHITE,"LOS SANTOS FORUM");
SendClientMessage(playerid,COLOR_GREY,"Welcome to the Los Santos Forum.");
SendClientMessage(playerid,COLOR_GREY,"Type /EnterLSRace to enter the racing circuit.");
SendClientMessage(playerid,COLOR_GREY,"Weapons are strictly prohibited inside the stadium.");
SendClientMessage(playerid,COLOR_GREY,"A $1000 entrance fee will be applied upon admission.");
SendClientMessage(playerid,COLOR_GREY,"To bring your vehicle to the race, consult the cone icon in the parking lot.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
if ( pickupid == pk_SFSTADIUMin3 )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_WHITE,"SAN FIERRO STADIUM");
SendClientMessage(playerid,COLOR_GREY,"Type /EnterSFRace to enter the San Fierro Stadium racing circuit.");
SendClientMessage(playerid,COLOR_GREY,"Type /EnterSFDerby to enter the San Fierro Stadium destruction derby.");
SendClientMessage(playerid,COLOR_GREY,"Type /ExitSFStadium to exit the San Fierro Stadium.");
SendClientMessage(playerid,COLOR_GREY,"A $1000 entrance fee will be applied upon tranistion to either of the above areas (except exit).");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
if ( pickupid == pk_LVSTADIUMout )
{
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid]==Team_DCP || gteam[playerid]==Team_Army || gteam[playerid]==Team_ArmyMed || gteam[playerid]==Team_SWAT || gteam[playerid]==Team_EMS) {
SetPlayerPos(playerid, -1464.3539,1557.8956,1052.5313);
SetPlayerInterior(playerid,14);
GivePlayerMoney(playerid, -800);
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_WHITE,"WELCOME TO THE KICKSTART BIKE STUNTING STADIUM");
SendClientMessage(playerid,COLOR_RED,"You have been charged an entrance fee of $800.");
SendClientMessage(playerid,COLOR_BRIGHTRED,"Weapons are strictly prohibited in this area. Jail time must result.");
SendClientMessage(playerid,COLOR_BRIGHTRED,"Vehicles should not be locked. A $5000 fine must be applied upon violation.");
SendClientMessage(playerid,COLOR_BRIGHTRED,"As a member of law enforcement, please ENFORCE THE LAW!");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}else{
SetPlayerPos(playerid, -1464.7935,1556.4003,1052.5313);
SetPlayerInterior(playerid,14);
GivePlayerMoney(playerid, -1000);
ResetPlayerWeapons(playerid);
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_WHITE,"WELCOME TO THE KICKSTART BIKE STUNT STADIUM");
SendClientMessage(playerid,COLOR_RED,"You have been charged an entrance fee of $1000.");
SendClientMessage(playerid,COLOR_RED,"Your weapons were confiscated upon admission.");
SendClientMessage(playerid,COLOR_BRIGHTRED,"Weapons are strictly prohibited in this area. Jail time will result.");
SendClientMessage(playerid,COLOR_BRIGHTRED,"Do not lock vehicles. A $5000 fine will be applied upon violation.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
}
if ( pickupid == pk_LVSTADIUMin )
{
SendClientMessage(playerid,COLOR_YELLOW,"You have exited the Kickstart Stadium.");
SetPlayerPos(playerid,1101.5966,1601.2981,12.5469);
SetPlayerInterior(playerid,0);
}
if ( pickupid == pk_SFCITYHALLout )
{
SendClientMessage(playerid,COLOR_YELLOW,"Welcome to San Fierro City Hall.");
SendClientMessage(playerid,COLOR_GREY,"Remember to exit through the blue house icon.");
SetPlayerPos(playerid,383.8301,173.7563,1008.3828);
SetPlayerFacingAngle(playerid,89.7310);
SetPlayerInterior(playerid,3);
}
if ( pickupid == pk_SFCITYHALLin )
{
SendClientMessage(playerid,COLOR_YELLOW,"You have exited San Fierro City Hall.");
SetPlayerPos(playerid,-2762.2664,375.3571,5.5602);
SetPlayerFacingAngle(playerid,271.7577);
SetPlayerInterior(playerid,0);
}
if ( pickupid == pk_BISTROout )
{
SendClientMessage(playerid,COLOR_YELLOW,"You have entered the Kings Bistro.");
SetPlayerPos(playerid,-795.4128,491.9535,1376.1953);
SetPlayerFacingAngle(playerid,0.6482);
SetPlayerInterior(playerid,1);
SetPlayerVirtualWorld(playerid,1);
}
if ( pickupid == pk_BISTROoutLS )
{
SendClientMessage(playerid,COLOR_YELLOW,"You have entered Gnocchi Bistro.");
SetPlayerPos(playerid,-795.4128,491.9535,1376.1953);
SetPlayerFacingAngle(playerid,0.6482);
SetPlayerInterior(playerid,1);
SetPlayerVirtualWorld(playerid,2);
}
if ( pickupid == pk_BISTROin )
{
if(VIPPK[playerid]==1) {
SendClientMessage(playerid,COLOR_YELLOW,"You have exited the VIP Bistro.");
SetPlayerPos(playerid,-2997.6848,2364.9065,14.9955);
SetPlayerFacingAngle(playerid,181.6904);
SetPlayerInterior(playerid,0);
VIPPK[playerid] = 0;
}else{
if(GetPlayerVirtualWorld(playerid)==1) {
SendClientMessage(playerid,COLOR_YELLOW,"You have exited the Kings Bistro.");
SetPlayerPos(playerid,-2224.0271,329.0512,35.3203);
SetPlayerFacingAngle(playerid,176.9814);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
}else{
if(GetPlayerVirtualWorld(playerid)==2) {
SendClientMessage(playerid,COLOR_YELLOW,"You have exited Gnocchi Bistro.");
SetPlayerPos(playerid,556.0995,-1477.2805,14.6904);
SetPlayerFacingAngle(playerid,181.6904);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
}
}
}
}
if ( pickupid == pk_DINERout )
{
SendClientMessage(playerid,COLOR_YELLOW,"You have entered The Patriot diner.");
SetPlayerPos(playerid,681.4803,-452.6816,-25.6172);
SetPlayerFacingAngle(playerid,180.7019);
SetPlayerInterior(playerid,1);
}
if ( pickupid == pk_DINERin )
{
if(VIPPK[playerid]==1) {
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_YELLOW,"You have exited the The Patriot diner.");
SetPlayerPos(playerid,-2985.1350,2240.0161,2.9177);
SetPlayerFacingAngle(playerid,289.9911);
SetPlayerInterior(playerid,0);
VIPPK[playerid] = 0;
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}else{
SetPlayerPos(playerid, -2619.5569,-100.9165,4.3435);
SetPlayerInterior(playerid,0);
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_YELLOW,"You have exited the The Patriot diner.");
SetPlayerPos(playerid,-1940.1738,2379.8870,49.6953);
SetPlayerFacingAngle(playerid,289.9911);
SetPlayerInterior(playerid,0);
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
}
if ( pickupid == pk_CALIGout )
{
SendClientMessage(playerid,COLOR_YELLOW,"You have entered the Caligula's Palace Staff Basement.");
SetPlayerPos(playerid,2171.3411,1618.7308,999.9766);
SetPlayerFacingAngle(playerid,272.7709);
SetPlayerInterior(playerid,1);
}
if ( pickupid == pk_CALIGin )
{
SendClientMessage(playerid,COLOR_YELLOW,"You have exited the Caligula's Palace Staff Basement.");
SetPlayerPos(playerid,2165.4822,1618.5898,999.9751);
SetPlayerFacingAngle(playerid,88.0254);
SetPlayerInterior(playerid,1);
}
if ( pickupid == pk_CAINEout )
{
SendClientMessage(playerid,COLOR_YELLOW,"Welcome to ERP Deputy Director and SFPD Commissioner [ERP]Lt.Caine's house.");
SetPlayerPos(playerid,226.1509,1023.8597,1084.0078);
SetPlayerFacingAngle(playerid,358.7572);
SetPlayerInterior(playerid,7);
}
if ( pickupid == pk_CAINEin )
{
SendClientMessage(playerid,COLOR_YELLOW,"You have exited [ERP]Lt.Caine's house.");
SetPlayerPos(playerid,-2658.4739,986.6257,64.9844);
SetPlayerFacingAngle(playerid,64.5497);
SetPlayerInterior(playerid,0);
}
if ( pickupid == pk_UTILjob )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_YELLOW, "SAN ANDREAS PUBLIC WORKS");
SendClientMessage(playerid,COLOR_GREY,"Welcome to San Andreas Public Works.");
SendClientMessage(playerid,COLOR_GREY,"To apply for a position, type /UtilJob.");
SendClientMessage(playerid,COLOR_GREY,"To view a job description, type /UtilJobD.");
SendClientMessage(playerid,COLOR_GREY,"To quit the job, type /Civilian.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
if ( pickupid == pk_DONUTout )
{
SendClientMessage(playerid,COLOR_YELLOW,"You have entered the Bayside Diner.");
SetPlayerPos(playerid,458.1461,-88.7072,999.5547);
SetPlayerInterior(playerid,4);
}
if ( pickupid == pk_DONUTin )
{
SendClientMessage(playerid,COLOR_YELLOW,"You have exited the Bayside Diner.");
SetPlayerPos(playerid,-2518.5405,2322.7668,4.9844);
SetPlayerInterior(playerid,0);
}else{
if(VIPPK[playerid]==1) {
SendClientMessage(playerid,COLOR_YELLOW,"You have exited the Sticky Rings Donut Shop.");
SetPlayerPos(playerid,1036.6594,-1337.8032,13.7266);
SetPlayerInterior(playerid,0);
VIPPK[playerid] = 0;
}
}
if ( pickupid == pk_TAXIjob )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_YELLOW, "AUTOBAHN TAXIS AND IMPORTS");
SendClientMessage(playerid,COLOR_GREY,"Welcome to Autobahn Taxis and Imports.");
SendClientMessage(playerid,COLOR_GREY,"To apply for a position, type /TaxiJob.");
SendClientMessage(playerid,COLOR_GREY,"To view a job description, type /TaxiJobD.");
SendClientMessage(playerid,COLOR_GREY,"To quit the job, type /Civilian.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
if ( pickupid == pk_DCPTjob )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_CRIMBLUE, "SAN ANDREAS DEPARTMENT OF CIVIL PROTECTION - TRAFFIC DIVISION");
SendClientMessage(playerid,COLOR_GREY,"Welcome to the San Andreas Department of Civil Protection Traffic Division.");
SendClientMessage(playerid,COLOR_GREY,"To apply for a position, type /DCPJob.");
SendClientMessage(playerid,COLOR_GREY,"To view a job description, type /DCPJobD.");
SendClientMessage(playerid,COLOR_GREY,"To quit the job, type /Civilian.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
if ( pickupid == pk_CHRISout )
{
SendClientMessage(playerid,COLOR_YELLOW,"Welcome to [ERP]Josh, [ERP]Bounty, [ERP]CeeJay, and [ERP]Gangsta's house.");
SetPlayerPos(playerid,235.508994,1189.169897,1080.339966);
SetPlayerFacingAngle(playerid,358.7572);
SetPlayerInterior(playerid,3);
}
if ( pickupid == pk_CHRISin )
{
SendClientMessage(playerid,COLOR_YELLOW,"You have exited [ERP]Josh, [ERP]Bounty, [ERP]CeeJay, and [ERP]Gangsta's house.");
SetPlayerPos(playerid,297.3403,-1156.4929,80.9099);
SetPlayerFacingAngle(playerid,64.5497);
SetPlayerInterior(playerid,0);
}
if ( pickupid == pk_PBSTADIUMpk )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_WHITE,"SAN ANDREAS PAINTBALL BATTLEFIELD");
SendClientMessage(playerid,COLOR_GREY,"Welcome to the San Andreas Paintball Battlefield.");
SendClientMessage(playerid,COLOR_GREY,"To enter, type either /BattleT to join the Tan team or /BattleP to join the Purple team.");
SendClientMessage(playerid,COLOR_GREY,"Your objective once inside is to eliminate the opposing team.");
SendClientMessage(playerid,COLOR_GREY,"A $1000 entrance fee will be applied upon admission.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
if ( pickupid == pk_SANNjob )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_ORANGE, "SAN ANDREAS NEWS NETWORK");
SendClientMessage(playerid,COLOR_GREY,"Welcome to the San Andreas News Network (A subsidiary of Interglobal Television Corp.).");
SendClientMessage(playerid,COLOR_GREY,"To apply for a position, type /SANNJob.");
SendClientMessage(playerid,COLOR_GREY,"To view a job description, type /SANNJobD.");
SendClientMessage(playerid,COLOR_GREY,"To quit the job, type /Civilian.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
/*
if ( pickupid == pk_SFHOSPjob || pickupid == pk_FCHOSPjob || pickupid == pk_EQHOSPjob || pickupid == pk_LVHOSPjob || pickupid == pk_LSHOSPjob )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_YELLOW, "SAN ANDREAS EMERGENCY MEDICAL SERVICES");
SendClientMessage(playerid,COLOR_GREY,"Welcome to the San Andreas Emergency Medical Services.");
SendClientMessage(playerid,COLOR_GREY,"You may login as an EMS paramedic by typing the official EMS passcode here.");
//SendClientMessage(playerid,COLOR_GREY,"To apply for a position, type /EMSJob.");
//SendClientMessage(playerid,COLOR_GREY,"To view a job description, type /EMSJobD.");
//SendClientMessage(playerid,COLOR_GREY,"To quit the job, type /Civilian.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
*/
if ( pickupid == buyweaponC )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_WHITE,"SAN ANDREAS PAINTBALL BATTLEFIELD ARMORY");
SendClientMessage(playerid,COLOR_GREY,"Welcome to the Tan team armory.");
SendClientMessage(playerid,COLOR_GREY,"You can access the armory at this point by typing /buyguns.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
if ( pickupid == buyweaponT )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_WHITE,"SAN ANDREAS PAINTBALL BATTLEFIELD ARMORY");
SendClientMessage(playerid,COLOR_GREY,"Welcome to the Tan team armory.");
SendClientMessage(playerid,COLOR_GREY,"You can access the armory at this point by typing /buyguns.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
if ( pickupid == pk_PBSTADIUMpk2 )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_WHITE,"SAN ANDREAS PAINTBALL BATTLEFIELD");
SendClientMessage(playerid,COLOR_GREY,"To change team, type either /BattleT to join the Tan team or /BattleP to join the Purple team.");
SendClientMessage(playerid,COLOR_GREY,"A $1000 fee will be applied upon changing team.");
SendClientMessage(playerid,COLOR_GREY,"You may exit the battlefield from here by typing /ExitBattle.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
if ( pickupid == pk_LSSTADIUMin )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_WHITE,"LOS SANTOS FORUM");
SendClientMessage(playerid,COLOR_GREY,"You may exit the stadium by typing /ExitLSRace here.");
SendClientMessage(playerid,COLOR_GREY,"To remove your vehicle from the stadium, consult the cone icon.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
if ( pickupid == pk_LSSTADIUMcarout )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_WHITE,"LOS SANTOS FORUM");
SendClientMessage(playerid,COLOR_GREY,"To bring your vehicle inside the stadium:");
SendClientMessage(playerid,COLOR_GREY,"Place your vehicle in this spot, remain inside your vehicle, and type /EnterCarInRace.");
SendClientMessage(playerid,COLOR_GREY,"A $1000 fee will be applied.");
SendClientMessage(playerid,COLOR_GREY,"THIS SPOT IS RESERVED FOR VEHICLE SPAWINING. NO PARKING IS PERMITTED.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
if ( pickupid == pk_LSSTADIUMcarin )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_WHITE,"LOS SANTOS FORUM");
SendClientMessage(playerid,COLOR_GREY,"To remove your vehicle from the stadium:");
SendClientMessage(playerid,COLOR_GREY,"Place your vehicle in this spot, remain inside your vehicle, and type /RemoveCarFromRace.");
SendClientMessage(playerid,COLOR_GREY,"A $1000 fee will be applied.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
if ( pickupid == pk_HOUSEJoeOut )
{
SendClientMessage(playerid, COLOR_YELLOW, "Welcome to [ERP]Joe's house.");
SetPlayerPos(playerid,234.6859,1066.4114,1084.2084);
SetPlayerInterior(playerid,6);
}
if ( pickupid == pk_HOUSEJoeIn )
{
SendClientMessage(playerid, COLOR_YELLOW, "You have left [ERP]Joe's house.");
SetPlayerPos(playerid,252.2842,-1221.6005,75.4802);
SetPlayerInterior(playerid,0);
}
if ( pickupid == pk_chrishouseenter )
{
SendClientMessage(playerid,COLOR_YELLOW,"Welcome to [ERP]Spencers House");
SetPlayerPos(playerid,2324.33,-1144.79,1050.71);
SetPlayerInterior(playerid,12);
}
if ( pickupid == pk_chrishouseexit )
{
SendClientMessage(playerid,COLOR_YELLOW,"You have exited [ERP]Spencers' House.");
SetPlayerPos(playerid,264.9825,-1769.6558,4.4439);
SetPlayerInterior(playerid,0);
}
if ( pickupid == pk_vgbhouse )
{
SendClientMessage(playerid,COLOR_YELLOW,"Welcome to The Diablos Headquaters.");
SetPlayerPos(playerid,1204.9579,-11.2829,1000.9219);
SetPlayerInterior(playerid,2);
}
if ( pickupid == pk_eddyhouse )
{
SendClientMessage(playerid,COLOR_YELLOW,"You have exited The Diablos Headquarters");
SetPlayerPos(playerid,1797.4681,-1590.7407,13.2467);
SetPlayerInterior(playerid,0);
}
/*
if ( pickupid == pk_HOUSEJohnnyJBout )
{
SendClientMessage(playerid,COLOR_YELLOW,"Welcome to [ERP]JohhnyJB's house.");
SetPlayerPos(playerid,229.0517,1115.1841,1080.9922);
SetPlayerInterior(playerid,7);
}
if ( pickupid == pk_HOUSEJohnnyJBin )
{
SendClientMessage(playerid,COLOR_YELLOW,"You have exited [ERP]JohhnyJB's house.");
SetPlayerPos(playerid,-2058.8176,892.2255,61.8583);
SetPlayerInterior(playerid,0);
}
if ( pickupid == pk_HOUSEPolice121Out )
{
SendClientMessage(playerid,COLOR_YELLOW,"Welcome to SASP Colonel [ERP]Police121's house.");
SetPlayerPos(playerid,225.3170,1022.7548,1084.0139);
SetPlayerInterior(playerid,7);
}
if ( pickupid == pk_HOUSEPolice121in )
{
SendClientMessage(playerid,COLOR_YELLOW,"You have exited SASP Colonel [ERP]Police121's house.");
SetPlayerPos(playerid,1513.2582,2568.3950,10.8203);
SetPlayerInterior(playerid,0);
}
*/
if ( pickupid == pk_INFOstatepen1 )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_CRIMBLUE,"FLEISCHBERG STATE PENITENTIARY");
SendClientMessage(playerid,COLOR_GREY,"(Operated by the San Andreas Department of Civil Protection)");
SendClientMessage(playerid,COLOR_GREY,"The following are the prison gate controls:");
SendClientMessage(playerid,COLOR_GREY,"To inmate area: /1Aopen and /1Aclose");
SendClientMessage(playerid,COLOR_GREY,"To inmate area (second gate): /1Bopen and /1Bclose");
SendClientMessage(playerid,COLOR_GREY,"To personnel area: /2Aopen and /2Aclose");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
if ( pickupid == pk_INFOstatepen2 )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_CRIMBLUE,"FLEISCHBERG STATE PENITENTIARY");
SendClientMessage(playerid,COLOR_GREY,"For the reqired equipment, type the appropriate command here.");
SendClientMessage(playerid,COLOR_GREY,"Riot uniform: /RiotSkin");
SendClientMessage(playerid,COLOR_GREY,"DCP uniform: /DCPskin");
SendClientMessage(playerid,COLOR_GREY,"Armor: /ArmorHeal");
SendClientMessage(playerid,COLOR_GREY,"M16: /ARifle");
SendClientMessage(playerid,COLOR_GREY,"Sniper rifle: /SRifle");
SendClientMessage(playerid,COLOR_GREY,"Fire extinguisher: /Exting");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
if ( pickupid == pk_INFOstatepen3 )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_CRIMBLUE,"FLEISCHBERG STATE PENITENTIARY");
SendClientMessage(playerid,COLOR_GREY,"Vehicle entrance gate control commands:");
SendClientMessage(playerid,COLOR_GREY,"Enter gate: /InOpen and /InClose");
SendClientMessage(playerid,COLOR_GREY,"Exit gate: /OutOpen and /OutClose");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
if ( pickupid == pk_HOUSEVagoriderOut )
{
SendClientMessage(playerid,COLOR_YELLOW,"Welcome to [ERP]Vagorider's house.");
SetPlayerPos(playerid,267.9973,305.3923,999.1484);
SetPlayerInterior(playerid,2);
}
if ( pickupid == pk_HOUSEVagoriderIn )
{
SendClientMessage(playerid,COLOR_YELLOW,"You have exited [ERP]Vagorider's house.");
SetPlayerPos(playerid,-201.4856,2772.9771,62.1656);
SetPlayerInterior(playerid,0);
}
if ( pickupid == pk_secretin )
{
SendClientMessage(playerid,COLOR_YELLOW,"Welcome to the VIP secret clubhouse.");
SetPlayerPos(playerid,2567.52,-1294.59,1063.25);
SetPlayerInterior(playerid,2);
}
if ( pickupid == pk_secretout )
{
SendClientMessage(playerid,COLOR_YELLOW,"You have exited the VIP secret clubhouse.");
SetPlayerPos(playerid,-2967.7852,2360.1833,14.9579);
SetPlayerInterior(playerid,0);
}
/*
if ( pickupid == pk_sarainfo )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_CRIMBLUE,"THE DIABLO HEADQUARTERS");
SendClientMessage(playerid,COLOR_GREY,"Welcome to the Diablo Headquarters");
SendClientMessage(playerid,COLOR_GREY,"Prison Yard: /diabloyard");
SendClientMessage(playerid,COLOR_GREY,"Diablo Heli: /diabloheli");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
if ( pickupid == pk_saraexit )
{
//SendClientMessage(playerid, COLOR_WHITE, "You have left the SARA HQ");
SendClientMessage(playerid,COLOR_YELLOW,"You have entered the Diablos Club.");
SetPlayerPos(playerid,1204.9579,-11.2829,1000.9219);
SetPlayerInterior(playerid,2);
}
*/
if ( pickupid == pk_ATC_LS )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,0xB8C426FF,"FEDERAL AVIATION ADMINISTRATION");
SendClientMessage(playerid,COLOR_GREY,"Welcome to the United States Federal Aviation Administration.");
SendClientMessage(playerid,COLOR_GREY,"Los Santos, Red County San Andreas Air Traffic Conrtol Tower.");
SendClientMessage(playerid,COLOR_GREY,"To apply for a position, type /LSATCJob.");
SendClientMessage(playerid,COLOR_GREY,"To view a job description, type /ATCJobD.");
SendClientMessage(playerid,COLOR_GREY,"To quit the job, type /Civilian.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
if ( pickupid == pk_ATC_SF )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,0xB8C426FF,"FEDERAL AVIATION ADMINISTRATION");
SendClientMessage(playerid,COLOR_GREY,"Welcome to the United States Federal Aviation Administration.");
SendClientMessage(playerid,COLOR_GREY,"San Fierro, Flint County San Andreas Air Traffic Conrtol Tower.");
SendClientMessage(playerid,COLOR_GREY,"To apply for a position, type /SFATCJob.");
SendClientMessage(playerid,COLOR_GREY,"To view a job description, type /ATCJobD.");
SendClientMessage(playerid,COLOR_GREY,"To quit the job, type /Civilian.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
if ( pickupid == pk_ATC_LV )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,0xB8C426FF,"FEDERAL AVIATION ADMINISTRATION");
SendClientMessage(playerid,COLOR_GREY,"Welcome to the United States Federal Aviation Administration.");
SendClientMessage(playerid,COLOR_GREY,"Las Venturas, Bone County San Andreas Air Traffic Conrtol Tower.");
SendClientMessage(playerid,COLOR_GREY,"To apply for a position, type /LVATCJob.");
SendClientMessage(playerid,COLOR_GREY,"To view a job description, type /ATCJobD.");
SendClientMessage(playerid,COLOR_GREY,"To quit the job, type /Civilian.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
if ( pickupid == pk_ATC_VM )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,0xB8C426FF,"FEDERAL AVIATION ADMINISTRATION");
SendClientMessage(playerid,COLOR_GREY,"Welcome to the United States Federal Aviation Administration.");
SendClientMessage(playerid,COLOR_GREY,"Verdant Meadows, Bone County San Andreas Air Traffic Conrtol Tower.");
SendClientMessage(playerid,COLOR_GREY,"To apply for a position, type /VMATCJob.");
SendClientMessage(playerid,COLOR_GREY,"To view a job description, type /ATCJobD.");
SendClientMessage(playerid,COLOR_GREY,"To quit the job, type /Civilian.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
if ( pickupid == pk_HOUSEKaleemOut )
{
SetPlayerPos(playerid, 373.8696,-2322.5486,10.8245);
SetPlayerInterior(playerid,0);
SendClientMessage(playerid,COLOR_YELLOW,"Welcome to [ERP]Kaleem's house.");
}
if ( pickupid == pk_HOUSEKaleemIn )
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1501.1003,-692.6212,94.7500);
SendClientMessage(playerid,COLOR_YELLOW,"You have exited [ERP]Kaleem's House.");
}
if ( pickupid == pk_BFhqOut )
{
SetPlayerInterior(playerid,10);
SetPlayerPos(playerid,2008.8551,1017.0900,994.4688);
SendClientMessage(playerid,COLOR_YELLOW,"Welcome to B&F Legal Services.");
}
if ( pickupid == pk_BFhqIn )
{
if(VIPPK[playerid]==1) {
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-3043.9705,2357.7788,15.1142);
SendClientMessage(playerid,COLOR_YELLOW,"You have exited 4 Dragons Casino.");
VIPPK[playerid] = 0;
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}else{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2030.7765,1913.9855,12.3123);
SendClientMessage(playerid,COLOR_YELLOW,"You have exited B&F Legal Services.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
}
if ( pickupid == pk_SFnormPROSTjob )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_RED,"PART TIME PROSTITUTION");
SendClientMessage(playerid,COLOR_GREY,"Downtown San Fierro");
SendClientMessage(playerid,COLOR_GREY,"Interested in being a prostitute?");
SendClientMessage(playerid,COLOR_GREY,"To apply for a job, type /SFPJob.");
SendClientMessage(playerid,COLOR_GREY,"To view a job description, type /ProstJobD.");
SendClientMessage(playerid,COLOR_GREY,"To quit the job, type /Civilian.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
if ( pickupid == pk_SFgayPROSTjob )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_RED,"PART TIME PROSTITUTION");
SendClientMessage(playerid,COLOR_GREY,"Queens, San Fierro");
SendClientMessage(playerid,COLOR_GREY,"Interested in being a prostitute?");
SendClientMessage(playerid,COLOR_GREY,"To apply for a job, type /SFGPJob.");
SendClientMessage(playerid,COLOR_GREY,"To view a job description, type /ProstJobD.");
SendClientMessage(playerid,COLOR_GREY,"To quit the job, type /Civilian.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
if ( pickupid == pk_LSnormPROSTjob )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_RED,"PART TIME PROSTITUTION");
SendClientMessage(playerid,COLOR_GREY,"Downtown Los Santos");
SendClientMessage(playerid,COLOR_GREY,"Interested in being a prostitute?");
SendClientMessage(playerid,COLOR_GREY,"To apply for a job, type /LSPJob.");
SendClientMessage(playerid,COLOR_GREY,"To view a job description, type /ProstJobD.");
SendClientMessage(playerid,COLOR_GREY,"To quit the job, type /Civilian.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
if ( pickupid == pk_LVnormPROSTjob )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_RED,"PART TIME PROSTITUTION");
SendClientMessage(playerid,COLOR_GREY,"The Strip, Las Venturas");
SendClientMessage(playerid,COLOR_GREY,"Interested in being a prostitute?");
SendClientMessage(playerid,COLOR_GREY,"To apply for a job, type /LVPJob.");
SendClientMessage(playerid,COLOR_GREY,"To view a job description, type /ProstJobD.");
SendClientMessage(playerid,COLOR_GREY,"To quit the job, type /Civilian.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
if ( pickupid == pk_CLINICin )
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-2655.4365,635.8140,14.4531);
SendClientMessage(playerid,COLOR_YELLOW,"Welcome to the San Fierro Medical Center (SAEMS Headquarters).");
SetPlayerFacingAngle(playerid,179.6760);
}
if ( pickupid == pk_SFHOSPout )
{
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,353.9734,166.5420,1019.9844);
SendClientMessage(playerid,COLOR_YELLOW,"You have exited the San Fierro Medical Center.");
SetPlayerFacingAngle(playerid,181.0174);
}
if ( pickupid == pk_vipbistro )
{
SendClientMessage(playerid,COLOR_YELLOW,"You have entered the Kings Bistro.");
SetPlayerPos(playerid,-795.1190,491.7185,1376.1953);
SetPlayerFacingAngle(playerid,0.6482);
SetPlayerInterior(playerid,1);
VIPPK[playerid] = 1;
}
if ( pickupid == pk_vipdiner )
{
SendClientMessage(playerid,COLOR_YELLOW,"You have entered The Patriot diner.");
SetPlayerPos(playerid,681.4803,-452.6816,-25.6172);
SetPlayerFacingAngle(playerid,180.7019);
SetPlayerInterior(playerid,1);
VIPPK[playerid] = 1;
}
if ( pickupid == pk_vipbank )
{
SendClientMessage(playerid,COLOR_YELLOW,"You have entered the San Fierro branch and headquarters of the Bank of San Andreas.");
SetPlayerPos(playerid,2307.1575,-16.1545,26.749);
SetPlayerFacingAngle(playerid,273.3021);
SetPlayerInterior(playerid,0);
}
if ( pickupid == pk_vipair )
{
SendClientMessage(playerid,COLOR_YELLOW,"Welcome to the Elite Role Players VIP Air Travel Services Office.");
SendClientMessage(playerid,COLOR_GREY,"Use /LVAIR /SFAIR /LSAIR to travel to the desired airport.");
}
if ( pickupid == pk_vipenter )
{
if(IsPlayerAdmin(playerid) == 1 || (VIP[playerid]==1) ){
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_WHITE,"ELITE ROLE PLAYERS VIP SERVER LOUNGE");
SendClientMessage(playerid,COLOR_GREY,"Verifying Elite Role Players VIP status...");
SendClientMessage(playerid,COLOR_GREEN,"VIP STATUS CONFIRMED");
SendClientMessage(playerid,COLOR_GREY,"Please use /EnterVIP2 to enter the VIP Lounge.");
SendClientMessage(playerid,COLOR_GREY,"Please enjoy your stay and remember to exit through the icon at the crack house, helicopter, or boat.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}else{
SetPlayerPos(playerid, -2619.5569,-100.9165,4.3435);
SetPlayerInterior(playerid,0);
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_WHITE,"ELITE ROLE PLAYERS VIP SERVER LOUNGE");
SendClientMessage(playerid,COLOR_GREY,"Verifying Elite Role Players VIP status...");
SendClientMessage(playerid,COLOR_BRIGHTRED,"VIP STATUS INEXISTANT");
SendClientMessage(playerid,COLOR_GREY,"You do not possess Elite Role Players VIP membership.");
SendClientMessage(playerid,COLOR_GREY,"To become a VIP ERP member, please visit erp-clan.com/vip.html.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
}
if ( pickupid == pk_vipexit )
{
SendClientMessage(playerid,COLOR_YELLOW,"Are you sure you want to leave?");
SendClientMessage(playerid,COLOR_YELLOW,"If so use /leavevip to leave to SF and /leavevip2 to leave to LS.");
}
if ( pickupid == pk_vipgun )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_WHITE,"ELITE ROLE PLAYERS VIP ARMORY");
SendClientMessage(playerid,COLOR_GREY,"Please use one of the following commands in order to obtain the desired weapon.");
SendClientMessage(playerid,COLOR_GREY,"/VDeagle for a Desert Eagle or /Vs9mm for a silenced 9mm pistol.");
SendClientMessage(playerid,COLOR_GREY,"/VMP5 for an MP5 or /VTec9 for a Tec-9.");
SendClientMessage(playerid,COLOR_GREY,"/VcShotgun for a combat shotgun or /VShotgun for a pump-action shotgun.");
SendClientMessage(playerid,COLOR_GREY,"/VM16 for an M16 or /VAK47 for an AK47.");
SendClientMessage(playerid,COLOR_GREY,"/VSniper for a sniper rifle.");
SendClientMessage(playerid,COLOR_GREY,"/VArmour for body armor.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
if ( pickupid == pk_casino )
{
SetPlayerInterior(playerid,10);
SetPlayerPos(playerid,2008.8551,1017.0900,994.4688);
VIPPK[playerid] = 1;
SendClientMessage(playerid,COLOR_YELLOW,"Welcome to 4-Dragons Casino.");
}
/*
if ( pickupid == pk_lsbankout )
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,597.0772,-1249.3539,18.2931);
SendClientMessage(playerid,COLOR_YELLOW,"You have exited the Los Santos branch of the Bank of San Andreas");
}
*/
if ( pickupid == pk_jbout )
{
SetPlayerInterior(playerid,15);
SetPlayerPos(playerid,458.1461,-285.1876,1470.5933);
SendClientMessage(playerid,COLOR_YELLOW,"Welcome to [ERP]JohnnyJB's house.");
}
if ( pickupid == pk_jbin )
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-2479.7405,2449.9756,17.3230);
SendClientMessage(playerid,COLOR_YELLOW,"You have exited [ERP]JohnnyJB's house.");
}
if ( pickupid == pk_vipenterls )
{
if(IsPlayerAdmin(playerid) == 1 || (VIP[playerid]==1) ){
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_WHITE,"ELITE ROLE PLAYERS VIP SERVER LOUNGE");
SendClientMessage(playerid,COLOR_GREY,"Verifying Elite Role Players VIP status...");
SendClientMessage(playerid,COLOR_GREEN,"VIP STATUS CONFIRMED");
SendClientMessage(playerid,COLOR_GREY,"Please use /EnterVIP2 to enter the VIP Lounge.");
SendClientMessage(playerid,COLOR_GREY,"Please enjoy your stay and remember to exit through the icon at the crack house, helicopter, or boat.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}else{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_WHITE,"ELITE ROLE PLAYERS VIP SERVER LOUNGE");
SendClientMessage(playerid,COLOR_GREY,"Verifying Elite Role Players VIP status...");
SendClientMessage(playerid,COLOR_BRIGHTRED,"VIP STATUS INEXISTANT");
SendClientMessage(playerid,COLOR_GREY,"You do not possess Elite Role Players VIP membership.");
SendClientMessage(playerid,COLOR_GREY,"To become a VIP ERP member, please visit erp-clan.com/vip.html.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
}
/*
if ( pickupid == pk_lsbankin )
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2307.1575,-16.1545,26.749);
SendClientMessage(playerid,COLOR_YELLOW,"You have entered the Los Santos branch of the Bank of San Andreas");
}
*/
if ( pickupid == pk_BaySFPDout )
{
SetPlayerVirtualWorld(playerid,1);
SetPlayerInterior(playerid,6);
SetPlayerPos(playerid,246.9284,65.0860,1003.6406);
SendClientMessage(playerid,COLOR_YELLOW,"Welcome to the San Fierro Metropolitan Police Department Bayside Substation.");
SendClientMessage(playerid,COLOR_GREY,"SFPD North Operations Command.");
SendClientMessage(playerid,COLOR_GREY,"Current Supervisor: [ERP]Sted");
//SendClientMessage(playerid,COLOR_GREY,"To exit, type /ExitPD while near the exit.");
SendClientMessage(playerid,COLOR_GREY,"Remember to exit through the blue house icon.");
}
if ( pickupid == pk_BaySFPDin )
{
if(GetPlayerVirtualWorld(playerid) == 1) {
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-2238.9182,2352.8110,4.9796);
SendClientMessage(playerid,COLOR_YELLOW,"You have exited SFPD Substation Bayside.");
}
}
if ( pickupid == pk_DispatchIconD3 )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_BLUE,"DISTRICT THREE POLICE DISPATCH");
SendClientMessage(playerid,COLOR_GREY,"You may login as a District Three police dispatcher from this location.");
SendClientMessage(playerid,COLOR_GREY,"The task consists of coordinating and managing police services within Flint County.");
SendClientMessage(playerid,COLOR_GREY,"Commands include: /Stat [Player ID], and /r [Message].");
SendClientMessage(playerid,COLOR_GREY,"To login, type /Dispatch3.");
SendClientMessage(playerid,COLOR_GREY,"To logout, type /CancelDispatch3.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
if ( pickupid == pk_SexhouseIn )
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-2243.5740,649.5007,49.4453);
SetPlayerFacingAngle(playerid,90.3936);
SendClientMessage(playerid,COLOR_YELLOW,"You have exited Strap City.");
}
if ( pickupid == pk_SexhouseOut )
{
SetPlayerInterior(playerid,6);
SetPlayerPos(playerid,345.0095,305.0622,999.1484);
SetPlayerFacingAngle(playerid,279.3178);
SendClientMessage(playerid,COLOR_YELLOW,"You have entered the Strap City club.");
}
if ( pickupid == pk_SupasaveIn )
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-2443.1189,752.6666,35.1786);
SetPlayerFacingAngle(playerid,177.1997);
SendClientMessage(playerid,COLOR_YELLOW,"You have exited SupaSave.");
}
if ( pickupid == pk_SupasaveOut )
{
SetPlayerInterior(playerid,10);
SetPlayerPos(playerid,5.9327,-26.1237,1003.5494);
SetPlayerFacingAngle(playerid,1.5916);
SendClientMessage(playerid,COLOR_YELLOW,"You have entered SupaSave supermarket.");
}
if ( pickupid == pk_BrothelSFIn )
{
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid,84.2573);
SetPlayerPos(playerid,-2491.9583,-155.0566,25.6094);
SendClientMessage(playerid,COLOR_YELLOW,"You have exited Pleasure Palace.");
}
if ( pickupid == pk_BrothelSFOut )
{
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,961.0807,-53.6062,1001.1172 );
SetPlayerFacingAngle(playerid,90.5139);
SendClientMessage(playerid,COLOR_YELLOW,"You have entered Pleasure Palace.");
}
if ( pickupid == pk_BrothelLSIn )
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1650.3959,-1562.2568,13.5469);
SetPlayerFacingAngle(playerid,263.2795);
SendClientMessage(playerid,COLOR_YELLOW,"You have exited Mrs.Vicky's Pleasure Den.");
}
if ( pickupid == pk_BrothelLSOut )
{
SetPlayerInterior(playerid,6);
SetPlayerPos(playerid,745.4239,1438.0278,1102.7031);
SetPlayerFacingAngle(playerid,338.3657);
SendClientMessage(playerid,COLOR_YELLOW,"You have entered Mrs.Vicky's Pleasure Den.");
}
if ( pickupid == pk_LSDonutIn )
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1038.0842,-1337.6528,13.7266);
SetPlayerFacingAngle(playerid,0.9502);
SendClientMessage(playerid,COLOR_YELLOW,"You have exited Jim's Sticky Ring Donuts.");
}
if ( pickupid == pk_LSDonutOut )
{
SetPlayerInterior(playerid,17);
SetPlayerPos(playerid,378.1008,-189.7090,1000.6328);
SetPlayerFacingAngle(playerid,358.2940);
SendClientMessage(playerid,COLOR_YELLOW,"You have entered Jim's Sticky Ring Donuts.");
}
if ( pickupid == pk_AmmunBaysideMainIn )
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-2485.3975,2271.2412,4.9844);
SendClientMessage(playerid,COLOR_YELLOW,"You have exited Ammu-Nation.");
}
if ( pickupid == pk_AmmunBaysideMainOut )
{
SetPlayerInterior(playerid,7);
SetPlayerPos(playerid,312.7497,-140.3693,999.6016);
SetPlayerFacingAngle(playerid,38.1058);
SendClientMessage(playerid,COLOR_YELLOW,"You have entered Ammu-Nation.");
}
/*
if ( pickupid == pk_AmmunBaysideBoothIn )
{
SetPlayerInterior(playerid,7);
SetPlayerPos(playerid,307.0845,-141.7460,1004.0625);
SendClientMessage(playerid,COLOR_YELLOW,"You have exited the Ammu-Nation range area and have entered the shop area.");
}
if ( pickupid == pk_AmmunBaysideBoothOut )
{
SetPlayerInterior(playerid,7);
SetPlayerPos(playerid,302.6711,-140.3139,1004.0625);
SendClientMessage(playerid,COLOR_YELLOW,"You have entered the Ammu-Nation shooting range booth area.");
}
*/
/*
if ( pickupid == pk_AmmunBaysideRangeIn )
{
SetPlayerInterior(playerid,7);
SetPlayerPos(playerid,297.2958,-142.0125,1004.0625);
SendClientMessage(playerid,COLOR_BRIGHTRED,"You have entered the shooting range.");
}
if ( pickupid == pk_AmmunBaysideRangeOut )
{
SetPlayerInterior(playerid,7);
SetPlayerPos(playerid,301.1198,-142.0837,1004.0625);
SendClientMessage(playerid,COLOR_YELLOW,"You have exited the shooting range and have entered the booth area.");
}
*/
if ( pickupid == pk_FCPDin )
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-214.3664,977.8044,19.3342);
SetPlayerFacingAngle(playerid,270.1960);
SendClientMessage(playerid,COLOR_YELLOW,"You have exited the Fort Carson San Andreas State Police precinct.");
}
if ( pickupid == pk_FCPDout )
{
SetPlayerInterior(playerid,5);
SetPlayerPos(playerid,322.0806,304.5407,999.1484);
SetPlayerFacingAngle(playerid,358.7542);
SendClientMessage(playerid,COLOR_YELLOW,"You have entered the Fort Carson San Andreas State Police precinct.");
}
return 1;
}
public PickDestroy(o)DestroyPickup(o); // Destroy pickup ! Muha xD!
stock A51Area(playerid)
{
new i, Float:X, Float:Y, Float:Z;
for (i = 0; i < MAX_PLAYERS; i++)
{
GetPlayerPos(i, X, Y, Z);
if(X >= 87.2046 && X <= 400.1626 && Y >= 1775.8628 && Y <= 2103.8657)
{
GameTextForPlayer(playerid,"WARNING: THIS IS A RISTRICTED AREA - VACATE THE PREMESES IMMEDIATLEY",5000,5);
SendClientMessage(playerid, COLOR_RED, "In order to access this area, you must login as an Army official");
SetPlayerHealth(playerid, 0);
if (gteam[playerid] == Team_Army || Team_Army)
{SendClientMessage(playerid, COLOR_RED, "ACCESS GRANTED - YOU MAY PROCEED");
}
}
}
}
stock OnVehicleDeath(vehicleid, killerid)
{
printf("OnVehicleDeath(%d, %d)", vehicleid, killerid);
return 1;
}
MessageForDriver(playerid, vehicleid)
{
SendClientMessage(playerid, COLOR_RED, " ");
new string[255];
format(string, sizeof(string), " ");
new type=GetVehicleTypeFromId(GetVehicleModel(vehicleid));
if ((type==1)|(type==2)|(type==3))
{
SendClientMessage(playerid, COLOR_WHITE, "Type /refuel to refuel your vehicle");
format(string, sizeof(string), "Fuel:%d", combustible[vehicleid]);
}
if (combustible[vehicleid]<1)
{
format(string, sizeof(string), "EMPTY");
SinGas[playerid]=vehicleid;
TogglePlayerControllable(playerid,false);
}
actualizarMedidor(playerid,string);
return 1;
}
//------------------------------------------------------------------------------------------------------
MessageForPassenger(playerid,vehicleid)
{
new string[255];
new type=GetVehicleTypeFromId(GetVehicleModel(vehicleid));
if ((type==1)|(type==2)|(type==3))
{
format(string, sizeof(string), "Fuel:%d", combustible[vehicleid]);
}
if (combustible[vehicleid]<1)
{
format(string, sizeof(string), "EMPTY");
}
actualizarMedidor(playerid,string);
}
//========================================================== ON VEHICLE SPAWN ==========================================================================
public OnVehicleSpawn(vehicleid)
{
combustible[vehicleid]=random(RAND_GAS)+MIN_GAS;
switch(vehicleid)
{
case 2:
{
SetVehicleNumberPlate(2,"P--002--");
AddVehicleComponent(2,1010); // NOS
}
case 3:
{
SetVehicleNumberPlate(3,"P--003--");
AddVehicleComponent(3,1010); // NOS
}
case 4:
{
SetVehicleNumberPlate(4,"P--004--");
AddVehicleComponent(4,1010); // NOS
}
case 5:
{
SetVehicleNumberPlate(5,"PA-005--");
AddVehicleComponent(5,1010); // NOS
}
case 6:
{
SetVehicleNumberPlate(6,"PA-006--");
AddVehicleComponent(6,1010); // NOS
}
case 7:
{
SetVehicleNumberPlate(7,"P--007--");
AddVehicleComponent(7,1010); // NOS
}
case 8:
{
SetVehicleNumberPlate(8,"P--008--");
AddVehicleComponent(8,1010); // NOS
}
case 9:
{
SetVehicleNumberPlate(9,"PA-009--");
AddVehicleComponent(9,1010); // NOS
}
case 10:
{
SetVehicleNumberPlate(10,"PT-010--");
AddVehicleComponent(10,1010); // NOS
}
case 11:
{
SetVehicleNumberPlate(11,"P--011--");
AddVehicleComponent(11,1010); // NOS
}
case 12:
{
SetVehicleNumberPlate(12,"P--012--");
AddVehicleComponent(12,1010); // NOS
}
case 13:
{
SetVehicleNumberPlate(13,"P--013--");
AddVehicleComponent(13,1010); // NOS
}
case 14:
{
SetVehicleNumberPlate(14,"P--014--");
AddVehicleComponent(14,1010); // NOS
}
case 15:
{
SetVehicleNumberPlate(15,"P--015--");
AddVehicleComponent(15,1010); // NOS
}
case 17:
{
SetVehicleNumberPlate(17,"P--017--"); // SFPD ==========
AddVehicleComponent(17,1010); // NOS
}
case 18:
{
SetVehicleNumberPlate(18,"P--018--");
AddVehicleComponent(18,1010); // NOS
}
case 19:
{
SetVehicleNumberPlate(19,"PA-019--");
AddVehicleComponent(19,1010); // NOS
}
case 20:
{
SetVehicleNumberPlate(20,"P--020--");
AddVehicleComponent(20,1010); // NOS
}
case 21:
{
SetVehicleNumberPlate(21,"P--021--");
AddVehicleComponent(21,1010); // NOS
}
case 22:
{
SetVehicleNumberPlate(22,"P--022--");
AddVehicleComponent(22,1010); // NOS
}
case 23:
{
SetVehicleNumberPlate(23,"P--023--");
AddVehicleComponent(23,1010); // NOS
}
case 24:
{
SetVehicleNumberPlate(24,"P--024--");
AddVehicleComponent(24,1010); // NOS
}
case 25:
{
SetVehicleNumberPlate(25,"PA-025--");
AddVehicleComponent(25,1010); // NOS
}
case 26:
{
SetVehicleNumberPlate(26,"PA-026--");
AddVehicleComponent(26,1010); // NOS
}
case 27:
{
SetVehicleNumberPlate(27,"P--027--");
AddVehicleComponent(27,1010); // NOS
}
case 28:
{
SetVehicleNumberPlate(28,"P--028--");
AddVehicleComponent(28,1010); // NOS
}
case 29:
{
SetVehicleNumberPlate(29,"P--029--");
AddVehicleComponent(29,1010); // NOS
}
case 30:
{
SetVehicleNumberPlate(30,"P--030--");
AddVehicleComponent(30,1010); // NOS
}
case 31:
{
SetVehicleNumberPlate(31,"P--031--");
AddVehicleComponent(31,1010); // NOS
}
case 34:
{
SetVehicleNumberPlate(34,"PA-034--"); // LVPD =========
AddVehicleComponent(34,1010); // NOS
}
case 35:
{
SetVehicleNumberPlate(35,"P--035--");
AddVehicleComponent(35,1010); // NOS
}
case 36:
{
SetVehicleNumberPlate(36,"P--036--");
AddVehicleComponent(36,1010); // NOS
}
case 37:
{
SetVehicleNumberPlate(37,"P--037--");
AddVehicleComponent(37,1010); // NOS
}
case 38:
{
SetVehicleNumberPlate(38,"P--038--");
AddVehicleComponent(38,1010); // NOS
}
case 39:
{
SetVehicleNumberPlate(39,"P--039--");
AddVehicleComponent(39,1010); // NOS
}
case 40:
{
SetVehicleNumberPlate(40,"P--040--");
AddVehicleComponent(40,1010); // NOS
}
case 41:
{
SetVehicleNumberPlate(41,"PA-041--");
AddVehicleComponent(41,1010); // NOS
}
case 42:
{
SetVehicleNumberPlate(42,"P--042--");
AddVehicleComponent(42,1010); // NOS
}
case 43:
{
SetVehicleNumberPlate(43,"P--043--");
AddVehicleComponent(43,1010); // NOS
}
case 44:
{
SetVehicleNumberPlate(44,"P--044--");
AddVehicleComponent(44,1010); // NOS
}
case 45:
{
SetVehicleNumberPlate(45,"P--045--");
AddVehicleComponent(45,1010); // NOS
}
case 46:
{
SetVehicleNumberPlate(46,"P--046--");
AddVehicleComponent(46,1010); // NOS
}
case 47:
{
SetVehicleNumberPlate(47,"P--047--");
AddVehicleComponent(47,1010); // NOS
}
case 48:
{
SetVehicleNumberPlate(48,"P--048--");
AddVehicleComponent(48,1010); // NOS
}
case 49:
{
SetVehicleNumberPlate(49,"P--049--"); // SASP ============
AddVehicleComponent(49,1010); // NOS
}
case 50:
{
SetVehicleNumberPlate(50,"P--050--");
AddVehicleComponent(50,1010); // NOS
}
case 51:
{
SetVehicleNumberPlate(51,"P--051--");
AddVehicleComponent(51,1010); // NOS
}
case 52:
{
SetVehicleNumberPlate(52,"P--052--");
AddVehicleComponent(52,1010); // NOS
}
case 54:
{
SetVehicleNumberPlate(54,"P--054--");
AddVehicleComponent(54,1010); // NOS
}
case 55:
{
SetVehicleNumberPlate(55,"P--055--");
AddVehicleComponent(55,1010); // NOS
}
case 56:
{
SetVehicleNumberPlate(56,"P--056--");
AddVehicleComponent(56,1010); // NOS
}
case 57:
{
SetVehicleNumberPlate(57,"P--057--");
AddVehicleComponent(57,1010); // NOS
}
case 58:
{
SetVehicleNumberPlate(58,"P--058--");
AddVehicleComponent(58,1010); // NOS
}
case 59:
{
SetVehicleNumberPlate(59,"P--059--");
AddVehicleComponent(59,1010); // NOS
}
case 60:
{
SetVehicleNumberPlate(60,"P--060--");
AddVehicleComponent(60,1010); // NOS
}
case 61:
{
SetVehicleNumberPlate(61,"P--061--");
AddVehicleComponent(61,1010); // NOS
}
case 63:
{
SetVehicleNumberPlate(63,"P--063--");
AddVehicleComponent(63,1010); // NOS
}
case 64:
{
SetVehicleNumberPlate(64,"P--064--");
AddVehicleComponent(64,1010); // NOS
}
case 65:
{
SetVehicleNumberPlate(65,"X--065--");
}
case 66:
{
SetVehicleNumberPlate(66,"X--066--");
}
case 67:
{
SetVehicleNumberPlate(67,"X--067--");
}
case 68:
{
SetVehicleNumberPlate(68,"X--068--");
}
case 69:
{
SetVehicleNumberPlate(69,"X--069--");
}
case 70:
{
SetVehicleNumberPlate(70,"X--070--");
}
case 71:
{
SetVehicleNumberPlate(71,"X--071--");
}
case 72:
{
SetVehicleNumberPlate(72,"X--072--");
}
case 73:
{
SetVehicleNumberPlate(73,"X--073--");
}
case 78:
{
SetVehicleNumberPlate(78,"X--078--");
}
case 87:
{
SetVehicleNumberPlate(87,"MP-087--");
}
case 93:
{
SetVehicleNumberPlate(93,"X--093--");
}
case 94:
{
SetVehicleNumberPlate(94,"X--094--");
}
case 95:
{
SetVehicleNumberPlate(95,"X--095--");
}
case 109:
{
SetVehicleNumberPlate(109,"A--109--");
}
case 110:
{
SetVehicleNumberPlate(110,"A--110--");
}
case 111:
{
SetVehicleNumberPlate(111,"A--111--");
}
case 112:
{
SetVehicleNumberPlate(112,"A--112--");
}
case 113:
{
SetVehicleNumberPlate(113,"A--113--");
}
case 114:
{
SetVehicleNumberPlate(114,"A--114--");
}
case 115:
{
SetVehicleNumberPlate(115,"A--115--");
}
case 116:
{
SetVehicleNumberPlate(116,"A--116--");
}
case 117:
{
SetVehicleNumberPlate(117,"A--117--");
}
case 118:
{
SetVehicleNumberPlate(118,"F--118--");
}
case 119:
{
SetVehicleNumberPlate(119,"F--119--");
}
case 120:
{
SetVehicleNumberPlate(120,"A--120--");
}
case 121:
{
SetVehicleNumberPlate(121,"F--121--");
}
case 122:
{
SetVehicleNumberPlate(122,"A--122--");
}
case 123:
{
SetVehicleNumberPlate(123,"F--123--");
}
case 124:
{
SetVehicleNumberPlate(123,"--ERP1--");
AddVehicleComponent(124,1010); // NOS
}
case 125:
{
SetVehicleNumberPlate(123,"--ERP2--");
AddVehicleComponent(125,1010); // NOS
}
case 126:
{
SetVehicleNumberPlate(123,"--ERP3--");
AddVehicleComponent(126,1010); // NOS
}
case 127:
{
SetVehicleNumberPlate(123,"--ERP4--");
AddVehicleComponent(127,1010); // NOS
}
case 128:
{
SetVehicleNumberPlate(123,"--ERP5--");
AddVehicleComponent(128,1010); // NOS
}
case 129:
{
SetVehicleNumberPlate(123,"--ERP6--");
AddVehicleComponent(129,1010); // NOS
}
case 131:
{
SetVehicleNumberPlate(131,"G--131--");
}
case 132:
{
SetVehicleNumberPlate(132,"G--132--");
}
case 133:
{
SetVehicleNumberPlate(133,"G--133--");
}
case 134:
{
SetVehicleNumberPlate(134,"G--134--");
}
case 135:
{
SetVehicleNumberPlate(135,"G--135--");
}
case 136:
{
SetVehicleNumberPlate(136,"G--136--");
}
case 137:
{
SetVehicleNumberPlate(137,"-TANNIN-");
}
case 140:
{
SetVehicleNumberPlate(140,"-PURPLE-");
}
case 161:
{
SetVehicleNumberPlate(161,"D--161--");
}
case 162:
{
SetVehicleNumberPlate(162,"D--162--");
}
case 163:
{
SetVehicleNumberPlate(163,"D--163--");
}
case 164:
{
SetVehicleNumberPlate(164,"D--164--");
}
case 165:
{
SetVehicleNumberPlate(165,"D--165--");
}
case 166:
{
SetVehicleNumberPlate(166,"D--166--");
}
case 167:
{
SetVehicleNumberPlate(167,"D--167--");
}
case 195:
{
SetVehicleNumberPlate(195,"PA-195--");
AddVehicleComponent(195,1010); // NOS
}
case 196:
{
SetVehicleNumberPlate(196,"P--196--");
AddVehicleComponent(196,1010); // NOS
}
case 197:
{
SetVehicleNumberPlate(197,"P--197--");
AddVehicleComponent(197,1010); // NOS
}
case 198:
{
SetVehicleNumberPlate(198,"P--198--");
AddVehicleComponent(198,1010); // NOS
}
case 199:
{
SetVehicleNumberPlate(199,"P--199--");
AddVehicleComponent(199,1010); // NOS
}
case 208:
{
SetVehicleNumberPlate(208,"P--208--");
AddVehicleComponent(208,1010); // NOS
}
case 209:
{
SetVehicleNumberPlate(209,"P--209--");
AddVehicleComponent(209,1010); // NOS
}
case 215:
{
SetVehicleNumberPlate(215,"P--215--");
AddVehicleComponent(215,1010); // NOS
}
case 216:
{
SetVehicleNumberPlate(216,"P--216--");
AddVehicleComponent(216,1010); // NOS
}
case 217:
{
SetVehicleNumberPlate(217,"P--217--");
AddVehicleComponent(217,1010); // NOS
}
case 220:
{
SetVehicleNumberPlate(220,"F--220--");
}
case 221:
{
SetVehicleNumberPlate(221,"F--221--");
}
case 222:
{
SetVehicleNumberPlate(222,"A--222--");
}
case 224:
{
SetVehicleNumberPlate(224,"P--224--");
AddVehicleComponent(224,1010); // NOS
}
case 225:
{
SetVehicleNumberPlate(225,"--ERP8--"); // Caine Nebula
AddVehicleComponent(225,1025);
}
case 226:
{
SetVehicleNumberPlate(226,"--ERP9--"); //Caine FBI
AddVehicleComponent(226,1010); // NOS
AddVehicleComponent(226,1025);
}
case 227:
{
SetVehicleNumberPlate(227,"P--227--");
AddVehicleComponent(227,1010); // NOS
}
case 228:
{
SetVehicleNumberPlate(228,"PT-228--");
//AddVehicleComponent(228,1010); // NOS
}
case 229:
{
SetVehicleNumberPlate(229,"PT-229--");
AddVehicleComponent(229,1010); // NOS
}
case 230:
{
SetVehicleNumberPlate(230,"PT-230--");
AddVehicleComponent(230,1010); // NOS
}
case 231:
{
SetVehicleNumberPlate(231,"PT-231--");
AddVehicleComponent(231,1010); // NOS
}
case 232:
{
SetVehicleNumberPlate(232,"PT-232--");
AddVehicleComponent(232,1010); // NOS
}
case 233:
{
SetVehicleNumberPlate(233,"PT-233--");
AddVehicleComponent(233,1010); // NOS
}
case 234:
{
SetVehicleNumberPlate(234,"P--234--");
AddVehicleComponent(234,1010); // NOS
}
case 235:
{
SetVehicleNumberPlate(235,"P--235--");
AddVehicleComponent(235,1010); // NOS
}
case 236:
{
SetVehicleNumberPlate(236,"PT-236--");
AddVehicleComponent(236,1010); // NOS
}
case 237:
{
SetVehicleNumberPlate(237,"PT-237--");
AddVehicleComponent(237,1010); // NOS
}
case 238:
{
SetVehicleNumberPlate(238,"PT-238--");
AddVehicleComponent(238,1010); // NOS
}
case 239:
{
SetVehicleNumberPlate(239,"PT-239--");
AddVehicleComponent(238,1010); // NOS
}
case 240:
{
SetVehicleNumberPlate(240,"T--240--");
}
case 241:
{
SetVehicleNumberPlate(241,"T--241--");
}
case 242:
{
SetVehicleNumberPlate(242,"T--242--");
}
case 243:
{
SetVehicleNumberPlate(243,"T--243--");
}
case 244:
{
SetVehicleNumberPlate(244,"T--244--");
}
case 245:
{
SetVehicleNumberPlate(245,"B--245--");
}
case 246:
{
SetVehicleNumberPlate(246,"B--246--");
}
case 247:
{
SetVehicleNumberPlate(247,"B--247--");
}
case 248:
{
SetVehicleNumberPlate(248,"B--248--");
}
case 249:
{
SetVehicleNumberPlate(249,"MP-249--");
}
case 250:
{
SetVehicleNumberPlate(250,"MP-250--");
}
case 251:
{
SetVehicleNumberPlate(251,"MP-251--");
}
case 252:
{
SetVehicleNumberPlate(252,"MP-252--");
}
case 255:
{
SetVehicleNumberPlate(255,"U--255--");
}
case 256:
{
SetVehicleNumberPlate(256,"U--256--");
}
case 257:
{
SetVehicleNumberPlate(257,"U--257--");
}
case 258:
{
SetVehicleNumberPlate(258,"U--258--");
}
case 259:
{
SetVehicleNumberPlate(259,"U--259--");
}
case 260:
{
SetVehicleNumberPlate(260,"U--260--");
}
case 261:
{
SetVehicleNumberPlate(261,"B--261--");
}
case 262:
{
SetVehicleNumberPlate(262,"T--262--");
}
case 263:
{
SetVehicleNumberPlate(263,"T--263--");
}
case 264:
{
SetVehicleNumberPlate(264,"T--264--");
}
case 265:
{
SetVehicleNumberPlate(265,"T--265--");
}
case 266:
{
SetVehicleNumberPlate(266,"B--266--");
}
case 267:
{
SetVehicleNumberPlate(267,"T--267--");
}
case 268:
{
SetVehicleNumberPlate(268,"T--268--");
}
case 269:
{
SetVehicleNumberPlate(269,"T--269--");
}
case 270:
{
SetVehicleNumberPlate(270,"D--270--");
}
case 271:
{
SetVehicleNumberPlate(271,"D--271--");
}
case 272:
{
SetVehicleNumberPlate(272,"D--272--");
}
case 273:
{
SetVehicleNumberPlate(273,"D--273--");
}
case 274:
{
SetVehicleNumberPlate(274,"G--274--");
}
case 275:
{
SetVehicleNumberPlate(275,"G--275--");
}
case 276:
{
SetVehicleNumberPlate(276,"G--276--");
}
case 277:
{
SetVehicleNumberPlate(277,"G--277--");
}
case 278:
{
SetVehicleNumberPlate(278,"G--278--");
}
case 279:
{
SetVehicleNumberPlate(279,"BNV--279");
}
case 280:
{
SetVehicleNumberPlate(280,"HKL--280");
}
case 281:
{
SetVehicleNumberPlate(281,"CYR--281");
}
case 282:
{
SetVehicleNumberPlate(282,"CGH--282");
}
case 283:
{
SetVehicleNumberPlate(283,"CDS--283");
}
case 284:
{
SetVehicleNumberPlate(284,"CUU--284");
}
case 287:
{
SetVehicleNumberPlate(287,"HYR--287");
}
case 288:
{
SetVehicleNumberPlate(288,"JHZ--288");
}
case 289:
{
SetVehicleNumberPlate(289,"IKK--289");
}
case 290:
{
SetVehicleNumberPlate(290,"RZB--290");
}
case 291:
{
SetVehicleNumberPlate(291,"G--291--");
}
case 292:
{
SetVehicleNumberPlate(292,"G--292--");
}
case 293:
{
SetVehicleNumberPlate(293,"G--293--");
}
case 294:
{
SetVehicleNumberPlate(294,"G--294--");
}
case 300:
{
SetVehicleNumberPlate(300,"P--300--");
}
case 301:
{
SetVehicleNumberPlate(301,"P--301--");
}
case 302:
{
SetVehicleNumberPlate(302,"P--302--");
}
case 303:
{
SetVehicleNumberPlate(303,"P--303--");
}
case 304:
{
SetVehicleNumberPlate(304,"P--304--");
}
case 305:
{
SetVehicleNumberPlate(305,"P--305--");
}
case 306:
{
SetVehicleNumberPlate(306,"QMJ--306");
}
case 307:
{
SetVehicleNumberPlate(307,"OAL--307");
}
case 308:
{
SetVehicleNumberPlate(307,"LXZ--308");
}
case 309:
{
SetVehicleNumberPlate(309,"P--309--");
}
case 310:
{
SetVehicleNumberPlate(310,"SQU--310");
}
case 311:
{
SetVehicleNumberPlate(311,"MKL--311");
}
case 312:
{
SetVehicleNumberPlate(312,"VTY--312");
}
case 313:
{
SetVehicleNumberPlate(313,"SHZ--313");
}
case 314:
{
SetVehicleNumberPlate(314,"PXQ--314");
AddVehicleComponent(314,1010); // NOS
}
case 315:
{
SetVehicleNumberPlate(315,"ZXP--315");
}
case 316:
{
SetVehicleNumberPlate(316,"KLM--316");
}
case 317:
{
SetVehicleNumberPlate(317,"ODS--317");
}
case 318:
{
SetVehicleNumberPlate(318,"HFC--318");
}
case 319:
{
SetVehicleNumberPlate(319,"JBL--319");
}
case 320:
{
SetVehicleNumberPlate(320,"SNT--320");
}
case 329:
{
SetVehicleNumberPlate(329,"F--329--");
}
case 330:
{
SetVehicleNumberPlate(330,"U--330--");
}
case 331:
{
SetVehicleNumberPlate(331,"U--331--");
}
case 332:
{
SetVehicleNumberPlate(332,"P--332--");
}
case 333:
{
SetVehicleNumberPlate(333,"--ERP7--");
AddVehicleComponent(226,1010); // NOS
}
case 334:
{
SetVehicleNumberPlate(334,"KSM--334");
}
case 335:
{
SetVehicleNumberPlate(335,"P--335--");
}
case 357:
{
SetVehicleNumberPlate(357,"G--357--");
}
case 358:
{
SetVehicleNumberPlate(358,"G--358--");
}
case 359:
{
SetVehicleNumberPlate(359,"G--359--");
}
case 360:
{
SetVehicleNumberPlate(360,"G--360--");
}
case 361:
{
SetVehicleNumberPlate(361,"G--361--");
}
case 362:
{
SetVehicleNumberPlate(362,"G--362--");
}
case 363:
{
SetVehicleNumberPlate(363,"G--363--");
}
case 364:
{
SetVehicleNumberPlate(364,"G--364--");
}
case 366:
{
SetVehicleNumberPlate(366,"CHJ--366");
}
case 367:
{
SetVehicleNumberPlate(367,"CVB--367");
}
case 368:
{
SetVehicleNumberPlate(368,"CXD--368");
}
case 369:
{
SetVehicleNumberPlate(369,"TRB--369");
}
case 370:
{
SetVehicleNumberPlate(370,"TNG--370");
}
case 371:
{
SetVehicleNumberPlate(371,"TLL--371");
}
case 372:
{
SetVehicleNumberPlate(372,"OLG--372");
}
case 389:
{
SetVehicleNumberPlate(389,"LLC--389");
}
case 390:
{
SetVehicleNumberPlate(390,"ERP--390");
AddVehicleComponent(226,1010); // NOS
AddVehicleComponent(390,1087); // HYDR
AddVehicleComponent(390,1138); // SPOIL
}
case 391:
{
SetVehicleNumberPlate(391,"CFG--391");
}
case 392:
{
SetVehicleNumberPlate(391,"CVB--392");
}
case 393:
{
SetVehicleNumberPlate(393,"CYU--393");
}
case 394:
{
SetVehicleNumberPlate(394,"CDD--394");
}
case 395:
{
SetVehicleNumberPlate(395,"CLO--395");
}
case 396:
{
SetVehicleNumberPlate(396,"CKM--396");
}
case 398:
{
SetVehicleNumberPlate(398,"NNB--398");
}
case 399:
{
SetVehicleNumberPlate(399,"UXL--399");
}
case 400:
{
SetVehicleNumberPlate(400,"ZDP--400");
}
case 401:
{
SetVehicleNumberPlate(401,"JVV--401");
}
case 410:
{
SetVehicleNumberPlate(410,"CLZ--410");
}
case 411:
{
SetVehicleNumberPlate(411,"SVX--411");
}
case 412:
{
SetVehicleNumberPlate(412,"KAL--412");
}
case 413:
{
SetVehicleNumberPlate(413,"ZEL--413");
}
case 426:
{
SetVehicleNumberPlate(426,"G--426--");
}
case 427:
{
SetVehicleNumberPlate(427,"G--427--");
}
case 428:
{
SetVehicleNumberPlate(428,"G--428--");
}
case 429:
{
SetVehicleNumberPlate(429,"G--429--");
}
case 430:
{
SetVehicleNumberPlate(430,"G--430--");
}
case 431:
{
SetVehicleNumberPlate(431,"G--431--");
}
case 439:
{
SetVehicleNumberPlate(439,"X-VIP1--");
AddVehicleComponent(439,1010); // NOS
}
case 440:
{
SetVehicleNumberPlate(440,"X-VIP62--");
AddVehicleComponent(440,1010); // NOS
}
case 441:
{
SetVehicleNumberPlate(441,"X-VIP3--");
AddVehicleComponent(441,1010); // NOS
}
case 442:
{
SetVehicleNumberPlate(442,"X-VIP4--");
AddVehicleComponent(442,1010); // NOS
}
case 445:
{
SetVehicleNumberPlate(445,"VNS--445");
}
case 446:
{
SetVehicleNumberPlate(446,"X-VIP5--");
}
case 447:
{
SetVehicleNumberPlate(447,"X-VIP6--");
}
}
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new string[256];
if (GetVehicleModel(vehicleid) == 592 || GetVehicleModel(vehicleid) == 577 || GetVehicleModel(vehicleid) == 511 || GetVehicleModel(vehicleid) == 548 || GetVehicleModel(vehicleid) == 425 || GetVehicleModel(vehicleid) == 487 || GetVehicleModel(vehicleid) == 553 || GetVehicleModel(vehicleid) == 417 || GetVehicleModel(vehicleid) == 497 || GetVehicleModel(vehicleid) == 519 || GetVehicleModel(vehicleid) == 488){
SendClientMessage(playerid,COLOR_YELLOW, "You are in an air vehicle.");
SendClientMessage(playerid,COLOR_GREY, "Use /P [Message] in order to communicate with SAATC as well as all other commissioned air vehicles.");
}
switch(vehicleid)
{
case 1:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: Los Santos Police Dept.");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 1");
}
case 16:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Fierro Metro. Police Dept.");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 16");
}
case 32:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: Las Venturas Metro. Police Dept.");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 32");
}
case 33:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: Las Venturas Metro. Police Dept.");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 33");
}
case 34:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: Las Venturas Metro. Police Dept.");
SendClientMessage(playerid,COLOR_GREY, "ID: 34");
}
case 35:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: Las Venturas Metro. Police Dept.");
SendClientMessage(playerid,COLOR_GREY, "ID: 35");
}
case 36:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: Las Venturas Metro. Police Dept.");
SendClientMessage(playerid,COLOR_GREY, "ID: 36");
}
case 37:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: Las Venturas Metro. Police Dept.");
SendClientMessage(playerid,COLOR_GREY, "ID: 37");
}
case 38:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: Las Venturas Metro. Police Dept.");
SendClientMessage(playerid,COLOR_GREY, "ID: 38");
}
case 39:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: Las Venturas Metro. Police Dept.");
SendClientMessage(playerid,COLOR_GREY, "ID: 39");
}
case 40:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: Las Venturas Metro. Police Dept.");
SendClientMessage(playerid,COLOR_GREY, "ID: 40");
}
case 41:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: Las Venturas Metro. Police Dept.");
SendClientMessage(playerid,COLOR_GREY, "ID: 41");
}
case 42:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: Las Venturas Metro. Police Dept.");
SendClientMessage(playerid,COLOR_GREY, "ID: 42");
}
case 43:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: Las Venturas Metro. Police Dept.");
SendClientMessage(playerid,COLOR_GREY, "ID: 43");
}
case 44:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: Las Venturas Metro. Police Dept.");
SendClientMessage(playerid,COLOR_GREY, "ID: 44");
}
case 45:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: Las Venturas Metro. Police Dept.");
SendClientMessage(playerid,COLOR_GREY, "ID: 45");
}
case 46:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: Las Venturas Metro. Police Dept.");
SendClientMessage(playerid,COLOR_GREY, "ID: 46");
}
case 47:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: Las Venturas Metro. Police Dept.");
SendClientMessage(playerid,COLOR_GREY, "ID: 47");
}
case 48:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: Las Venturas Metro. Police Dept.");
SendClientMessage(playerid,COLOR_GREY, "ID: 48");
}
case 53:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas State Police (SASP).");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 53");
}
case 62:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas State Police (SASP).");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 62");
}
case 105:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Emergency Medical Serivces.");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 105");
}
case 106:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Emergency Medical Serivces.");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 106");
}
case 107:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Emergency Medical Serivces.");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 107");
}
case 108:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Emergency Medical Serivces.");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 108");
}
case 109:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Emergency Medical Serivces.");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 109");
}
case 110:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Emergency Medical Serivces.");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 110");
}
case 111:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Emergency Medical Serivces.");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 111");
}
case 112:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Emergency Medical Serivces.");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 112");
}
case 113:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Emergency Medical Serivces.");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 113");
}
case 114:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Emergency Medical Serivces.");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 114");
}
case 115:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Emergency Medical Serivces.");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 115");
}
case 116:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Emergency Medical Serivces.");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 116");
}
case 117:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Emergency Medical Serivces.");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 117");
}
case 124:
{
SendClientMessage(playerid,COLOR_GREY, "ERP Administration vehicle one.");
SendClientMessage(playerid,COLOR_GREY, "Plate: ERP1");
SendClientMessage(playerid,COLOR_GREY, "ID: 124");
}
case 125:
{
SendClientMessage(playerid,COLOR_GREY, "ERP Administration vehicle two.");
SendClientMessage(playerid,COLOR_GREY, "Plate: ERP2");
SendClientMessage(playerid,COLOR_GREY, "ID: 125");
}
case 126:
{
SendClientMessage(playerid,COLOR_GREY, "ERP Administration vehicle three.");
SendClientMessage(playerid,COLOR_GREY, "Plate: ERP3");
SendClientMessage(playerid,COLOR_GREY, "ID: 126");
}
case 127:
{
SendClientMessage(playerid,COLOR_GREY, "ERP Administration vehicle four.");
SendClientMessage(playerid,COLOR_GREY, "Plate: ERP4");
SendClientMessage(playerid,COLOR_GREY, "ID: 127");
}
case 128:
{
SendClientMessage(playerid,COLOR_GREY, "ERP Administration vehicle five.");
SendClientMessage(playerid,COLOR_GREY, "Plate: ERP5");
SendClientMessage(playerid,COLOR_GREY, "ID: 128");
}
case 129:
{
SendClientMessage(playerid,COLOR_GREY, "ERP Administration vehicle six.");
SendClientMessage(playerid,COLOR_GREY, "Plate: ERP6");
SendClientMessage(playerid,COLOR_GREY, "ID: 129");
}
case 130:
{
SendClientMessage(playerid,COLOR_GREY, "ERP Administration helicopter one.");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 130");
}
case 223:
{
SendClientMessage(playerid,COLOR_GREY, "ERP Administration helicopter two.");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 223");
}
case 225:
{
SendClientMessage(playerid,COLOR_GREY, "ERP Administration vehicle eight. (ERP Deputy Director [ERP]Caine)");
SendClientMessage(playerid,COLOR_GREY, "Plate: ERP8");
SendClientMessage(playerid,COLOR_GREY, "ID: 225");
}
case 226:
{
SendClientMessage(playerid,COLOR_GREY, "ERP Administration vehicle nine. (ERP Deputy Director [ERP]Caine)");
SendClientMessage(playerid,COLOR_GREY, "Plate: ERP9");
SendClientMessage(playerid,COLOR_GREY, "ID: 226");
}
case 255:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Public Works (SAPW).");
SendClientMessage(playerid,COLOR_GREY, "Plate: U255");
}
case 256:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Public Works (SAPW).");
SendClientMessage(playerid,COLOR_GREY, "Plate: U256");
}
case 257:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Public Works (SAPW).");
SendClientMessage(playerid,COLOR_GREY, "Plate: U257");
}
case 258:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Public Works (SAPW).");
SendClientMessage(playerid,COLOR_GREY, "Plate: U258");
}
case 259:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Public Works (SAPW).");
SendClientMessage(playerid,COLOR_GREY, "Plate: U259");
}
case 260:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Public Works (SAPW).");
SendClientMessage(playerid,COLOR_GREY, "Plate: U260");
}
case 261:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Transportation Administration (SATA).");
SendClientMessage(playerid,COLOR_GREY, "Plate: B261");
}
case 262:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Transportation Administration (SATA).");
SendClientMessage(playerid,COLOR_GREY, "Plate: T262");
}
case 263:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Transportation Administration (SATA).");
SendClientMessage(playerid,COLOR_GREY, "Plate: T263");
}
case 264:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Transportation Administration (SATA).");
SendClientMessage(playerid,COLOR_GREY, "Plate: T264");
}
case 265:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Transportation Administration (SATA).");
SendClientMessage(playerid,COLOR_GREY, "Plate: T265");
}
case 266:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Transportation Administration (SATA).");
SendClientMessage(playerid,COLOR_GREY, "Plate: B266");
}
case 267:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Transportation Administration (SATA).");
SendClientMessage(playerid,COLOR_GREY, "Plate: T267");
}
case 268:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Transportation Administration (SATA).");
SendClientMessage(playerid,COLOR_GREY, "Plate: T268");
}
case 269:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Transportation Administration (SATA).");
SendClientMessage(playerid,COLOR_GREY, "Plate: T269");
}
case 274:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas State Police (SASP).");
SendClientMessage(playerid,COLOR_GREY, "Plate: P274");
}
case 275:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas State Police (SASP).");
SendClientMessage(playerid,COLOR_GREY, "Plate: P275");
}
case 276:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas State Police (SASP).");
SendClientMessage(playerid,COLOR_GREY, "Plate: P276");
}
case 277:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas State Police (SASP).");
SendClientMessage(playerid,COLOR_GREY, "Plate: P277");
}
case 278:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas State Police (SASP).");
SendClientMessage(playerid,COLOR_GREY, "Plate: P278");
}
case 279:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]CeeJay.");
SendClientMessage(playerid,COLOR_GREY, "Plate: BNV279");
}
case 280:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]Gangsta.");
SendClientMessage(playerid,COLOR_GREY, "Plate: HKL280");
}
case 281:
{
SendClientMessage(playerid,COLOR_GREY, "Commercial vehicle registered to: Interglobal Television Corp.");
SendClientMessage(playerid,COLOR_GREY, "Plate: CYR281");
}
case 282:
{
SendClientMessage(playerid,COLOR_GREY, "Commercial vehicle registered to: Interglobal Television Corp.");
SendClientMessage(playerid,COLOR_GREY, "Plate: CGH282");
}
case 283:
{
SendClientMessage(playerid,COLOR_GREY, "Commercial vehicle registered to: Interglobal Television Corp.");
SendClientMessage(playerid,COLOR_GREY, "Plate: CDS283");
}
case 284:
{
SendClientMessage(playerid,COLOR_GREY, "Commercial vehicle registered to: Interglobal Television Corp.");
SendClientMessage(playerid,COLOR_GREY, "Plate: CUU284");
}
case 287:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]Police121.");
SendClientMessage(playerid,COLOR_GREY, "Plate: HYR287");
}
case 288:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]PIMP.");
SendClientMessage(playerid,COLOR_GREY, "Plate: JHZ288");
}
case 289:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]Gamer.");
SendClientMessage(playerid,COLOR_GREY, "Plate: IKK289");
}
case 290:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]Blade.");
SendClientMessage(playerid,COLOR_GREY, "Plate: RZB290");
}
case 291:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: US Federal Aviation Administration.");
SendClientMessage(playerid,COLOR_GREY, "Plate: G291");
}
case 292:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: US Federal Aviation Administration.");
SendClientMessage(playerid,COLOR_GREY, "Plate: G292");
}
case 293:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: US Federal Aviation Administration.");
SendClientMessage(playerid,COLOR_GREY, "Plate: G293");
}
case 294:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: US Federal Aviation Administration.");
SendClientMessage(playerid,COLOR_GREY, "Plate: G294");
}
case 295:
{
SendClientMessage(playerid,COLOR_GREY, "Commercial vehicle registered to: Blackwater USA.");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 295");
}
case 305:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas State Police (SASP).");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 305");
}
case 306:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]Wheelman.");
SendClientMessage(playerid,COLOR_GREY, "Plate: QMJ306");
}
case 307:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]Hash_Myth.");
SendClientMessage(playerid,COLOR_GREY, "Plate: OAL307");
}
case 308:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]Josh_Calone.");
SendClientMessage(playerid,COLOR_GREY, "Plate: LXZ308");
}
case 309:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]Squeak25.");
SendClientMessage(playerid,COLOR_GREY, "Plate: P309");
}
case 310:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]Squeak25.");
SendClientMessage(playerid,COLOR_GREY, "Plate: SQU310");
}
case 311:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]Barry.");
SendClientMessage(playerid,COLOR_GREY, "Plate: MKL311");
}
case 312:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]Patrick.");
SendClientMessage(playerid,COLOR_GREY, "Plate: VTY312");
}
case 313:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]Hypo.");
SendClientMessage(playerid,COLOR_GREY, "Plate: SHZ313");
}
case 314:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]Bounty.");
SendClientMessage(playerid,COLOR_GREY, "Plate: PXQ314");
}
case 315:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]Joe.");
SendClientMessage(playerid,COLOR_GREY, "Plate: ZXP315");
}
case 316:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]Mist.");
SendClientMessage(playerid,COLOR_GREY, "Plate: KLM316");
}
case 317:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]JohnnyJB.");
SendClientMessage(playerid,COLOR_GREY, "Plate: ODS317");
}
case 318:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]Razor.");
SendClientMessage(playerid,COLOR_GREY, "Plate: HFC318");
}
case 319:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]Varmint.");
SendClientMessage(playerid,COLOR_GREY, "Plate: JBL319");
}
case 320:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]Spencer.");
SendClientMessage(playerid,COLOR_GREY, "Plate: SNT320");
}
case 329:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Fire Department (FDSA).");
SendClientMessage(playerid,COLOR_GREY, "Plate: F329");
}
case 330:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Public Works (SAPW).");
SendClientMessage(playerid,COLOR_GREY, "Plate: U330");
}
case 331:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Public Works (SAPW).");
SendClientMessage(playerid,COLOR_GREY, "Plate: U331");
}
case 332:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas State Police (SASP).");
SendClientMessage(playerid,COLOR_GREY, "Plate: P332");
}
case 333:
{
SendClientMessage(playerid,COLOR_GREY, "ERP Administration vehicle seven. (ERP Director [ERP]Chris)");
SendClientMessage(playerid,COLOR_GREY, "Plate: ERP7");
SendClientMessage(playerid,COLOR_GREY, "ID: 333");
}
case 334:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]Sted.");
SendClientMessage(playerid,COLOR_GREY, "Plate: KSM334");
}
case 335:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas State Police (SASP).");
SendClientMessage(playerid,COLOR_GREY, "Plate: P335");
}
case 357:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Dept. of Civil Protection.");
SendClientMessage(playerid,COLOR_GREY, "Plate: G357");
}
case 358:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Dept. of Civil Protection.");
SendClientMessage(playerid,COLOR_GREY, "Plate: G358");
}
case 359:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Dept. of Civil Protection.");
SendClientMessage(playerid,COLOR_GREY, "Plate: G359");
}
case 360:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Dept. of Civil Protection.");
SendClientMessage(playerid,COLOR_GREY, "Plate: G360");
}
case 361:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Dept. of Civil Protection.");
SendClientMessage(playerid,COLOR_GREY, "Plate: G361");
}
case 362:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Dept. of Civil Protection.");
SendClientMessage(playerid,COLOR_GREY, "Plate: G362");
}
case 363:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Dept. of Civil Protection.");
SendClientMessage(playerid,COLOR_GREY, "Plate: G363");
}
case 364:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Dept. of Civil Protection.");
SendClientMessage(playerid,COLOR_GREY, "Plate: G364");
}
case 365:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Dept. of Civil Protection.");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 365");
}
case 366:
{
if (IsTrailerAttachedToVehicle(366)) {
new trailerid;
trailerid = GetVehicleTrailer(366);
SendClientMessage(playerid,COLOR_GREY, "Commercial vehicle registered to: Stoner Freight Co.");
SendClientMessage(playerid,COLOR_GREY, "Plate: CHJ366");
format(string, sizeof(string), "Trailer ID: %d",trailerid);
SendClientMessage(playerid, COLOR_GREY, string);
}else{
SendClientMessage(playerid,COLOR_GREY, "Commercial vehicle registered to: Stoner Freight Co.");
SendClientMessage(playerid,COLOR_GREY, "Plate: CHJ366");
}
}
case 367:
{
if (IsTrailerAttachedToVehicle(367)) {
new trailerid;
trailerid = GetVehicleTrailer(367);
SendClientMessage(playerid,COLOR_GREY, "Commercial vehicle registered to: Stoner Freight Co.");
SendClientMessage(playerid,COLOR_GREY, "Plate: CVB367");
format(string, sizeof(string), "Trailer ID: %d",trailerid);
SendClientMessage(playerid, COLOR_GREY, string);
}else{
SendClientMessage(playerid,COLOR_GREY, "Commercial vehicle registered to: Stoner Freight Co.");
SendClientMessage(playerid,COLOR_GREY, "Plate: CVB367");
}
}
case 368:
{
if (IsTrailerAttachedToVehicle(367)) {
new trailerid;
trailerid = GetVehicleTrailer(367);
SendClientMessage(playerid,COLOR_GREY, "Commercial vehicle registered to: Stoner Freight Co.");
SendClientMessage(playerid,COLOR_GREY, "Plate: CXD358");
format(string, sizeof(string), "Trailer ID: %d",trailerid);
SendClientMessage(playerid, COLOR_GREY, string);
}else{
SendClientMessage(playerid,COLOR_GREY, "Commercial vehicle registered to: Stoner Freight Co.");
SendClientMessage(playerid,COLOR_GREY, "Plate: CXD358");
}
}
case 372:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]Max.");
SendClientMessage(playerid,COLOR_GREY, "Plate: OLG372");
}
case 377:
{
SendClientMessage(playerid,COLOR_GREY, "ERP Administration train one.");
SendClientMessage(playerid,COLOR_GREY, "Locomotive.");
SendClientMessage(playerid,COLOR_GREY, "ID: 373");
}
case 378:
{
SendClientMessage(playerid,COLOR_GREY, "ERP Administration train one.");
SendClientMessage(playerid,COLOR_GREY, "Car one.");
SendClientMessage(playerid,COLOR_GREY, "ID: 378");
SendClientMessage(playerid,COLOR_GREY, "Welcome aboard.");
}
case 379:
{
SendClientMessage(playerid,COLOR_GREY, "ERP Administration train one.");
SendClientMessage(playerid,COLOR_GREY, "Car two.");
SendClientMessage(playerid,COLOR_GREY, "ID: 379");
SendClientMessage(playerid,COLOR_GREY, "Welcome aboard.");
}
case 380:
{
SendClientMessage(playerid,COLOR_GREY, "ERP Administration train one.");
SendClientMessage(playerid,COLOR_GREY, "Car three.");
SendClientMessage(playerid,COLOR_GREY, "ID: 380");
SendClientMessage(playerid,COLOR_GREY, "Welcome aboard.");
}
case 382,383,384:
{
SendClientMessage(playerid,COLOR_GREY, "SATA train one.");
SendClientMessage(playerid,COLOR_GREY, "The San Andreas Transportation Administration welcomes you aboard.");
}
case 386,387,388:
{
SendClientMessage(playerid,COLOR_GREY, "SATA train two.");
SendClientMessage(playerid,COLOR_GREY, "The San Andreas Transportation Administration welcomes you aboard.");
}
case 389:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]Vagorider.");
SendClientMessage(playerid,COLOR_GREY, "Plate: LLC389");
}
case 390:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]Chris.");
SendClientMessage(playerid,COLOR_GREY, "Plate: ERP556");
}
case 391:
{
SendClientMessage(playerid,COLOR_GREY, "Commercial vehicle registered to: San Andreas Racing Association.");
SendClientMessage(playerid,COLOR_GREY, "Plate: CFG391");
}
case 392:
{
SendClientMessage(playerid,COLOR_GREY, "Commercial vehicle registered to: San Andreas Racing Association.");
SendClientMessage(playerid,COLOR_GREY, "Plate: CVB392");
}
case 393:
{
SendClientMessage(playerid,COLOR_GREY, "Commercial vehicle registered to: San Andreas Racing Association.");
SendClientMessage(playerid,COLOR_GREY, "Plate: CYU393");
}
case 394:
{
SendClientMessage(playerid,COLOR_GREY, "Commercial vehicle registered to: San Andreas Racing Association.");
SendClientMessage(playerid,COLOR_GREY, "Plate: CDD394");
}
case 395:
{
SendClientMessage(playerid,COLOR_GREY, "Commercial vehicle registered to: San Andreas Racing Association.");
SendClientMessage(playerid,COLOR_GREY, "Plate: CLO395");
}
case 396:
{
SendClientMessage(playerid,COLOR_GREY, "Commercial vehicle registered to: San Andreas Racing Association. (Security)");
SendClientMessage(playerid,COLOR_GREY, "Plate: CKM396");
}
case 398:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]Eddy.");
SendClientMessage(playerid,COLOR_GREY, "Plate: NNB398");
}
case 399:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]JohnnyJB.");
SendClientMessage(playerid,COLOR_GREY, "Plate: UXL399");
}
case 400:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]Schaduw.");
SendClientMessage(playerid,COLOR_GREY, "Plate: ZDP400");
}
case 401:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]Kristjan.");
SendClientMessage(playerid,COLOR_GREY, "Plate: JVV401");
}
case 410:
{
SendClientMessage(playerid,COLOR_GREY, "Commercial vehicle registered to: San Andreas Racing Association.");
SendClientMessage(playerid,COLOR_GREY, "Plate: CLZ410");
}
case 411:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]Birdy.");
SendClientMessage(playerid,COLOR_GREY, "Plate: SVX411");
}
case 412:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]Vortex.");
SendClientMessage(playerid,COLOR_GREY, "Plate: VORG412");
}
case 413:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]Rome.");
SendClientMessage(playerid,COLOR_GREY, "Plate: ZEL413");
}
case 414:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas emergency Medical Serivces.");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 414");
}
case 415:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas emergency Medical Serivces.");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 415");
}
case 416:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas emergency Medical Serivces.");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 416");
}
case 417:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas emergency Medical Serivces.");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 417");
}
case 426:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Sate Government");
SendClientMessage(playerid,COLOR_GREY, "Plate: G426");
}
case 427:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Sate Government");
SendClientMessage(playerid,COLOR_GREY, "Plate: G427");
}
case 428:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Sate Government");
SendClientMessage(playerid,COLOR_GREY, "Plate: G428");
}
case 429:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Sate Government");
SendClientMessage(playerid,COLOR_GREY, "Plate: G429");
}
case 430:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Sate Government");
SendClientMessage(playerid,COLOR_GREY, "Plate: G430");
}
case 431:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Sate Government");
SendClientMessage(playerid,COLOR_GREY, "Plate: G431");
}
case 432:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Sate Government");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 432");
}
case 433:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Sate Government");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 433");
}
case 434:
{
SendClientMessage(playerid,COLOR_GREY, "Government vehicle registered to: San Andreas Sate Government");
SendClientMessage(playerid,COLOR_GREY, "Plate: N/A");
SendClientMessage(playerid,COLOR_GREY, "ID: 434");
}
case 435:
{
SendClientMessage(playerid,COLOR_GREY, "ERP Administration train two.");
SendClientMessage(playerid,COLOR_GREY, "Locomotive.");
SendClientMessage(playerid,COLOR_GREY, "ID: 435");
}
case 436:
{
SendClientMessage(playerid,COLOR_GREY, "ERP Administration train two.");
SendClientMessage(playerid,COLOR_GREY, "Car one.");
SendClientMessage(playerid,COLOR_GREY, "ID: 435");
SendClientMessage(playerid,COLOR_GREY, "Welcome aboard.");
}
case 437:
{
SendClientMessage(playerid,COLOR_GREY, "ERP Administration train two.");
SendClientMessage(playerid,COLOR_GREY, "Car two.");
SendClientMessage(playerid,COLOR_GREY, "ID: 435");
SendClientMessage(playerid,COLOR_GREY, "Welcome aboard.");
}
case 438:
{
SendClientMessage(playerid,COLOR_GREY, "ERP Administration train two.");
SendClientMessage(playerid,COLOR_GREY, "Car three.");
SendClientMessage(playerid,COLOR_GREY, "ID: 435");
SendClientMessage(playerid,COLOR_GREY, "Welcome aboard.");
}
case 439,440,441,442,443.444,446,447:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered as exempt.");
SendClientMessage(playerid,COLOR_GREY, "Type: ERP VIP vehicle.");
}
case 445:
{
SendClientMessage(playerid,COLOR_GREY, "This vehicle is registered to [ERP]XmadmollX.");
SendClientMessage(playerid,COLOR_GREY, "Plate: VNS445");
}
}
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
switch(vehicleid)
{
case 382,383,384:
{
SendClientMessage(playerid,COLOR_GREY, "SATA train one.");
SendClientMessage(playerid,COLOR_GREY, "Thank you for having chosen to travel with the San Andreas Transportation Administration.");
SendClientMessage(playerid,COLOR_GREY, "Have a nice day.");
}
case 386,387,388:
{
SendClientMessage(playerid,COLOR_GREY, "SATA train two.");
SendClientMessage(playerid,COLOR_GREY, "Thank you for having chosen to travel with the San Andreas Transportation Administration.");
SendClientMessage(playerid,COLOR_GREY, "Have a nice day.");
}
}
return 1;
}
//======================================================================================================================================================
public OnPlayerText(playerid,text[])
{
new i;
new string[256];
if(afk[playerid] == 1 || brb[playerid] == 1)
{
SendClientMessage(playerid,COLOR_BRIGHTRED,"The chat function has been disabled for you because your status is either AFK or BRB.");
SendClientMessage(playerid,COLOR_BRIGHTRED,"Use the /back command to regain chat functionality.");
return 0;
}
if(text[0] == '!') {
new name[24]; /*, string[256];*/
GetPlayerName(playerid, name, 24);
format(string, sizeof(string), "%s [Radio]: %s", name, text[1]);
//for(new i = 0; i < MAX_PLAYERS; i++)
for(i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i)) {
if(gteam[i] == gteam[playerid])
SendClientMessage(i, GetPlayerColor(playerid), string);
}
}
if(IsPlayerConnected(Mobile[playerid]) == 1 && Mobile[Mobile[playerid]] == playerid)
{
SendClientMessage(Mobile[playerid], COLOR_YELLOW,string);
}
else
{
SendClientMessage(playerid, COLOR_RED,"Theres nobody there");
}
return 0;
}
return 1;
}
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 SendTeamMessage(team, color, string[])
{
if (gdebug >= 1){printf("DEBUG SendTeamMessage(%d)", team);}
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1 && gteam[i] == team)
{
SendClientMessage(i, color, string);
}
}
}
public SendTeamBeepMessage(team, color, string[])
{
if (gdebug >= 1){printf("DEBUG SendTeamMessage(%d)", team);}
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1 && gteam[i] == team)
{
SendClientMessage(i, color, string);
RingTone[i] = 20;
}
}
}
public IsACopCar(carid)
{
if( (carid >= 1) && (carid <= 123) || (carid >= 194) && (carid <= 239) || (carid >= 249) && (carid <= 254) || (carid >= 274) && (carid <= 280) || (carid == 289) || (carid >= 300) && (carid <= 305) || (carid == 309) || (carid == 332) || (carid == 335) || (carid == 336) || (carid >= 357) && (carid <= 365) ||
/*ERP CARS*/ (carid >= 124) && (carid <= 130) || (carid = 223) || (carid = 225) || (carid = 226) || (carid = 333) || (carid = 377) || (carid = 390) )
{
return 1;
}
return 0;
}
public IsATrailer(carid)
{
if( (carid >= 369) && (carid <= 371) || (carid == 321))
{
return 1;
}
return 0;
}
public IsServiceVehicle(vehicleid)
{
if( GetVehicleModel(vehicleid) == 407 || GetVehicleModel(vehicleid) == 416 || GetVehicleModel(vehicleid) == 421 || GetVehicleModel(vehicleid) == 425 || GetVehicleModel(vehicleid) == 427 || GetVehicleModel(vehicleid) == 430 || GetVehicleModel(vehicleid) == 433 || GetVehicleModel(vehicleid) == 470 || GetVehicleModel(vehicleid) == 490 || GetVehicleModel(vehicleid) == 487 ||
GetVehicleModel(vehicleid) == 497 || GetVehicleModel(vehicleid) == 520 || GetVehicleModel(vehicleid) == 525 || GetVehicleModel(vehicleid) == 540 || GetVehicleModel(vehicleid) == 548 || GetVehicleModel(vehicleid) == 595 || GetVehicleModel(vehicleid) == 596 || GetVehicleModel(vehicleid) == 598 || GetVehicleModel(vehicleid) == 597 || GetVehicleModel(vehicleid) == 598 || GetVehicleModel(vehicleid) == 599 )
{
return 1;
}
return 0;
}
/*
public IsAnERPCar(carid)
{
if( (carid >= 124) && (carid <= 130) || (carid = 223) || (carid = 225) || (carid = 226) || (carid = 333) || (carid = 377) || (carid = 390))
{
return 1;
}
return 0;
}
*/
public IsAnAmbulance(carid)
{
if( (carid >= 105) && (carid <= 123) || (carid >= 219) && (carid <= 222) )
{
return 1;
}
return 0;
}
public OffTheHook()
{
if (gdebug >= 1){printf("DEBUG OffTheHook()");}
new hookoff[128];
new offhookn[MAX_PLAYER_NAME];
new mission = gPlayerMission[gPublicEnemy];
if(mission == 4)
{
mission = random(3)+1;
}
switch (mission)
{
case 1:
{
PlayerInfo[gPublicEnemy][pCB]++;
if(PlayerInfo[gPublicEnemy][pCB] >= 4)
{
PlayerInfo[gPublicEnemy][pExp]++;
PlayerInfo[gPublicEnemy][pCB] = 0;
SendClientMessage(gPublicEnemy, COLOR_YELLOW, "You are getting stronger Exp +1");
}
}
case 2:
{
PlayerInfo[gPublicEnemy][pSR]++;
if(PlayerInfo[gPublicEnemy][pSR] >= 4)
{
PlayerInfo[gPublicEnemy][pExp]++;
PlayerInfo[gPublicEnemy][pSR] = 0;
SendClientMessage(gPublicEnemy, COLOR_YELLOW, "You are getting stronger Exp +1");
}
}
case 3:
{
PlayerInfo[gPublicEnemy][pHW]++;
if(PlayerInfo[gPublicEnemy][pHW] >= 4)
{
PlayerInfo[gPublicEnemy][pExp]++;
PlayerInfo[gPublicEnemy][pHW] = 0;
SendClientMessage(gPublicEnemy, COLOR_YELLOW, "You are getting stronger Exp +1");
}
}
default:
{
}
}
SetPlayerToTeamColor(gPublicEnemy);
GetPlayerName(gPublicEnemy, offhookn, sizeof(offhookn));
format(hookoff, sizeof(hookoff), "NEWSFLASH: %s Has Evaded The Police And Is No Longer Public Enemy No.1",offhookn);
RingTone[gPublicEnemy] = 20;
SendClientMessageToAll(COLOR_PURPLE, hookoff);
gPublicEnemy = INVALID_PLAYER_ID;
return 1;
}
public SetPlayerToTeamColor(playerid)
{
if(gteam[playerid] == 28)
{
SetPlayerColor(playerid,COLOR_CRIMBLUE); // red
}
}
public SetPlayerFlash()
{
//if (gdebug >= 2){printf("DEBUG SetPlayerFlash()");}
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if (gPublicEnemy == i || gSuperCop == i)
{
FlashTime[i] = 3;
}
if(IsPlayerConnected(i) == 1 && FlashTime[i] > 0)
{
//printf("flashtime %d %d",i,FlashTime[i]);
FlashTime[i]--;
SetPlayerColorFlash(i);
}
}
SetTimer("SetPlayerFlashRev", 1000, 0);
return 1;
}
public ViewTagsBasedOnTeam()
{
for(new i=0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
for(new j=i+1; j < MAX_PLAYERS; j++)
{
if (IsPlayerConnected(j))
{
if (gteam[i] == gteam[j])
{
ShowPlayerNameTagForPlayer(i,j,1);
ShowPlayerNameTagForPlayer(j,i,1);
}
else
{
ShowPlayerNameTagForPlayer(i,j,0);
ShowPlayerNameTagForPlayer(j,i,0);
}
}
}
}
}
return 1;
}
public SetPlayerFlashRev()
{
//if (gdebug >= 2){printf("DEBUG SetPlayerFlashRev()");}
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1 && FlashTime[i] > 1)
{
FlashTime[i]--;
//printf("flashtime %d %d",i,FlashTime[i]);
SetPlayerColor(i,COLOR_CRIMBLUE); // invisibile
}
}
SetTimer("SetPlayerFlash", 10000, 0);
return 1;
}
public SetPlayerColorFlash(playerid)
{
SetPlayerColor(playerid,COLOR_BRIGHTRED); // color to flash for wanted people
}
public SetPlayerUnjail()
{
if (gdebug >= 3){printf("DEBUG SetPlayerUnjail()");}
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1 && JailTime[i] < 0)
{
JailTime[i]++;
//printf("JailTime %d %d",i,JailTime[i]);
}
if(IsPlayerConnected(i) == 1 && JailTime[i] > 0)
{
JailTime[i]--;
//printf("JailTime %d %d",i,JailTime[i]);
}
if(IsPlayerConnected(i) == 1 && JailTime[i] == 10)
{
new string[128];
//printf("JailTime %d %d",i,JailTime[i]);
FlashTime[i] = 0;
SetPlayerPos(i,268.3,77.4,1001.0);
SendClientMessage(i, COLOR_GRAD1," You have paid your debt to society.");
format(string, sizeof(string), "~g~Freedom~n~~w~Try to be a better citizen");
GameTextForPlayer(i, string, 5000, 1);
PlayJailSound(1165 , 1166, 1000,264.395200, 77.564040, 1001.039000);
}
}
}
public PlayJailSound(sound , stopsound, duration, Float:jailx, Float:jaily, Float:jailz)
{
if (gdebug >= 1){printf("DEBUG PlayJailSound()");}
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1)
{
PlayerPlaySound(i, sound, jailx, jaily, jailz);
//printf("startjail %d",i);
stopsoundt = stopsound;
jailxt = jailx;
jailyt = jaily;
jailzt = jailz;
}
}
SetTimer("StopJail", duration, 0);
}
public StopJail()
{
if (gdebug >= 1){printf("DEBUG StopJail()");}
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1)
{
PlayerPlaySound(i, stopsoundt, jailxt, jailyt, jailzt);
//printf("stopjail %d",i);
}
}
}
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
SendClientMessage(playerid, COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_BRIGHTRED, "ERP ADMINISTRATION NOTICE - PM COMMAND DISABLED");
SendClientMessage(playerid, COLOR_GREY, "The /pm command has been disabled.");
SendClientMessage(playerid, COLOR_GREY, "In order to privately contact someone on the ERP server, you may use /c [Player ID] [Message].");
SendClientMessage(playerid, COLOR_GREY, "The ERP Administration thanks you for your understanding.");
SendClientMessage(playerid, COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
return 0;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
new string[256];
new cmd[256];
new playermoney;
new giveplayer[MAX_PLAYER_NAME];
new sendername[MAX_PLAYER_NAME];
new dancestyle;
new giveplayerid, moneys, idx;
new animationplayed;
cmd = strtok(cmdtext, idx);
dcmd(login,5,cmdtext); // because login has 5 characters
dcmd(register,8,cmdtext); // because register has 8 characters
//===========================Wether change=================================
if(strcmp(cmd, "/weather", true) == 0)
{
if(IsPlayerAdmin(playerid) == 1 ){
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /weather [Weather ID] (0-46)");
return 1;
}
new weather;
weather = strval(tmp);
if(weather>46||weather<0)
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /weather [Weather ID] (0-46)");
}
else
{
SetWeather(weather);
format(string, sizeof(string), "WEATHER SET TO %d", weather);
SendClientMessage(playerid, COLOR_YELLOW, string);
return 1;
}
}
return 1;
}
if(strcmp(cmd, "/forecast", true) == 0)
{
if(IsPlayerAdmin(playerid) == 1){
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Forcast [Weather ID] (0-46)");
return 1;
}
new weather;
weather = strval(tmp);
if(weather>46||weather<0)
{
SendClientMessage(playerid,COLOR_WHITE, "USAGE: /Forcast [Weather ID] (0-46)");
}
if(weather>0||weather<7||weather==10)
{
SendClientMessageToAll(COLOR_WHITE, "-------------------------------------------------------------");
SendClientMessageToAll(0xAA3333AA, "The Weather Today Will Be Sunny Skies With Outbreaks Of Cloud");
SendClientMessageToAll(COLOR_WHITE, "-------------------------------------------------------------");
}
if(weather==8)
{
SendClientMessageToAll(COLOR_WHITE, "-------------------------------------------------------------");
SendClientMessageToAll(0xAA3333AA, "The Weather Today Will Be ThunderStorms Throughout San Andreas");
SendClientMessageToAll(COLOR_WHITE, "-------------------------------------------------------------");
}
if(weather==9||weather==20)
{
SendClientMessageToAll(COLOR_WHITE, "------------------------------------------------------");
SendClientMessageToAll(0xAA3333AA, "The Weather Today Will Be Foggy Throughout San Andreas");
SendClientMessageToAll(COLOR_WHITE, "------------------------------------------------------");
}
if(weather==11||weather==17||weather==18)
{
SendClientMessageToAll(COLOR_WHITE, "--------------------------------------------------------------");
SendClientMessageToAll(0xAA3333AA, "The Weather Today Will Be Scorching Hot Throughout San Andreas");
SendClientMessageToAll(COLOR_WHITE, "--------------------------------------------------------------");
}
if(weather==19)
{
SendClientMessageToAll(COLOR_WHITE, "-----------------------------------------------------------");
SendClientMessageToAll(0xAA3333AA, "The Weather Today Will Be Windy, Sandstorms May Occur In LV");
SendClientMessageToAll(COLOR_WHITE, "-----------------------------------------------------------");
}
if(weather>21||weather<45)
{
SendClientMessageToAll(COLOR_WHITE, "-----------------------------------------------------------");
SendClientMessageToAll(0xAA3333AA, "The Weather Today Will Be Windy, Sandstorms May Occur In LV");
SendClientMessageToAll(COLOR_WHITE, "-----------------------------------------------------------");
}
}
return 1;
}
//===========================ANIMATIONS!===================================
if(strcmp(cmd, "/dance", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
new tmp[256];
// Get the dance style param
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid,0xFF0000FF,"Usage: /dance [Style 1-3]");
return 1;
}
dancestyle = strval(tmp);
if(dancestyle < 1 || dancestyle > 3) {
SendClientMessage(playerid,0xFF0000FF,"Usage: /dance [Style 1-3]");
return 1;
}
if(dancestyle == 1) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
} else if(dancestyle == 2) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);
} else if(dancestyle == 3) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);
}
return 1;
}
}
// HANDSUP
if(strcmp(cmd, "/handsup", true) == 0) {
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
}
}
return 1;
}
}
// Police Arrest
if (strcmp("/arrest222", cmdtext, true) == 0) {
ApplyAnimation( playerid,"ped", "ARRESTgun", 4.0, 0, 0, 0, 0, 0); // Gun Arrest
SendClientMessage(playerid, COLOR_YELLOW, "You are arresting someone with your weapon drawn.");
return 1;
}
// Wave
if (strcmp("/wave", cmdtext, true) == 0) {
ApplyAnimation(playerid, "KISSING", "BD_GF_Wave", 3.0, 0, 0, 0, 0, 0); // Wave
SendClientMessage(playerid, COLOR_YELLOW, "You are waving.");
return 1;
}
// Fuck U
if (strcmp("/fu", cmdtext, true) == 0) {
ApplyAnimation( playerid,"ped", "fucku", 4.1, 0, 1, 1, 1, 1 ); // Wave fist / Pull fingers (with block hands)
SendClientMessage(playerid, COLOR_YELLOW, "You are now pulling the finger.");
return 1;
}
// Lay Down
if (strcmp("/lay", cmdtext, true) == 0) {
ApplyAnimation(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0); // Lay down
SendClientMessage(playerid, COLOR_YELLOW, "You are laying down.");
return 1;
}
// Arrested
if (strcmp("/arrested222", cmdtext, true) == 0) {
ApplyAnimation(playerid, "POLICE", "crm_drgbst_01", 4.0, 0, 0, 0, 0, 0); // Arrested
SendClientMessage(playerid, COLOR_YELLOW, "You are being arrested.");
return 1;
}
// Injury
if (strcmp("/injured222", cmdtext, true) == 0) {
ApplyAnimation(playerid, "SWEET", "Sweet_injuredloop", 4.0, 0, 0, 0, 0, 0); // Injured
SendClientMessage(playerid, COLOR_YELLOW, "You are injured.");
return 1;
}
// Rob Lookout
if (strcmp("/lookout222", cmdtext, true) == 0) {
ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 1, 0, 0, 0, 0); // Rob Lookout
SendClientMessage(playerid, COLOR_YELLOW, "You are looking out for cops.");
return 1;
}
// Rob Threat
if (strcmp("/rob", cmdtext, true) == 0) {
ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0); // Rob
SendClientMessage(playerid, COLOR_YELLOW, "You are threatening someone with your weapon.");
return 1;
}
// Laugh
if (strcmp("/laugh", cmdtext, true) == 0) {
ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0); // Laugh
SendClientMessage(playerid, COLOR_YELLOW, "You are laughing.");
return 1;
}
// Sit
if (strcmp("/sit2", cmdtext, true) == 0) {
ApplyAnimation(playerid,"Attractors","Stepsit_loop",4.1,0,1,1,1,1);
SendClientMessage(playerid, COLOR_YELLOW, "You are sitting down.");
return 1;
}
// sit stand 2
if (strcmp("/sit2stand", cmdtext, true) == 0) {
ApplyAnimation(playerid,"Attractors","Stepsit_out",4.1,0,1,1,1,1);
SendClientMessage(playerid, COLOR_YELLOW, "You are sitting down.");
return 1;
}
// Kiss
if (strcmp("/kiss", cmdtext, true) == 0) {
ApplyAnimation(playerid, "KISSING", "Playa_Kiss_02", 3.0, 0, 0, 0, 0, 0); // Kiss
SendClientMessage(playerid, COLOR_YELLOW, "You are kissing someone.");
return 1;
}
// wank
if (strcmp("/wank", cmdtext, true) == 0) {
ApplyAnimation(playerid, "PAULNMAC", "wank_loop", 3.0, 1, 0, 0, 0, 0); // wank
SendClientMessage(playerid, COLOR_YELLOW, "You are wanking.");
return 1;
}
//plant bomb
if (strcmp("/plantbomb222", cmdtext, true) == 0) {
ApplyAnimation(playerid, "BOMBER", "BOM_Plant_Loop", 3.0, 0, 0, 0, 0, 0); // planting bomb
SendClientMessage(playerid, COLOR_YELLOW, "You are Planting a bomb.");
return 1;
}
//poor
if (strcmp("/Beg", cmdtext, true) == 0) {
ApplyAnimation(playerid, "POOR", "WINWASH_Wash2Beg", 3.0, 0, 0, 0, 0, 0); // beg
return 1;
}
if (strcmp("/CleanWindow222", cmdtext, true) == 0) {
ApplyAnimation(playerid, "POOR", "WINWASH_Start", 3.0, 0, 0, 0, 0, 0); // poor
return 1;
}
//smoking
if (strcmp("/Smoking", cmdtext, true) == 0) {
ApplyAnimation(playerid, "SMOKING", "M_smk_loop", 3.0, 1, 0, 0, 0, 0); //smoking
return 1;
}
//Celebrate
if(strcmp(cmd, "/celebrate222", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
ApplyAnimation(playerid,"Freeweights","gym_free_celebrate",4.0,1,0,0,0,0);
return 1;
}
}
//Drunk
if(strcmp(cmd, "/drunk", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
//ApplyAnimation(playerid,"PED","WALK_DRUNK",4.0,1,1,0,0,0);
ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
return 1;
}
}
//ATM
if(strcmp(cmd, "/atm", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
ApplyAnimation(playerid,"PED","ATM",4.0,0,0,0,0,-1);
return 1;
}
}
//BALLS
if(strcmp(cmd, "/balls", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
ApplyAnimation(playerid,"MISC","Scratchballs_01",4.0,1,0,0,0,0);
return 1;
}
}
// Take Cover
if (strcmp("/duck", cmdtext, true, 3) == 0) {
ApplyAnimation(playerid, "ped", "cower", 3.0, 0, 0, 0, 0, 0); // Taking Cover
SendClientMessage(playerid, COLOR_YELLOW, "You are taking cover.");
return 1;
}
// Vomit
if (strcmp("/vomit", cmdtext, true) == 0) {
ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0); // Vomit BAH!
SendClientMessage(playerid, COLOR_YELLOW, "You are vomiting.");
return 1;
}
// Eat Burger
if (strcmp("/eat", cmdtext, true) == 0) {
ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.00, 0, 0, 0, 0, 0); // Eat Burger
SendClientMessage(playerid, COLOR_YELLOW, "You are eating.");
return 1;
}
// Death Crawling
if (strcmp("/death", cmdtext, true) == 0) {
ApplyAnimation(playerid, "WUZI", "CS_Dead_Guy", 4.0, 0, 0, 0, 0, 0); // Dead Crawling
SendClientMessage(playerid, COLOR_YELLOW, "You are crawling dead.");
return 1;
}
// Dealer
if (strcmp("/deal", cmdtext, true) == 0) {
ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0); // Deal Drugs
SendClientMessage(playerid, COLOR_YELLOW, "You are drug dealing.");
return 1;
}
// Crack Dieing
if (strcmp("/crack", cmdtext, true, 6) == 0) {
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 0, 0, 0, 0, 0); // Dieing of Crack
SendClientMessage(playerid, COLOR_YELLOW, "You are trippin");
return 1;
}
// Piss
if (strcmp("/piss", cmdtext, true, 8) == 0) {
ApplyAnimation(playerid, "PAULNMAC", "Piss_in", 3.0, 0, 0, 0, 0, 0); // Pissing
SendClientMessage(playerid, COLOR_YELLOW, "You are pissing");
return 1;
}
// Male Smoking
if (strcmp("/smoke", cmdtext, true, 4) == 0) {
ApplyAnimation(playerid,"SMOKING", "M_smklean_loop", 4.0, 0, 0, 0, 0, 0); // Smoke
SendClientMessage(playerid, COLOR_YELLOW, "You are smoking");
return 1;
}
// SIT GOOD
if (strcmp("/sit", cmdtext, true, 4) == 0) {
ApplyAnimation(playerid,"PED","SEAT_down",4.1,0,1,1,1,1);
return 1;
}
// SIT STAND
if (strcmp("/sitstand", cmdtext, true, 4) == 0) {
ApplyAnimation(playerid,"PED","SEAT_up",4.1,0,1,1,1,1);
return 1;
}
// Idle Chat
if(strcmp(cmd, "/chat", true) == 0)
{
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1,1,1,1);
SendClientMessage(playerid, COLOR_YELLOW, "You are now talking"); // Chat
return 1;
}
}
//========================END ANIMATIONS!===========================
// SUICIDE COMMAND
if (strcmp(cmdtext, "/suicide222", true)==0){ // FORMERLY THE /KILL COMMAND
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_BattleTan || gteam[playerid]==Team_BattlePurple){
SendClientMessage(playerid,COLOR_RED,"This command is not available to you at the moment.");
}else{
SetPlayerHealth(playerid,0.0);
}
}
}
return 1;
}
//-----------------------------------Advertise-------------------
if(strcmp(cmd, "/advertise", true) == 0 || strcmp(cmd, "/ad", true) == 0)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/ad)vertise [Message]");
return 1;
}
if ((noooc) && (PlayerInfo[playerid][pAdmin] < 1))
{
SendClientMessage(playerid, COLOR_RED, "The advertisment chanel has been disabled by a server administrator.");
return 1;
}
if ((!adds) && (PlayerInfo[playerid][pAdmin] < 1))
{
format(string, sizeof(string), "Please try again later (%d seconds between adverts)", (addtimer/1000));
SendClientMessage(playerid, COLOR_RED, string);
return 1;
}
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
format(string, sizeof(string), "ADVERTISEMENT");
SendClientMessageToAll(COLOR_YELLOW,string);
format(string, sizeof(string), "%s", result);
SendClientMessageToAll(COLOR_GREY,string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
GivePlayerMoney(playerid,-500);
if (PlayerInfo[playerid][pAdmin] < 1){SetTimer("AddsOn", addtimer, 0);adds = 0;}
printf("%s", string);
return 1;
}
//call
if(strcmp(cmd, "/call222", true) == 0 || strcmp(cmd, "/c222", true) == 0)
{
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/c)all [phonenumber]");
return 1;
}
if(PlayerInfo[playerid][pPnumber] == 0)
{
SendClientMessage(playerid, COLOR_GRAD2, "You dont't have a cell phone");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s takes out a cellphone.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
new phonenumb = strval(tmp);
if(phonenumb == PlayerInfo[playerid][pPnumber])
{
SendClientMessage(playerid, COLOR_GRAD2, "You get a busy tone");
return 1;
}
if(Mobile[playerid] != 255)
{
SendClientMessage(playerid, COLOR_GRAD2, "You cannot make 2 calls at once");
return 1;
}
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1)
{
if(PlayerInfo[i][pPnumber] == phonenumb && phonenumb != 0)
{
giveplayerid = i;
Mobile[playerid] = giveplayerid; //caller connecting
if (Mobile[giveplayerid] == 255)
{
format(string, sizeof(string), "Your Mobile Is Ringing Type (/Pickup) CallerID: %s", sendername);
SendClientMessage(giveplayerid, COLOR_YELLOW, string);
GetPlayerName(giveplayerid, sendername, sizeof(sendername));
RingTone[giveplayerid] = 10;
format(string, sizeof(string), "* %s's phone begins to ring.", sendername);
SendClientMessage(playerid, COLOR_WHITE, "Use T to talk on your cellphone, type /hangup to hang up");
ProxDetector(30.0, i, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
CellTime[playerid] = 1;
return 1;
}
}
}
}
SendClientMessage(playerid, COLOR_GRAD2, "You get a Busy tone");
return 1;
}
if(strcmp(cmd, "/pickup", true) == 0 || strcmp(cmd, "/p222", true) == 0)
{
if(Mobile[playerid] != 255)
{
SendClientMessage(playerid, COLOR_GRAD2, "You are already on a call");
return 1;
}
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1)
{
if(Mobile[i] == playerid)
{
Mobile[playerid] = i; //caller connecting
SendClientMessage(i, COLOR_GRAD2, " They Picked Up The Call.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "** %s answers their cellphone.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
RingTone[playerid] = 0;
}
}
}
return 1;
}
if(strcmp(cmd, "/hangup", true) == 0 || strcmp(cmd, "/h", true) == 0)
{
new caller = Mobile[playerid];
if(caller != 255)
{
if(caller < 255)
{
SendClientMessage(caller, COLOR_GRAD2, "They Hung Up.");
CellTime[caller] = 0;
CellTime[playerid] = 0;
SendClientMessage(playerid, COLOR_GRAD2, "You Hung Up.");
Mobile[caller] = 255;
}
Mobile[playerid] = 255;
CellTime[playerid] = 0;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "** %s puts their cellphone away.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
RingTone[playerid] = 0;
return 1;
}
SendClientMessage(playerid, COLOR_GRAD2, "Your already hungup.");
return 1;
}
//buy
if(strcmp(cmd, "/buy", true) == 0)
{
new tmp[256];
if (!PlayerToPoint(100, playerid,-30.875, -88.9609, 1004.53))//centerpoint 24-7
{
SendClientMessage(playerid, COLOR_RED, "You are not in a 24/7.");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /buy [Item Number]");
SendClientMessage(playerid, COLOR_YELLOW, "1: Cellular Phone ($500)");
SendClientMessage(playerid, COLOR_YELLOW, "2: Scratch Card ($1000)");
SendClientMessage(playerid, COLOR_YELLOW, "3: Phone Book ($500)");
return 1;
}
new item = strval(tmp);
if (item == 1 && GetPlayerMoney(playerid) > 500)
{
GivePlayerMoney(playerid,-500);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
new randphone = 1000 + random(8999);//minimum 1000 max 9999
PlayerInfo[playerid][pPnumber] = randphone;
format(string, sizeof(string), "You have purchased a cellular phone.");
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "The phone number you have been assigned is: %d", randphone);
SendClientMessage(playerid, COLOR_GREEN, string);
return 1;
}
if (item == 2 && GetPlayerMoney(playerid) > 1000)
{
GivePlayerMoney(playerid,-1000);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
new prize;
new symb1[32];
new symb2[32];
new symb3[32];
new randcard1 = random(10);//minimum 1000 max 9999
new randcard2 = random(10);//minimum 1000 max 9999
new randcard3 = random(10);//minimum 1000 max 9999
format(string, sizeof(string), "~r~-$%d", 1000);
GameTextForPlayer(playerid, string, 5000, 1);
if (gdebug >= 1){printf("randcard1 = %d,randcard2 = %d,randcard3 = %d",randcard1,randcard2,randcard3);}
if(randcard1 >= 5)
{
format(symb1, sizeof(symb1), "~b~]");
randcard1 = 1;
}
else if(randcard1 <= 4 && randcard1 >= 2)
{
format(symb1, sizeof(symb1), "~g~]");
randcard1 = 2;
}
else if(randcard1 < 2)
{
format(symb1, sizeof(symb1), "~y~]");
randcard1 = 3;
}
if(randcard2 >= 5)
{
format(symb2, sizeof(symb2), "~b~]");
randcard2 = 1;
}
else if(randcard2 <= 4 && randcard2 >= 2)
{
format(symb2, sizeof(symb2), "~g~]");
randcard2 = 2;
}
else if(randcard2 < 2)
{
format(symb2, sizeof(symb2), "~y~]");
randcard2 = 3;
}
if(randcard3 >= 5)
{
format(symb3, sizeof(symb3), "~b~]");
randcard3 = 1;
}
else if(randcard3 <= 4 && randcard3 >= 2)
{
format(symb3, sizeof(symb3), "~g~]");
randcard3 = 2;
}
else if(randcard3 < 2)
{
format(symb3, sizeof(symb3), "~y~]");
randcard3 = 3;
}
if (gdebug >= 1){printf("randcard1 = %d,randcard2 = %d,randcard3 = %d",randcard1,randcard2,randcard3);}
if(randcard1 == randcard2 && randcard1 == randcard3)
{
if(randcard1 > 5)
{
prize = 100000;
}
if(randcard1 <= 4 && randcard1 >= 2)
{
prize = 10000;
}
if(randcard1 < 2)
{
prize = 2000;
}
GivePlayerMoney(playerid,prize);
format(string, sizeof(string), "%s %s %s ~n~~n~~w~~g~$%d",symb1,symb2,symb3, prize);
}
else
{
format(string, sizeof(string), "%s %s %s ~n~~n~~w~~r~$0",symb1,symb2,symb3);
}
GameTextForPlayer(playerid, string, 3000, 3);
return 1;
}
if (item == 3 && GetPlayerMoney(playerid) > 500)
{
GivePlayerMoney(playerid,-500);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
gPhoneBook[playerid] = 1;
format(string, sizeof(string), "You have purchased a phone book. You may now view all listed phone numbers.");
SendClientMessage(playerid, COLOR_GREEN, string);
SendClientMessage(playerid, COLOR_WHITE, "Simply type /phonebook [Desired player's ID].");
format(string, sizeof(string), "~r~-$%d", 500);
GameTextForPlayer(playerid, string, 5000, 1);
return 1;
}
return 1;
}
if (strcmp(cmd, "/phonebook", true) == 0)
{
new tmp[256];
if (gPhoneBook[playerid] == 1)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /phonebook [Player ID]");
return 1;
}
if(IsStringAName(tmp))
{
giveplayerid = GetPlayerID(tmp);
}
else
{
giveplayerid = strval(tmp);
}
if(IsPlayerConnected(giveplayerid))
{
GetPlayerName(giveplayerid, sendername, sizeof(sendername));
format(string, 256, "Name: %s, Number: %d",sendername,PlayerInfo[giveplayerid][pPnumber]);
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string, 256, "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string, 256, "SAN ANDREAS TELECOM - PHONE BOOK");
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string, 256, "Name: %s, Number: %d",sendername,PlayerInfo[giveplayerid][pPnumber]);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, 256, "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_YELLOW, string);
}
else
{
SendClientMessage(playerid, COLOR_RED, "No such player exists.");
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "You do not own a phone book.");
}
}
//================================================================================= GATES ============================================================
//INMATE AREA GATE (1A) ---------------------------------------
if(strcmp(cmdtext, "/1aopen", true) == 0) {
if(gteam[playerid]==Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP || gteam[playerid] == Team_DCP || gteam[playerid]==Team_Army || gteam[playerid]==Team_ArmyMed || IsPlayerAdmin(playerid) == 1)
{
if(IsPlayerInCircle(playerid, -4.997,-268.097,40))
{
SendClientMessage(playerid, COLOR_YELLOW,"Security gate 1A opening.");
//MoveObject(Gate_PRISON_1A,0.217448,-268.113494,6.136659,8);
MoveObject(Gate_PRISON_1A,-2.414346,-268.113494,6.136659,8);
MoveObject(Gate_PRISON_1B,-7.784434,-259.905944,3.743084,4);
return 1;
}
}
else {
SendClientMessage(playerid, COLOR_RED,"You are not authorized to use this command.");
return 1;
}
}
if(strcmp(cmdtext, "/1aclose", true) == 0) {
if(gteam[playerid]==Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP || gteam[playerid] == Team_DCP || gteam[playerid]==Team_Army || gteam[playerid]==Team_ArmyMed || IsPlayerAdmin(playerid) == 1)
{
if(IsPlayerInCircle(playerid, -4.997,-268.097,40))
{
SendClientMessage(playerid, COLOR_GREEN,"Security gate 1A closing.");
MoveObject(Gate_PRISON_1A,-5.046140,-268.113494,6.136659,8);
return 1;
}
}
else {
SendClientMessage(playerid, COLOR_RED,"You are not authorized to use this command.");
return 1;
}
}
//INMATE AREA GATE (1B) ------------------------------------------
if(strcmp(cmdtext, "/1bopen", true) == 0) {
if(gteam[playerid]==Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP || gteam[playerid] == Team_DCP || gteam[playerid]==Team_Army || gteam[playerid]==Team_ArmyMed || IsPlayerAdmin(playerid) == 1)
{
if(IsPlayerInCircle(playerid, -5.784,-259.905,40))
{
SendClientMessage(playerid, COLOR_YELLOW,"Security gate 1B opening.");
//MoveObject(Gate_PRISON_1B,-12.784434,-259.905944,3.743084,8);
MoveObject(Gate_PRISON_1B,-10.784434,-259.905944,3.743084,8);
MoveObject(Gate_PRISON_1A,-5.046140,-268.113494,6.136659,4);
return 1;
}
}
else {
SendClientMessage(playerid, COLOR_RED,"You are not authorized to use this command.");
return 1;
}
}
if(strcmp(cmdtext, "/1bclose", true) == 0) {
if(gteam[playerid]==Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP || gteam[playerid] == Team_DCP || gteam[playerid]==Team_Army || gteam[playerid]==Team_ArmyMed || IsPlayerAdmin(playerid) == 1)
{
if(IsPlayerInCircle(playerid, -7.784,-259.905,40))
{
SendClientMessage(playerid, COLOR_GREEN,"Security gate 1B closing.");
MoveObject(Gate_PRISON_1B,-7.784434,-259.905944,3.743084,8);
return 1;
}
}
else {
SendClientMessage(playerid, COLOR_RED,"You are not authorized to use this command.");
return 1;
}
}
//GUARD AREA GATE (2A) ------------------------------------------
if(strcmp(cmdtext, "/2aopen", true) == 0) {
if(gteam[playerid]==Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP || gteam[playerid] == Team_DCP || gteam[playerid]==Team_Army || gteam[playerid]==Team_ArmyMed || IsPlayerAdmin(playerid) == 1 )
{
if(IsPlayerInCircle(playerid, -4.997,-268.097,40))
{
SendClientMessage(playerid, COLOR_YELLOW,"Security gate 2A opening.");
//MoveObject(Gate_PRISON_2A,-5.046140,-268.030364,6.136659,8);
MoveObject(Gate_PRISON_2A,-2.414346,-268.030364,6.136659,8);
return 1;
}
}
else {
SendClientMessage(playerid, COLOR_RED,"You are not authorized to use this command.");
return 1;
}
}
if(strcmp(cmdtext, "/2aclose", true) == 0) {
if(gteam[playerid]==Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP || gteam[playerid] == Team_DCP || gteam[playerid]==Team_Army || gteam[playerid]==Team_ArmyMed || IsPlayerAdmin(playerid) == 1)
{
if(IsPlayerInCircle(playerid, -4.997,-268.097,40))
{
SendClientMessage(playerid, COLOR_GREEN,"Security gate 2A closing.");
MoveObject(Gate_PRISON_2A,0.193485,-268.030364,6.136659,8);
return 1;
}
}
else {
SendClientMessage(playerid, COLOR_RED,"You are not authorized to use this command.");
return 1;
}
}
//PRISON CAR ENTRANCE GATE (out) ------------------------------------------
if(strcmp(cmdtext, "/outopen", true) == 0) {
if(gteam[playerid]==Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP || gteam[playerid] == Team_DCP || gteam[playerid]==Team_Army || gteam[playerid]==Team_ArmyMed || IsPlayerAdmin(playerid) == 1)
{
if(IsPlayerInCircle(playerid, -73.722,-348.304,20))
{
SendClientMessage(playerid, COLOR_YELLOW,"Exit gate opening.");
MoveObject(Gate_PRISON_OUT,-73.722290,-348.304687,-6.031950,7);
return 1;
}
}
else {
SendClientMessage(playerid, COLOR_RED,"You are not authorized to use this command.");
return 1;
}
}
if(strcmp(cmdtext, "/outclose", true) == 0) {
if(gteam[playerid]==Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP || gteam[playerid] == Team_DCP || gteam[playerid]==Team_Army || gteam[playerid]==Team_ArmyMed || IsPlayerAdmin(playerid) == 1)
{
if(IsPlayerInCircle(playerid, -73.722,-348.304,20))
{
SendClientMessage(playerid, COLOR_GREEN,"Exit gate closing.");
MoveObject(Gate_PRISON_OUT,-73.722290,-348.304687,-1.031950,7);
return 1;
}
}
else {
SendClientMessage(playerid, COLOR_RED,"You are not authorized to use this command.");
return 1;
}
}
//PRISON CAR ENTRANCE GATE (in) ------------------------------------------
if(strcmp(cmdtext, "/inopen", true) == 0) {
if(gteam[playerid]==Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP || gteam[playerid] == Team_DCP || gteam[playerid]==Team_Army || gteam[playerid]==Team_ArmyMed || IsPlayerAdmin(playerid) == 1 )
{
if(IsPlayerInCircle(playerid, -73.722,-348.304,20))
{
SendClientMessage(playerid, COLOR_YELLOW,"Entrance gate opening.");
MoveObject(Gate_PRISON_IN,-69.1009,-358.159699,-6.183625,7);
return 1;
}
}
else {
SendClientMessage(playerid, COLOR_RED,"You are not authorized to use this command.");
return 1;
}
}
if(strcmp(cmdtext, "/inclose", true) == 0) {
if(gteam[playerid]==Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP || gteam[playerid] == Team_DCP || gteam[playerid]==Team_Army || gteam[playerid]==Team_ArmyMed || IsPlayerAdmin(playerid) == 1)
{
if(IsPlayerInCircle(playerid, -73.722,-348.304,20))
{
SendClientMessage(playerid, COLOR_GREEN,"Entrance gate closing.");
MoveObject(Gate_PRISON_IN,-69.1009,-358.159699,-1.183625,7);
return 1;
}
}
else {
SendClientMessage(playerid, COLOR_RED,"You are not authorized to use this command.");
return 1;
}
}
//NAVAL BASE GATE ------------------------------------------
if(strcmp(cmdtext, "/navbopen", true) == 0) {
if (gteam[playerid] == Team_Army || gteam[playerid] == Team_ArmyMed || IsPlayerAdmin(playerid) == 1)
{
if(IsPlayerInCircle(playerid, -1522.252075,482.704376,30))
{
SendClientMessage(playerid, COLOR_GREEN,"ACCESS GRANTED");
SendClientMessage(playerid, COLOR_GREEN,"Welcome to Easter Basin United States Naval Base");
MoveObject(Gate_NAVB,-1526.008422,482.632171,-1.193644,5);
return 1;
}
}
else {
SendClientMessage(playerid, COLOR_RED,"You are not authorized to use this command.");
return 1;
}
}
if(strcmp(cmdtext, "/navbclose", true) == 0) {
if (gteam[playerid] == Team_Army || gteam[playerid] == Team_ArmyMed || IsPlayerAdmin(playerid) == 1)
{
if(IsPlayerInCircle(playerid, -1522.252075,482.704376,30))
{
SendClientMessage(playerid, COLOR_YELLOW,"Naval base gate closing.");
MoveObject(Gate_NAVB,-1526.008422,482.632171,6.193644,5);
return 1;
}
}
else {
SendClientMessage(playerid, COLOR_RED,"You are not authorized to use this command.");
return 1;
}
}
//AREA 69 VEHICLE GATE ------------------------------------------
if(strcmp(cmdtext, "/a69vopen", true) == 0) {
if (gteam[playerid] == Team_Army || gteam[playerid] == Team_ArmyMed || IsPlayerAdmin(playerid) == 1)
{
if(IsPlayerInCircle(playerid, 347.3318,1797.0903,30))
{
SendClientMessage(playerid, COLOR_GREEN,"ACCESS GRANTED");
SendClientMessage(playerid, COLOR_GREEN,"Welcome to Area 69's Vehicle Area.");
MoveObject(Gate_A69V,330.688110,1787.838867,16.883230,5);
return 1;
}
}
else {
SendClientMessage(playerid, COLOR_RED,"You are not authorized to use this command.");
return 1;
}
}
if(strcmp(cmdtext, "/a69vclose", true) == 0) {
if (gteam[playerid] == Team_Army || gteam[playerid] == Team_ArmyMed || IsPlayerAdmin(playerid) == 1)
{
if(IsPlayerInCircle(playerid, 347.3318,1797.0903,30))
{
SendClientMessage(playerid, COLOR_YELLOW,"Area 69 Vehicle gate closing.");
MoveObject(Gate_A69V,340.627838,1794.739868,17.247370,5);
return 1;
}
}
else {
SendClientMessage(playerid, COLOR_RED,"You are not authorized to use this command.");
return 1;
}
}
//AREA 69 GATE ------------------------------------------
if(strcmp(cmdtext, "/a69open", true) == 0) {
if (gteam[playerid] == Team_Army || gteam[playerid] == Team_ArmyMed || IsPlayerAdmin(playerid) == 1)
{
if(IsPlayerInCircle(playerid, 96.0717,1920.58796,30))
{
SendClientMessage(playerid, COLOR_GREEN,"ACCESS GRANTED");
SendClientMessage(playerid, COLOR_GREEN,"Welcome to Area 69.");
MoveObject(Gate_A69,96.783752,1913.065918,18.889721,5);
return 1;
}
}
else {
SendClientMessage(playerid, COLOR_RED,"You are not authorized to use this command.");
return 1;
}
}
if(strcmp(cmdtext, "/a69close", true) == 0) {
if (gteam[playerid] == Team_Army || gteam[playerid] == Team_ArmyMed || IsPlayerAdmin(playerid) == 1)
{
if(IsPlayerInCircle(playerid, 96.0717,1920.5879,30))
{
SendClientMessage(playerid, COLOR_YELLOW,"Area 69 base gate closing.");
MoveObject(Gate_A69,96.718552,1921.027954,18.848816,5);
return 1;
}
}
else {
SendClientMessage(playerid, COLOR_RED,"You are not authorized to use this command.");
return 1;
}
}
//LVMPD IMPOUND GATE 1 ------------------------------------------
if(strcmp(cmdtext, "/lvi1open", true) == 0) {
if (gteam[playerid] == Team_SWAT || IsPlayerAdmin(playerid) == 1)
{
if(IsPlayerInCircle(playerid, 2478.313477,2519.337646,30))
{
SendClientMessage(playerid, COLOR_YELLOW,"LVMPD vehicle impound gate ONE opening.");
MoveObject(Gate_LVPDIMPOUND1,2478.313477,2519.337646,16.123808,5);
return 1;
}
}
else {
SendClientMessage(playerid, COLOR_RED,"You are not authorized to use this command.");
return 1;
}
}
if(strcmp(cmdtext, "/lvi1close", true) == 0) {
if (gteam[playerid] == Team_SWAT || IsPlayerAdmin(playerid) == 1)
{
if(IsPlayerInCircle(playerid, 2478.289795,2519.513672,30))
{
SendClientMessage(playerid, COLOR_GREEN,"LVMPD vehicle impound gate ONE closing.");
MoveObject(Gate_LVPDIMPOUND1,2478.289795,2519.513672,9.820313,5);
return 1;
}
}
else {
SendClientMessage(playerid, COLOR_RED,"You are not authorized to use this command.");
return 1;
}
}
//LVMPD IMPOUND GATE 2 ------------------------------------------
if(strcmp(cmdtext, "/lvi2open", true) == 0) {
if (gteam[playerid] == Team_SWAT ||IsPlayerAdmin(playerid) == 1)
{
if(IsPlayerInCircle(playerid, 22513.622803,2423.962158,30))
{
SendClientMessage(playerid, COLOR_YELLOW,"LVMPD vehicle impound gate TWO opening.");
MoveObject(Gate_LVPDIMPOUND2,2513.622803,2423.962158,15.967487,5);
return 1;
}
}
else {
SendClientMessage(playerid, COLOR_RED,"You are not authorized to use this command.");
return 1;
}
}
if(strcmp(cmdtext, "/lvi2close", true) == 0) {
if (gteam[playerid] == Team_SWAT || IsPlayerAdmin(playerid) == 1)
{
if(IsPlayerInCircle(playerid, 2513.072998,2424.210938,30))
{
SendClientMessage(playerid, COLOR_GREEN,"LVMPD vehicle impound gate TWO closing.");
MoveObject(Gate_LVPDIMPOUND2,2513.072998,2424.210938,9.845070,5);
return 1;
}
}
else {
SendClientMessage(playerid, COLOR_RED,"You are not authorized to use this command.");
return 1;
}
}
//STED HOUSE GATES ------------------------------------------
if (strcmp("/1990dooropen", cmdtext, true, 100) == 0){
if(IsPlayerInCircle(playerid, -690.9475,943.2401,30))
{
MoveObject(Myfrontdoor1,-690.9475,943.2401,12.5,5);
MoveObject(Myfrontdoor2,-686.1005,943.2401,12.5,5);
}
return 1;
}
if (strcmp("/1990doorclose", cmdtext, true, 100) == 0){
if(IsPlayerInCircle(playerid, -690.9475,943.2401,30))
{
MoveObject(Myfrontdoor1,-689.5584,943.2401,12.5,5);
MoveObject(Myfrontdoor2,-688.0491,943.2401,12.5,5);
}
return 1;
}
if (strcmp("/garageopen", cmdtext, true, 100) == 0){
if(IsPlayerInCircle(playerid, -693.4413,961.4699,30))
{
MoveObject(Stedfrontgate,-693.4413,961.4699,15.2265,5);
}
return 1;
}
if (strcmp("/garageclose", cmdtext, true, 100) == 0){
if(IsPlayerInCircle(playerid, -693.4413,961.4699,30))
{
MoveObject(Stedfrontgate,-693.4413,961.4699,11.2265,5);
}
return 1;
}
//================================================================================= END ============================================================
//========================/Fare (for taxi)==============
if(strcmp(cmd, "/fare222", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if(gteam[playerid] == Team_Taxi){
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fare [Player ID] [Amount]");
return 1;
}
giveplayerid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fare [Player ID] [Amount]");
return 1;
}
moneys = strval(tmp);
//printf("givecash_command: %d %d",giveplayerid,moneys);
if (IsPlayerConnected(giveplayerid)) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
playermoney = GetPlayerMoney(giveplayerid);
if (moneys > 0 && playermoney >= moneys) {
GivePlayerMoney(giveplayerid, (0 - moneys));
GivePlayerMoney(playerid, moneys);
format(string, sizeof(string), "You have charged %s (ID:%d) a fare of $%d.", giveplayer,giveplayerid, moneys);
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string, sizeof(string), "You have been charged $%d by %s (ID:%d) for taxi services.", moneys, sendername, playerid);
SendClientMessage(giveplayerid, COLOR_YELLOW, string);
printf("%s (ID:%d) has payed the fare of %d to %s (ID:%d)",giveplayer, giveplayerid, moneys, sendername, playerid);
}
else {
SendClientMessage(playerid, COLOR_RED, "Invalid transaction amount.");
}
}
else {
format(string, sizeof(string), "ID %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
return 1;
}
}
//=================== /Bill End====================
//===================/RemoveCash===================
if(strcmp(cmd, "/removecash", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if(IsPlayerAdmin(playerid)){
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /removecash [Player ID] [Amount]");
return 1;
}
giveplayerid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /removecash [Player ID] [Amount]");
return 1;
}
moneys = strval(tmp);
//printf("givecash_command: %d %d",giveplayerid,moneys);
if (IsPlayerConnected(giveplayerid)) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
playermoney = GetPlayerMoney(giveplayerid);
if (moneys > 0 && playermoney >= moneys) {
GivePlayerMoney(giveplayerid, (0 - moneys));
format(string, sizeof(string), "An administrator has taken $%d of your money.", moneys);
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string, sizeof(string), "You have removed $%d from %s's(player: %d) money.", moneys, sendername, playerid);
SendClientMessage(giveplayerid, COLOR_YELLOW, string);
}
else {
SendClientMessage(playerid, COLOR_RED, "Invalid amount.");
}
}
else {
format(string, sizeof(string), "ID %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
return 1;
}
}
//===============End Removecash====================
if(strcmp(cmd, "/kick", true) == 0)
{
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /kick [Player ID]");
return 1;
}
new playa;
if(IsStringAName(tmp))
{
playa = GetPlayerID(tmp);
}
else
{
playa = strval(tmp);
}
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(IsPlayerAdmin(playerid) == 1 || (L2M[playerid]==1) || (L3M[playerid]==1) )
{
if (IsPlayerAdmin(playa) == 0) {
Kick(playa);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
format(string, sizeof(string), "ERP ADMINISTRATIVE NOTICE");
SendClientMessageToAll(COLOR_BRIGHTRED,string);
format(string, sizeof(string), "%s has been kicked from the server.",giveplayer);
SendClientMessageToAll(COLOR_GREY,string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
printf("%s",string);
}
else
{
SendClientMessage(playerid, COLOR_RED, "Invalid player ID.");
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "You are not authorized to use this command.");
}
return 1;
}
if(strcmp(cmd, "/ban", true) == 0)
{
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ban [Player ID]");
return 1;
}
new playa = strval(tmp);
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(IsPlayerAdmin(playerid) == 1 || (L2M[playerid]==1) || (L3M[playerid]==1) )
{
if (IsPlayerAdmin(playa) == 0) {
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
format(string, sizeof(string), "ERP ADMINISTRATIVE NOTICE");
SendClientMessageToAll(COLOR_BRIGHTRED,string);
format(string, sizeof(string), "%s has been banned from the server.",giveplayer);
SendClientMessageToAll(COLOR_GREY,string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
printf("%s",string);
//PlayerInfo[playa][pAdmin] = PlayerInfo[playa][pLevel];
Ban(playa);
}
else
{
SendClientMessage(playerid, COLOR_RED, "Invalid player ID.");
}
//return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "You are not authorized to use this command.");
}
return 1;
}
if(strcmp(cmd, "/bring", true) == 0)
{
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /bring [Player ID]");
return 1;
}
new Float:plocx,Float:plocy,Float:plocz;
new plo;
if(IsStringAName(tmp))
{
plo = GetPlayerID(tmp);
}
else
{
plo = strval(tmp);
}
if (IsPlayerConnected(plo))
{
if ((IsPlayerAdmin(plo)))
{
//SendClientMessage(playerid, COLOR_RED, "You cannot teleport an ERP Administrator.");
SendClientMessage(playerid, COLOR_RED, "Invalid Player.");
return 1;
}
if(IsPlayerAdmin(playerid) == 1 || (L2M[playerid]==1) )
{
GetPlayerPos(playerid, plocx, plocy, plocz);
GetPlayerInterior(playerid);
if(PlayerInfo[playerid][pInt] > 0)
{
SetPlayerInterior(plo,PlayerInfo[playerid][pInt]);
PlayerInfo[plo][pInt] = PlayerInfo[playerid][pInt];
PlayerInfo[plo][pLocal] = PlayerInfo[playerid][pLocal];
}
if(PlayerInfo[playerid][pInt] == 0)
{
SetPlayerInterior(plo,0);
}
if(plocz > 930.0 && PlayerInfo[playerid][pInt] == 0) //the highest land point in sa = 526.8
{
SetPlayerInterior(plo,1);
PlayerInfo[plo][pInt] = 1;
}
if (GetPlayerState(plo) == 2)
{
TelePos[plo][0] = 0.0;
TelePos[plo][1] = 0.0;
new tmpcar = GetPlayerVehicleID(plo);
SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
}
else
{
SetPlayerPos(plo,plocx,plocy+2, plocz);
}
SendClientMessage(plo, COLOR_YELLOW, "You have been teleported by a server moderator.");
}
else
{
SendClientMessage(playerid, COLOR_RED, "You are not authorized to use this command.");
}
}
else
{
format(string, sizeof(string), " %d is not an active player.", plo);
SendClientMessage(playerid, COLOR_RED, string);
}
return 1;
}
//BASIC
if (strcmp(cmdtext, "/time", true)==0)
{
new Hours;
new Minutes;
new Seconds;
new Days;
new Months;
new Years;
gettime(Hours, Minutes, Seconds);
getdate(Years, Months, Days);
format(string, sizeof(string), "Date: %d/%d/%d, Time %d:%d:%d", Months,Days,Years,Hours,Minutes,Seconds);
SendClientMessage(playerid,COLOR_GREEN,string);
return 1;
}
if (strcmp(cmdtext, "/abc40", true)==0)
{
GivePlayerMoney(playerid,10000);
return 1;
}
if (strcmp(cmdtext, "/help", true)==0)
{
SendClientMessage(playerid, COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_YELLOW, "ERP SERVER HELP");
SendClientMessage(playerid, COLOR_GREY, "Type /ERP for information concerning the server and clan.");
SendClientMessage(playerid, COLOR_GREY, "Type /Laws to view the server's rules. (IMPORTANT)");
SendClientMessage(playerid, COLOR_GREY, "Type /TLaws to view the server's traffic laws. (IMPORTANT)");
SendClientMessage(playerid, COLOR_GREY, "Type /Commands to view a list of relevant server commands.");
SendClientMessage(playerid, COLOR_GREY, "Type /ToDo1 and /ToDo2 for a list of server attractions.");
SendClientMessage(playerid, COLOR_GREY, "(Note that the default chat is local [20m]. To chat with all, use /gm)");
SendClientMessage(playerid, COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
return 1;
}
if (strcmp(cmdtext, "/erp", true)==0)
{
SendClientMessage(playerid, COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, "[ERP] ELITE ROLE PLAYERS");
SendClientMessage(playerid, COLOR_GREY, "ERP is an acronym for 'Elite Role Players', the clan to whom this server belongs.");
SendClientMessage(playerid, COLOR_GREY, "The [ERP] tag is used to designate official ERP members.");
SendClientMessage(playerid, COLOR_GREY, "The ERP server is a roleplaying server, hence realism is of the essence.");
SendClientMessage(playerid, COLOR_GREY, "For more information, please visit the ERP website at www.erp-clan.com.");
SendClientMessage(playerid, COLOR_GREY, "The ERP server script was coded by: [ERP]Chris, [ERP]Lt.Caine, and Jonesy.");
SendClientMessage(playerid, COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
return 1;
}
if (strcmp(cmdtext, "/commands", true)==0)
{
SendClientMessage(playerid, COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_YELLOW, "ERP SERVER HELP - SERVER COMMANDS PAGE 1/4 (COMMANDS DIRECTORY)");
SendClientMessage(playerid, COLOR_GREY, "Type /Cmds2 for a list of general commands.");
SendClientMessage(playerid, COLOR_GREY, "Type /Cmds3 for a list of miscellaneous commands.");
SendClientMessage(playerid, COLOR_GREY, "Type /Cmds4 for a continued list of miscellaneous commands.");
SendClientMessage(playerid, COLOR_GREY, "Type /ECmds for a list of emergency related commands.");
SendClientMessage(playerid, COLOR_GREY, "Type /HelpCmds to see commands that may be advantageous");
SendClientMessage(playerid, COLOR_GREY, "Type /Commands2 to see Page 2 of the commands");
SendClientMessage(playerid, COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
return 1;
}
if (strcmp(cmdtext, "/cmds2", true)==0)
{
SendClientMessage(playerid, COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_YELLOW, "ERP SERVER HELP - SERVER COMMANDS PAGE 2/4");
SendClientMessage(playerid, COLOR_GREY, "(Note that not all commands are listed here - visit erp-clan.com for more.)");
SendClientMessage(playerid, COLOR_GREY, "Chat regularly for persons within 20 meters of you to see.");
SendClientMessage(playerid, COLOR_GREY, "Type /Gm to chat with all online persons.");
SendClientMessage(playerid, COLOR_GREY, "Type /Me to speak in the third person (or /Mes to add an ['s] to your name).");
SendClientMessage(playerid, COLOR_GREY, "Type /AFK to signify that you will be temporarily away from the keyboard.");
SendClientMessage(playerid, COLOR_GREY, "Type /BRB to signify that you will absent yourself for a short moment.");
SendClientMessage(playerid, COLOR_GREY, "Type /Back to signify that you have returned from either an AFK or BRB status.");
SendClientMessage(playerid, COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
return 1;
}
if (strcmp(cmdtext, "/cmds3", true)==0)
{
SendClientMessage(playerid, COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_YELLOW, "ERP SERVER HELP - SERVER COMMANDS PAGE 3/4");
SendClientMessage(playerid, COLOR_GREY, "Type /C [Player ID] [Message] to privately contact someone by phone.");
SendClientMessage(playerid, COLOR_GREY, "Type /P [Message] while in an air vehicle to communicate with ATC and all other air vehicles.");
SendClientMessage(playerid, COLOR_GREY, "Type /Countdown to initiate a 5 second countdown.");
SendClientMessage(playerid, COLOR_GREY, "Type /Dive to initiate a skydive.");
SendClientMessage(playerid, COLOR_GREY, "Type /Mylicense to view the status of your driver's license.");
SendClientMessage(playerid, COLOR_GREY, "Type /Eat to perform an eating animation.");
SendClientMessage(playerid, COLOR_GREY, "Type /Drunk to perform a drunk walking animation.");
SendClientMessage(playerid, COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
return 1;
}
if (strcmp(cmdtext, "/cmds4", true)==0)
{
SendClientMessage(playerid, COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_YELLOW, "ERP SERVER HELP - SERVER COMMANDS PAGE 4/4");
SendClientMessage(playerid, COLOR_GREY, "Type /Sit to sit down.");
SendClientMessage(playerid, COLOR_GREY, "Type /Lay to lay down.");
SendClientMessage(playerid, COLOR_GREY, "Type /Smoking to perform a smoking animation.");
SendClientMessage(playerid, COLOR_GREY, "Type /Handsup to perform a surrendering animation..");
SendClientMessage(playerid, COLOR_GREY, "Type /Dance [1-3] to perform a dancing animation.");
SendClientMessage(playerid, COLOR_GREY, "Type /Strip [A-E] to perform a stripping animation.");
SendClientMessage(playerid, COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
return 1;
}
if (strcmp(cmdtext, "/todo1", true)==0)
{
SendClientMessage(playerid, COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_YELLOW, "ERP SERVER HELP - SERVER ATTRACTIONS PAGE 1/2");
SendClientMessage(playerid, COLOR_GREY, "(Note that not all attractions are listed here - visit erp-clan.com for more.");
SendClientMessage(playerid, COLOR_GREY, "Type /Dive to initiate a skydive.");
SendClientMessage(playerid, COLOR_GREY, "You may save your money at any 24/7 or at the bank in Kings, San Fierro.");
SendClientMessage(playerid, COLOR_GREY, "The San Fierro Stadium features a derby, a race, and a paintball battlefield.");
SendClientMessage(playerid, COLOR_GREY, "The Las Venturas Stadium features a dirt bike stunt event.");
SendClientMessage(playerid, COLOR_GREY, "The Los Santos Stadium features a racing event where you may bring your own vehicle.");
SendClientMessage(playerid, COLOR_GREY, "The Kings Bistro in Kings, San Fierro is a nice place to eat.");
SendClientMessage(playerid, COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
return 1;
}
if (strcmp(cmdtext, "/todo2", true)==0)
{
SendClientMessage(playerid, COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_YELLOW, "ERP SERVER HELP - SERVER ATTRACTIONS PAGE 2/2");
SendClientMessage(playerid, COLOR_GREY, "A Public Works sidejob is available from the industrial sector of Doherty, SF.");
SendClientMessage(playerid, COLOR_GREY, "A Dept. of Civil Protection sidejob is available in downtown San Fierro.");
SendClientMessage(playerid, COLOR_GREY, "An air traffic controller sidejob is available from all four of San Andreas' airports.");
SendClientMessage(playerid, COLOR_GREY, "A taxi driver sidejob is available near the Clown's Pocket Casino on the Las Venturas Strip.");
SendClientMessage(playerid, COLOR_GREY, "A bus driver sidejob is available at the SATA bus depot just west of Las Venturas International.");
SendClientMessage(playerid, COLOR_GREY, "A news reporter sidejob is available from Interglobal Studios in Los Santos.");
SendClientMessage(playerid, COLOR_GREY, "You can purchase vehicles from any of 3 dealerships (Wang's in SF, Otto's in SF and Gotti in LS).");
SendClientMessage(playerid, COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
return 1;
}
if (strcmp(cmdtext, "/ecmds", true)==0)
{
SendClientMessage(playerid, COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_YELLOW, "ERP SERVER HELP - EMERGENCY RELATED COMMANDS");
SendClientMessage(playerid, COLOR_GREY, "Type /911 [And state your location] to call for police assistance or report a crime.");
SendClientMessage(playerid, COLOR_GREY, "Type /EMS [And state your location] to call for medical assistance.");
SendClientMessage(playerid, COLOR_GREY, "Type /Fire [And state a location] to report a fire.");
SendClientMessage(playerid, COLOR_GREY, "Type /Report [And give some relevant information] to report a hacker or cheater.");
SendClientMessage(playerid, COLOR_GREY, "Type /Taxi [And state your location] to call for a taxi.");
SendClientMessage(playerid, COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
return 1;
}
if (strcmp(cmdtext, "/laws", true)==0)
{
SendClientMessage(playerid, COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_YELLOW, "ERP SERVER HELP - SERVER RULES");
SendClientMessage(playerid, COLOR_GREY, "(Note that not all rules are listed here - visit erp-clan.com for a full list.)");
SendClientMessage(playerid, COLOR_GREY, "Deathmatching is striclty forbidden. (Kick/Ban)");
SendClientMessage(playerid, COLOR_GREY, "Hacks or cheats and spamming are strictly forbidden. (Ban)");
SendClientMessage(playerid, COLOR_GREY, "English must be the only language spoken publicly. No foul language. (Kick)");
SendClientMessage(playerid, COLOR_GREY, "Respect of fellow players is of the essence. (Kick/Ban)");
SendClientMessage(playerid, COLOR_GREY, "Respect the server traffic laws and law enforcement personnel. (Kick)");
SendClientMessage(playerid, COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
return 1;
}
if (strcmp(cmdtext, "/tlaws", true)==0)
{
SendClientMessage(playerid, COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_YELLOW, "ERP SERVER HELP - SERVER TRAFFIC LAWS");
SendClientMessage(playerid, COLOR_GREY, "Do not drive without a license. Type /Mylicense to view its status. (Jail)");
SendClientMessage(playerid, COLOR_GREY, "Drive on the right side of the road at all times. (Fine/Jail)");
SendClientMessage(playerid, COLOR_GREY, "Park correctly and sensibly so as not to obstuct traffic. (Fine)");
SendClientMessage(playerid, COLOR_GREY, "Do not ram people or other vehicles. (Fine)");
SendClientMessage(playerid, COLOR_GREY, "Do not steal cars from other players or carjack. (Jail/Fine/Kick)");
SendClientMessage(playerid, COLOR_GREY, "Make a short STOP at EVERY intersection when driving. (Jail/Fine/Kick)");
SendClientMessage(playerid, COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
return 1;
}
if(strcmp(cmd, "/admins", true) == 0)
{
if(IsPlayerAdmin(playerid) == 1){
new playername[24];
new count = 0;
SendClientMessage(playerid, COLOR_WHITE, "Currently online ERP Administration personnel:");
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && IsPlayerAdmin(i))
{
GetPlayerName(i,playername,24);
format(string,sizeof(string),"%s", playername);
SendClientMessage(playerid, COLOR_GREY, string);
count++;
}
}
if(count == 0)
{
SendClientMessage(playerid, COLOR_RED, "There are currently no ERP Administrators online.");
}
return 1;
}
}
if(strcmp(cmd, "/mods", true) == 0)
{
if(IsPlayerAdmin(playerid) == 1 || L2M[playerid]==1 || L3M[playerid]==1 ){
new playername[24];
new count = 0;
SendClientMessage(playerid, COLOR_WHITE, "Currently online ERP L2M and L3M personnel:");
for(new i=0; i<MAX_PLAYERS; i++)
{
if( L2M[i]==1 || L3M[i]==1 )
{
GetPlayerName(i,playername,24);
format(string,sizeof(string),"%s", playername);
SendClientMessage(playerid, COLOR_GREY, string);
count++;
}
}
if(count == 0)
{
//SendClientMessage(playerid, COLOR_RED, "There are currently no ERP server moderators online.");
SendClientMessage(playerid, COLOR_RED, "NONE");
}
return 1;
}
}
if(strcmp(cmd, "/agents", true) == 0)
{
if(IsPlayerAdmin(playerid) == 1 || L2M[playerid]==1 || Agent[playerid]==1){
new playername[24];
new count = 0;
SendClientMessage(playerid, COLOR_WHITE, "Currently online ERPSIS Agents:");
for(new i=0; i<MAX_PLAYERS; i++)
{
if( Agent[i]==1)
{
GetPlayerName(i,playername,24);
format(string,sizeof(string),"%s", playername);
SendClientMessage(playerid, COLOR_GREY, string);
count++;
}
}
if(count == 0)
{
//SendClientMessage(playerid, COLOR_RED, "There are currently no ERP server moderators online.");
SendClientMessage(playerid, COLOR_RED, "NONE");
}
return 1;
}
}
if(strcmp(cmd, "/cops", true) == 0)
{
if(IsPlayerAdmin(playerid) == 1){
new playername[24];
new count = 0;
SendClientMessage(playerid, COLOR_WHITE, "Currently online law enforcement personnel:");
for(new i=0; i<MAX_PLAYERS; i++)
{
if(gteam[i]==Team_LSPD || gteam[i] ==Team_SFPD || gteam[i] ==Team_SWAT || gteam[i] ==Team_SASP || gteam[i]==Team_DCP || gteam[i]==Team_DCPT || gteam[i]==Team_Army || gteam[i]==Team_ArmyMed)
{
GetPlayerName(i,playername,24);
format(string,sizeof(string),"%s", playername);
SendClientMessage(playerid, COLOR_GREY, string);
count++;
}
}
if(count == 0)
{
SendClientMessage(playerid, COLOR_RED, "There are currently no law enforcement personnel online.");
}
return 1;
}
}
if(strcmp(cmd, "/vips", true) == 0)
{
if(IsPlayerAdmin(playerid) == 1 || L2M[playerid]==1 || L3M[playerid]==1 ){
new playername[24];
new count = 0;
SendClientMessage(playerid, COLOR_WHITE, "Currently online ERP L2M and L3M personnel:");
for(new i=0; i<MAX_PLAYERS; i++)
{
if( VIP[i]==1 )
{
GetPlayerName(i,playername,24);
format(string,sizeof(string),"%s", playername);
SendClientMessage(playerid, COLOR_GREY, string);
count++;
}
}
if(count == 0)
{
//SendClientMessage(playerid, COLOR_RED, "There are currently no ERP server moderators online.");
SendClientMessage(playerid, COLOR_RED, "NONE");
}
return 1;
}
}
//Create
if(strcmp(cmd, "/create", true) == 0 ){
if(IsPlayerAdmin(playerid) == 1){
new tmp[256];
new objid;
new rot;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "/create [Object ID] [Rotation]");
return 1;
}
objid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "/create [Object ID] [Rotation]");
return 1;
}
new Float:X, Float:Y,Float:Z,Float:rX,Float:rY;
GetPlayerPos(playerid, X, Y, Z);
rot = strval(tmp);
SetPlayerPos(playerid,X,Y,Z +5);
CreateObject(objid, X, Y, Z, rX, rY, rot);
}
return 1;
}
if(strcmp(cmd, "/makerb", true) == 0 ){
if(IsPlayerAdmin(playerid) == 1){
new tmp[256];
new rot;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "/makerb 1 [Rotation]");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "/makerb 1 [Rotation]");
return 1;
}
new Float:X, Float:Y,Float:Z,Float:rX,Float:rY;
GetPlayerPos(playerid, X, Y, Z);
rot = strval(tmp);
SetPlayerPos(playerid,X,Y,Z +5);
CreateObject(981, X, Y, Z, rX, rY, rot);
}
return 1;
}
//lock and unlock
if (strcmp(cmdtext, "/lock", true)==0)
{
if(IsPlayerInAnyVehicle(playerid))
{
new State=GetPlayerState(playerid);
if(State!=PLAYER_STATE_DRIVER)
{
SendClientMessage(playerid,COLOR_RED,"You can only lock the doors as the driver of the vehicle.");
return 1;
}
new i;
for(i=0;i<MAX_PLAYERS;i++)
{
if(i != playerid)
{
SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 1);
}
}
SendClientMessage(playerid, COLOR_GREEN, "Your vehicle is now locked.");
new Float:pX, Float:pY, Float:pZ;
GetPlayerPos(playerid,pX,pY,pZ);
PlayerPlaySound(playerid,1056,pX,pY,pZ);
}
else
{
SendClientMessage(playerid, COLOR_RED, "This command is not available as you are not in a vehicle.");
}
return 1;
}
if (strcmp(cmdtext, "/unlock", true)==0)
{
if(IsPlayerInAnyVehicle(playerid))
{
new State=GetPlayerState(playerid);
if(State!=PLAYER_STATE_DRIVER)
{
SendClientMessage(playerid,COLOR_RED,"You may only unlock the doors if you are the driver of the vehicle.");
return 1;
}
new i;
for(i=0;i<MAX_PLAYERS;i++)
{
SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 0);
}
SendClientMessage(playerid, COLOR_YELLOW, "Your vehicle is now unlocked.");
new Float:pX, Float:pY, Float:pZ;
GetPlayerPos(playerid,pX,pY,pZ);
PlayerPlaySound(playerid,1057,pX,pY,pZ);
}
else
{
SendClientMessage(playerid, COLOR_RED, "This command is not available as you are not in a vehicle.");
}
return 1;
}
if (strcmp(cmd, "/report") == 0){
new playername[MAX_PLAYER_NAME];
if (strlen(cmdtext) > 8){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(REPORT) %s (ID:%d): %s", playername, playerid, cmdtext[8]);
SendMessageToAdmins(string);
format(string, sizeof(string), "(REPORT) %s (ID:%d): %s", playername, playerid, cmdtext[8]);
SendMessageToModerators(string);
format(string, sizeof(string), "Your report has been sent to all currently online server moderators.");
SendMessage(playerid, string);
}else{
format(string, sizeof(string), "Usage: /report [ID] [Reason]");
SendMessage(playerid, string);
}
return 1;
}
if(strcmp(cmd, "/shout", true) == 0)
{
for(new i=0; i<MAX_PLAYERS; i++){
new dir[256];
new tmp[256];
dir = strtok(cmdtext, idx);
strmid(tmp, cmdtext, 6, strlen(cmdtext));
// if(!strlen(dir)) {
// SendClientMessage(playerid,COLOR_WHITE,"USAGE: /shout [Message]");
// return 1;
// }
if(GetDistanceBetweenPlayers(playerid,i) < 50) {
dir = strtok(cmdtext, idx);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "(SHOUT) %s: %s", sendername, tmp);
SendClientMessage(i,0x63872CFF,string);
printf(string);
format(string, sizeof(string), "%s %s", sendername, tmp);
print(string);
}
}
return 1;
}
if(strcmp(cmd, "/lme", true) == 0)
{
for(new i=0; i<MAX_PLAYERS; i++){
new dir[256];
new tmp[256];
dir = strtok(cmdtext, idx);
strmid(tmp, cmdtext, 6, strlen(cmdtext));
if(GetDistanceBetweenPlayers(playerid,i) < 50) {
dir = strtok(cmdtext, idx);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s: %s", sendername, tmp);
SendClientMessage(i,0x63872CFF,string);
printf(string);
format(string, sizeof(string), "%s: %s", sendername, tmp);
print(string);
}
}
return 1;
}
if (strcmp(cmd, "/gm") == 0){
new playername[MAX_PLAYER_NAME];
if (strlen(cmdtext) > 4){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(GM) %s: %s", playername, cmdtext[4]);
printf(string);
SendClientMessageToAll(COLOR_AQUA,string);
}else{
format(string, sizeof(string), "USAGE: /gm [Message]");
SendMessage(playerid, string);
}
return 1;
}
if(strcmp(cmd, "/news", true) == 0)
{
if(gteam[playerid]==Team_SANN) {
new dir[256];
new tmp[256];
new playername[MAX_PLAYER_NAME];
dir = strtok(cmdtext, idx);
strmid(tmp, cmdtext, 6, strlen(cmdtext));
if(!strlen(dir)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /news [Message]");
return 1;
}
GetPlayerName(playerid,playername,sizeof(playername));
dir = strtok(cmdtext, idx);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
format(string, sizeof(string), "SAN ANDREAS NEWS NETWORK UPDATE");
SendClientMessageToAll(COLOR_SANTORANGE,string);
format(string, sizeof(string), "%s: %s", playername,tmp);
SendClientMessageToAll(COLOR_GREY,string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
return 1;
}
}
if(strcmp(cmd, "/civad", true) == 0)
{
new dir[256];
new tmp[256];
new playername[MAX_PLAYER_NAME];
dir = strtok(cmdtext, idx);
strmid(tmp, cmdtext, 6, strlen(cmdtext));
if(!strlen(dir)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /civad [Message]");
return 1;
}
GetPlayerName(playerid,playername,sizeof(playername));
dir = strtok(cmdtext, idx);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
format(string, sizeof(string), "ADVERTISEMENT");
SendClientMessageToAll(COLOR_YELLOW,string);
format(string, sizeof(string), "%s: %s", playername, tmp);
SendClientMessageToAll(COLOR_GREY,string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
GivePlayerMoney(playerid,-500);
format(string, sizeof(string), "You have purchsed an advertisement for a $500 fee.");
SendClientMessage(playerid,COLOR_YELLOW,string);
return 1;
}
if(strcmp(cmd, "/govad", true) == 0)
{
if(gteam[playerid]==Team_GOV) {
new dir[256];
new tmp[256];
dir = strtok(cmdtext, idx);
strmid(tmp, cmdtext, 6, strlen(cmdtext));
if(!strlen(dir)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /govad [Message]");
return 1;
}
dir = strtok(cmdtext, idx);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
format(string, sizeof(string), "STATE OF SAN ANDREAS - GOVERNMENT ADVISORY");
SendClientMessageToAll(COLOR_GREEN,string);
format(string, sizeof(string), "%s", tmp);
SendClientMessageToAll(COLOR_GREY,string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
return 1;
}
}
if(strcmp(cmd, "/satad", true) == 0)
{
if(gteam[playerid]==Team_SATA) {
new dir[256];
new tmp[256];
dir = strtok(cmdtext, idx);
strmid(tmp, cmdtext, 6, strlen(cmdtext));
if(!strlen(dir)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /satad [Message]");
return 1;
}
dir = strtok(cmdtext, idx);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
format(string, sizeof(string), "SAN ANDREAS TRANSPORTATION ADMINISTRATION NOTICE");
SendClientMessageToAll(COLOR_YELLOW,string);
format(string, sizeof(string), "%s", tmp);
SendClientMessageToAll(COLOR_GREY,string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
return 1;
}
}
if(strcmp(cmd, "/admad", true) == 0)
{
if(IsPlayerAdmin(playerid) == 1 || (L2M[playerid]==1) || (L3M[playerid]==1) ){
new dir[256];
new tmp[256];
dir = strtok(cmdtext, idx);
strmid(tmp, cmdtext, 6, strlen(cmdtext));
if(!strlen(dir)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /admad [Message]");
return 1;
}
dir = strtok(cmdtext, idx);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
format(string, sizeof(string), "ERP ADMINISTRATIVE NOTICE");
SendClientMessageToAll(COLOR_BRIGHTRED,string);
format(string, sizeof(string), "%s", tmp);
SendClientMessageToAll(COLOR_GREY,string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
return 1;
}
}
if(strcmp(cmd, "/copad", true) == 0)
{
if(gteam[playerid]==Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP|| gteam[playerid] == Team_DCP || IsPlayerAdmin(playerid) == 1) {
new dir[256];
new tmp[256];
dir = strtok(cmdtext, idx);
strmid(tmp, cmdtext, 6, strlen(cmdtext));
if(!strlen(dir)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /copad [Message]");
return 1;
}
dir = strtok(cmdtext, idx);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
format(string, sizeof(string), "SAN ANDREAS DEPARTMENT OF CIVIL PROTECTION PUBLIC ADVISORY");
SendClientMessageToAll(COLOR_BLUE,string);
format(string, sizeof(string), "%s", tmp);
SendClientMessageToAll(COLOR_GREY,string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
return 1;
}
}
if(strcmp(cmd, "/emsad", true) == 0)
{
if(gteam[playerid]==Team_EMS || gteam[playerid] == Team_Fire || IsPlayerAdmin(playerid) == 1) {
new dir[256];
new tmp[256];
dir = strtok(cmdtext, idx);
strmid(tmp, cmdtext, 6, strlen(cmdtext));
if(!strlen(dir)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /copad [Message]");
return 1;
}
dir = strtok(cmdtext, idx);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
format(string, sizeof(string), "SAN ANDREAS EMERGENCY MEDICAL SERVICES PUBLIC ADVISORY");
SendClientMessageToAll(COLOR_YELLOW,string);
format(string, sizeof(string), "%s", tmp);
SendClientMessageToAll(COLOR_GREY,string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
return 1;
}
}
if(strcmp(cmd, "/racead", true) == 0)
{
if(gteam[playerid]==Team_SARA) {
new dir[256];
new tmp[256];
dir = strtok(cmdtext, idx);
strmid(tmp, cmdtext, 6, strlen(cmdtext));
if(!strlen(dir)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /copad [Message]");
return 1;
}
dir = strtok(cmdtext, idx);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
format(string, sizeof(string), "SAN ANDREAS RACING ASSOCIATION NOTICE");
SendClientMessageToAll(COLOR_GREEN,string);
format(string, sizeof(string), "%s", tmp);
SendClientMessageToAll(COLOR_GREY,string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
return 1;
}
}
if(strcmp(cmd, "/firead", true) == 0)
{
if(gteam[playerid]==Team_Fire || IsPlayerAdmin(playerid) == 1) {
new dir[256];
new tmp[256];
dir = strtok(cmdtext, idx);
strmid(tmp, cmdtext, 6, strlen(cmdtext));
if(!strlen(dir)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /firead [Message]");
return 1;
}
dir = strtok(cmdtext, idx);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
format(string, sizeof(string), "FSAN ANDREAS IRE DEPARTMENT PUBLIC ADVISORY");
SendClientMessageToAll(COLOR_RED,string);
format(string, sizeof(string), "%s", tmp);
SendClientMessageToAll(COLOR_GREY,string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
return 1;
}
}
if(strcmp(cmd, "/ngad", true) == 0)
{
if(gteam[playerid]==Team_Army ) {
new dir[256];
new tmp[256];
dir = strtok(cmdtext, idx);
strmid(tmp, cmdtext, 6, strlen(cmdtext));
if(!strlen(dir)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /ngad [Message]");
return 1;
}
dir = strtok(cmdtext, idx);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
format(string, sizeof(string), "SAN ANDREAS NATIONAL GUARD PUBLIC ADVISORY");
SendClientMessageToAll(COLOR_GREEN,string);
format(string, sizeof(string), "%s", tmp);
SendClientMessageToAll(COLOR_GREY,string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
return 1;
}
}
// BACKUP ---------------------------------------------------------------------------------------------
if (strcmp(cmd, "/bk") == 0){
if(gteam[playerid]==Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP || gteam[playerid]==Team_SWAT) {
new playername[MAX_PLAYER_NAME];
if (strlen(cmdtext) > 4){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "Unit %d is requesting assistance. Info: %s", playerid, cmdtext[4]);
SendMessageToLaw(string);
}else{
format(string, sizeof(string), "USAGE: /bk [Location] [Reason]");
SendMessage(playerid, string);
}
return 1;
}
}
// END -------------------------------------------------------------------------------------------------
if (strcmp("/refuel", cmdtext, true, 3) == 0) {
ShowMenuForPlayer(MenuGas,playerid);
TogglePlayerControllable(playerid,false);
return 1;
}
if(strcmp(cmd, "/me", true) == 0)
{
new dir[256];
new tmp[256];
dir = strtok(cmdtext, idx);
strmid(tmp, cmdtext, 4, strlen(cmdtext));
if(!strlen(dir)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /me [Message]");
return 1;
}
dir = strtok(cmdtext, idx);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s %s", sendername, tmp);
SendClientMessageToAll(COLOR_LIGHTBLUE,string);
format(string, sizeof(string), "%s %s", sendername, tmp);
print(string);
return 1;
}
if(strcmp(cmd, "/mes", true) == 0)
{
new dir[256];
new tmp[256];
dir = strtok(cmdtext, idx);
strmid(tmp, cmdtext, 4, strlen(cmdtext));
if(!strlen(dir)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /me [Message]");
return 1;
}
dir = strtok(cmdtext, idx);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s's %s", sendername, tmp);
SendClientMessageToAll(COLOR_LIGHTBLUE,string);
format(string, sizeof(string), "%s's %s", sendername, tmp);
print(string);
return 1;
}
//if(strcmp(cmd, "/call", true) == 0 || strcmp(cmd, "/c", true) == 0) {
if(strcmp(cmd, "/c", true) == 0) {
new tmp[256];
new calltext[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /c [Player ID] [Message]");
return 1;
}
giveplayerid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /c [Player ID] [Message]");
return 1;
}
strmid(calltext, cmdtext, 5, strlen(cmdtext));
//if (IsPlayerConnected(giveplayerid) && playerid!=giveplayerid) {
if (IsPlayerConnected(giveplayerid) && IsPlayerConnected(playerid) ) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "(CALL) To %s (ID:%d): %s", giveplayer, giveplayerid,calltext);
SendClientMessage(playerid, 0x925FBCFF, string);
printf(string);
format(string, sizeof(string), "(CALL) From %s (ID:%d): %s", sendername,playerid,calltext);
SendClientMessage(giveplayerid, 0x925FBCFF, string);
printf(string);
}else{
format(string, sizeof(string), "You have specified an invalid number. Please try again.");
SendClientMessage(playerid, COLOR_RED, string);
}
if( IsPlayerAdmin(playerid)!=1 || IsPlayerAdmin(giveplayerid)!=1 ) {
if(STMSPlayer[playerid] == 1){
format(string, sizeof(string), "(STMS) - (CALL) From %s (ID:%d) to %s (ID:%d): %s", sendername, playerid, giveplayer, giveplayerid, calltext);
SendClientCallToL1A(string); // To L1A
}
}
return 1;
}
if(strcmp(cmd, "/Taxi", true) == 0)
{
new dir[256];
new tmp[256];
dir = strtok(cmdtext, idx);
strmid(tmp, cmdtext, 5, strlen(cmdtext));
if(!strlen(dir)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /Taxi [Location]");
return 1;
}
dir = strtok(cmdtext, idx);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s needs a taxi at %s", sendername, tmp);
SendMessageToTaxi(string);
format(string, sizeof(string), "(TAXI CALL) %s is requesting a taxi. Location: %s", sendername, tmp);
SendMessageToTaxi(string);
format(string, sizeof(string), "Your call has been processed and transmitted to all available taxi drivers.");
SendClientMessage(playerid, COLOR_YELLOW,string);
print(string);
ApplyAnimation(playerid,"PED","phone_talk",4.1,0,1,1,1,1);
return 1;
}
if (strcmp(cmd, "/ems") == 0){
new playername[MAX_PLAYER_NAME];
new current_zone;
current_zone = player_zone[playerid];
if (strlen(cmdtext) > 4){
if(InjuredPlayer[playerid] == 1){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendMessageToEMSWhite(string);
format(string, sizeof(string), "EMS DISPATCH (PRIORITY CALL)");
SendMessageToEMS(string);
format(string, sizeof(string), "Be advised. The following is a priority 911 call relay.");
SendMessageToEMSGrey(string);
format(string, sizeof(string), "Caller name: %s",playername);
SendMessageToEMSGrey(string);
format(string, sizeof(string), "Caller ID: %d",playerid);
SendMessageToEMSGrey(string);
format(string, sizeof(string), "Quoted information: %s", cmdtext[4]);
SendMessageToEMSGrey(string);
format(string, sizeof(string), "Caller traced location: %s",zones[current_zone][zone_name]);
SendMessageToEMSGrey(string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendMessageToEMSWhite(string);
format(string, sizeof(string), "Your call has been processed and transmitted to all online emergency medical personnel as a priority call.");
SendMessage(playerid, string);
}else{
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendMessageToEMSWhite(string);
format(string, sizeof(string), "EMS DISPATCH (EMS CALL)");
SendMessageToEMS(string);
format(string, sizeof(string), "Be advised. The following is an EMS call relay.");
SendMessageToEMSGrey(string);
format(string, sizeof(string), "Caller name: %s",playername);
SendMessageToEMSGrey(string);
format(string, sizeof(string), "Caller ID: %d",playerid);
SendMessageToEMSGrey(string);
format(string, sizeof(string), "Quoted information: %s", cmdtext[4]);
SendMessageToEMSGrey(string);
format(string, sizeof(string), "Caller traced location: %s",zones[current_zone][zone_name]);
SendMessageToEMSGrey(string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendMessageToEMSWhite(string);
format(string, sizeof(string), "Your call has been processed and transmitted to all online emergency medical personnel.");
SendMessage(playerid, string);
ApplyAnimation(playerid,"PED","phone_talk",4.1,0,1,1,1,1);
}
}else{
format(string, sizeof(string), "Usage: /ems [Location]");
SendMessage(playerid, string);
}
return 1;
}
if (strcmp(cmd, "/fire") == 0){
new playername[MAX_PLAYER_NAME];
if (strlen(cmdtext) > 4){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(FIRE) Call from %s (ID:%d): %s", playername, playerid, cmdtext[4]);
SendMessageToEMS(string);
format(string, sizeof(string), "Your call has been processed and transmitted to all online fire personnel.");
SendMessage(playerid, string);
ApplyAnimation(playerid,"PED","phone_talk",4.1,0,1,1,1,1);
}else if(animationplayed == 223) {
}else{
format(string, sizeof(string), "Usage: /fire [Name] [Location]");
SendMessage(playerid, string);
}
return 1;
}
if(strcmp(cmd, "/a", true) == 0)
{
new dir[256];
new tmp[256];
dir = strtok(cmdtext, idx);
if(IsPlayerAdmin(playerid) == 1){
strmid(tmp, cmdtext, 3, strlen(cmdtext));
if(!strlen(dir)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /a [Message]");
return 1;
}
dir = strtok(cmdtext, idx);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "(ADMINCOM) %s: %s", sendername, tmp);
SendMessageToAdmins(string);
format(string, sizeof(string), "(ADMINCOM) %s: %s", sendername, tmp);
print(string);
return 1;
}}
if (strcmp(cmd, "/mc") == 0){
if(IsPlayerAdmin(playerid) == 1 || (L2M[playerid]==1) || (L3M[playerid]==1) ){
new playername[MAX_PLAYER_NAME];
if (strlen(cmdtext) > 3){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(MODCOM) %s: %s", playername, cmdtext[3]);
SendMessageToAdmins(string);
SendMessageToModerators(string);
}else{
format(string, sizeof(string), "Usage: /mc [Message]");
SendMessage(playerid,string);
}
return 1;
}
}
if (strcmp(cmd, "/ag") == 0){
if((Agent[playerid]==1) || (gteam[playerid]==Team_L1A) ){
new playername[MAX_PLAYER_NAME];
if (strlen(cmdtext) > 3){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(AGENTCOM) %s: %s", playername, cmdtext[3]);
SendMessageToAgents(string);
}else{
format(string, sizeof(string), "Usage: /ac [Message]");
SendMessage(playerid,string);
}
return 1;
}
}
if (strcmp(cmd, "/vip") == 0){
if(IsPlayerAdmin(playerid) == 1 || (VIP[playerid]==1) ){
new playername[MAX_PLAYER_NAME];
if (strlen(cmdtext) > 3){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(VIPCOM) %s: %s", playername, cmdtext[3]);
SendMessageToAdmins(string);
SendMessageToVIP(string);
}else{
format(string, sizeof(string), "Usage: /vip [Message]");
SendMessage(playerid,string);
}
return 1;
}
}
if(strcmp(cmd, "/heal", true) == 0) {
if(IsPlayerAdmin(playerid) == 1 || gteam[playerid] == Team_EMS || gteam[playerid] == Team_Fire || gteam[playerid] == Team_ArmyMed){
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /heal [Player ID]");
return 1;
}
new pid = strval(tmp);
if(GetDistanceBetweenPlayers(playerid,pid) < 10) {
if(InjuredPlayer[pid] == 0){
if (IsPlayerConnected(pid)){
new tmpcar = GetPlayerVehicleID(playerid);
new tmpcar2 = GetPlayerVehicleID(pid);
if((GetPlayerState(playerid) == PLAYER_STATE_DRIVER || GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) && GetPlayerState(pid) == PLAYER_STATE_PASSENGER && IsAnAmbulance(tmpcar) && IsAnAmbulance(tmpcar2)) {
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(pid, giveplayername, sizeof(giveplayername));
SetPlayerHealth(pid, 100);
format(string, sizeof(string), "(INFO) Unit %d has healed %s (ID:%d) in an ambulance.", playerid, giveplayername, pid);
SendMessageToEMS(string);
format(string, sizeof(string), "You have been healed inside an ambulance by %s.",sendername);
SendClientMessage(pid,COLOR_GREEN,string);
}else{
new Float:health;
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(pid, giveplayername, sizeof(giveplayername));
GetPlayerHealth(pid, health);
SetPlayerHealth(pid, health+10);
format(string, sizeof(string), "(INFO) Unit %d has healed %s (ID:%d).", playerid, giveplayername, pid);
SendMessageToEMS(string);
format(string, sizeof(string), "You have been healed by %s.",sendername);
SendClientMessage(pid,COLOR_GREEN,string);
}
}else{
format(string, sizeof(string), "The person you are trying to heal is critically injured. Use /Revive instead.",sendername);
SendClientMessage(pid,COLOR_RED,string);
}
}
}
}
return 1;
}
if(strcmp(cmd, "/revive", true) == 0) {
if(IsPlayerAdmin(playerid) == 1 || gteam[playerid] == Team_EMS || gteam[playerid] == Team_Fire || gteam[playerid] == Team_ArmyMed){
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /revive [Player ID]");
return 1;
}
new pid = strval(tmp);
if(GetDistanceBetweenPlayers(playerid,pid) < 8) {
if(InjuredPlayer[pid] == 1){
if (IsPlayerConnected(pid)){
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(pid, giveplayername, sizeof(giveplayername));
SetPlayerHealth(pid, 50);
ApplyAnimation(playerid,"MEDIC","CPR",4.1,0,1,1,1,1);
ApplyAnimation(pid,"PED","getup",4.1,0,1,1,1,1);
TogglePlayerControllable(pid,1);
format(string, sizeof(string), "(INFO) Unit %d has revived %s (ID:%d).", playerid, giveplayername, pid);
SendMessageToEMS(string);
format(string, sizeof(string), "You have been REVIVED by %s.",sendername);
SendClientMessage(pid,COLOR_GREEN,string);
InjuredPlayer[pid] = 0;
}
}
}
}
return 1;
}
if(strcmp(cmd, "/cure", true) == 0) {
if(IsPlayerAdmin(playerid) == 1 || gteam[playerid] == Team_EMS || gteam[playerid] == Team_Fire || gteam[playerid] == Team_ArmyMed){
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /cure [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if(GetDistanceBetweenPlayers(playerid,giveplayerid) < 6) {
if (IsPlayerConnected(giveplayerid)){
if(IsPlayerInCircle(playerid, 352.8240,163.5471,15)){
if ( DiseasedPlayer[giveplayerid]==1 ) {
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayername, sizeof(giveplayername));
format(string, sizeof(string), "(INFO) Unit %d is attempting to cure %s (ID:%d).", playerid, giveplayername, giveplayerid);
SendMessageToEMS(string);
format(string, sizeof(string), "(INFO) You are attempting to cure %s.",giveplayername);
SendClientMessage(playerid,COLOR_YELLOW,string);
format(string, sizeof(string), "The approximate time required for the procedure is 10 seconds - remain in the clinic.");
SendClientMessage(playerid,COLOR_GREY,string);
format(string, sizeof(string), "(INFO) You have chosen to undergo the curing procedure.");
SendClientMessage(giveplayerid,COLOR_YELLOW,string);
format(string, sizeof(string), "The approximate time required for the procedure is 10 seconds - remain in the clinic.");
SendClientMessage(giveplayerid,COLOR_GREY,string);
SetTimerEx("CurePlayer", 10000, 0, "i", playerid,giveplayerid);
}else{
format(string, sizeof(string), "This person does not need to be cured.");
SendClientMessage(playerid, COLOR_RED,string);
}
}else{
format(string, sizeof(string), "This command can only be used from inside a hospital.");
SendClientMessage(playerid, COLOR_RED,string);
}
}
}
}
return 1;
}
if(strcmp(cmd, "/setcash", true) == 0) {
if(IsPlayerAdmin(playerid) == 1 || Agent[playerid]==1){
new tmp[256];
new pid;
new cash;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setcash [Player ID] [Amount]");
return 1;
}
pid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setcash [Player ID] [Amount]");
return 1;
}
cash = strval(tmp);
if (IsPlayerConnected(pid))
{
GetPlayerName(pid, giveplayername, sizeof(giveplayername));
SetPlayerMoney(pid,cash);
format(string, sizeof(string), "(ADMININFO) %s's money has been set to $%d.",giveplayername,cash);
SendClientMessage(playerid,0xFF6406FF,string);
}
}
return 1;
}
if(strcmp(cmd, "/sendcash", true) == 0) {
if(IsPlayerAdmin(playerid) == 1){
new tmp[256];
new pid;
new cash;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sendcash [Player ID] [Amount]");
return 1;
}
pid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sendcash [Player ID] [Amount]");
return 1;
}
cash = strval(tmp);
if (IsPlayerConnected(pid))
{
GetPlayerName(pid, giveplayername, sizeof(giveplayername));
GivePlayerMoney(pid,cash);
format(string, sizeof(string), "(ADMININFO) $%d have been transfered to %s.",cash,giveplayername);
SendClientMessage(playerid,0xFF6406FF,string);
}
}
return 1;
}
if(strcmp(cmd, "/clearcash", true) == 0) {
if(IsPlayerAdmin(playerid) == 1){
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /clearcash [Player ID]");
return 1;
}
new pid = strval(tmp);
if (IsPlayerConnected(pid))
{
GetPlayerName(pid, giveplayername, sizeof(giveplayername));
ResetPlayerMoney(pid);
format(string, sizeof(string), "(ADMININFO) %s's money has been cleared.",giveplayername);
SendClientMessage(playerid,0xFF6406FF,string);
}
}
return 1;
}
if(strcmp(cmd, "/murder", true) == 0) {
if(IsPlayerAdmin(playerid) == 1){
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /murder [Player ID]");
return 1;
}
new pid = strval(tmp);
if (IsPlayerConnected(pid))
{
GetPlayerName(pid, giveplayername, sizeof(giveplayername));
SetPlayerHealth(pid,0);
format(string, sizeof(string), "(ADMININFO) Assassination command issued for %s.",giveplayername);
SendClientMessage(playerid,0xFF6406FF,string);
}
}
return 1;
}
if (strcmp(cmd, "/911") == 0){ // CLASSIC 911 COMMAND
new playername[MAX_PLAYER_NAME];
new current_zone;
current_zone = player_zone[playerid];
if (strlen(cmdtext) > 4){
if(DispatchActivated==0){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendMessageToLawWhite(string);
format(string, sizeof(string), "POLICE DISPATCH (911 CALL)");
SendMessageToLaw(string);
format(string, sizeof(string), "Be advised. The following is a 911 call relay.");
SendMessageToLawGrey(string);
format(string, sizeof(string), "Caller name: %s",playername);
SendMessageToLawGrey(string);
format(string, sizeof(string), "Caller ID: %d",playerid);
SendMessageToLawGrey(string);
format(string, sizeof(string), "Quoted information: %s", cmdtext[4]);
SendMessageToLawGrey(string);
format(string, sizeof(string), "Caller traced location: %s",zones[current_zone][zone_name]);
SendMessageToLawGrey(string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendMessageToLawWhite(string);
printf(string);
format(string, sizeof(string), "Your call has been processed and transmitted to all online law enforcement personnel.");
SendMessage(playerid, string);
ApplyAnimation(playerid,"PED","phone_talk",4.1,0,1,1,1,1);
}else{
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendMessageToDispatchWhite(string);
format(string, sizeof(string), "911 CALL");
SendMessageToDispatch(string);
format(string, sizeof(string), "Caller name: %s",playername);
SendMessageToDispatchGrey(string);
format(string, sizeof(string), "Caller ID: %d",playerid);
SendMessageToDispatchGrey(string);
format(string, sizeof(string), "Quoted information: %s", cmdtext[4]);
SendMessageToDispatchGrey(string);
format(string, sizeof(string), "Caller traced location: %s",zones[current_zone][zone_name]);
SendMessageToDispatchGrey(string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendMessageToDispatchWhite(string);
printf(string);
format(string, sizeof(string), "Your call has been processed and transmitted to all online law enforcement personnel.");
SendMessage(playerid, string);
ApplyAnimation(playerid,"PED","phone_talk",4.1,0,1,1,1,1);
}
}else{
format(string, sizeof(string), "Usage: /911 [Suspect] [Crime]");
SendMessage(playerid, string);
}
return 1;
}
if(strcmp(cmd, "/res", true) == 0) {
if(gteam[playerid] == Team_ArmyMed || gteam[playerid] == Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP || gteam[playerid] == Team_DCP || gteam[playerid]==Team_GOV || gteam[playerid]==Team_L1A){
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /res [Player ID]");
return 1;
}
new officername[MAX_PLAYER_NAME];
new callername[MAX_PLAYER_NAME];
new callerid = strval(tmp);
if (IsPlayerConnected(callerid)){
GetPlayerName(playerid, officername, sizeof(officername));
GetPlayerName(callerid, callername, sizeof(callername));
format(string, sizeof(string), "(CALL) Call from 911: A unit has been dispatched to investigate your call. Please stay where you are.");
SendClientMessage(callerid, COLOR_YELLOW,string);
format(string, sizeof(string), "(INFO) Unit %d responding to %s (ID:%d)'s call.",playerid, callername, callerid);
SendMessageToLaw(string);
printf(string);
}
}
return 1;
}
if(strcmp(cmd, "/respond", true) == 0) {
if(gteam[playerid] == Team_EMS || gteam[playerid] == Team_Fire){
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /res [Player ID]");
return 1;
}
new medicname[MAX_PLAYER_NAME];
new callername[MAX_PLAYER_NAME];
new callerid = strval(tmp);
if (IsPlayerConnected(callerid)){
GetPlayerName(playerid, medicname, sizeof(medicname));
GetPlayerName(callerid, callername, sizeof(callername));
format(string, sizeof(string), "(CALL) Call from 911: Paramedics have been dispatched to your location. Please stay where you are.");
SendClientMessage(callerid, COLOR_YELLOW,string);
format(string, sizeof(string), "(INFO) EMS Unit %d responding to %s (ID:%d)'s call.",playerid, callername, callerid);
SendMessageToAllEmerg(string);
printf(string);
}
}
return 1;
}
if (strcmp(cmd, "/hit") == 0){
new playername[MAX_PLAYER_NAME];
if (strlen(cmdtext) > 4){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(HIT) Contract call from %s (ID:%d): %s", playername, playerid, cmdtext[4]);
SendMessageToDiablo(string);
printf(string);
format(string, sizeof(string), "Your call has been send to all online Diablo hitmen.");
SendMessage(playerid, string);
ApplyAnimation(playerid,"PED","phone_talk",4.1,0,1,1,1,1);
}else{
format(string, sizeof(string), "Usage: /hit [Person]");
SendMessage(playerid, string);
}
return 1;
}
if (strcmp(cmd, "/r") == 0){
if (strlen(cmdtext) > 3){
new playername[MAX_PLAYER_NAME];
new UnitIdentifier[512];
GetPlayerName(playerid, playername, sizeof(playername));
UnitIdentifier = dini_Get("UnitIDs.txt",playername);
if(IsPlayerInAnyVehicle(playerid)){
ApplyAnimation(playerid,"PED","CAR_tune_radio",4.1,0,1,1,1,1);
}
if(gteam[playerid] == Team_DCP || gteam[playerid] == Team_DCPT || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || (PlayerIsADispatcher[playerid] == 0 && gteam[playerid] == Team_SFPD) || gteam[playerid] == Team_SASP || gteam[playerid]==Team_L1A){
if(dini_Exists("UnitIDs.txt")){
if(strlen(dini_Get("UnitIDs.txt",playername))!=0) {
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(DCPCOM) %s %d: %s, over.", UnitIdentifier, playerid, cmdtext[3]);
SendMessageToLaw(string);
}else{
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(DCPCOM) Unit %d: %s, over.", playerid, cmdtext[3]);
SendMessageToLaw(string);
}
}
}else{
if(gteam[playerid] == Team_Army || gteam[playerid] == Team_ArmyMed){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(NGCOM) Unit %d: %s, over.", playerid, cmdtext[3]);
SendMessageToArmy(string);
}else{
if(PlayerIsADispatcher[playerid] == 1 && gteam[playerid] == Team_SFPD){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(DCPCOM) DISPATCH: %s, over.", cmdtext[3]);
SendMessageToLaw(string);
}else{
if(gteam[playerid] == Team_UTIL){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(PWCOM) Unit %d: %s, over.", playerid, cmdtext[3]);
SendMessageToUTIL(string);
}else{
if(gteam[playerid] == Team_BattleTan){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(BATTLECOM) Unit %d: %s, over.", playerid, cmdtext[3]);
SendMessageToBattleTan(string);
}else{
if(gteam[playerid] == Team_GOV){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(GOVCOM) Unit %d: %s, over.", playerid, cmdtext[3]);
SendMessageToGOV(string);
}else{
if(gteam[playerid] == Team_BattlePurple){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(BATTLECOM) Unit %d: %s, over.", playerid, cmdtext[3]);
SendMessageToBattlePurple(string);
}else{
if(gteam[playerid] == Team_Smoke){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(COM) %s: %s", playername, cmdtext[3]);
SendMessageToSmoke(string);
}else{
if(gteam[playerid] == Team_STONER){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(COM) %s: %s", playername, cmdtext[3]);
SendMessageToSTONER(string);
}else{
if(gteam[playerid] == Team_CF){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(COM) %s: %s", playername, cmdtext[3]);
SendMessageToCF(string);
}else{
if(gteam[playerid] == Team_BLACKWATER){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(COM) Unit %d: %s, over.", playerid, cmdtext[3]);
SendMessageToBLACKWATER(string);
}else{
if(gteam[playerid] == Team_DIABLO){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(MCOM) %d: %s, over.", playerid, cmdtext[3]);
SendMessageToDiablo(string);
}else{
if(gteam[playerid] == Team_EMS || gteam[playerid] == Team_Fire){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(DPSCOM) Unit %d: %s, over.", playerid, cmdtext[3]);
SendMessageToEMS(string);
}else{
format(string, sizeof(string), "Usage: /r [Message]");
SendMessage(playerid, string);
}
return 1;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
if (strcmp(cmd, "/rr") == 0){
if(gteam[playerid] == Team_DCP || gteam[playerid] == Team_DCPT || gteam[playerid] == Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_Army || gteam[playerid] == Team_ArmyMed || gteam[playerid] == Team_Fire || gteam[playerid] == Team_EMS || gteam[playerid]==Team_GOV || gteam[playerid] == Team_BLACKWATER || IsPlayerAdmin(playerid) == 1){
new playername[MAX_PLAYER_NAME];
if(IsPlayerInAnyVehicle(playerid)){
ApplyAnimation(playerid,"PED","CAR_tune_radio",4.1,0,1,1,1,1);
}
if (strlen(cmdtext) > 3){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(IDCOM) Unit %d: %s, over.", playerid, cmdtext[3]);
SendMessageToAllEmerg(string);
}else{
format(string, sizeof(string), "Usage: /rr [Message]");
SendMessage(playerid,string);
}
return 1;
}
}
//========================================================================= END =====================================================================================
if (strcmp(cmd, "/t") == 0){
new playername[MAX_PLAYER_NAME];
if(gteam[playerid] == Team_ATCLS || gteam[playerid] == Team_ATCSF || gteam[playerid] == Team_ATCLV || gteam[playerid] == Team_ATCVM){
if (strlen(cmdtext) > 3){
if(gteam[playerid] == Team_ATCLS){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(TOWERCOM) (LS) Controller %d: %s, over.", playerid, cmdtext[3]);
SendMessageToATC(string);
}else{
if(gteam[playerid] == Team_ATCSF){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(TOWERCOM) (SF) Controller %d: %s, over.", playerid, cmdtext[3]);
SendMessageToATC(string);
}else{
if(gteam[playerid] == Team_ATCLV){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(TOWERCOM) (LV) Controler %d: %s, over.", playerid, cmdtext[3]);
SendMessageToATC(string);
}else{
if(gteam[playerid] == Team_ATCVM){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(TOWERCOM) (VM) Controller %d: %s, over.", playerid, cmdtext[3]);
SendMessageToATC(string);
}else{
}
}
}
}
}else{
format(string, sizeof(string), "Usage: /rr [Message]");
SendMessage(playerid,string);
}
}
return 1;
}
if (strcmp(cmd, "/p") == 0){
new vehicleid;
new playername[MAX_PLAYER_NAME];
vehicleid = GetPlayerVehicleID(playerid);
if (strlen(cmdtext) > 3){
if (GetVehicleModel(vehicleid) == 592 || GetVehicleModel(vehicleid) == 577 || GetVehicleModel(vehicleid) == 511 || GetVehicleModel(vehicleid) == 548 || GetVehicleModel(vehicleid) == 425 || GetVehicleModel(vehicleid) == 487 || GetVehicleModel(vehicleid) == 553 || GetVehicleModel(vehicleid) == 417 || GetVehicleModel(vehicleid) == 497 || GetVehicleModel(vehicleid) == 519 || GetVehicleModel(vehicleid) == 488){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(SAATCOM) Air %d: %s, over.", playerid, cmdtext[3]);
SendMessageToAir(string);
}else{
if(gteam[playerid] == Team_ATCLS){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(LS TOWER) Controller %d: %s, over.", playerid, cmdtext[3]);
SendMessageToAirFromTower(string);
}else{
if(gteam[playerid] == Team_ATCSF){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(SF TOWER) Controller %d: %s, over.", playerid, cmdtext[3]);
SendMessageToAirFromTower(string);
}else{
if(gteam[playerid] == Team_ATCLV){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(LV TOWER) Controler %d: %s, over.", playerid, cmdtext[3]);
SendMessageToAirFromTower(string);
}else{
if(gteam[playerid] == Team_ATCVM){
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(VM TOWER) Controller %d: %s, over.", playerid, cmdtext[3]);
SendMessageToAirFromTower(string);
}else{
}
}
}
}
}
}else{
format(string, sizeof(string), "Usage: /p [Message]");
SendMessage(playerid,string);
}
return 1;
}
if (strcmp(cmd, "/m") == 0)
{
if(gteam[playerid] == Team_DCP || gteam[playerid] == Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP || gteam[playerid] == Team_Army || gteam[playerid] == Team_ArmyMed || gteam[playerid] == Team_Fire || gteam[playerid] == Team_EMS || gteam[playerid]==Team_L1A){
for(new i=0; i<MAX_PLAYERS; i++){
new playername[MAX_PLAYER_NAME];
new tmpcar = GetPlayerVehicleID(playerid);
if (strlen(cmdtext) > 3){
if( IsACopCar(tmpcar) ){
if(GetDistanceBetweenPlayers(playerid,i) < 50) {
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(MEGAPHONE): %s", cmdtext[3]);
SendClientMessage(i,COLOR_BRIGHTRED,string);
}
}else{
SendClientMessage(playerid, COLOR_RED, "You must be in a police vehicle to access this command.");
}
}
}
}
return 1;
}
if(strcmp(cmd, "/pof", true) == 0)
{ if(gteam[playerid] == Team_Fire){
new dir[256];
new tmp[256];
dir = strtok(cmdtext, idx);
strmid(tmp, cmdtext, 4, strlen(cmdtext));
if(!strlen(dir)) {
SendClientMessage(playerid,COLOR_WHITE,"Usage: /pof [Location]");
return 1;
}
dir = strtok(cmdtext, idx);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "** %s has put out the fire at %s", sendername, tmp);
SendClientMessageToAll(COLOR_GREEN,string);
format(string, sizeof(string), "** %s has put out the fire at %s", sendername, tmp);
print(string);
}
return 1;
}
if(strcmp(cmd, "/psex", true) == 0)
{
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Usage: /psex [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if (IsPlayerConnected(giveplayerid)) {
if (gteam[playerid]==Team_SFPROST || gteam[playerid]==Team_SFPROSTG || gteam[playerid]==Team_LSPROST || gteam[playerid]==Team_LVPROST) {
if (GetDistanceBetweenPlayers(playerid, giveplayerid) < 5){
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "(INFO) You have had sex with %s and have recieved $300.", giveplayer);
SendClientMessage(playerid,COLOR_YELLOW, string);
GivePlayerMoney(playerid,300);
format(string, sizeof(string), "To ensure that you are free of any disease, consult an SAEMS paramedic at the nearest hospital.");
SendClientMessage(playerid,COLOR_GREY, string);
format(string, sizeof(string), "(INFO) You have had sex with %s at a cost of $300.", sendername);
SendClientMessage(giveplayerid,COLOR_YELLOW, string);
format(string, sizeof(string), "To ensure that you are free of any disease, consult an SAEMS paramedic at the nearest hospital.");
SendClientMessage(giveplayerid,COLOR_GREY, string);
GivePlayerMoney(giveplayerid,-300);
DiseasedPlayer[giveplayerid]=1;
DiseasedPlayer[playerid]=1;
}
}
}
return 1;
}
if(strcmp(cmd, "/sex", true) == 0)
{
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Usage: /sex [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if (IsPlayerConnected(giveplayerid)) {
if (GetDistanceBetweenPlayers(playerid, giveplayerid) < 5){
if ( DiseasedPlayer[playerid]==1 ) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "(INFO) You have had sex with %s.", giveplayer);
SendClientMessage(playerid,COLOR_YELLOW, string);
format(string, sizeof(string), "To ensure that you are free of any disease, consult an SAEMS paramedic at the nearest hospital.");
SendClientMessage(playerid,COLOR_GREY, string);
format(string, sizeof(string), "(INFO) You have had sex with %s.", sendername);
SendClientMessage(giveplayerid,COLOR_YELLOW, string);
format(string, sizeof(string), "To ensure that you are free of any disease, consult an SAEMS paramedic at the nearest hospital.");
SendClientMessage(giveplayerid,COLOR_GREY, string);
DiseasedPlayer[giveplayerid]=1;
}else{
format(string, sizeof(string), "(INFO) You have had sex with %s.", giveplayer);
SendClientMessage(playerid,COLOR_YELLOW, string);
format(string, sizeof(string), "To ensure that you are free of any disease, consult an SAEMS paramedic at the nearest hospital.");
SendClientMessage(playerid,COLOR_GREY, string);
format(string, sizeof(string), "(INFO) You have had sex with %s.", sendername);
SendClientMessage(giveplayerid,COLOR_YELLOW, string);
format(string, sizeof(string), "To ensure that you are free of any disease, consult an SAEMS paramedic at the nearest hospital.");
SendClientMessage(giveplayerid,COLOR_GREY, string);
}
}
}
return 1;
}
if(strcmp(cmd, "/rape", true) == 0)
{
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Usage: /rape [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if (IsPlayerConnected(giveplayerid)) {
if (GetDistanceBetweenPlayers(playerid, giveplayerid) < 8){
if ( DiseasedPlayer[playerid]==1 ) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "(INFO) You have brutaly and viciously raped %s.", giveplayername);
SendClientMessage(playerid,COLOR_YELLOW, string);
format(string, sizeof(string), "To ensure that you are free of any disease, consult an SAEMS paramedic at the nearest hospital.");
SendClientMessage(playerid,COLOR_GREY, string);
format(string, sizeof(string), "(INFO) You have been brutaly and viciously raped by %s.", sendername);
SendClientMessage(giveplayerid,COLOR_RED, string);
format(string, sizeof(string), "To ensure that you are free of any disease, consult an SAEMS paramedic at the nearest hospital.");
SendClientMessage(giveplayerid,COLOR_GREY, string);
DiseasedPlayer[giveplayerid]=1;
}else{
format(string, sizeof(string), "(INFO) You have brutaly and viciously raped %s.", giveplayername);
SendClientMessage(playerid,COLOR_YELLOW, string);
format(string, sizeof(string), "To ensure that you are free of any disease, consult an SAEMS paramedic at the nearest hospital.");
SendClientMessage(playerid,COLOR_GREY, string);
format(string, sizeof(string), "(INFO) You have been brutaly and viciously raped by %s.", sendername);
SendClientMessage(giveplayerid,COLOR_RED, string);
format(string, sizeof(string), "To ensure that you are free of any disease, consult an SAEMS paramedic at the nearest hospital.");
SendClientMessage(giveplayerid,COLOR_GREY, string);
}
}
}
return 1;
}
if(strcmp(cmd, "/molest", true) == 0)
{
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Usage: /molest [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if (IsPlayerConnected(giveplayerid)) {
if (GetDistanceBetweenPlayers(playerid, giveplayerid) < 8){
if ( DiseasedPlayer[playerid]==1 ) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "(INFO) You have sexually molested %s.", giveplayername);
SendClientMessage(playerid,COLOR_YELLOW, string);
format(string, sizeof(string), "To ensure that you are free of any disease, consult an SAEMS paramedic at the nearest hospital.");
SendClientMessage(playerid,COLOR_GREY, string);
format(string, sizeof(string), "(INFO) You have been brutaly and viciously raped by %s.", sendername);
SendClientMessage(giveplayerid,COLOR_RED, string);
format(string, sizeof(string), "To ensure that you are free of any disease, consult an SAEMS paramedic at the nearest hospital.");
SendClientMessage(giveplayerid,COLOR_GREY, string);
DiseasedPlayer[giveplayerid]=1;
}else{
format(string, sizeof(string), "(INFO) You have sexually molested %s.", giveplayername);
SendClientMessage(playerid,COLOR_YELLOW, string);
format(string, sizeof(string), "To ensure that you are free of any disease, consult an SAEMS paramedic at the nearest hospital.");
SendClientMessage(playerid,COLOR_GREY, string);
format(string, sizeof(string), "(INFO) You have been sexually molested by by %s.", sendername);
SendClientMessage(giveplayerid,COLOR_RED, string);
format(string, sizeof(string), "To ensure that you are free of any disease, consult an SAEMS paramedic at the nearest hospital.");
SendClientMessage(giveplayerid,COLOR_GREY, string);
}
}
}
return 1;
}
if(strcmp(cmd, "/bus", true) == 0)
{
new dir[256];
new tmp[256];
dir = strtok(cmdtext, idx);
strmid(tmp, cmdtext, 5, strlen(cmdtext));
if(!strlen(dir)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /Bus [Location]");
return 1;
}
dir = strtok(cmdtext, idx);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s needs a taxi at %s", sendername, tmp);
SendMessageToTaxi(string);
format(string, sizeof(string), "(BUS CALL) %s is waiting for a bus. Location: %s", sendername, tmp);
SendMessageToTaxi(string);
format(string, sizeof(string), "Your call has been processed and transmitted to all available bus drivers.");
SendClientMessage(playerid, COLOR_YELLOW,string);
print(string);
ApplyAnimation(playerid,"PED","phone_talk",4.1,0,1,1,1,1);
return 1;
}
if(strcmp(cmdtext,"/pay",true)==0)
{
if (IsPlayerAdmin(playerid) == 0)
{
if (GiveMoney[playerid] == 0)
{
GiveMoney[playerid] = 1;
SendClientMessage(playerid,COLOR_GREEN,"Pay System Activated");
}
else
{
GiveMoney[playerid] = 0;
SendClientMessage(playerid,COLOR_RED,"Pay System Deactivated");
}
}
return 1;
}
if(strcmp(cmdtext, "/hiddenenter", true)==0)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid,x,y,z);
if (((x<-1050.2910) && (x>-1055.9025) && (y<1100.4581) && (y>1096.0452) && (z>1343.0703) && (z<1370.2341)))
{
SetPlayerPos(playerid, 245.1381,1862.2637,17.9187);
SetPlayerInterior(playerid,0);
}
return 1;
}
if(strcmp("/buyguns", cmdtext, true, 10) == 0)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid,x,y,z);
if (((x<-971.1744) && (x>-976.7632) && (y<1037.5640) && (y>1029.9700) && (z>1348.7003) && (z<1350.7498)))
{
TogglePlayerControllable(playerid, false);
ShowMenuForPlayer(Weapons, playerid);
}
if (((x<-1129.7478) && (x>-1135.3920) && (y<1089.1520) && (y>1081.7195) && (z>1347.4576) && (z<1352.5077)))
{
TogglePlayerControllable(playerid, false);
ShowMenuForPlayer(Weapons, playerid);
}
return 1;
}
//=================== LOGINS =================================================================================================================
//================ CIVILIAN Login ====================================
if(strcmp(cmd, "/civilian", true) == 0 || strcmp(cmd, "/offduty", true) == 0) {
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
if(PlayerIsADispatcher[playerid] == 0){
SendClientMessage(playerid, COLOR_YELLOW, "You are now a civilian.");
SetPlayerColor(playerid,COLOR_GREY);
SetPlayerSkin(playerid, 250);
ResetPlayerWeapons(playerid);
gteam[playerid] = 10;
SetPlayerTeam(playerid,10);
SetPlayerArmour(playerid,0);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSANNCars(playerid);
}
}
}
}
}
return 1;
}
//================ SFPD Login ====================================
if (strcmp(cmdtext, "/lawman2008", true)==0)
{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
if(PlayerIsADispatcher[playerid] == 0){
SendClientMessage(playerid, COLOR_YELLOW, "You are now logged in as an SAPD Metro officer.");
SetPlayerColor(playerid,COLOR_BLUE);
SetPlayerSkin(playerid, 266);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,24,100000);
GivePlayerWeapon(playerid,25,100000);
GivePlayerWeapon(playerid,41,100000);
GivePlayerWeapon(playerid,3,1);
UnlockSFPDCars(playerid);
UnlockLVPDCars(playerid);
UnlockLSPDCars(playerid);
gteam[playerid] = 16;
SetPlayerTeam(playerid,16);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSANNCars(playerid);
LockSWATCars(playerid);
}
}
return 1;
}
//DISPATCH
if (strcmp(cmdtext, "/dispatch3", true)==0)
{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
if(IsPlayerAdmin(playerid)==1 || gteam[playerid]==Team_SFPD || gteam[playerid]==Team_SASP || gteam[playerid]==Team_DCP) {
if(IsPlayerInCircle(playerid,272.4054,108.0353,15)) {
if(DispatchActivated == 0) {
SendClientMessage(playerid, COLOR_YELLOW, "You are now logged in as a District Three police dispatcher.");
SendMessageToLaw("(INFO) A police dispatcher is on duty.");
SetPlayerColor(playerid,COLOR_BLUE);
SetPlayerSkin(playerid, 266);
UnlockSFPDCars(playerid);
PlayerIsADispatcher[playerid]=1;
DispatchActivated=1;
ApplyAnimation(playerid,"PED","SEAT_down",4.1,0,1,1,1,1);
}else{
SendClientMessage(playerid, COLOR_RED, "A dispatcher is already on duty.");
}
}
}
}
return 1;
}
if (strcmp(cmdtext, "/canceldispatch3", true)==0)
{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
if(PlayerIsADispatcher[playerid]==1) {
SendClientMessage(playerid, COLOR_YELLOW, "You are no longer a police dispatcher.");
SendMessageToLaw("(INFO) A police dispatcher is off duty (D3).");
SetPlayerColor(playerid,COLOR_GREY);
PlayerIsADispatcher[playerid]=0;
DispatchActivated=0;
}
}
return 1;
}
//POLICE SNIPER CODE
if (strcmp(cmdtext, "/sniper", true)==0)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if(gteam[playerid]==Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP || gteam[playerid] == Team_DCP || gteam[playerid] == Team_Army || gteam[playerid] == Team_ArmyMed || gteam[playerid] == Team_GOV || IsPlayerAdmin(playerid) == 1){
if( IsServiceVehicle(vehicleid) ) {
SendClientMessage(playerid, COLOR_YELLOW, "You have chosen to equip yourself with a sniper rifle.");
SendClientMessage(playerid, COLOR_GREY, "The process may require approximatley 15 seconds - remain in the vehicle.");
SetTimerEx("GiveSniper", 15000, 0, "i", playerid);
}else{
SendClientMessage(playerid, COLOR_RED, "You must be in a service vehicle to access this command.");
}
}else{
SendClientMessage(playerid, COLOR_RED, "This command is for law enforcement personnel only.");
}
return 1;
}
//NIGHT VISION
if (strcmp(cmdtext, "/nightvision", true)==0)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if(gteam[playerid]==Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP || gteam[playerid] == Team_DCP || gteam[playerid] == Team_Army || gteam[playerid] == Team_ArmyMed || gteam[playerid] == Team_GOV || IsPlayerAdmin(playerid) == 1){
if( IsServiceVehicle(vehicleid) ) {
SendClientMessage(playerid, COLOR_YELLOW, "You have chosen to equip yourself with night vision goggles.");
SendClientMessage(playerid, COLOR_GREY, "The process may require approximatley 10 seconds - remain in the vehicle.");
SetTimerEx("GiveNVG", 10000, 0, "i", playerid);
}else{
SendClientMessage(playerid, COLOR_RED, "You must be in a service vehicle to access this command.");
}
}else{
SendClientMessage(playerid, COLOR_RED, "This command is for law enforcement personnel only.");
}
return 1;
}
//THERMAL VISION
if (strcmp(cmdtext, "/thermalvision", true)==0)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if(gteam[playerid]==Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP || gteam[playerid] == Team_DCP || gteam[playerid] == Team_Army || gteam[playerid] == Team_ArmyMed || gteam[playerid] == Team_GOV || IsPlayerAdmin(playerid) == 1){
if( IsServiceVehicle(vehicleid) ) {
SendClientMessage(playerid, COLOR_YELLOW, "You have chosen to equip yourself with thermal vision goggles.");
SendClientMessage(playerid, COLOR_GREY, "The process may require approximatley 10 seconds - remain in the vehicle.");
SetTimerEx("GiveTVG", 10000, 0, "i", playerid);
}else{
SendClientMessage(playerid, COLOR_RED, "You must be in a service vehicle to access this command.");
}
}else{
SendClientMessage(playerid, COLOR_RED, "This command is for law enforcement personnel only.");
}
return 1;
}
//POLICE SILENCED 9MM
if (strcmp(cmdtext, "/pistol", true)==0)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if(gteam[playerid]==Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP || gteam[playerid] == Team_DCP || gteam[playerid] == Team_Army || gteam[playerid] == Team_ArmyMed || gteam[playerid] == Team_GOV || IsPlayerAdmin(playerid) == 1){
if( IsServiceVehicle(vehicleid) ) {
SendClientMessage(playerid, COLOR_YELLOW, "You have chosen to replace your Desert Eagle with a silenced 9mm pistol.");
SendClientMessage(playerid, COLOR_GREY, "The process may require approximatley 15 seconds - remain in the vehicle.");
SetTimerEx("GivePistol", 15000, 0, "i", playerid);
}else{
SendClientMessage(playerid, COLOR_RED, "You must be in a service vehicle to access this command.");
}
}else{
SendClientMessage(playerid, COLOR_RED, "This command is for law enforcement personnel only.");
}
return 1;
}
//POLICE CAMERA
if (strcmp(cmdtext, "/camera", true)==0)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if(gteam[playerid]==Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP || gteam[playerid] == Team_DCP || gteam[playerid] == Team_Army || gteam[playerid] == Team_ArmyMed || gteam[playerid] == Team_GOV || IsPlayerAdmin(playerid) == 1){
if( IsServiceVehicle(vehicleid) ) {
SendClientMessage(playerid, COLOR_YELLOW, "You have chosen to equip yourself with a police-issue camera.");
SendClientMessage(playerid, COLOR_GREY, "The process may require approximatley 5 seconds - remain in the vehicle.");
SetTimerEx("GiveCamera", 5000, 0, "i", playerid);
}else{
SendClientMessage(playerid, COLOR_RED, "You must be in a service vehicle to access this command.");
}
}else{
SendClientMessage(playerid, COLOR_RED, "This command is for law enforcement personnel only.");
}
return 1;
}
//POLICE ARMOR/HEAL
if (strcmp(cmdtext, "/armor", true)==0)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if(gteam[playerid]==Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP || gteam[playerid] == Team_DCP || gteam[playerid] == Team_Army || gteam[playerid] == Team_EMS || gteam[playerid] == Team_Fire || gteam[playerid] == Team_ArmyMed || gteam[playerid] == Team_GOV || IsPlayerAdmin(playerid) == 1 || Agent[playerid]==1){
if( IsServiceVehicle(vehicleid) ) {
SendClientMessage(playerid, COLOR_YELLOW, "You have chosen to use the vehicle's field medical kit.");
SendClientMessage(playerid, COLOR_GREY, "The process may require approximatley 20 seconds - remain in the vehicle.");
SetTimerEx("GiveArmor", 20000, 0, "i", playerid);
}else{
SendClientMessage(playerid, COLOR_RED, "You must be in a service vehicle to access this command.");
}
}else{
SendClientMessage(playerid, COLOR_RED, "This command is for authorized personnel only.");
}
return 1;
}
//POLICE SKINS
if(strcmp(cmdtext, "/policeskin", true) == 0) {
if(gteam[playerid] == Team_LSPD){
SetPlayerSkin(playerid, 266); // ORIGINAL LSPD IS 280
SetPlayerColor(playerid, COLOR_GREY);
SendClientMessage(playerid, COLOR_YELLOW, "You have changed clothing. You are now wearing the Los Santos Police Dept. uniform.");
}else{
if(gteam[playerid] == Team_SFPD || IsPlayerAdmin(playerid)==1 ){
SetPlayerSkin(playerid, 266); //ORIGINAL SFPD IS 281
SetPlayerColor(playerid, COLOR_GREY);
SendClientMessage(playerid, COLOR_YELLOW, "You have changed clothing. You are now wearing the SAPD Metro uniform.");
}else{
if(gteam[playerid] == Team_SWAT){
SetPlayerSkin(playerid, 282);
SetPlayerColor(playerid, COLOR_GREY);
SendClientMessage(playerid, COLOR_YELLOW, "You have changed clothing. You are now wearing the Las Venturas Metro Police Dept. uniform.");
}else{
if(gteam[playerid] == Team_SASP){
SetPlayerSkin(playerid, 283);
SetPlayerColor(playerid, COLOR_GREY);
SendClientMessage(playerid, COLOR_YELLOW, "You have changed clothing. You are now wearing the San Andreas State Police uniform.");
return 1;
}
}
}
}
}
if(strcmp(cmdtext, "/undercoverskin", true) == 0) {
if(gteam[playerid] == Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP || IsPlayerAdmin(playerid) == 1){
SetPlayerSkin(playerid, 120);
SendClientMessage(playerid, COLOR_YELLOW, "You have changed clothing. You are now undercover.");
SetPlayerColor(playerid, COLOR_GREY);
return 1;
}
}
if(strcmp(cmdtext, "/undercoverskin2", true) == 0) {
if(gteam[playerid] == Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP || IsPlayerAdmin(playerid) == 1 ){
SetPlayerSkin(playerid, 60);
SendClientMessage(playerid, COLOR_YELLOW, "You have changed clothing. You are now undercover.");
SetPlayerColor(playerid, COLOR_GREY);
return 1;
}
}
if(strcmp(cmdtext, "/undercoverskin3", true) == 0) {
if(gteam[playerid] == Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP || IsPlayerAdmin(playerid) == 1){
SetPlayerSkin(playerid, 28);
SendClientMessage(playerid, COLOR_YELLOW, "You have changed clothing. You are now undercover.");
SetPlayerColor(playerid, COLOR_GREY);
return 1;
}
}
if(strcmp(cmdtext, "/undercoverskin4", true) == 0) {
if(gteam[playerid] == Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP || IsPlayerAdmin(playerid) == 1){
SetPlayerSkin(playerid, 186);
SendClientMessage(playerid, COLOR_YELLOW, "You have changed clothing. You are now undercover.");
SetPlayerColor(playerid, COLOR_GREY);
return 1;
}
}
if(strcmp(cmdtext, "/policeskin2", true) == 0) {
if(gteam[playerid] == Team_LSPD || gteam[playerid] == Team_SFPD || IsPlayerAdmin(playerid) == 1){
SetPlayerSkin(playerid, 265);
SendClientMessage(playerid, COLOR_YELLOW, "You have changed clothing. You are now wearing a police uniform.");
SetPlayerColor(playerid, COLOR_GREY);
return 1;
}
}
if(strcmp(cmdtext, "/policeskin3", true) == 0) {
if(gteam[playerid] == Team_LSPD || gteam[playerid] == Team_SFPD || IsPlayerAdmin(playerid) == 1){
SetPlayerSkin(playerid, 267);
SendClientMessage(playerid, COLOR_YELLOW, "You have changed clothing. You are now wearing a police uniform.");
SetPlayerColor(playerid, COLOR_GREY);
return 1;
}
}
//================ SWAT Login ====================================
if (strcmp(cmdtext, "/thefeds123", true)==0)
{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
if(PlayerIsADispatcher[playerid] == 0){
SendClientMessage(playerid, COLOR_YELLOW, "You are now logged in as FBI Agent.");
SetPlayerColor(playerid,COLOR_BLUE);
SetPlayerSkin(playerid, 286);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,34,1000);
GivePlayerWeapon(playerid,23,1000);
GivePlayerWeapon(playerid,27,500);
GivePlayerWeapon(playerid,29,2000);
GivePlayerWeapon(playerid,31,4000);
GivePlayerWeapon(playerid,41,1000);
GivePlayerWeapon(playerid,17,50);
GivePlayerWeapon(playerid,3,1);
UnlockSWATCars(playerid);
gteam[playerid] = 2;
SetPlayerTeam(playerid,2);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSANNCars(playerid);
}
}
return 1;
}
if(strcmp(cmd, "/release", true) == 0) {
new tmp[256];
new vehicleid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /release [Player ID] [Vehicle ID]");
return 1;
}
giveplayerid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /release [Player ID] [Vehicle ID]");
return 1;
}
vehicleid = strval(tmp);
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid]==Team_DCP || gteam[playerid]==Team_L1A) {
if (IsPlayerConnected(giveplayerid)) {
if(GetDistanceBetweenPlayers(playerid,playerid) < 20) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have unlocked vehicle ID %d for %s (ID:%d).", vehicleid, giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_YELLOW, string);
printf(string);
format(string, sizeof(string), "The client has been charged a fee of $2000.");
SendClientMessage(playerid, COLOR_YELLOW, string);
GivePlayerMoney(playerid, 1000);
GivePlayerMoney(giveplayerid, -2000);
format(string, sizeof(string), "Impounded vehicle ID %d has been unlocked for you.", vehicleid);
SendClientMessage(giveplayerid, COLOR_GREEN, string);
printf(string);
format(string, sizeof(string), "You have been charged a fee of $2000.");
SendClientMessage(giveplayerid, COLOR_RED, string);
ReleaseCarFromImpound(vehicleid);
}
else {
format(string, sizeof(string), "ID %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
}
}
return 1;
}
if(strcmp(cmd, "/impound", true) == 0) {
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid]==Team_DCP || gteam[playerid]==Team_L1A) {
format(string, sizeof(string), "You have impounded this vehicle (Vehicle ID:%d).", vehicleid);
SendClientMessage(playerid, COLOR_YELLOW, string);
printf(string);
ImpoundCarForAll(vehicleid);
UnlockCarForLaw(vehicleid);
}else{
format(string, sizeof(string), "ID %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
return 1;
}
//================ SASP Login ====================================
if (strcmp(cmdtext, "/sa-state-2008", true)==0)
{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
if(PlayerIsADispatcher[playerid] == 0){
SendClientMessage(playerid, COLOR_YELLOW, "You are now logged in as a SAPD State Police.");
SetPlayerColor(playerid,COLOR_BLUE);
SetPlayerSkin(playerid, 288); // beige is 288, brown is 283
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,24,100000);
GivePlayerWeapon(playerid,25,100000);
GivePlayerWeapon(playerid,41,100000);
GivePlayerWeapon(playerid,3,1);
UnlockSASPCars(playerid);
gteam[playerid] = 18;
SetPlayerTeam(playerid,18);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSANNCars(playerid);
LockSWATCars(playerid);
}
}
return 1;
}
if(strcmp(cmdtext, "/born2lead", true) == 0) {
if(gteam[playerid] == Team_SASP || gteam[playerid]==Team_L1A ){
SetPlayerSkin(playerid, 288);
SendClientMessage(playerid, COLOR_YELLOW, "You have changed clothing. You are now wearing an SASP administrative uniform.");
SetPlayerColor(playerid, COLOR_GREY);
return 1;
}
}
if(strcmp(cmd, "/explorer", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /explorer [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if(gteam[playerid] ==Team_SASP) {
if (IsPlayerConnected(giveplayerid) && gteam[giveplayerid]!=Team_L1A) {
if(GetDistanceBetweenPlayers(playerid,giveplayerid) < 8) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have made %s (ID:%d) an SASP explorer.", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
format(string, sizeof(string), "You have been made an SASP explorer.");
SendClientMessage(giveplayerid, COLOR_YELLOW, string);
printf(string);
SetPlayerColor(giveplayerid,COLOR_GREY);
SetPlayerSkin(giveplayerid, 283); // beige is 288, brown is 283
ResetPlayerWeapons(giveplayerid);
GivePlayerWeapon(giveplayerid,24,200);
GivePlayerWeapon(giveplayerid,25,200);
GivePlayerWeapon(giveplayerid,41,2000);
GivePlayerWeapon(giveplayerid,3,1);
UnlockSASPCars(giveplayerid);
gteam[giveplayerid] = 18;
SetPlayerTeam(giveplayerid,18);
LockLSPDCars(giveplayerid);
LockSFPDCars(giveplayerid);
LockLVPDCars(giveplayerid);
LockArmyCars(giveplayerid);
LockEMSCars(giveplayerid);
LockFDSACars(giveplayerid);
LockAdminCars(giveplayerid);
LockGOVCars(giveplayerid);
LockDMVCars(giveplayerid);
LockTAXICars(giveplayerid);
LockUTILCars(giveplayerid);
LockDCPTCars(giveplayerid);
LockDCPCars(giveplayerid);
LockSANNCars(giveplayerid);
}else {
format(string, sizeof(string), "ID %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
}
}
return 1;
}
//================ SASP CSI Login ====================================
if (strcmp(cmdtext, "/csisasp108", true)==0)
{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
if(PlayerIsADispatcher[playerid] == 0){
SendClientMessage(playerid, COLOR_YELLOW, "You are now logged in as a San Andreas State Police CSI detective.");
SetPlayerColor(playerid,COLOR_BLUE);
SetPlayerSkin(playerid, 120); // second one is 60
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,24,100000);
GivePlayerWeapon(playerid,43,100000);
UnlockSASPCars(playerid);
gteam[playerid] = 18;
SetPlayerTeam(playerid,18);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSANNCars(playerid);
LockSWATCars(playerid);
}
}
return 1;
}
//================ DEPT. CIV. PROTECTION DCP Login ====================================
if (strcmp(cmdtext, "/dcpprison2008", true)==0)
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
if(PlayerIsADispatcher[playerid] == 0){
SendClientMessage(playerid, COLOR_YELLOW, "You are now logged in as a DCP officer.");
SetPlayerColor(playerid,COLOR_BLUE);
SetPlayerSkin(playerid, 281);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,24,100000);
GivePlayerWeapon(playerid,25,100000);
GivePlayerWeapon(playerid,41,100000);
GivePlayerWeapon(playerid,3,1);
gteam[playerid] = 3;
SetPlayerTeam(playerid,3);
UnlockDCPTCars(playerid);
UnlockDCPCars(playerid);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockSANNCars(playerid);
LockSWATCars(playerid);
}
}
}
}
return 1;
}
if (strcmp(cmdtext, "/riotskin", true)==0)
{
if(gteam[playerid] == Team_DCP || gteam[playerid]==Team_L1A) {
if( !IsPlayerInCircle(playerid, 16.7465,-255.7235,10) ) {
SendClientMessage(playerid, COLOR_RED, "This command can only be accessed from the Fleischberg State Penitentiary staff area.");
}else{
SetPlayerSkin(playerid, 285);
SendClientMessage(playerid, COLOR_YELLOW, "You have changed clothing. You are now wearing a DCP riot uniform.");
SetPlayerColor(playerid, COLOR_GREY);
}
}else{
SendClientMessage(playerid, COLOR_RED, "This command is for DCP personnel only.");
}
return 1;
}
if (strcmp(cmdtext, "/dcpskin", true)==0)
{
if(gteam[playerid] == Team_DCP || gteam[playerid]==Team_L1A) {
if( !IsPlayerInCircle(playerid, 16.7465,-255.7235,10) ) {
SendClientMessage(playerid, COLOR_RED, "This command can only be accessed from the Fleischberg State Penitentiary staff area.");
}else{
SetPlayerSkin(playerid, 71);
SendClientMessage(playerid, COLOR_YELLOW, "You have changed clothing. You are now wearing a DCP uniform.");
SetPlayerColor(playerid, COLOR_GREY);
}
}else{
SendClientMessage(playerid, COLOR_RED, "This command is for DCP personnel only.");
}
return 1;
}
if (strcmp(cmdtext, "/swatuniform", true)==0)
{
if(gteam[playerid]==Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP || gteam[playerid] == Team_DCP || IsPlayerAdmin(playerid) == 1){
if( !IsPlayerInCircle(playerid, 274.3376,122.1318,8) ) {
SendClientMessage(playerid, COLOR_RED, "You are not in an appropriate area.");
}else{
SendClientMessage(playerid, COLOR_YELLOW, "You have changed clothing. You are now wearing a SWAT uniform.");
SetPlayerSkin(playerid, 285);
SetPlayerArmour(playerid,100);
}
}else{
SendClientMessage(playerid, COLOR_RED, "This command is for law enforcement personnel only.");
}
return 1;
}
if (strcmp(cmdtext, "/armorheal", true)==0)
{
if(gteam[playerid]==Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP || gteam[playerid] == Team_DCP || IsPlayerAdmin(playerid) == 1){
if( !IsPlayerInCircle(playerid, 16.7465,-255.7235,10) || !IsPlayerInCircle(playerid, 274.3376,122.1318,8) ) {
SendClientMessage(playerid, COLOR_RED, "You are not in an appropriate area.");
}else{
SendClientMessage(playerid, COLOR_GREEN, "Medical kit utilized. Your health and armor have been replenished.");
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
}
}else{
SendClientMessage(playerid, COLOR_RED, "This command is for law enforcement personnel only.");
}
return 1;
}
if (strcmp(cmdtext, "/arifle", true)==0)
{
if(gteam[playerid]==Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP || gteam[playerid] == Team_DCP || IsPlayerAdmin(playerid) == 1){
if( !IsPlayerInCircle(playerid, 16.7465,-255.7235,10) || !IsPlayerInCircle(playerid, 274.3376,122.1318,8) ) {
SendClientMessage(playerid, COLOR_RED, "You are not in an appropriate area.");
}else{
SendClientMessage(playerid, COLOR_YELLOW, "You have equipped yourself with a police-issue M16.");
GivePlayerWeapon(playerid,31,100000);
}
}else{
SendClientMessage(playerid, COLOR_RED, "This command is for law enforcement personnel only.");
}
return 1;
}
if (strcmp(cmdtext, "/srifle", true)==0)
{
if(gteam[playerid]==Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP || gteam[playerid] == Team_DCP || IsPlayerAdmin(playerid) == 1){
if( !IsPlayerInCircle(playerid, 16.7465,-255.7235,10) || !IsPlayerInCircle(playerid, 274.3376,122.1318,8) ) {
SendClientMessage(playerid, COLOR_RED, "You are not in an appropriate area.");
}else{
SendClientMessage(playerid, COLOR_YELLOW, "You have equiped yourself with a sniper rifle.");
GivePlayerWeapon(playerid,34,100000);
}
}else{
SendClientMessage(playerid, COLOR_RED, "This command is for law enforcement personnel only.");
}
return 1;
}
if (strcmp(cmdtext, "/exting", true)==0)
{
if(gteam[playerid]==Team_LSPD || gteam[playerid] == Team_SFPD || gteam[playerid] == Team_SWAT || gteam[playerid] == Team_SASP || gteam[playerid] == Team_DCP || IsPlayerAdmin(playerid) == 1){
if( !IsPlayerInCircle(playerid, 16.7465,-255.7235,10) || !IsPlayerInCircle(playerid, 274.3376,122.1318,8) ) {
SendClientMessage(playerid, COLOR_RED, "You are not in an appropriate area.");
}else{
SendClientMessage(playerid, COLOR_YELLOW, "You have equipped yourself with a fire extinguisher.");
GivePlayerWeapon(playerid,42,100000);
}
}else{
SendClientMessage(playerid, COLOR_RED, "This command is for law enforcement personnel only.");
}
return 1;
}
//================ ARMY Login ====================================
if (strcmp(cmdtext, "/180goguard", true)==0)
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
SendClientMessage(playerid, COLOR_YELLOW, "You are now logged in as a National Guard soldier.");
SetPlayerColor(playerid,COLOR_GREEN);
SetPlayerSkin(playerid, 287);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,34,100000);
GivePlayerWeapon(playerid,31,100000);
GivePlayerWeapon(playerid,29,100000);
GivePlayerWeapon(playerid,24,100000);
GivePlayerWeapon(playerid,34,100000);
GivePlayerWeapon(playerid,35,5);
GivePlayerWeapon(playerid,4,1);
GivePlayerWeapon(playerid,16,8);
UnlockArmyCars(playerid);
gteam[playerid] = 4;
SetPlayerTeam(playerid,4);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSANNCars(playerid);
LockSWATCars(playerid);
}
}
}
return 1;
}
if (strcmp(cmdtext, "/a69", true)==0)
{
if(gteam[playerid] == Team_Army || gteam[playerid] == Team_ArmyMed){
SetPlayerInterior(playerid,0);
SendClientMessage(playerid, COLOR_YELLOW, "You have been teleported to the Area 69 Military Base");
SetPlayerPos(playerid, 215.2343,1915.5951,17.6406);}
else{
SendClientMessage(playerid, COLOR_WHITE, "Invalid Command!");
}
return 1;
}
if (strcmp(cmdtext, "/a97v", true)==0)
{
if(gteam[playerid] == Team_Army || gteam[playerid] == Team_ArmyMed){
SetPlayerInterior(playerid,0);
SendClientMessage(playerid, COLOR_YELLOW, "You have been teleported to the Area 97 Weapon Storage");
SetPlayerPos(playerid, 2641.7622,-2138.2751,13.9835);}
else{
SendClientMessage(playerid, COLOR_WHITE, "Invalid Command!");
}
return 1;
}
if (strcmp(cmdtext, "/navb", true)==0)
{
if(gteam[playerid] == Team_Army || gteam[playerid] == Team_ArmyMed){
SetPlayerInterior(playerid,0);
SendClientMessage(playerid, COLOR_YELLOW, "You have been teleported to the Easter Basin Naval Base");
SetPlayerPos(playerid, -1336.2710,493.7936,11.1953);}
else{
SendClientMessage(playerid, COLOR_WHITE, "Invalid Command!");
}
return 1;
}
//================ ARMY MEDIC Login ====================================
if (strcmp(cmdtext, "/notthenavymedic", true)==0)
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
SendClientMessage(playerid, COLOR_YELLOW, "You are now logged in as a National Guard medic.");
SetPlayerColor(playerid,COLOR_GREY);
SetPlayerSkin(playerid, 287);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,31,100000);
GivePlayerWeapon(playerid,29,100000);
GivePlayerWeapon(playerid,27,100000);
GivePlayerWeapon(playerid,24,100000);
GivePlayerWeapon(playerid,4,1);
GivePlayerWeapon(playerid,16,8);
UnlockArmyCars(playerid);
gteam[playerid] = 5;
SetPlayerTeam(playerid,5);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSANNCars(playerid);
LockSWATCars(playerid);
}
}
}
return 1;
}
if(strcmp(cmd, "/trainee", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /trainee [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if(gteam[playerid] ==Team_Army) {
if (IsPlayerConnected(giveplayerid) && gteam[giveplayerid]!=Team_L1A) {
if(GetDistanceBetweenPlayers(playerid,giveplayerid) < 8) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have made %s (ID:%d) an National Guard trainee.", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
format(string, sizeof(string), "You have been made an National Guard trainee.");
SendClientMessage(giveplayerid, COLOR_YELLOW, string);
printf(string);
SetPlayerColor(giveplayerid,0x0C660CAA);
SetPlayerSkin(giveplayerid, 73); //
ResetPlayerWeapons(giveplayerid);
GivePlayerWeapon(giveplayerid,31,100000);
GivePlayerWeapon(giveplayerid,29,100000);
GivePlayerWeapon(giveplayerid,27,100000);
GivePlayerWeapon(giveplayerid,24,100000);
GivePlayerWeapon(giveplayerid,4,1);
GivePlayerWeapon(giveplayerid,16,8);
UnlockArmyCars(giveplayerid);
gteam[giveplayerid] = 5;
SetPlayerTeam(giveplayerid,5);
}else {
format(string, sizeof(string), "ID %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
}
}
return 1;
}
//================ EMS Login ====================================
if (strcmp(cmdtext, "/saveroflives", true)==0) //OFFICIAL LOGIN
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
//if(IsPlayerInCircle(playerid,-2675.1934,634.1367,5) || IsPlayerInCircle(playerid,-315.0287,1050.1417,5) || IsPlayerInCircle(playerid,-1518.4143,2519.6487,5) || IsPlayerInCircle(playerid,1626.9231,1814.7684,5) || IsPlayerInCircle(playerid,1173.7386,-1332.4731,5) )
//{
SendClientMessage(playerid, COLOR_YELLOW, "You are now logged in as a SAEMS paramedic.");
SetPlayerColor(playerid,COLOR_YELLOW);
SetPlayerSkin(playerid, 276);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,4,1);
UnlockEMSCars(playerid);
gteam[playerid] = 6;
SetPlayerTeam(playerid,6);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSANNCars(playerid);
LockSWATCars(playerid);
/*
}else{
SendClientMessage(playerid, COLOR_RED, "You must login from an appropriate EMS login area.");
SendClientMessage(playerid, COLOR_GREY, "Such areas are present at any of San Andreas' hospitals.");
}
*/
}
}
}
return 1;
}
if (strcmp(cmdtext, "/emsjob", true)==0) // SIDEJOB LOGIN
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
if(IsPlayerInCircle(playerid,-2675.1934,634.1367,5) || IsPlayerInCircle(playerid,-315.0287,1050.1417,5) || IsPlayerInCircle(playerid,-1518.4143,2519.6487,5) || IsPlayerInCircle(playerid,1626.9231,1814.7684,5) || IsPlayerInCircle(playerid,1173.7386,-1332.4731,5) )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_YELLOW, "SAN ANDREAS EMERGENCY MEDICAL SERVICES EMPLOYMENT ACCEPTANCE");
SendClientMessage(playerid,COLOR_GREY,"Welcome to the San Andreas Emergency Medical Services.");
SendClientMessage(playerid,COLOR_GREY,"Access to the SAEMS vehicles and commands has been granted to you.");
SendClientMessage(playerid,COLOR_GREY,"As a paramedic, it is your responsibility to ensure the medical well being of the citizens of San Andreas.");
SendClientMessage(playerid,COLOR_GREY,"You can heal people within 20m of you by using /heal [Player ID].");
SendClientMessage(playerid,COLOR_GREY,"You may communicate with other EMS units by using /r [Message].");
SendClientMessage(playerid,COLOR_GREY,"You may communicate with other government agencies by using /rr [Message].");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SetPlayerColor(playerid,COLOR_GREY);
SetPlayerSkin(playerid, 276);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,4,1);
UnlockEMSCars(playerid);
gteam[playerid] = 6;
SetPlayerTeam(playerid,6);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSANNCars(playerid);
LockSWATCars(playerid);
}
}
}
}
return 1;
}
if (strcmp(cmdtext, "/shotgun", true)==0)
{
if(gteam[playerid] == Team_EMS || gteam[playerid] == Team_Fire){
GivePlayerWeapon(playerid,25,50);
SendClientMessage(playerid, COLOR_YELLOW, "You have equipped a shotgun.");
}
return 1;
}
//================ FDSA Login ====================================
if (strcmp(cmdtext, "/simmerin", true)==0)
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
SendClientMessage(playerid, COLOR_YELLOW, "You are now logged in as an FDSA fireman.");
SetPlayerColor(playerid,COLOR_RED);
SetPlayerSkin(playerid, 277);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,42,100000);
UnlockFDSACars(playerid);
gteam[playerid] = 7;
SetPlayerTeam(playerid,7);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSANNCars(playerid);
LockSWATCars(playerid);
}
}
}
return 1;
}
if(strcmp(cmd, "/pof", true) == 0) {
if(gteam[playerid] == Team_Fire){
new dir[256];
new tmp[256];
dir = strtok(cmdtext, idx);
strmid(tmp, cmdtext, 4, strlen(cmdtext));
if(!strlen(dir)) {
SendClientMessage(playerid,COLOR_YELLOW,"Usage: /pof [location]");
return 1;
}
dir = strtok(cmdtext, idx);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "***%s has put out fire at %s", sendername, tmp);
SendClientMessageToAll(COLOR_GREEN,string);
format(string, sizeof(string), "***%s has put out fire at %s", sendername, tmp);
print(string);
}
return 1;
}
if(strcmp(cmdtext, "/fdsamedic", true) == 0) {
if(gteam[playerid] == Team_Fire){
SetPlayerSkin(playerid, 275);
SendClientMessage(playerid, COLOR_YELLOW, "You are now an FDSA paramedic.");
SetPlayerColor(playerid, COLOR_GREY);
return 1;
}
}
if(strcmp(cmdtext, "/lvfdsaskin", true) == 0) {
if(gteam[playerid] == Team_Fire){
SetPlayerSkin(playerid, 278);
SendClientMessage(playerid, COLOR_YELLOW, "You have changed clothing. You are now wearing the LV Division FDSA uniform.");
SetPlayerColor(playerid, COLOR_GREY);
return 1;
}
}
//================ GOVERNMENT Login ====================================
if (strcmp(cmdtext, "/vman2008", true)==0)
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
SendClientMessage(playerid, COLOR_YELLOW, "You are now logged in as a government employee.");
SetPlayerColor(playerid,COLOR_PSCBLUE);
ResetPlayerWeapons(playerid);
UnlockGOVCars(playerid);
GivePlayerWeapon(playerid,23,100000);
GivePlayerWeapon(playerid,41,100000);
GivePlayerWeapon(playerid,4,1);
gteam[playerid] = 8;
SetPlayerTeam(playerid,8);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSANNCars(playerid);
LockSWATCars(playerid);
}
}
}
return 1;
}
//================ DMV Login ====================================
if (strcmp(cmdtext, "/love2teach", true)==0)
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
SendClientMessage(playerid, COLOR_YELLOW, "You are now logged in as a DMV instructor.");
SetPlayerColor(playerid,COLOR_GREY);
gteam[playerid] = 9;
SetPlayerTeam(playerid,9);
UnlockDMVCars(playerid);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSANNCars(playerid);
LockSWATCars(playerid);
}
}
}
return 1;
}
//================ CF Login ====================================
if (strcmp(cmdtext, "/fishmarket", true)==0)
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
SendClientMessage(playerid, COLOR_YELLOW, "You are now logged in as a Triad member.");
SetPlayerColor(playerid, COLOR_INDIGO);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,32,200);
GivePlayerWeapon(playerid,24,200);
GivePlayerWeapon(playerid,8,1);
gteam[playerid] = Team_CF;
SetPlayerTeam(playerid,Team_CF);
UnlockCFCars(playerid);
UnlockCORLEONECars(playerid);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSANNCars(playerid);
LockSWATCars(playerid);
}
}
}
return 1;
}
//================ Aryon Brotherhood Login ====================================
if (strcmp(cmdtext, "/brothers4life", true)==0)
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
SendClientMessage(playerid, COLOR_YELLOW, "You are now logged in as a Aryon Brotherhood member.");
SetPlayerColor(playerid, COLOR_ABHGREEN);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,4,1);
GivePlayerWeapon(playerid,28,250);
GivePlayerWeapon(playerid,30,250);
gteam[playerid] = Team_BF;
SetPlayerTeam(playerid,Team_BF);
UnlockBFCars(playerid);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSANNCars(playerid);
LockSWATCars(playerid);
}
}
}
return 1;
}
//================ BFL B&F LEGAL Login ====================================
if (strcmp(cmdtext, "/legalaffair", true)==0)
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
SendClientMessage(playerid, COLOR_YELLOW, "You are now logged in as a Barzini Family Mafia member.");
SetPlayerColor(playerid, COLOR_GREY);
gteam[playerid] = Team_BFL;
SetPlayerTeam(playerid,Team_BFL);
UnlockBFLCars(playerid);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSANNCars(playerid);
LockSWATCars(playerid);
}
}
}
return 1;
}
//================ SMOKING ACES Login ====================================
if (strcmp(cmdtext, "/aceman2008", true)==0)
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
SendClientMessage(playerid, COLOR_YELLOW, "You are now logged in as a Smoking Aces member.");
SetPlayerColor(playerid, COLOR_DARKRED);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,30,100);
GivePlayerWeapon(playerid,24,70);
GivePlayerWeapon(playerid,5,1);
gteam[playerid] = 12;
UnlockSACars(playerid);
SetPlayerTeam(playerid,12);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSANNCars(playerid);
LockSWATCars(playerid);
}
}
}
return 1;
}
if(strcmp(cmd, "/sellak", true) == 0)
{
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Usage: /sellak [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if (IsPlayerConnected(giveplayerid)) {
if(gteam[playerid]==Team_Smoke || gteam[playerid]==Team_BF || gteam[playerid]==Team_YAKUZA || gteam[playerid]==Team_CF) {
if (GetDistanceBetweenPlayers(playerid, giveplayerid) < 10){
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
GivePlayerMoney(giveplayerid,-3000);
GivePlayerMoney(playerid,3000);
GivePlayerMoney(playerid,-1000);
GivePlayerWeapon(giveplayerid,30,100);
ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
format(string, sizeof(string), "You have purchased an AK-47 from %s for $3000.", sendername);
SendClientMessage(giveplayerid, COLOR_YELLOW, string);
format(string, sizeof(string), "You have sold %s an AK-47 for $3000 and have made a $2000 profit.", giveplayer);
SendClientMessage(playerid, COLOR_GREEN, string);
}
return 1;
}
}
}
if(strcmp(cmd, "/sellshot", true) == 0)
{
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Usage: /sellshot [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if (IsPlayerConnected(giveplayerid)) {
if(gteam[playerid]==Team_Smoke || gteam[playerid]==Team_BF || gteam[playerid]==Team_YAKUZA || gteam[playerid]==Team_CF) {
if (GetDistanceBetweenPlayers(playerid, giveplayerid) < 10){
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
GivePlayerMoney(giveplayerid,-400);
GivePlayerMoney(playerid,400);
GivePlayerMoney(playerid,-100);
GivePlayerWeapon(giveplayerid,25,10);
ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
format(string, sizeof(string), "You have purchased a Pump-Action shotgun from %s for $400.", sendername);
SendClientMessage(giveplayerid, COLOR_YELLOW, string);
format(string, sizeof(string), "You have sold %s a Pump-Action shotgun for $400 and have made a $300 profit.", giveplayer);
SendClientMessage(playerid, COLOR_GREEN, string);
}
return 1;
}
}
}
if(strcmp(cmd, "/sellsniper", true) == 0)
{
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Usage: /sellsnipe [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if (IsPlayerConnected(giveplayerid)) {
if(gteam[playerid]==Team_Smoke || gteam[playerid]==Team_BF || gteam[playerid]==Team_YAKUZA || gteam[playerid]==Team_CF) {
if (GetDistanceBetweenPlayers(playerid, giveplayerid) < 10){
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
GivePlayerMoney(giveplayerid,-4000);
GivePlayerMoney(playerid,4000);
GivePlayerMoney(playerid,-1500);
GivePlayerWeapon(giveplayerid,34,10);
ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
format(string, sizeof(string), "You have purchased a Sniper Rifle from %s for $4000.", sendername);
SendClientMessage(giveplayerid, COLOR_YELLOW, string);
format(string, sizeof(string), "You have sold %s a Sniper Rifle for $4000 and have made a $2500 profit.", giveplayer);
SendClientMessage(playerid, COLOR_GREEN, string);
}
return 1;
}
}
}
if(strcmp(cmd, "/sellpistol", true) == 0)
{
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Usage: /sellpistol [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if (IsPlayerConnected(giveplayerid)) {
if(gteam[playerid]==Team_Smoke || gteam[playerid]==Team_BF || gteam[playerid]==Team_YAKUZA || gteam[playerid]==Team_CF) {
if (GetDistanceBetweenPlayers(playerid, giveplayerid) < 10){
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
GivePlayerMoney(giveplayerid,-500);
GivePlayerMoney(playerid,500);
GivePlayerMoney(playerid,-150);
GivePlayerWeapon(giveplayerid,23,20);
ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
format(string, sizeof(string), "You have purchased a Silenced 9mm Pistol from %s for $500.", sendername);
SendClientMessage(giveplayerid, COLOR_YELLOW, string);
format(string, sizeof(string), "You have sold %s a Silenced 9mm Pistol for $500 and have made a $350 profit.", giveplayer);
SendClientMessage(playerid, COLOR_GREEN, string);
}
return 1;
}
}
}
if(strcmp(cmd, "/sell9mm", true) == 0)
{
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Usage: /sell9mm [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if (IsPlayerConnected(giveplayerid)) {
if(gteam[playerid]==Team_Smoke || gteam[playerid]==Team_BF || gteam[playerid]==Team_YAKUZA || gteam[playerid]==Team_CF) {
if (GetDistanceBetweenPlayers(playerid, giveplayerid) < 10){
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
GivePlayerMoney(giveplayerid,-400);
GivePlayerMoney(playerid,400);
GivePlayerMoney(playerid,-150);
GivePlayerWeapon(giveplayerid,22,20);
ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
format(string, sizeof(string), "You have purchased dual 9mm Pistols from %s for $500.", sendername);
SendClientMessage(giveplayerid, COLOR_YELLOW, string);
format(string, sizeof(string), "You have sold %s dual 9mm Pistols for $400 and have made a $250 profit.", giveplayer);
SendClientMessage(playerid, COLOR_GREEN, string);
}
return 1;
}
}
}
//================ SANN Login ====================================
if (strcmp(cmdtext, "/sannjob", true)==0)
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
if(IsPlayerInCircle(playerid, 751.8196,-1357.9432,20))
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_ORANGE,"SAN ANDREAS NEWS NETWORK EMPLOYMENT ACCEPTANCE");
SendClientMessage(playerid,COLOR_GREY,"Welcome to the San Andreas News Network (A subsidiary of Interglobal Television Corp.).");
SendClientMessage(playerid,COLOR_GREY,"Access to the SANN vehicles has been granted to you.");
SendClientMessage(playerid,COLOR_GREY,"Your task consists of looking for and reporting stories to the population of San Andreas.");
SendClientMessage(playerid,COLOR_GREY,"You can display news reports for all to see by using the /News [Message] command.");
SendClientMessage(playerid,COLOR_GREY,"You may communicate with other SANN employees by using /r [Message].");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SetPlayerColor(playerid, COLOR_GREY);
UnlockSANNCars(playerid);
GivePlayerWeapon(playerid,43,200);
gteam[playerid] = 14;
SetPlayerTeam(playerid,14);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSWATCars(playerid);
}
}
}
}
return 1;
}
//================ ATC Logins ====================================
if (strcmp(cmdtext, "/lsatcjob", true)==0) // LS TOWER
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
if(IsPlayerInCircle(playerid, 1797.5999,-2461.2947,10))
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,0xB8C426FF,"FEDERAL AVIATION ADMINISTRATION EMPLOYMENT ACCEPTANCE");
SendClientMessage(playerid,COLOR_GREY,"LOS SANTOS (RED COUNTY) SAN ANDREAS AIR TRAFFIC CONTROL TOWER");
SendClientMessage(playerid,COLOR_GREY,"Welcome to the United States Federal Aviation Administration.");
SendClientMessage(playerid,COLOR_GREY,"Your task consists of safely guiding air vehicles through the skies of your jurisdiction.");
SendClientMessage(playerid,COLOR_GREY,"You can communicate with all commissionned air vehicles by using /p [Message].");
SendClientMessage(playerid,COLOR_GREY,"You may communicate with the other San Andreas towers by using /t [Message].");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SetPlayerColor(playerid, COLOR_GREY);
SetPlayerTeam(playerid,Team_ATCLS);
gteam[playerid] = Team_ATCLS;
SetPlayerSkin(playerid,16);
UnlockATCCars(playerid);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSWATCars(playerid);
LockSANNCars(playerid);
}
}
}
}
return 1;
}
if (strcmp(cmdtext, "/sfatcjob", true)==0) // SF TOWER
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
if(IsPlayerInCircle(playerid, -1307.8965,32.4405,10))
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,0xB8C426FF,"FEDERAL AVIATION ADMINISTRATION EMPLOYMENT ACCEPTANCE");
SendClientMessage(playerid,COLOR_GREY,"SAN FIERRO (FLINT COUNTY) SAN ANDREAS AIR TRAFFIC CONTROL TOWER");
SendClientMessage(playerid,COLOR_GREY,"Welcome to the United States Federal Aviation Administration.");
SendClientMessage(playerid,COLOR_GREY,"Your task consists of safely guiding air vehicles through the skies of your jurisdiction.");
SendClientMessage(playerid,COLOR_GREY,"You can communicate with all commissionned air vehicles by using /p [Message].");
SendClientMessage(playerid,COLOR_GREY,"You may communicate with the other San Andreas towers by using /t [Message].");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SetPlayerColor(playerid, COLOR_GREY);
SetPlayerTeam(playerid,Team_ATCSF);
gteam[playerid] = Team_ATCSF;
SetPlayerSkin(playerid,16);
UnlockATCCars(playerid);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSWATCars(playerid);
LockSANNCars(playerid);
}
}
}
}
return 1;
}
if (strcmp(cmdtext, "/lvatcjob", true)==0) // LV TOWER
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
if(IsPlayerInCircle(playerid, 1438.8936,1527.7117,10))
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,0xB8C426FF,"FEDERAL AVIATION ADMINISTRATION EMPLOYMENT ACCEPTANCE");
SendClientMessage(playerid,COLOR_GREY,"LAS VENTURAS (BONE COUNTY) SAN ANDREAS AIR TRAFFIC CONTROL TOWER");
SendClientMessage(playerid,COLOR_GREY,"Welcome to the United States Federal Aviation Administration.");
SendClientMessage(playerid,COLOR_GREY,"Your task consists of safely guiding air vehicles through the skies of your jurisdiction.");
SendClientMessage(playerid,COLOR_GREY,"You can communicate with all commissionned air vehicles by using /p [Message].");
SendClientMessage(playerid,COLOR_GREY,"You may communicate with the other San Andreas towers by using /t [Message].");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SetPlayerColor(playerid, COLOR_GREY);
SetPlayerTeam(playerid,Team_ATCLV);
gteam[playerid] = Team_ATCLV;
SetPlayerSkin(playerid,16);
UnlockATCCars(playerid);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSWATCars(playerid);
LockSANNCars(playerid);
}
}
}
}
return 1;
}
if (strcmp(cmdtext, "/vmatcjob", true)==0) // VM TOWER
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
if(IsPlayerInCircle(playerid, 414.2574,2534.1497,10))
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,0xB8C426FF,"FEDERAL AVIATION ADMINISTRATION EMPLOYMENT ACCEPTANCE");
SendClientMessage(playerid,COLOR_GREY,"VERDANT MEADOWS (BONE COUNTY) SAN ANDREAS AIR TRAFFIC CONTROL TOWER");
SendClientMessage(playerid,COLOR_GREY,"Welcome to the United States Federal Aviation Administration.");
SendClientMessage(playerid,COLOR_GREY,"Your task consists of safely guiding air vehicles through the skies of your jurisdiction.");
SendClientMessage(playerid,COLOR_GREY,"You can communicate with all commissionned air vehicles by using /p [Message].");
SendClientMessage(playerid,COLOR_GREY,"You may communicate with the other San Andreas towers by using /t [Message].");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SetPlayerColor(playerid, COLOR_GREY);
SetPlayerTeam(playerid,Team_ATCVM);
gteam[playerid] = Team_ATCVM;
SetPlayerSkin(playerid,16);
UnlockATCCars(playerid);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSWATCars(playerid);
LockSANNCars(playerid);
}
}
}
}
return 1;
}
//================ PROSTITUTION Logins ====================================
if (strcmp(cmdtext, "/sfpjob", true)==0) // SF NORM
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
if(IsPlayerInCircle(playerid, 942.0522,-50.2489,10))
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_RED,"PART TIME PROSTITUTE EMPLOYMENT ACCEPTANCE");
SendClientMessage(playerid,COLOR_GREY,"Downtown San Fierro");
SendClientMessage(playerid,COLOR_GREY,"You are now a prostitute.");
SendClientMessage(playerid,COLOR_GREY,"Your task consists of providing a targeted clientele with its desired sexual services.");
SendClientMessage(playerid,COLOR_GREY,"You may use /Psex [Player ID] in order to provide clients with your 'services'.");
SendClientMessage(playerid,COLOR_GREY,"Beware: Prostitution is illegal, and therefore, you run the risk of being arrested for solicitation.");
SendClientMessage(playerid,COLOR_GREY,"Beware: Prostitution can lead to the proliferation of deadly sexually transmitted diseases.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SetPlayerColor(playerid, COLOR_GREY);
SetPlayerTeam(playerid,Team_SFPROST);
gteam[playerid] = Team_SFPROST;
SetPlayerSkin(playerid,152);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSWATCars(playerid);
LockSANNCars(playerid);
}
}
}
}
return 1;
}
if (strcmp(cmdtext, "/sfgpjob", true)==0) // SF GAY
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
if(IsPlayerInCircle(playerid, -2551.6768,188.6168,10))
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_RED,"PART TIME PROSTITUTE EMPLOYMENT ACCEPTANCE");
SendClientMessage(playerid,COLOR_GREY,"Queens, San Fierro");
SendClientMessage(playerid,COLOR_GREY,"You are now a prostitute.");
SendClientMessage(playerid,COLOR_GREY,"Your task consists of providing a targeted clientele with its desired sexual services.");
SendClientMessage(playerid,COLOR_GREY,"You may use /Psex [Player ID] in order to provide clients with your 'services'.");
SendClientMessage(playerid,COLOR_GREY,"Beware: Prostitution is illegal, and therefore, you run the risk of being arrested for solicitation.");
SendClientMessage(playerid,COLOR_GREY,"Beware: Prostitution can lead to the proliferation of deadly sexually transmitted diseases.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SetPlayerColor(playerid, COLOR_GREY);
SetPlayerTeam(playerid,Team_SFPROSTG);
gteam[playerid] = Team_SFPROSTG;
SetPlayerSkin(playerid,252);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSWATCars(playerid);
LockSANNCars(playerid);
}
}
}
}
return 1;
}
if (strcmp(cmdtext, "/lspjob", true)==0) // LS NORM
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
if(IsPlayerInCircle(playerid, 741.9272,1434.2535,10))
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_RED,"PART TIME PROSTITUTE EMPLOYMENT ACCEPTANCE");
SendClientMessage(playerid,COLOR_GREY,"Downtown Los Santos");
SendClientMessage(playerid,COLOR_GREY,"You are now a prostitute.");
SendClientMessage(playerid,COLOR_GREY,"Your task consists of providing a targeted clientele with its desired sexual services.");
SendClientMessage(playerid,COLOR_GREY,"You may use /Psex [Player ID] in order to provide clients with your 'services'.");
SendClientMessage(playerid,COLOR_GREY,"Beware: Prostitution is illegal, and therefore, you run the risk of being arrested for solicitation.");
SendClientMessage(playerid,COLOR_GREY,"Beware: Prostitution can lead to the proliferation of deadly sexually transmitted diseases.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SetPlayerColor(playerid, COLOR_GREY);
SetPlayerTeam(playerid,Team_LSPROST);
gteam[playerid] = Team_LSPROST;
SetPlayerSkin(playerid,90);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSWATCars(playerid);
LockSANNCars(playerid);
}
}
}
}
return 1;
}
if (strcmp(cmdtext, "/lvpjob", true)==0) // LV NORM
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
if(IsPlayerInCircle(playerid, 2090.7869,2189.5115,10))
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_RED,"PART TIME PROSTITUTE EMPLOYMENT ACCEPTANCE");
SendClientMessage(playerid,COLOR_GREY,"The Strip, Las Venturas");
SendClientMessage(playerid,COLOR_GREY,"You are now a prostitute.");
SendClientMessage(playerid,COLOR_GREY,"Your task consists of providing a targeted clientele with its desired sexual services.");
SendClientMessage(playerid,COLOR_GREY,"You may use /Psex [Player ID] in order to provide clients with your 'services'.");
SendClientMessage(playerid,COLOR_GREY,"Beware: Prostitution is illegal, and therefore, you run the risk of being arrested for solicitation.");
SendClientMessage(playerid,COLOR_GREY,"Beware: Prostitution can lead to the proliferation of deadly sexually transmitted diseases.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SetPlayerColor(playerid, COLOR_GREY);
SetPlayerTeam(playerid,Team_LVPROST);
gteam[playerid] = Team_LVPROST;
SetPlayerSkin(playerid,257);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSWATCars(playerid);
LockSANNCars(playerid);
}
}
}
}
return 1;
}
//================ SARA Login ====================================
if (strcmp(cmdtext, "/n33d4sp33d", true)==0)
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
SendClientMessage(playerid, COLOR_YELLOW, "You are now logged in as a SARA Employee.");
SetPlayerColor(playerid, COLOR_GREY);
ResetPlayerWeapons(playerid);
UnlockSARACars(playerid);
UnlockMHSCars(playerid);
GivePlayerWeapon(playerid,23,40);
GivePlayerWeapon(playerid,12,1);
//GivePlayerWeapon(playerid,32,420);
GivePlayerWeapon(playerid,43,100);
GivePlayerWeapon(playerid,5,1);
gteam[playerid] = 40;
SetPlayerTeam(playerid,40);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockSWATCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSANNCars(playerid);
}
}
}
return 1;
}
if(strcmp(cmdtext, "/repaircar", true) == 0)
{
if(gteam[playerid]==Team_SARA){
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "You need to be inside a vehicle to repair it.");
//if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, COLOR_YELLOW, "You need $1000 to repair your vehicle.");
new Float:vhealth; GetVehicleHealth(GetPlayerVehicleID(playerid),vhealth);
if(vhealth == 1000) return SendClientMessage(playerid, COLOR_RED, "This vehicle does not require servicing.");
//GivePlayerMoney(playerid, - 1000);
SetVehicleHealth(GetPlayerVehicleID(playerid),1000.0);
SendClientMessage(playerid, COLOR_GREEN, "The vehicle has been repaired.");
}
return 1;
}
if(strcmp(cmd, "/addnos", true) == 0) {
if(IsPlayerInAnyVehicle(playerid)) {
if(IsPlayerAdmin(playerid) == 1 || gteam[playerid]==Team_SARA || gteam[playerid]==Team_STONER) {
if (IsPlayerConnected(giveplayerid)) {
format(string, sizeof(string), "(INFO) The vehicle has been outfitted with NOS.");
SendClientMessage(playerid, COLOR_YELLOW, string);
printf(string);
AddVehicleComponent(GetPlayerVehicleID(playerid),1010); // NOS
}
}
}
return 1;
}
if(strcmp(cmd, "/addspoiler", true) == 0) {
if(IsPlayerInAnyVehicle(playerid)) {
if(IsPlayerAdmin(playerid) == 1 || gteam[playerid]==Team_SARA) {
if (IsPlayerConnected(giveplayerid)) {
format(string, sizeof(string), "(INFO) Added a spoiler to the vehicle.");
SendClientMessage(playerid, COLOR_YELLOW, string);
printf(string);
AddVehicleComponent(GetPlayerVehicleID(playerid),1138); // SPOILER
}
}
}
return 1;
}
if(strcmp(cmd, "/addhydros", true) == 0) {
if(IsPlayerInAnyVehicle(playerid)) {
if(IsPlayerAdmin(playerid) == 1 || gteam[playerid]==Team_SARA) {
if (IsPlayerConnected(giveplayerid)) {
format(string, sizeof(string), "(INFO) Added a hydros to the vehicle.");
SendClientMessage(playerid, COLOR_YELLOW, string);
printf(string);
AddVehicleComponent(GetPlayerVehicleID(playerid),1087); // HYDRO
}
}
}
return 1;
}
if(strcmp(cmd, "/addrims", true) == 0) {
if(IsPlayerInAnyVehicle(playerid)) {
if(IsPlayerAdmin(playerid) == 1 || gteam[playerid]==Team_SARA) {
if (IsPlayerConnected(giveplayerid)) {
format(string, sizeof(string), "(INFO) Added rims to the vehicle.");
SendClientMessage(playerid, COLOR_YELLOW, string);
printf(string);
AddVehicleComponent(GetPlayerVehicleID(playerid),1074); // RIM
}
}
}
return 1;
}
if(strcmp(cmd, "/addroof", true) == 0) {
if(IsPlayerInAnyVehicle(playerid)) {
if(IsPlayerAdmin(playerid) == 1 || gteam[playerid]==Team_SARA) {
if (IsPlayerConnected(giveplayerid)) {
format(string, sizeof(string), "(INFO) Added roof scoop to the vehicle.");
SendClientMessage(playerid, COLOR_YELLOW, string);
printf(string);
AddVehicleComponent(GetPlayerVehicleID(playerid),1032); // ROOF SCOOP
}
}
}
return 1;
}
if(strcmp(cmd, "/addskirt", true) == 0) {
if(IsPlayerInAnyVehicle(playerid)) {
if(IsPlayerAdmin(playerid) == 1 || gteam[playerid]==Team_SARA) {
if (IsPlayerConnected(giveplayerid)) {
format(string, sizeof(string), "(INFO) Added sideskirt to the vehicle.");
SendClientMessage(playerid, COLOR_YELLOW, string);
printf(string);
AddVehicleComponent(GetPlayerVehicleID(playerid),1027); // Side Skirt
}
}
}
return 1;
}
if(strcmp(cmd, "/addexhaust", true) == 0) {
if(IsPlayerInAnyVehicle(playerid)) {
if(IsPlayerAdmin(playerid) == 1 || gteam[playerid]==Team_SARA) {
if (IsPlayerConnected(giveplayerid)) {
format(string, sizeof(string), "(INFO) Added exhaust to the vehicle.");
SendClientMessage(playerid, COLOR_YELLOW, string);
printf(string);
AddVehicleComponent(GetPlayerVehicleID(playerid),1028); // Exhaust
}
}
}
return 1;
}
//================ BLACKWATER Login ====================================
if (strcmp(cmdtext, "/privatearmy", true)==0)
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
SendClientMessage(playerid, COLOR_YELLOW, "You are now logged in as a Blackwater USA employee.");
SetPlayerColor(playerid, COLOR_GREY);
ResetPlayerWeapons(playerid);
SetPlayerSkin(playerid,48);
GivePlayerWeapon(playerid,4,1);
GivePlayerWeapon(playerid,31,100000);
GivePlayerWeapon(playerid,34,100000);
UnlockBLACKWATERCars(playerid);
gteam[playerid] = Team_BLACKWATER;
SetPlayerTeam(playerid,Team_BLACKWATER);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSANNCars(playerid);
LockSWATCars(playerid);
}
}
}
return 1;
}
//================ DIABLO Login ====================================
if (strcmp(cmdtext, "/hellbound", true)==0)
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
SendClientMessage(playerid, COLOR_YELLOW, "You are now logged in as a Moratellis member.");
SetPlayerColor(playerid, COLOR_ORANGE);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,4,1);
GivePlayerWeapon(playerid,28,150);
GivePlayerWeapon(playerid,30,150);
UnlockDIABLOCars(playerid);
UnlockVIPCars(playerid);
gteam[playerid] = Team_DIABLO;
SetPlayerTeam(playerid,Team_DIABLO);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSANNCars(playerid);
}
}
}
return 1;
}
if (strcmp(cmdtext, "/diabloyard", true)==0)
{
if(IsPlayerAdmin(playerid) == 1 || gteam[playerid]==Team_DIABLO){
SetPlayerInterior(playerid,0);
SendClientMessage(playerid, COLOR_YELLOW, "Welcome to The Diablo Prison Yard");
SetPlayerPos(playerid, 1811.7999,-1535.7183,13.0251);
}
return 1;
}
if (strcmp(cmdtext, "/diabloheli", true)==0)
{
if(IsPlayerAdmin(playerid) == 1 || gteam[playerid]==Team_DIABLO) {
SetPlayerInterior(playerid,0);
SendClientMessage(playerid, COLOR_YELLOW, "Welcome to The Diablo Helicopter.");
SetPlayerPos(playerid, 1792.9132,-1566.3040,22.9394);
}
return 1;
}
if (strcmp(cmdtext, "/exityard", true)==0)
{
if(IsPlayerAdmin(playerid) == 1 || gteam[playerid]==Team_DIABLO){
SetPlayerInterior(playerid,0);
SendClientMessage(playerid, COLOR_YELLOW, "Welcome to The Diablo Prison Yard");
SetPlayerPos(playerid, 1825.3752,-1538.4091,13.5469);
}
return 1;
}
//================ MHS Login ====================================
if (strcmp(cmdtext, "/rent4cash", true)==0)
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
SendClientMessage(playerid, COLOR_YELLOW, "You are now logged in as a Max's Hotel Service member.");
SetPlayerColor(playerid, COLOR_GREY);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,5,1);
GivePlayerWeapon(playerid,24,50);
UnlockMHSCars(playerid);
gteam[playerid] = 35;
SetPlayerTeam(playerid,35);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSANNCars(playerid);
LockSWATCars(playerid);
}
}
}
return 1;
}
//================ STONER LOGIN =============================================
if (strcmp(cmdtext, "/rollin4cash", true)==0)
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
SendClientMessage(playerid, COLOR_YELLOW, "You are now logged in as a Stoner Freight employee.");
SetPlayerColor(playerid, COLOR_GREY);
UnlockSTONERCars(playerid);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,5,1);
gteam[playerid] = 25;
SetPlayerTeam(playerid,25);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSANNCars(playerid);
LockSWATCars(playerid);
}
}
}
return 1;
}
//================ TAXI Login ====================================
if (strcmp(cmdtext, "/taxijob", true)==0)
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
if(IsPlayerInCircle(playerid, 2200.7917,1394.8052,20))
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_YELLOW,"AUTOBAHN TAXIS AND IMPORTS EMPLOYMENT ACCEPTANCE");
SendClientMessage(playerid,COLOR_GREY,"Welcome to Autobahn Taxis and Imports.");
SendClientMessage(playerid,COLOR_GREY,"Access to the Autobahn taxis has been granted to you.");
SendClientMessage(playerid,COLOR_GREY,"Your task consists of driving clients to their desired destinations.");
//SendClientMessage(playerid,COLOR_GREY,"(You may charge clients by typing /charge1 [ID], /charge2 [ID], or /charge3 [ID]).");
SendClientMessage(playerid,COLOR_GREY,"(You can lock clients inside the vehicle and release them by using /hold [ID] and /release [ID]).");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SetPlayerColor(playerid, COLOR_GREY);
GivePlayerWeapon(playerid,5,1);
gteam[playerid] = 13;
SetPlayerTeam(playerid,13);
UnlockTAXICars(playerid);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSANNCars(playerid);
LockSWATCars(playerid);
}
}
}
}
return 1;
}
//================ SATA Login ====================================
if (strcmp(cmdtext, "/busman69", true)==0)
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
SendClientMessage(playerid, COLOR_YELLOW, "You are now logged in as a full-time SATA employee.");
SetPlayerColor(playerid, COLOR_GREY);
GivePlayerWeapon(playerid,5,1);
gteam[playerid] = Team_SATA;
SetPlayerTeam(playerid,Team_SATA);
UnlockSATACars(playerid);
LockTAXICars(playerid);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSANNCars(playerid);
LockSWATCars(playerid);
}
}
}
return 1;
}
//================ DCPT Login ====================================
if (strcmp(cmdtext, "/dcpjob", true)==0)
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
if(IsPlayerInCircle(playerid, -1581.2753,867.9247,20))
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_CRIMBLUE,"SAN ANDREAS DCP TRAFFIC DIVISION EMPLOYMENT ACCEPTANCE");
SendClientMessage(playerid,COLOR_GREY,"Welcome to the San Andreas DCP Traffic Division.");
SendClientMessage(playerid,COLOR_GREY,"Access to the DCP vehicles and commands has been granted to you.");
SendClientMessage(playerid,COLOR_GREY,"DCP Traffic Division vehicles are yellow and grey, as opposed to the regular all-grey DCP units.");
SendClientMessage(playerid,COLOR_GREY,"Your task consists of enforcing San Andreas' traffic laws by issuing fines to violators.");
SendClientMessage(playerid,COLOR_GREY,"You may communicate with other DCP officers by using /r [Message].");
SendClientMessage(playerid,COLOR_GREY,"You may fine people by typing /fine [ID] [Amount]. This will act as your salary.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SetPlayerColor(playerid,COLOR_GREY);
SetPlayerSkin(playerid, 281); // OLD is 71
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,41,2000);
GivePlayerWeapon(playerid,24,200);
GivePlayerWeapon(playerid,3,1);
gteam[playerid] = 28;
SetPlayerTeam(playerid,28);
UnlockDCPTCars(playerid);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockSANNCars(playerid);
LockSWATCars(playerid);
}
}
}
}
return 1;
}
//================ UTILITY - PUBLIC WORKS LOGIN ================================
if (strcmp(cmdtext, "/utiljob", true)==0)
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
if(IsPlayerInCircle(playerid, -1874.0033,-218.2336,20))
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_YELLOW,"SAN ANDREAS PUBLIC WORKS EMPLOYMENT ACCEPTANCE");
SendClientMessage(playerid,COLOR_GREY,"Welcome to the San Andreas Public Works.");
SendClientMessage(playerid,COLOR_GREY,"You have been assigned a skin and access to SAPW vehicles has been granted to you.");
SendClientMessage(playerid,COLOR_GREY,"You must keep San Andreas clean by parking misplaced cars, and towing vehicles if necessary.");
SendClientMessage(playerid,COLOR_GREY,"(You may change skin by typing /utilskin1 or /utilskin2).");
SendClientMessage(playerid,COLOR_GREY,"(You can repair vehicles by typing /repair whilst in a vehicle).");
SendClientMessage(playerid,COLOR_GREY,"(You can communicate with other SAPW employees by using /r [Message]).");
SendClientMessage(playerid,COLOR_GREY,"You will earn a regular (non-taxed) salary of $100 for fulfilling the aforementionned duties.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SetPlayerColor(playerid, COLOR_GREY);
UnlockUTILCars(playerid);
GivePlayerWeapon(playerid,6,1);
GivePlayerWeapon(playerid,42,5000);
gteam[playerid] = 26;
SetPlayerTeam(playerid,26);
SetPlayerSkin(playerid,27);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockTAXICars(playerid);
LockDCPTCars(playerid);
LockDCPCars(playerid);
LockSANNCars(playerid);
LockSWATCars(playerid);
}
}
}
}
return 1;
}
if(strcmp(cmdtext, "/utilskin1", true) == 0) {
if(gteam[playerid] == Team_UTIL){
SetPlayerSkin(playerid, 27);
SetPlayerArmour(playerid,100);
SendClientMessage(playerid, COLOR_YELLOW, "You have changed clothing. You are now wearing a San Andreas Public Works uniform.");
SetPlayerColor(playerid, COLOR_GREY);
return 1;
}
}
if(strcmp(cmdtext, "/utilskin2", true) == 0) {
if(gteam[playerid] == Team_UTIL){
SetPlayerSkin(playerid, 260);
SetPlayerArmour(playerid,100);
SendClientMessage(playerid, COLOR_YELLOW, "You have changed clothing. You are now wearing a San Andreas Public Works uniform.");
SetPlayerColor(playerid, COLOR_GREY);
return 1;
}
}
//================ L3M Login ====================================
if (strcmp(cmdtext, "/74628323", true)==0)
{
SendClientMessage(playerid, COLOR_GREEN, "(MODINFO) Password accepted.");
SendClientMessage(playerid, COLOR_YELLOW, "(MODINFO) Level Three (L3M) ERP server moderation privileges granted.");
L3M[playerid] = 1;
return 1;
}
//================ L2M Login ====================================
if (strcmp(cmdtext, "/586730", true)==0)
{
SendClientMessage(playerid, COLOR_GREEN, "(MODINFO) Password accepted.");
SendClientMessage(playerid, COLOR_YELLOW, "(MODINFO) Level Two (L2M) ERP server moderation privileges granted.");
L2M[playerid] = 1;
return 1;
}
//================ L2M AGENT Login ====================================
if (strcmp(cmdtext, "/agent", true)==0)
{
if (IsPlayerAdmin(playerid)==1 || L2M[playerid]==1){
if(Agent[playerid] == 0){
SendClientMessage(playerid, COLOR_YELLOW, "(MODINFO) ERP server L2M Security Intelligence Agent privileges granted.");
L2M[playerid] = 1;
Agent[playerid] = 1;
SetPlayerSkin(playerid,164);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,24,100000);
GivePlayerWeapon(playerid,25,100000);
GivePlayerWeapon(playerid,43,100000);
GivePlayerWeapon(playerid,44,100000);
//GivePlayerWeapon(playerid,3,1);
SetPlayerColor(playerid,COLOR_GREY);
}else{
SendClientMessage(playerid, COLOR_YELLOW, "(MODINFO) ERP server L2M Security Intelligence Agent privileges deactivated.");
Agent[playerid] = 0;
}
}
return 1;
}
//================ ADMIN SECRET Login ====================================
if(IsPlayerAdmin(playerid) == 1){
UnlockAdminCars(playerid);
}
if (strcmp(cmdtext, "/809099", true)==0)
{
if(IsPlayerAdmin(playerid) == 1){
SendClientMessage(playerid, COLOR_GREEN, "(ADMININFO) Password accepted.");
SendClientMessage(playerid, 0xFF6406FF, "(ADMININFO) ERP server moderation advanced administrative (L1A) and law enforcement privileges granted.");
SetPlayerColor(playerid,COLOR_GREY);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,24,100000);
GivePlayerWeapon(playerid,25,100000);
GivePlayerWeapon(playerid,41,100000);
GivePlayerWeapon(playerid,3,1);
UnlockArmyCars(playerid);
UnlockLSPDCars(playerid);
UnlockSFPDCars(playerid);
UnlockLVPDCars(playerid);
UnlockSASPCars(playerid);
UnlockEMSCars(playerid);
UnlockFDSACars(playerid);
UnlockAdminCars(playerid);
UnlockGOVCars(playerid);
UnlockDMVCars(playerid);
UnlockTAXICars(playerid);
UnlockUTILCars(playerid);
UnlockDCPTCars(playerid);
UnlockDCPCars(playerid);
UnlockSARACars(playerid);
UnlockVIPCars(playerid);
gteam[playerid] = Team_L1A;
SetPlayerTeam(playerid,Team_L1A);
}
return 1;
}
if(strcmp(cmdtext, "/lspdskin", true) == 0) {
if(gteam[playerid] == Team_L1A){
SetPlayerSkin(playerid, 280);
SetPlayerColor(playerid, COLOR_GREY);
SendClientMessage(playerid, COLOR_YELLOW, "You have changed clothing. You are now wearing the Los Santos Police Dept. uniform.");
return 1;
}
}
if(strcmp(cmdtext, "/sfpdskin", true) == 0) {
if(gteam[playerid] == Team_L1A){
SetPlayerSkin(playerid, 266); //ORIGINAL SFPD IS 281
SetPlayerColor(playerid, COLOR_GREY);
SendClientMessage(playerid, COLOR_YELLOW, "You have changed clothing. You are now wearing the San Fierro Metro Police Dept. uniform.");
return 1;
}
}
if(strcmp(cmdtext, "/lvpdskin", true) == 0) {
if(gteam[playerid] == Team_L1A){
SetPlayerSkin(playerid, 282);
SetPlayerColor(playerid, COLOR_GREY);
SendClientMessage(playerid, COLOR_YELLOW, "You have changed clothing. You are now wearing the Las Venturas Metro Police Dept. uniform.");
return 1;
}
}
if(strcmp(cmdtext, "/saspskin", true) == 0) {
if(gteam[playerid] == Team_L1A){
SetPlayerSkin(playerid, 288);
SetPlayerColor(playerid, COLOR_GREY);
SendClientMessage(playerid, COLOR_YELLOW, "You have changed clothing. You are now wearing the San Andreas State Police uniform.");
return 1;
}
}
if(strcmp(cmdtext, "/pilot", true) == 0) {
if(gteam[playerid] == Team_Army || gteam[playerid] == Team_ArmyMed || gteam[playerid] == Team_L1A){
SetPlayerSkin(playerid, 61);
SendClientMessage(playerid, COLOR_YELLOW, "You have changed clothing.");
SetPlayerColor(playerid, COLOR_GREY);
return 1;
}
}
if (strcmp(cmdtext, "/grenades", true)==0)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerAdmin(playerid) == 1){
if( IsServiceVehicle(vehicleid) ) {
SendClientMessage(playerid, COLOR_YELLOW, "You have equipped yourself with fragmentation grenades.");
GivePlayerWeapon(playerid,16,100000);
}else{
if(gteam[playerid]==Team_L1A) {
SendClientMessage(playerid, COLOR_RED, "You must be in an ERP Administration vehicle to access this command.");
}
}
}
return 1;
}
if (strcmp(cmdtext, "/rpg", true)==0)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerAdmin(playerid) == 1){
if( IsServiceVehicle(vehicleid) ) {
SendClientMessage(playerid, COLOR_YELLOW, "You have equipped yourself with an RPG7.");
GivePlayerWeapon(playerid,35,100000);
}else{
if(gteam[playerid]==Team_L1A) {
SendClientMessage(playerid, COLOR_RED, "You must be in an ERP Administration vehicle to access this command.");
}
}
}
return 1;
}
if (strcmp(cmdtext, "/flame", true)==0)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerAdmin(playerid) == 1){
if( IsServiceVehicle(vehicleid) ) {
SendClientMessage(playerid, COLOR_YELLOW, "You have equipped yourself with a flamethrower.");
GivePlayerWeapon(playerid,37,100000);
}else{
if(gteam[playerid]==Team_L1A) {
SendClientMessage(playerid, COLOR_RED, "You must be in an ERP Administration vehicle to access this command.");
}
}
}
return 1;
}
if (strcmp(cmdtext, "/infrared", true)==0)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerAdmin(playerid) == 1){
if( IsServiceVehicle(vehicleid) ) {
SendClientMessage(playerid, COLOR_YELLOW, "You have equipped yourself with infrared vision goggles.");
GivePlayerWeapon(playerid,45,1);
}else{
if(gteam[playerid]==Team_L1A) {
SendClientMessage(playerid, COLOR_RED, "You must be in an ERP Administration vehicle to access this command.");
}
}
}
return 1;
}
if (strcmp(cmdtext, "/minigun", true)==0)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerAdmin(playerid) == 1){
if( IsServiceVehicle(vehicleid) ) {
SendClientMessage(playerid, COLOR_YELLOW, "You have equipped yourself with a minigun.");
GivePlayerWeapon(playerid,38,100000);
}else{
if(gteam[playerid]==Team_L1A) {
SendClientMessage(playerid, COLOR_RED, "You must be in an ERP Administration vehicle to access this command.");
}
}
}
return 1;
}
if (strcmp(cmdtext, "/area69", true)==0)
{
if(IsPlayerAdmin(playerid) == 1){
SetPlayerInterior(playerid,0);
SendClientMessage(playerid, COLOR_YELLOW, "You have been teleported to the Area 69 Military Base.");
SetPlayerPos(playerid, 215.2343,1915.5951,17.6406);}
return 1;
}
if (strcmp(cmdtext, "/erpfo", true)==0)
{
if(IsPlayerAdmin(playerid) == 1){
SetPlayerInterior(playerid,0);
SendClientMessage(playerid, COLOR_YELLOW, "You have been teleported to the ERP Administration Field Office.");
SetPlayerPos(playerid, -2805.9910,-1515.8320,140.8360);}
return 1;
}
if (strcmp(cmdtext, "/erphq", true)==0)
{
if(IsPlayerAdmin(playerid) == 1){
SetPlayerInterior(playerid,5);
SendClientMessage(playerid, COLOR_YELLOW, "You have been teleported to the ERP Administration Headquarters.");
SetPlayerPos(playerid, 1291.1842,-833.0436,1085.6328);}
return 1;
}
if((strcmp(cmdtext,"/iddad",true)==0)||(strcmp(cmdtext,"/god",true)==0))
{
if(IsPlayerAdmin(playerid) == 1 || L2M[playerid]==1 )
{
if(God[playerid] == 0)
{
God[playerid] = 1;
SendClientMessage(playerid,0xFF6406FF,"(ADMININFO) Invincibility activated.");
}
else
{
God[playerid] = 0;
SendClientMessage(playerid,0xFF6406FF,"(ADMININFO) Invincibility deactivated.");
SetPlayerHealth(playerid, 100);
}
}
else
{
//SendClientMessage(playerid,COLOR_RED,"This command is for ERP Administration personnel only.");
}
return 1;
}
if(strcmp(cmd, "/freeze", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /freeze [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if (IsPlayerAdmin(playerid) == 1) {
if (IsPlayerConnected(giveplayerid) && gteam[giveplayerid]!=Team_L1A) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have incapacitated %s (ID:%d).", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_GREEN, string);
//format(string, sizeof(string), "You have been incapacitated by a server moderator.");
//SendClientMessage(giveplayerid, COLOR_BRIGHTRED, string);
format(string, sizeof(string), "(ADMININFO) %s (ID:%d) has been incapacitated by administrator %s (ID:%d).", giveplayer, giveplayerid, sendername, playerid);
SendMessageToAdmins(string);
printf(string);
//format(string, sizeof(string), "Your weapons have been confiscated.");
//SendClientMessage(giveplayerid, COLOR_RED, string);
ResetPlayerWeapons(giveplayerid);
TogglePlayerControllable(giveplayerid,0);
//SetPlayerColor(giveplayerid,COLOR_RED);
SetPlayerArmour(giveplayerid,0);
} else {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have incapacitated %s (ID:%d).", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_GREEN, string);
//format(string, sizeof(string), "You have been incapacitated by a server moderator.");
//SendClientMessage(giveplayerid, COLOR_BRIGHTRED, string);
format(string, sizeof(string), "(ADMININFO) %s (ID:%d) has been incapacitated by administrator %s (ID:%d).", giveplayer, giveplayerid, sendername, playerid);
SendMessageToAdmins(string);
printf(string);
//format(string, sizeof(string), "Your weapons have been confiscated.");
//SendClientMessage(giveplayerid, COLOR_RED, string);
ResetPlayerWeapons(giveplayerid);
TogglePlayerControllable(giveplayerid,0);
//SetPlayerColor(giveplayerid,COLOR_RED);
SetPlayerArmour(giveplayerid,0);
}else {
format(string, sizeof(string), "ID %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
}
}
return 1;
}
if(strcmp(cmd, "/unfreeze", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /unfreeze [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if (IsPlayerAdmin(playerid) == 1 || gteam[playerid]==Team_L1A) {
if (IsPlayerConnected(giveplayerid) && gteam[giveplayerid]!=Team_L1A) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have capacitated %s (ID:%d).", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
//format(string, sizeof(string), "You have been capacitated by a server moderator.");
//SendClientMessage(giveplayerid, COLOR_GREEN, string);
format(string, sizeof(string), "(ADMININFO) %s (ID:%d) has been capacitated by administrator %s (ID:%d).", giveplayer, giveplayerid, sendername, playerid);
SendMessageToAdmins(string);
printf(string);
//format(string, sizeof(string), "Your weapons have been confiscated.");
//SendClientMessage(giveplayerid, COLOR_RED, string);
ResetPlayerWeapons(giveplayerid);
gteam[giveplayerid] = 10;
SetPlayerTeam(giveplayerid,10);
SetPlayerColor(giveplayerid,COLOR_GREY);
TogglePlayerControllable(giveplayerid,1);
SetPlayerArmour(giveplayerid,0);
}
else {
format(string, sizeof(string), "ID %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
}
return 1;
}
if(strcmp(cmd, "/disarm", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /disarm [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if(IsPlayerAdmin(playerid) == 1 || (L2M[playerid]==1) || (L3M[playerid]==1) ){
if (IsPlayerConnected(giveplayerid) && gteam[giveplayerid]!=Team_L1A ) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have confiscated %s's (ID:%d) weapons.", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_GREEN, string);
//format(string, sizeof(string), "Your weapons have been confiscated by a server moderator.");
//SendClientMessage(giveplayerid, COLOR_BRIGHTRED, string);
format(string, sizeof(string), "(MODINFO) %s's (ID:%d) weapons have been confiscated by a sever moderator.", giveplayer, giveplayerid);
SendMessageToAdmins(string);
printf(string);
ResetPlayerWeapons(giveplayerid);
SetPlayerArmour(giveplayerid,0);
}else {
format(string, sizeof(string), "ID %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
}
return 1;
}
//=========VIP LOGIN============================
if (strcmp(cmdtext, "/VIPBETA", true)==0)
{
SendClientMessage(playerid, COLOR_GREEN, "(VIPINFO) Password accepted.");
SendClientMessage(playerid, COLOR_YELLOW, "(VIPINFO) Elite Membership (VIP) ERP membership privileges granted.");
UnlockVIPCars(playerid);
//gteam[playerid] = 32;
//SetPlayerTeam(playerid,32);
VIP[playerid] = 1;
return 1;
}
if(strcmp(cmdtext, "/vdeagle", true) == 0) {
if(IsPlayerAdmin(playerid) == 1 || (VIP[playerid]==1) ){
GivePlayerWeapon(playerid,24,100000);
SendClientMessage(playerid, COLOR_YELLOW, "You have received a DEAGLE from VIP Island Amunation.");
return 1;
}
}
if(strcmp(cmdtext, "/vs9mm", true) == 0) {
if(IsPlayerAdmin(playerid) == 1 || (VIP[playerid]==1) ){
GivePlayerWeapon(playerid,23,100000);
SendClientMessage(playerid, COLOR_YELLOW, "You have received a Silenced 9mm from VIP Island Amunation.");
return 1;
}
}
if(strcmp(cmdtext, "/vmp5", true) == 0) {
if(IsPlayerAdmin(playerid) == 1 || (VIP[playerid]==1) ){
GivePlayerWeapon(playerid,29,100000);
SendClientMessage(playerid, COLOR_YELLOW, "You have received a MP5 from VIP Island Amunation.");
return 1;
}
}
if(strcmp(cmdtext, "/vtec9", true) == 0) {
if(IsPlayerAdmin(playerid) == 1 || (VIP[playerid]==1) ){
GivePlayerWeapon(playerid,32,100000);
SendClientMessage(playerid, COLOR_YELLOW, "You have received a Tec9 from VIP Island Amunation.");
return 1;
}
}
if(strcmp(cmdtext, "/vcshotgun", true) == 0) {
if(IsPlayerAdmin(playerid) == 1 || (VIP[playerid]==1) ){
GivePlayerWeapon(playerid,27,100000);
SendClientMessage(playerid, COLOR_YELLOW, "You have received a Combat Shotgun from VIP Island Amunation.");
return 1;
}
}
if(strcmp(cmdtext, "/vshotgun", true) == 0) {
if(IsPlayerAdmin(playerid) == 1 || (VIP[playerid]==1) ){
GivePlayerWeapon(playerid,25,100000);
SendClientMessage(playerid, COLOR_YELLOW, "You have received a Shotgun from VIP Island Amunation.");
return 1;
}
}
if(strcmp(cmdtext, "/vm16", true) == 0) {
if(IsPlayerAdmin(playerid) == 1 || (VIP[playerid]==1) ){
GivePlayerWeapon(playerid,31,100000);
SendClientMessage(playerid, COLOR_YELLOW, "You have received a M16 from VIP Island Amunation.");
return 1;
}
}
if(strcmp(cmdtext, "/vak47", true) == 0) {
if(IsPlayerAdmin(playerid) == 1 || (VIP[playerid]==1) ){
GivePlayerWeapon(playerid,30,100000);
SendClientMessage(playerid, COLOR_YELLOW, "You have received a Ak47 from VIP Island Amunation.");
return 1;
}
}
if(strcmp(cmdtext, "/vsniper", true) == 0) {
if(IsPlayerAdmin(playerid) == 1 || (VIP[playerid]==1) ){
GivePlayerWeapon(playerid,34,100000);
SendClientMessage(playerid, COLOR_YELLOW, "You have received a Sniper Rifle from VIP Island Amunation.");
return 1;
}
}
if(strcmp(cmdtext, "/varmour", true) == 0) {
if(IsPlayerAdmin(playerid) == 1 || (VIP[playerid]==1) ){
SetPlayerArmour(playerid,100);
SendClientMessage(playerid, COLOR_YELLOW, "You have received a Armour from VIP Island Amunation.");
return 1;
}
}
///=========================================== END Logins ==============================================================================
if(strcmp(cmd, "/co", true) == 0)
{
for(new i=0; i<MAX_PLAYERS; i++){
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid]==Team_DCP || gteam[playerid]==Team_SWAT || gteam[playerid]==Team_L1A) {
if(GetDistanceBetweenPlayers(playerid,i) < 50) {
SendClientMessage(i,COLOR_BRIGHTRED, "(MEGAPHONE) THIS IS A SAPD CHOPPER, EXIT THE VEHICLE AND GET YOUR HANDS UP!");
}
}
}
return 1;
}
if(strcmp(cmd, "/po", true) == 0)
{
for(new i=0; i<MAX_PLAYERS; i++){
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid]==Team_DCP || gteam[playerid]==Team_SWAT || gteam[playerid]==Team_L1A) {
if(GetDistanceBetweenPlayers(playerid,i) < 50) {
SendClientMessage(i,COLOR_BRIGHTRED, "(MEGAPHONE) THIS IS THE POLICE, PULL OVER!");
}
}
}
return 1;
}
if(strcmp(cmd, "/mo", true) == 0)
{
for(new i=0; i<MAX_PLAYERS; i++){
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid]==Team_DCP || gteam[playerid]==Team_SWAT || gteam[playerid]==Team_L1A) {
if(GetDistanceBetweenPlayers(playerid,i) < 50) {
SendClientMessage(i,COLOR_BRIGHTRED, "(MEGAPHONE) POLICE! MOVE OUT OF THE WAY!");
}
}
}
return 1;
}
if(strcmp(cmd, "/mov", true) == 0)
{
for(new i=0; i<MAX_PLAYERS; i++){
if(gteam[playerid]==Team_EMS || gteam[playerid]==Team_Fire || gteam[playerid]==Team_L1A) {
if(GetDistanceBetweenPlayers(playerid,i) < 50) {
SendClientMessage(i,COLOR_BRIGHTRED, "(MEGAPHONE) EMS! MOVE OUT OF THE WAY!");
}
}
}
return 1;
}
if(strcmp(cmd, "/gu", true) == 0)
{
for(new i=0; i<MAX_PLAYERS; i++){
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid]==Team_DCP || gteam[playerid]==Team_SWAT || gteam[playerid]==Team_L1A) {
if(GetDistanceBetweenPlayers(playerid,i) < 50) {
SendClientMessage(i,COLOR_BRIGHTRED, "PUT THE WEAPON DOWN!");
}
}
}
return 1;
}
if(strcmp(cmd, "/en", true) == 0)
{
for(new i=0; i<MAX_PLAYERS; i++){
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid]==Team_DCP || gteam[playerid]==Team_SWAT || gteam[playerid]==Team_L1A) {
if(GetDistanceBetweenPlayers(playerid,i) < 50) {
SendClientMessage(i,COLOR_BRIGHTRED, "(MEGAPHONE) TURN OFF THE ENGINE AND THROW THE KEYS OUT THE WINDOW!");
}
}
}
return 1;
}
if(strcmp(cmd, "/st", true) == 0)
{
for(new i=0; i<MAX_PLAYERS; i++){
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid]==Team_DCP || gteam[playerid]==Team_SWAT || gteam[playerid]==Team_L1A) {
if(GetDistanceBetweenPlayers(playerid,i) < 50) {
SendClientMessage(i,COLOR_BRIGHTRED, "POLICE! STOP!");
}
}
}
return 1;
}
if(strcmp(cmd, "/ex", true) == 0)
{
for(new i=0; i<MAX_PLAYERS; i++){
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid]==Team_DCP || gteam[playerid]==Team_SWAT || gteam[playerid]==Team_L1A) {
if(GetDistanceBetweenPlayers(playerid,i) < 50) {
SendClientMessage(i,COLOR_BRIGHTRED, "(MEGAPHONE) EXIT THE VEHICLE AND GET YOUR HANDS UP!");
}
}
}
return 1;
}
if(strcmp(cmd, "/sur", true) == 0)
{
for(new i=0; i<MAX_PLAYERS; i++){
if(gteam[playerid]==Team_Army || gteam[playerid] == Team_ArmyMed) {
if(GetDistanceBetweenPlayers(playerid,i) < 100) {
SendClientMessage(i,COLOR_TAN, "(MEGAPHONE) SAN ANDREAS NATIONAL GAURD! SURRENDER NOW!");
}
}
}
return 1;
}
if(strcmp(cmd, "/pon", true) == 0)
{
for(new i=0; i<MAX_PLAYERS; i++){
if(gteam[playerid]==Team_Army || gteam[playerid] == Team_ArmyMed) {
if(GetDistanceBetweenPlayers(playerid,i) < 100) {
SendClientMessage(i,COLOR_TAN, "(MEGAPHONE) SAN ANDREAS NATIONAL GAURD! PULL OVER!");
}
}
}
return 1;
}
if(strcmp(cmd, "/free", true) == 0)
{
for(new i=0; i<MAX_PLAYERS; i++){
if(gteam[playerid]==Team_Army || gteam[playerid] == Team_ArmyMed) {
if(GetDistanceBetweenPlayers(playerid,i) < 100) {
SendClientMessage(i,COLOR_TAN, "(MEGAPHONE) SAN ANDREAS NATIONAL GAURD! DROP YOUR WEAPONS!");
}
}
}
return 1;
}
if(strcmp(cmd, "/aird", true) == 0)
{
for(new i=0; i<MAX_PLAYERS; i++){
if(gteam[playerid]==Team_Army || gteam[playerid] == Team_ArmyMed) {
if(GetDistanceBetweenPlayers(playerid,i) < 100) {
SendClientMessage(i,COLOR_TAN, "(MEGAPHONE) UNITED STATES AIR FORCE! LAND NOW OR YOU WILL BE SHOT DOWN!");
}
}
}
return 1;
}
//============================================================= JAIL COMMANDS ============================================================================================================
//========================================================================================================================================================================================
if(strcmp(cmd, "/jail", true) == 0) {
new tmp[256];
new time;
if(IsPlayerAdmin(playerid) == 0 || 1) {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Usage: /Jail [Player ID] [Time]");
return 1;
}
giveplayerid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Usage: /Jail [Player ID] [Time]");
return 1;
}
time = strval(tmp);
if(gteam[playerid]==Team_LSPD) {
if (IsPlayerConnected(giveplayerid) && gteam[giveplayerid]!=Team_L1A ) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have jailed %s (ID:%d)", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "You have been jailed.");
SendClientMessage(giveplayerid, COLOR_BRIGHTRED, string);
format(string, sizeof(string), "Your sentence is %d seconds.", time);
SendClientMessage(giveplayerid, COLOR_GREY, string);
format(string, sizeof(string), "(INFO) %s (ID:%d) has been imprisonned by LSPD Officer %s (Unit %d) - SENTENCE: %d seconds.", giveplayer, giveplayerid, sendername, playerid,time);
SendMessageToLaw(string);
printf(string);
format(string, sizeof(string), "Your weapons have been confiscated.");
SendClientMessage(giveplayerid, COLOR_RED, string);
ResetPlayerWeapons(giveplayerid);
SetPlayerInterior(giveplayerid,6);
SetPlayerColor(giveplayerid,COLOR_LIGHTBLUE);
gteam[giveplayerid] = 15;
SetPlayerTeam(giveplayerid,15);
SetPlayerPos(giveplayerid,264.7518,76.7460,1001.0391);
SetCameraBehindPlayer(giveplayerid);
GivePlayerMoney(playerid, 1000);
SetTimerEx("AutoUnjailLSPD", time*1000, 0, "i", giveplayerid);
return 1;
}
}else{
if(gteam[playerid]==Team_SFPD) {
if (IsPlayerConnected(giveplayerid) && gteam[giveplayerid]!=Team_L1A ) {
if( IsPlayerInCircle(playerid,-2244.9470,2349.5754,300) || IsPlayerInCircle(playerid,251.2629,82.2043,50) || IsPlayerInCircle(giveplayerid,-2244.9470,2349.5754,300) || IsPlayerInCircle(giveplayerid,251.2629,82.2043,50) ) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have jailed %s (ID:%d)", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "You have been jailed.");
SendClientMessage(giveplayerid, COLOR_BRIGHTRED, string);
format(string, sizeof(string), "Your sentence is %d seconds.", time);
SendClientMessage(giveplayerid, COLOR_GREY, string);
format(string, sizeof(string), "(INFO) %s (ID:%d) has been imprisonned (NOC) by SFPD Officer %s (Unit %d) - SENTENCE: %d seconds.", giveplayer, giveplayerid, sendername, playerid,time);
SendMessageToLaw(string);
printf(string);
format(string, sizeof(string), "Your weapons have been confiscated.");
SendClientMessage(giveplayerid, COLOR_RED, string);
ResetPlayerWeapons(giveplayerid);
SetPlayerInterior(giveplayerid,6);
SetPlayerVirtualWorld(giveplayerid,1);
SetPlayerColor(giveplayerid,COLOR_LIGHTBLUE);
gteam[giveplayerid] = 15;
SetPlayerTeam(giveplayerid,15);
SetPlayerPos(giveplayerid,224.4506,111.1786,999.0156);
SetCameraBehindPlayer(giveplayerid);
GivePlayerMoney(playerid, 1000);
SetTimerEx("AutoUnjailSFPD", time*1000, 0, "i", giveplayerid);
}else{
format(string, sizeof(string), "You have jailed %s (ID:%d)", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "You have been jailed.");
SendClientMessage(giveplayerid, COLOR_BRIGHTRED, string);
format(string, sizeof(string), "Your sentence is %d seconds.", time);
SendClientMessage(giveplayerid, COLOR_GREY, string);
format(string, sizeof(string), "(INFO) %s (ID:%d) has been imprisonned (SOC) by SFPD Officer %s (Unit %d) - SENTENCE: %d seconds.", giveplayer, giveplayerid, sendername, playerid,time);
SendMessageToLaw(string);
printf(string);
format(string, sizeof(string), "Your weapons have been confiscated.");
SendClientMessage(giveplayerid, COLOR_RED, string);
ResetPlayerWeapons(giveplayerid);
SetPlayerInterior(giveplayerid,10);
SetPlayerColor(giveplayerid,COLOR_LIGHTBLUE);
gteam[giveplayerid] = 15;
SetPlayerTeam(giveplayerid,15);
SetPlayerPos(giveplayerid,224.4506,111.1786,999.0156);
SetCameraBehindPlayer(giveplayerid);
GivePlayerMoney(playerid, 1000);
SetTimerEx("AutoUnjailSFPD", time*1000, 0, "i", giveplayerid);
}
return 1;
}
}else{
if(gteam[playerid]==Team_SWAT) {
if (IsPlayerConnected(giveplayerid) && gteam[giveplayerid]!=Team_L1A ) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have jailed %s (ID:%d)", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "You have been jailed.");
SendClientMessage(giveplayerid, COLOR_BRIGHTRED, string);
format(string, sizeof(string), "Your sentence is %d seconds.", time);
SendClientMessage(giveplayerid, COLOR_GREY, string);
format(string, sizeof(string), "(INFO) %s (ID:%d) has been imprisonned by SWAT Officer %s (Unit %d) - SENTENCE: %d seconds.", giveplayer, giveplayerid, sendername, playerid,time);
SendMessageToLaw(string);
printf(string);
format(string, sizeof(string), "Your weapons have been confiscated.");
SendClientMessage(giveplayerid, COLOR_RED, string);
ResetPlayerWeapons(giveplayerid);
SetPlayerInterior(giveplayerid,3);
SetPlayerColor(giveplayerid,COLOR_LIGHTBLUE);
gteam[giveplayerid] = 15;
SetPlayerTeam(giveplayerid,15);
SetPlayerPos(giveplayerid,224.4506,111.1786,999.0156);
SetCameraBehindPlayer(giveplayerid);
GivePlayerMoney(playerid, 1000);
SetTimerEx("AutoUnjailSFPD", time*1000, 0, "i", giveplayerid);
return 1;
}
}else{
if(gteam[playerid]==Team_SASP || gteam[playerid]==Team_DCP || gteam[playerid]==Team_GOV) {
if (IsPlayerConnected(giveplayerid) && gteam[giveplayerid]!=Team_L1A ) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have jailed %s (ID:%d)", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "You have been jailed and have been transfered to Fleischberg State Penitentiary.");
SendClientMessage(giveplayerid, COLOR_BRIGHTRED, string);
format(string, sizeof(string), "Your sentence is %d seconds.", time);
SendClientMessage(giveplayerid, COLOR_GREY, string);
format(string, sizeof(string), "(INFO) %s (ID:%d) has been imprisonned by SASP Trooper %s (Unit %d) - SENTENCE: %d seconds.", giveplayer, giveplayerid, sendername, playerid,time);
SendMessageToLaw(string);
printf(string);
format(string, sizeof(string), "Your weapons have been confiscated.");
SendClientMessage(giveplayerid, COLOR_RED, string);
ResetPlayerWeapons(giveplayerid);
SetPlayerColor(giveplayerid,COLOR_LIGHTBLUE);
gteam[giveplayerid] = 15;
SetPlayerTeam(giveplayerid,15);
SetPlayerPos(giveplayerid,-25.2890,-228.0877,5.4297); // NEW IN STATE PEN
SetPlayerInterior(giveplayerid,0);
SetCameraBehindPlayer(giveplayerid);
GivePlayerMoney(playerid, 1000);
SetTimerEx("AutoUnjailStatePen", time*1000, 0, "i", giveplayerid);
return 1;
}
}else{
if(gteam[playerid]==Team_Army || gteam[playerid]==Team_ArmyMed) {
if (IsPlayerConnected(giveplayerid) && gteam[giveplayerid]!=Team_L1A ) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have jailed %s (ID:%d)", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "You have been captured and have been transfered to Area 69 Prisoner Holding.");
SendClientMessage(giveplayerid, COLOR_BRIGHTRED, string);
format(string, sizeof(string), "Your sentence is %d seconds.", time);
SendClientMessage(giveplayerid, COLOR_GREY, string);
format(string, sizeof(string), "(INFO) %s (ID:%d) has been imprisonned by Unit %d - SENTENCE: %d seconds.", giveplayerid, sendername, playerid,time);
SendMessageToLaw(string);
printf(string);
format(string, sizeof(string), "Your weapons have been confiscated.");
SendClientMessage(giveplayerid, COLOR_RED, string);
ResetPlayerWeapons(giveplayerid);
SetPlayerColor(giveplayerid,COLOR_LIGHTBLUE);
gteam[giveplayerid] = 15;
SetPlayerTeam(giveplayerid,15);
SetPlayerPos(giveplayerid,272.4888,1816.2968,1.0078); // NEW IN STATE PEN
TogglePlayerControllable(giveplayerid,0); // can't move at all
SetPlayerInterior(giveplayerid,0);
SetCameraBehindPlayer(giveplayerid);
GivePlayerMoney(playerid, 1000);
SetTimerEx("AutoUnjailARMY", time*1000, 0, "i", giveplayerid);
return 1;
}else{
format(string, sizeof(string), "ID %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
}else{
format(string, sizeof(string), "This command is for law enforcement personnel only.", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
}
}
}
}
}
return 1;
}
if(strcmp(cmd, "/unjail", true) == 0) {
new tmp[256];
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_ORANGE, "Usage: /jail [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if(gteam[playerid]==Team_LSPD) {
if (IsPlayerConnected(giveplayerid) && gteam[giveplayerid]!=Team_L1A ) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have unjailed %s (ID:%d).", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
format(string, sizeof(string), "You have been released from prison.");
SendClientMessage(giveplayerid, COLOR_GREEN, string);
format(string, sizeof(string), "(INFO) %s (ID:%d) has been released from prison by Officer %s (Unit %d).", giveplayer, giveplayerid, sendername, playerid);
SendMessageToLaw(string);
printf(string);
format(string, sizeof(string), "You have been charged an incarceration fee of $2000.");
SendClientMessage(giveplayerid, COLOR_RED, string);
GivePlayerMoney(giveplayerid, -2000);
gteam[giveplayerid] = 10;
SetPlayerTeam(giveplayerid,10);
SetPlayerColor(giveplayerid,COLOR_GREY);
PlayerInfo[playerid][pInt] = 6;
ResetPlayerWeapons(giveplayerid);
SetPlayerInterior(giveplayerid,0);
SetPlayerPos(giveplayerid,1545.7047,-1675.4991,13.5609);
SetCameraBehindPlayer(giveplayerid);
GetPlayerName(giveplayerid, giveplayername, sizeof(giveplayername));
dini_Set("Suspects.txt", giveplayername,"CLEAR (But criminal history present)");
return 1;
}
}else{
if(gteam[playerid]==Team_SFPD || gteam[playerid]==Team_L1A) {
if (IsPlayerConnected(giveplayerid) && gteam[giveplayerid]!=Team_L1A ) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have unjailed %s (ID:%d).", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
format(string, sizeof(string), "You have been released from prison.");
SendClientMessage(giveplayerid, COLOR_GREEN, string);
format(string, sizeof(string), "(INFO) %s (ID:%d) has been released from prison by Officer %s (Unit %d).", giveplayer, giveplayerid, sendername, playerid);
SendMessageToLaw(string);
printf(string);
format(string, sizeof(string), "You have been charged an incarceration fee of $2000.");
SendClientMessage(giveplayerid, COLOR_RED, string);
GivePlayerMoney(giveplayerid, -2000);
gteam[giveplayerid] = 10;
SetPlayerTeam(giveplayerid,10);
SetPlayerColor(giveplayerid,COLOR_GREY);
PlayerInfo[playerid][pInt] = 6;
ResetPlayerWeapons(giveplayerid);
SetPlayerInterior(giveplayerid,10);
SetPlayerPos(giveplayerid,224.5249,114.3020,999.0156);
SetCameraBehindPlayer(giveplayerid);
GetPlayerName(giveplayerid, giveplayername, sizeof(giveplayername));
dini_Set("Suspects.txt", giveplayername,"CLEAR (But criminal history present)");
return 1;
}
}else{
if(gteam[playerid]==Team_SWAT) {
if (IsPlayerConnected(giveplayerid) && gteam[giveplayerid]!=Team_L1A ) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have unjailed %s (ID:%d).", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
format(string, sizeof(string), "You have been released from prison.");
SendClientMessage(giveplayerid, COLOR_GREEN, string);
format(string, sizeof(string), "(INFO) %s (ID:%d) has been released from prison by Officer %s (Unit %d).", giveplayer, giveplayerid, sendername, playerid);
SendMessageToLaw(string);
printf(string);
format(string, sizeof(string), "You have been charged an incarceration fee of $2000.");
SendClientMessage(giveplayerid, COLOR_RED, string);
GivePlayerMoney(giveplayerid, -2000);
gteam[giveplayerid] = 10;
SetPlayerTeam(giveplayerid,10);
SetPlayerColor(giveplayerid,COLOR_GREY);
PlayerInfo[playerid][pInt] = 6;
ResetPlayerWeapons(giveplayerid);
SetPlayerInterior(giveplayerid,3);
SetPlayerPos(giveplayerid,196.8058,159.5612,1003.0234);
SetCameraBehindPlayer(giveplayerid);
GetPlayerName(giveplayerid, giveplayername, sizeof(giveplayername));
dini_Set("Suspects.txt", giveplayername,"CLEAR (But criminal history present)");
return 1;
}
}else{
if(gteam[playerid]==Team_SASP || gteam[playerid]==Team_DCP ) {
if (IsPlayerConnected(giveplayerid) && gteam[giveplayerid]!=Team_L1A ) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have unjailed %s (ID:%d).", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
format(string, sizeof(string), "You have been released from the state penitentiary.");
SendClientMessage(giveplayerid, COLOR_GREEN, string);
format(string, sizeof(string), "(INFO) %s (ID:%d) has been released from state penitentiary by Officer %s (Unit %d).", giveplayer, giveplayerid, sendername, playerid);
SendMessageToLaw(string);
printf(string);
format(string, sizeof(string), "You have been charged an incarceration fee of $2000.");
SendClientMessage(giveplayerid, COLOR_RED, string);
GivePlayerMoney(giveplayerid, -2000);
gteam[giveplayerid] = 10;
SetPlayerTeam(giveplayerid,10);
SetPlayerColor(giveplayerid,COLOR_GREY);
PlayerInfo[playerid][pInt] = 6;
ResetPlayerWeapons(giveplayerid);
//SetPlayerInterior(giveplayerid,6); // JAIL IN DILLIMORE
//SetPlayerPos(giveplayerid,268.6105,76.8747,1001.0391); // JAIL IN DILLIMORE
SetPlayerInterior(giveplayerid,0); // STATE PEN
SetPlayerPos(giveplayerid,-78.0536,-342.7868,1.4297); // STATE PEN
SetCameraBehindPlayer(giveplayerid);
GetPlayerName(giveplayerid, giveplayername, sizeof(giveplayername));
dini_Set("Suspects.txt", giveplayername,"CLEAR (But criminal history present)");
return 1;
}else{
format(string, sizeof(string), "ID %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
}else{
format(string, sizeof(string), "This command is for law enforcement personnel only.", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
}
}
}
}
return 1;
}
//============================================================= JAIL COMMANDS ============================================================================================================
//========================================================================================================================================================================================
//====== /CUFF AND /UNCUFF AND /UNWANT ==========================================================================================================
if(strcmp(cmd, "/cuff", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /cuff [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid]==Team_SWAT || gteam[playerid]==Team_DCP || gteam[playerid]==Team_Army || gteam[playerid]==Team_ArmyMed || gteam[playerid]==Team_GOV || IsPlayerAdmin(playerid) == 1) {
if (IsPlayerConnected(giveplayerid) && gteam[giveplayerid]!=Team_L1A ) {
if(InjuredPlayer[giveplayerid] == 0){
if( (GetDistanceBetweenPlayers(playerid,giveplayerid) < 8) && (IsPlayerInAnyVehicle(giveplayerid)==0) ){
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have incapacitated %s (ID:%d).", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "You have been incapacitated by Officer %s.", sendername);
SendClientMessage(giveplayerid, COLOR_RED, string);
format(string, sizeof(string), "(INFO) %s (ID:%d) has been incapacitated by Officer %s (Unit %d).", giveplayer, giveplayerid, sendername, playerid);
SendMessageToLaw(string);
printf(string);
format(string, sizeof(string), "Your weapons have been confiscated.");
SendClientMessage(giveplayerid, COLOR_RED, string);
gteam[giveplayerid] = 15;
SetPlayerTeam(giveplayerid,15);
SetPlayerColor(giveplayerid,COLOR_LIGHTBLUE);
ResetPlayerWeapons(giveplayerid);
TogglePlayerControllable(giveplayerid,0);
SetPlayerArmour(giveplayerid,0);
}
}
}
}
return 1;
}
if(strcmp(cmd, "/uncuff", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /uncuff [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid]==Team_SWAT || gteam[playerid]==Team_DCP || gteam[playerid]==Team_Army || gteam[playerid]==Team_ArmyMed || gteam[playerid]==Team_GOV || IsPlayerAdmin(playerid) == 1) {
if (IsPlayerConnected(giveplayerid) && gteam[giveplayerid]!=Team_L1A ) {
if(InjuredPlayer[giveplayerid] == 0){
if(GetDistanceBetweenPlayers(giveplayerid,playerid) < 8) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have capacitated %s (ID:%d).", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
format(string, sizeof(string), "You have been capacitated by Officer %s.", sendername);
SendClientMessage(giveplayerid, COLOR_GREEN, string);
format(string, sizeof(string), "(INFO) %s (ID:%d) has been capacitated by Officer %s (Unit %d).", giveplayer, giveplayerid, sendername, playerid);
SendMessageToLaw(string);
printf(string);
format(string, sizeof(string), "Your weapons have been confiscated.");
SendClientMessage(giveplayerid, COLOR_RED, string);
ResetPlayerWeapons(giveplayerid);
gteam[giveplayerid] = 15;
SetPlayerTeam(giveplayerid,15);
SetPlayerColor(giveplayerid,COLOR_LIGHTBLUE);
TogglePlayerControllable(giveplayerid,1);
SetPlayerArmour(giveplayerid,0);
}
else {
format(string, sizeof(string), "ID %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
}
}
}
return 1;
}
if(strcmp(cmd, "/sus", true) == 0)
{
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid]==Team_SWAT || gteam[playerid]==Team_DCP || gteam[playerid]==Team_Army || gteam[playerid]==Team_ArmyMed || gteam[playerid]==Team_GOV || gteam[playerid]==Team_L1A) {
new tmp[256];
new tracedID;
new tracedIDName[MAX_PLAYER_NAME];
new current_zone;
current_zone = player_zone[tracedID];
tmp = strtok(cmdtext, idx);
tracedID = strval(tmp);
if(!strlen(tmp)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /sus [Player ID] [Level/Reason]");
return 1;
}
if (strlen(cmdtext) > 7){
if(dini_Exists("Suspects.txt"))
{
GetPlayerName(tracedID, tracedIDName, sizeof(tracedIDName));
if(gteam[tracedID]==Team_L1A) {
dini_Set("Suspects.txt", tracedIDName,cmdtext[7]);
//GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have suspected %s (ID:%d).", tracedIDName, tracedID);
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string, sizeof(string), "You are now a wanted suspect.");
SendClientMessage(tracedID, COLOR_BRIGHTRED, string);
SetPlayerColor(tracedID,COLOR_GREY);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendMessageToLawWhite(string);
format(string, sizeof(string), "POLICE DISPATCH");
SendMessageToLaw(string);
format(string, sizeof(string), "Be advised. The following is a wanted level update.");
SendMessageToLawGrey(string);
format(string, sizeof(string), "Suspect name: %s",tracedIDName);
SendMessageToLawGrey(string);
format(string, sizeof(string), "Suspect ID: %d",tracedID);
SendMessageToLawGrey(string);
format(string, sizeof(string), "Reason/Level: %s", cmdtext[7]);
SendMessageToLawGrey(string);
format(string, sizeof(string), "Issued by: Officer %s",sendername);
SendMessageToLawGrey(string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendMessageToLawWhite(string);
}else{
dini_Set("Suspects.txt", tracedIDName,cmdtext[7]);
//GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have suspected %s (ID:%d).", tracedIDName, tracedID);
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string, sizeof(string), "You are now a wanted suspect.");
SendClientMessage(tracedID, COLOR_BRIGHTRED, string);
//SetPlayerColor(tracedID,COLOR_ORANGE);
gteam[tracedID] = 29;
SetPlayerTeam(tracedID,29);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendMessageToLawWhite(string);
format(string, sizeof(string), "POLICE DISPATCH");
SendMessageToLaw(string);
format(string, sizeof(string), "Be advised. The following is a wanted level update.");
SendMessageToLawGrey(string);
format(string, sizeof(string), "Suspect name: %s",tracedIDName);
SendMessageToLawGrey(string);
format(string, sizeof(string), "Suspect ID: %d",tracedID);
SendMessageToLawGrey(string);
format(string, sizeof(string), "Reason/Level: %s", cmdtext[7]);
SendMessageToLawGrey(string);
format(string, sizeof(string), "Issued by: Officer %s",sendername);
SendMessageToLawGrey(string);
format(string, sizeof(string), "Last reported location: %s",zones[current_zone][zone_name]);
SendMessageToLawGrey(string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendMessageToLawWhite(string);
}
}
}
}
return 1;
}
if(strcmp(cmd, "/susd", true) == 0)
{
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid]==Team_SWAT || gteam[playerid]==Team_DCP || gteam[playerid]==Team_Army || gteam[playerid]==Team_ArmyMed || gteam[playerid]==Team_GOV || gteam[playerid]==Team_L1A) {
new tmp[256];
new wstatus[512];
new tracedID;
new tracedIDName[MAX_PLAYER_NAME];
new tmpcar = GetPlayerVehicleID(playerid);
if( !IsACopCar(tmpcar) ){
{
SendClientMessage(playerid, COLOR_RED, "You must be in a law enforcement vehicle in order to use this command.");
return 1;
}
}else{
tmp = strtok(cmdtext, idx);
tracedID = strval(tmp);
if(!strlen(tmp)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /susd [Player ID]");
return 1;
}
if(dini_Exists("Suspects.txt"))
{
GetPlayerName(tracedID, tracedIDName, sizeof(tracedIDName));
wstatus=dini_Get("Suspects.txt", tracedIDName);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "SAN ANDREAS SUSPECT DATABASE");
SendClientMessage(playerid, COLOR_CRIMBLUE, string);
format(string, sizeof(string), "Suspect name: %s", tracedIDName);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Suspect ID: %d", tracedID);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Reason/Level: %s",wstatus);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
}
return 1;
}
if(strcmp(cmd, "/unsus", true) == 0)
{
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid] ==Team_DCP || gteam[playerid] ==Team_DCPT || gteam[playerid] ==Team_Army || gteam[playerid] ==Team_ArmyMed || gteam[playerid]==Team_GOV || gteam[playerid]==Team_L1A){
new tmp[256];
new tracedID;
new tracedIDName[MAX_PLAYER_NAME];
tmp = strtok(cmdtext, idx);
tracedID = strval(tmp);
if(!strlen(tmp)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /unsus [Player ID]");
return 1;
}
if(dini_Exists("Suspects.txt"))
{
GetPlayerName(tracedID, tracedIDName, sizeof(tracedIDName));
if(gteam[tracedID]==Team_L1A) {
dini_Set("Suspects.txt", tracedIDName,"CLEAR (But criminal history present)");
//GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
//GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have unsuspected %s (ID:%d).", tracedIDName, tracedID);
SendClientMessage(playerid, COLOR_RED, string);
format(string, sizeof(string), "You are no longer wanted.");
SendClientMessage(tracedID, COLOR_GREEN, string);
format(string, sizeof(string), "(INFO) %s (ID:%d) is no longer a suspect.", tracedIDName, tracedID);
SendMessageToLaw(string);
TogglePlayerControllable(tracedID,1);
SetPlayerArmour(tracedID,0);
SetPlayerColor(tracedID,COLOR_GREY);
}else{
dini_Set("Suspects.txt", tracedIDName,"CLEAR (But criminal history present)");
//GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
//GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have unsuspected %s (ID:%d).", tracedIDName, tracedID);
SendClientMessage(playerid, COLOR_RED, string);
format(string, sizeof(string), "You are no longer wanted.");
SendClientMessage(tracedID, COLOR_GREEN, string);
format(string, sizeof(string), "(INFO) %s (ID:%d) is no longer a suspect.", tracedIDName, tracedID);
SendMessageToLaw(string);
printf(string);
format(string, sizeof(string), "Your weapons have been confiscated.");
SendClientMessage(tracedID, COLOR_RED, string);
ResetPlayerWeapons(tracedID);
gteam[tracedID] = 10;
SetPlayerTeam(tracedID,10);
//TogglePlayerControllable(tracedID,1);
SetPlayerArmour(tracedID,0);
SetPlayerColor(tracedID,COLOR_GREY);
}
}
}
return 1;
}
if(strcmp(cmd, "/cw", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /cw [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid]==Team_SWAT || gteam[playerid]==Team_DCP || gteam[playerid]==Team_Army || gteam[playerid]==Team_ArmyMed || IsPlayerAdmin(playerid) == 1) {
if (IsPlayerConnected(giveplayerid) && gteam[giveplayerid]!=Team_L1A ) {
if(GetDistanceBetweenPlayers(playerid,giveplayerid) < 8) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have confiscated %s's (ID:%d) weapons.", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
format(string, sizeof(string), "Your weapons have been confiscated.");
SendClientMessage(giveplayerid, COLOR_RED, string);
format(string, sizeof(string), "(INFO) %s's (ID:%d) weapons have been confiscated.", giveplayer, giveplayerid);
SendMessageToLaw(string);
printf(string);
ResetPlayerWeapons(giveplayerid);
SetPlayerArmour(giveplayerid,0);
}else {
format(string, sizeof(string), "ID %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
}
}
return 1;
}
if(strcmp(cmd, "/makeciv", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /makeciv [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if(IsPlayerAdmin(playerid) == 1){
GetPlayerName(giveplayerid, giveplayername, sizeof(giveplayername));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "(ADMININFO) %s (ID:%d) has been rendered a civilian.", giveplayername, giveplayerid);
SendClientMessage(playerid,0xFF6406FF,string);
SetPlayerColor(giveplayerid,COLOR_GREY);
gteam[giveplayerid] = 10;
SetPlayerTeam(giveplayerid,10);
}
return 1;
}
if(strcmp(cmd, "/taze", true) == 0 || strcmp(cmd, "/ta", true) == 0){
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /taze [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid]==Team_DCPT || gteam[playerid]==Team_DCP || gteam[playerid]==Team_Army || gteam[playerid]==Team_ArmyMed || IsPlayerAdmin(playerid) == 1) {
if (IsPlayerConnected(giveplayerid) && gteam[giveplayerid]!=Team_L1A ) {
if(InjuredPlayer[giveplayerid] == 0){
if(GetDistanceBetweenPlayers(playerid,giveplayerid) < 20) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have tazed %s's (ID:%d).", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
format(string, sizeof(string), "You have been tazed.");
SendClientMessage(giveplayerid, COLOR_RED, string);
format(string, sizeof(string), "Three seconds to incapacitation.");
SendClientMessage(giveplayerid, COLOR_GREY, string);
format(string, sizeof(string), "(INFO) %s's (ID:%d) has been tazed by officer %s (Unit %d).", giveplayer, giveplayerid, sendername, playerid);
SendMessageToLaw(string);
printf(string);
//TogglePlayerControllable(giveplayerid,0);
SetTimerEx("Taze1", 3000, 0, "i", giveplayerid);
}else {
format(string, sizeof(string), "ID %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
}
}
}
return 1;
}
//============================================================= SEAT COMMAND =============================================================================================================
//========================================================================================================================================================================================
if(strcmp(cmd, "/seat2", true) == 0) {
new tmp[256];
new vehicleid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /seat[2, 3 or 4] [Player ID] [Vehicle ID]");
return 1;
}
giveplayerid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /seat[2, 3 or 4] [Player ID] [Vehicle ID]");
return 1;
}
vehicleid = strval(tmp);
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid]==Team_SWAT || gteam[playerid]==Team_DCP || gteam[playerid]==Team_Army || gteam[playerid]==Team_ArmyMed || gteam[playerid]==Team_GOV || IsPlayerAdmin(playerid) == 1) {
if (IsPlayerConnected(giveplayerid) && gteam[giveplayerid]!=Team_L1A ) {
if(InjuredPlayer[giveplayerid] == 0){
if(GetDistanceBetweenPlayers(playerid,giveplayerid) < 15) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have placed %s (ID:%d) inside a vehicle.", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "You have been placed inside the police vehicle by Officer %s.", sendername);
SendClientMessage(giveplayerid, COLOR_RED, string);
format(string, sizeof(string), "(INFO) %s (ID:%d) has been placed in a police vehicle by Officer %s (Unit %d).", giveplayer, giveplayerid, sendername, playerid);
SendMessageToLaw(string);
printf(string);
format(string, sizeof(string), "Your weapons have been confiscated.");
SendClientMessage(giveplayerid, COLOR_RED, string);
gteam[giveplayerid] = 15;
SetPlayerTeam(giveplayerid,15);
SetPlayerColor(giveplayerid,COLOR_LIGHTBLUE);
ResetPlayerWeapons(giveplayerid);
TogglePlayerControllable(giveplayerid,0);
SetPlayerArmour(giveplayerid,0);
PutPlayerInVehicle(giveplayerid,vehicleid,2);
}
else {
format(string, sizeof(string), "ID %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
}
}
}
return 1;
}
if(strcmp(cmd, "/seat3", true) == 0) {
new tmp[256];
new vehicleid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /seat[2, 3 or 4] [Player ID] [Vehicle ID]");
return 1;
}
giveplayerid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /seat[2, 3 or 4] [Player ID] [Vehicle ID]");
return 1;
}
vehicleid = strval(tmp);
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid]==Team_SWAT || gteam[playerid]==Team_DCP || gteam[playerid]==Team_Army || gteam[playerid]==Team_ArmyMed || gteam[playerid]==Team_GOV || IsPlayerAdmin(playerid) == 1) {
if (IsPlayerConnected(giveplayerid) && gteam[giveplayerid]!=Team_L1A ) {
if(InjuredPlayer[giveplayerid] == 0){
if(GetDistanceBetweenPlayers(playerid,giveplayerid) < 15) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have placed %s (ID:%d) inside a vehicle.", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "You have been placed inside the police vehicle by Officer %s.", sendername);
SendClientMessage(giveplayerid, COLOR_RED, string);
format(string, sizeof(string), "(INFO) %s (ID:%d) has been placed in a police vehicle by Officer %s (Unit %d).", giveplayer, giveplayerid, sendername, playerid);
SendMessageToLaw(string);
printf(string);
format(string, sizeof(string), "Your weapons have been confiscated.");
SendClientMessage(giveplayerid, COLOR_RED, string);
gteam[giveplayerid] = 15;
SetPlayerTeam(giveplayerid,15);
SetPlayerColor(giveplayerid,COLOR_LIGHTBLUE);
ResetPlayerWeapons(giveplayerid);
TogglePlayerControllable(giveplayerid,0);
SetPlayerArmour(giveplayerid,0);
PutPlayerInVehicle(giveplayerid,vehicleid,3);
}
else {
format(string, sizeof(string), "ID %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
}
}
}
return 1;
}
if(strcmp(cmd, "/seat4", true) == 0) {
new tmp[256];
new vehicleid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /seat[2, 3 or 4] [Player ID] [Vehicle ID]");
return 1;
}
giveplayerid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /seat[2, 3 or 4] [Player ID] [Vehicle ID]");
return 1;
}
vehicleid = strval(tmp);
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid]==Team_SWAT || gteam[playerid]==Team_DCP || gteam[playerid]==Team_Army || gteam[playerid]==Team_ArmyMed || gteam[playerid]==Team_GOV || IsPlayerAdmin(playerid) == 1) {
if (IsPlayerConnected(giveplayerid) && gteam[giveplayerid]!=Team_L1A ) {
if(InjuredPlayer[giveplayerid] == 0){
if(GetDistanceBetweenPlayers(playerid,giveplayerid) < 15) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have placed %s (ID:%d) inside a vehicle.", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "You have been placed inside the police vehicle by Officer %s.", sendername);
SendClientMessage(giveplayerid, COLOR_RED, string);
format(string, sizeof(string), "(INFO) %s (ID:%d) has been placed in a police vehicle by Officer %s (Unit %d).", giveplayer, giveplayerid, sendername, playerid);
SendMessageToLaw(string);
printf(string);
format(string, sizeof(string), "Your weapons have been confiscated.");
SendClientMessage(giveplayerid, COLOR_RED, string);
gteam[giveplayerid] = 15;
SetPlayerTeam(giveplayerid,15);
SetPlayerColor(giveplayerid,COLOR_LIGHTBLUE);
ResetPlayerWeapons(giveplayerid);
TogglePlayerControllable(giveplayerid,0);
SetPlayerArmour(giveplayerid,0);
PutPlayerInVehicle(giveplayerid,vehicleid,4);
}
else {
format(string, sizeof(string), "ID %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
}
}
}
return 1;
}
if(strcmp(cmd, "/unseat", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /unseat [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid]==Team_SWAT || gteam[playerid]==Team_DCP || gteam[playerid]==Team_Army || gteam[playerid]==Team_ArmyMed || gteam[playerid]==Team_GOV || IsPlayerAdmin(playerid) == 1) {
if (IsPlayerConnected(giveplayerid) && gteam[giveplayerid]!=Team_L1A ) {
if(InjuredPlayer[giveplayerid] == 0){
if(GetDistanceBetweenPlayers(playerid,giveplayerid) < 8) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have removed %s (ID:%d) from the vehicle.", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
format(string, sizeof(string), "You have been removed from the police vehicle by Officer %s.", sendername);
SendClientMessage(giveplayerid, COLOR_GREEN, string);
format(string, sizeof(string), "(INFO) %s (ID:%d) has been removed from the police vehicle by Officer %s (Unit %d).", giveplayer, giveplayerid, sendername, playerid);
SendMessageToLaw(string);
printf(string);
format(string, sizeof(string), "Your weapons have been confiscated.");
SendClientMessage(giveplayerid, COLOR_RED, string);
gteam[giveplayerid] = 15;
SetPlayerTeam(giveplayerid,15);
SetPlayerColor(giveplayerid,COLOR_LIGHTBLUE);
ResetPlayerWeapons(giveplayerid);
TogglePlayerControllable(giveplayerid,1);
SetPlayerArmour(giveplayerid,0);
RemovePlayerFromVehicle(giveplayerid);
}
else {
format(string, sizeof(string), "ID %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
}
}
}
return 1;
}
// --------------- FOR EMS ------------------------------------------
if(strcmp(cmd, "/place2", true) == 0) {
new tmp[256];
new vehicleid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /place[2, 3 or 4] [Player ID] [Vehicle ID]");
return 1;
}
giveplayerid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /place[2, 3 or 4] [Player ID] [Vehicle ID]");
return 1;
}
vehicleid = strval(tmp);
if(gteam[playerid]==Team_EMS || gteam[playerid]==Team_Fire) {
if (IsPlayerConnected(giveplayerid) && gteam[giveplayerid]!=Team_L1A ) {
if(GetDistanceBetweenPlayers(playerid,giveplayerid) < 15) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have placed %s (ID:%d) inside a vehicle.", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "You have been placed inside the EMS vehicle by Paramedic %s.", sendername);
SendClientMessage(giveplayerid, COLOR_RED, string);
format(string, sizeof(string), "(INFO) %s (ID:%d) has been placed in a EMS vehicle by Paramedic %s (Unit %d).", giveplayer, giveplayerid, sendername, playerid);
SendMessageToEMS(string);
printf(string);
TogglePlayerControllable(giveplayerid,0);
PutPlayerInVehicle(giveplayerid,vehicleid,2);
}
else {
format(string, sizeof(string), "ID %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
}
}
return 1;
}
if(strcmp(cmd, "/place3", true) == 0) {
new tmp[256];
new vehicleid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /place[2, 3 or 4] [Player ID] [Vehicle ID]");
return 1;
}
giveplayerid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /place[2, 3 or 4] [Player ID] [Vehicle ID]");
return 1;
}
vehicleid = strval(tmp);
if(gteam[playerid]==Team_EMS || gteam[playerid]==Team_Fire) {
if (IsPlayerConnected(giveplayerid) && gteam[giveplayerid]!=Team_L1A ) {
if(GetDistanceBetweenPlayers(playerid,giveplayerid) < 15) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have placed %s (ID:%d) inside a vehicle.", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "You have been placed inside the EMS vehicle by Paramedic %s.", sendername);
SendClientMessage(giveplayerid, COLOR_RED, string);
format(string, sizeof(string), "(INFO) %s (ID:%d) has been placed in a EMS vehicle by Paramedic %s (Unit %d).", giveplayer, giveplayerid, sendername, playerid);
SendMessageToEMS(string);
printf(string);
TogglePlayerControllable(giveplayerid,0);
PutPlayerInVehicle(giveplayerid,vehicleid,3);
}
else {
format(string, sizeof(string), "ID %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
}
}
return 1;
}
if(strcmp(cmd, "/place4", true) == 0) {
new tmp[256];
new vehicleid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /place[2, 3 or 4] [Player ID] [Vehicle ID]");
return 1;
}
giveplayerid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /place[2, 3 or 4] [Player ID] [Vehicle ID]");
return 1;
}
vehicleid = strval(tmp);
if(gteam[playerid]==Team_EMS || gteam[playerid]==Team_Fire) {
if (IsPlayerConnected(giveplayerid) && gteam[giveplayerid]!=Team_L1A ) {
if(GetDistanceBetweenPlayers(playerid,giveplayerid) < 15) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have placed %s (ID:%d) inside a vehicle.", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "You have been placed inside the EMS vehicle by Paramedic %s.", sendername);
SendClientMessage(giveplayerid, COLOR_RED, string);
format(string, sizeof(string), "(INFO) %s (ID:%d) has been placed in a EMS vehicle by Paramedic %s (Unit %d).", giveplayer, giveplayerid, sendername, playerid);
SendMessageToEMS(string);
printf(string);
TogglePlayerControllable(giveplayerid,0);
PutPlayerInVehicle(giveplayerid,vehicleid,4);
}
else {
format(string, sizeof(string), "ID %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
}
}
return 1;
}
if(strcmp(cmd, "/remove", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /remove [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if(gteam[playerid]==Team_EMS || gteam[playerid]==Team_Fire) {
if (IsPlayerConnected(giveplayerid) && gteam[giveplayerid]!=Team_L1A ) {
if(GetDistanceBetweenPlayers(playerid,giveplayerid) < 8) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have removed %s (ID:%d) from the vehicle.", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
format(string, sizeof(string), "You have been removed from the EMS vehicle by Paramedic %s.", sendername);
SendClientMessage(giveplayerid, COLOR_GREEN, string);
format(string, sizeof(string), "(INFO) %s (ID:%d) has been removed from the EMS vehicle by Paramedic %s (Unit %d).", giveplayer, giveplayerid, sendername, playerid);
SendMessageToEMS(string);
printf(string);
ResetPlayerWeapons(giveplayerid);
TogglePlayerControllable(giveplayerid,1);
RemovePlayerFromVehicle(giveplayerid);
}
else {
format(string, sizeof(string), "ID %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
}
}
return 1;
}
//============================================================= END ======================================================================================================================
//========================================================================================================================================================================================
//TAXI COMMANDS
if(strcmp(cmd, "/hold", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /hold [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if(gteam[playerid]==Team_Taxi || gteam[playerid]==Team_SATA) {
if (IsPlayerConnected(giveplayerid) && gteam[giveplayerid]!=Team_L1A ) {
if(IsPlayerInAnyVehicle(giveplayerid)){
if(GetDistanceBetweenPlayers(giveplayerid,playerid) < 8) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "You have locked the taxi doors. Passenger %s (ID:%d) cannot exit the vehicle until released.", giveplayer);
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "The taxi's doors have been locked by the driver (%s).", sendername);
SendClientMessage(giveplayerid, COLOR_RED, string);
printf(string);
format(string, sizeof(string), "You must pay the charge indicated by the driver once at destination in order to be released.");
SendClientMessage(giveplayerid, COLOR_RED, string);
TogglePlayerControllable(giveplayerid,0);
}
else {
format(string, sizeof(string), "ID %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
}
}
}
return 1;
}
if(strcmp(cmd, "/release", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /release [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if(gteam[playerid]==Team_Taxi || gteam[playerid]==Team_SATA) {
if (IsPlayerConnected(giveplayerid) && gteam[giveplayerid]!=Team_L1A ) {
if(IsPlayerInAnyVehicle(giveplayerid)){
if(GetDistanceBetweenPlayers(giveplayerid,playerid) < 8) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Unlocked the taxi doors. Passenger %s (ID:%d) can now exit the vehicle.", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
format(string, sizeof(string), "The taxi's doors have been unlocked by the driver (%s).", sendername);
SendClientMessage(giveplayerid, COLOR_GREEN, string);
printf(string);
TogglePlayerControllable(giveplayerid,1);
}
else {
format(string, sizeof(string), "ID %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
}
}
}
return 1;
}
//goto command
if(strcmp(cmd, "/goto", true) == 0) {
if(IsPlayerAdmin(playerid) == 1 || (L2M[playerid]==1) || (L3M[playerid]==1) ){
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendPlayerFormattedText(playerid,"USAGE: /goto [Player ID]",0);
} else {
if(!IsPlayerConnected(strval(tmp)) || IsPlayerAdmin(strval(tmp)) == 1) {
SendPlayerFormattedText(playerid,"Invalid Player ID.",0);
} else {
new Float:X;
new Float:Y;
new Float:Z;
new Float:Angle;
if(IsPlayerInAnyVehicle(playerid)) {
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
GetPlayerPos(strval(tmp),X,Y,Z);
GetPlayerFacingAngle(strval(tmp),Angle);
SetVehiclePos(VehicleID, X + 0.01, Y + 0.01, Z);
SetPlayerFacingAngle(playerid,Angle);
} else {
GetPlayerPos(strval(tmp),X,Y,Z);
GetPlayerFacingAngle(strval(tmp),Angle);
SetPlayerFacingAngle(playerid,Angle);
SetPlayerPos(playerid, X + 0.01, Y + 0.01, Z);
}
new tempstr[256];
GetPlayerName(strval(tmp),giveplayername,sizeof(giveplayername));
format(tempstr, sizeof(tempstr), "(MODINFO) You have been teleported to %s's location.",giveplayername);
//SendPlayerFormattedTextg(playerid,tempstr,0);
SendClientMessage(playerid, 0xFF7B24FF, tempstr);
}
}
}
return 1;
}
// sky dive
if(strcmp(cmd, "/dive", true) == 0) {
if (GetPlayerMoney(playerid) > 4999){
GivePlayerMoney(playerid,-5000);
new Float:x;
new Float:y;
new Float:z;
GivePlayerWeapon(playerid,46,1);
GetPlayerPos(playerid,x,y,z);
SetPlayerPos(playerid,x,y,z+2000);
SendClientMessage(playerid,COLOR_YELLOW,"You have chosen to go skydiving!");
SendClientMessage(playerid,COLOR_YELLOW,"A $5000 fee has been applied.");
}
else{
SendClientMessage(playerid,COLOR_RED,"Sorry, but you do not have enough money to partake in this activity.");
}
return 1;
}
//--------------------------------/AFK AND /BACK--------------------------------//
if(strcmp(cmd, "/afk", true) == 0) {
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
new namestr[255];
new name[MAX_PLAYER_NAME];
SetPlayerColor(playerid, 0x00000000);
GetPlayerName(playerid,name,sizeof(name));
format(namestr,sizeof(namestr),"(STATUSINFO) %s has changed his status to AFK.",name);
SendClientMessageToAll(0xF4F4F4FF,namestr);
format(namestr,sizeof(namestr),"You will be automatically disconnected from the server after 20 minutes of inactivity.");
SendClientMessage(playerid,COLOR_GREY,namestr);
SetCameraBehindPlayer(playerid);
TogglePlayerControllable(playerid, false);
afk[playerid]=1;
SetTimerEx("AutokickAFK", 1200000, 0, "i", giveplayerid);
}
}
}
return 1;
}
if(strcmp(cmd, "/brb", true) == 0) {
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
new namestr[255];
new name[MAX_PLAYER_NAME];
SetPlayerColor(playerid, 0x00000000);
GetPlayerName(playerid,name,sizeof(name));
format(namestr,sizeof(namestr),"(STATUSINFO) %s has changed his status to BRB.",name);
SendClientMessageToAll(0xF4F4F4FF,namestr);
format(namestr,sizeof(namestr),"You will be automatically disconnected from the server after 5 minutes of inactivity.");
SendClientMessage(playerid,COLOR_GREY,namestr);
SetCameraBehindPlayer(playerid);
TogglePlayerControllable(playerid, false);
brb[playerid]=1;
SetTimerEx("AutokickBRB", 300000, 0, "i", giveplayerid);
}
}
}
return 1;
}
if(strcmp(cmd, "/back", true) == 0) {
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(InjuredPlayer[playerid] == 1){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are critically injured.");
}else{
new namestr[255];
new name[MAX_PLAYER_NAME];
SetPlayerColor(playerid,COLOR_GREY);
GetPlayerName(playerid,name,sizeof(name));
format(namestr,sizeof(namestr),"(STATUSINFO) %s has changed his status to BACK.",name);
SendClientMessageToAll(0xF4F4F4FF,namestr);
SetCameraBehindPlayer(playerid);
TogglePlayerControllable(playerid, true);
afk[playerid]=0;
brb[playerid]=0;
}
}
}
return 1;
}
//----------------------------------- END -------------------------------------//
if(strcmp(cmd, "/repair", true) == 0)
{
if(gteam[playerid]==Team_UTIL || gteam[playerid]==Team_LSPD || gteam[playerid]==Team_SFPD || gteam[playerid]==Team_SWAT || gteam[playerid]==Team_SASP || gteam[playerid]==Team_DCP || gteam[playerid]==Team_DCPT || gteam[playerid]==Team_GOV || gteam[playerid]==Team_Army || gteam[playerid]==Team_ArmyMed || IsPlayerAdmin(playerid) == 1){
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "You need to be inside a vehicle to repair it.");
//if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, COLOR_YELLOW, "You need $1000 to repair your vehicle.");
new Float:vhealth; GetVehicleHealth(GetPlayerVehicleID(playerid),vhealth);
if(vhealth == 1000) return SendClientMessage(playerid, COLOR_RED, "This vehicle does not require servicing.");
//GivePlayerMoney(playerid, - 1000);
SetVehicleHealth(GetPlayerVehicleID(playerid),1000.0);
SendClientMessage(playerid, COLOR_GREEN, "The vehicle has been repaired.");
}
return 1;
}
if(strcmp(cmd, "/setplate", true) == 0) {
new playername[MAX_PLAYER_NAME];
if (GetPlayerMoney(playerid) >= 1000){
if (strlen(cmdtext) > 10){
if (IsPlayerConnected(playerid)) {
if(IsPlayerInAnyVehicle(playerid)) {
GetPlayerName(playerid,playername,sizeof(playername));
format(string, sizeof(string), "(INFO) Vehicle plate changed to %s.",cmdtext[10]);
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string, sizeof(string), "This vehicle is now registered to %s.",playername);
SendClientMessage(playerid, COLOR_GREY, string);
printf(string);
SetVehicleNumberPlate(GetPlayerVehicleID(playerid), cmdtext[10]);
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
GivePlayerMoney(playerid,-1000);
if(dini_Exists("Plates.txt")){
GetPlayerName(playerid,playername,sizeof(playername));
dini_Set("Plates.txt",cmdtext[10], playername);
}
}else{
SendClientMessage(playerid, COLOR_RED, "You must be in a vehicle in order to use this command.");
}
}
}else{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setplate [Text (Maximum 8 characters - use ONLY numbers, letters or spaces)]");
SendClientMessage(playerid, COLOR_GREY, "Please note that not all vehicles are compatible with custom license plates.");
}
}else{
SendClientMessage(playerid, COLOR_RED, "You do not have enough money to alter your license plate.");
SendClientMessage(playerid, COLOR_GREY, "The cost for this service is $1000.");
}
return 1;
}
//======================================================= RANK COMMANDS ========================================================================================================================
if(strcmp(cmd, "/clearunitid", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /clearunitid [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if(IsPlayerAdmin(playerid) == 1 || gteam[playerid]==Team_SFPD || gteam[playerid]==Team_LSPD || gteam[playerid]==Team_SWAT || gteam[playerid]==Team_SASP || gteam[playerid]==Team_DCP) {
if(dini_Exists("UnitIDs.txt")){
if (IsPlayerConnected(playerid)) {
GetPlayerName(giveplayerid,giveplayername,sizeof(giveplayername));
format(string, sizeof(string), "(INFO) %s's unit ID has been cleared.",giveplayername);
SendClientMessage(playerid, COLOR_BLUE, string);
dini_Set("UnitIDs.txt",giveplayername,"");
}
}
}
return 1;
}
if(strcmp(cmd, "/setunitida", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setunitid(a,g,k,l,s) [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if(IsPlayerAdmin(playerid) == 1 || gteam[playerid]==Team_SFPD || gteam[playerid]==Team_LSPD || gteam[playerid]==Team_SWAT || gteam[playerid]==Team_SASP || gteam[playerid]==Team_DCP) {
if(dini_Exists("UnitIDs.txt")){
if (IsPlayerConnected(playerid)) {
GetPlayerName(giveplayerid,giveplayername,sizeof(giveplayername));
format(string, sizeof(string), "(INFO) %s's unit ID has been set to Adam.",giveplayername);
SendClientMessage(playerid, COLOR_BLUE, string);
dini_Set("UnitIDs.txt",giveplayername, "Adam");
}
}
}
return 1;
}
if(strcmp(cmd, "/setunitidg", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setunitid(a,g,k,l,s) [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if(IsPlayerAdmin(playerid) == 1 || gteam[playerid]==Team_SFPD || gteam[playerid]==Team_LSPD || gteam[playerid]==Team_SWAT || gteam[playerid]==Team_SASP || gteam[playerid]==Team_DCP) {
if(dini_Exists("UnitIDs.txt")){
if (IsPlayerConnected(playerid)) {
GetPlayerName(giveplayerid,giveplayername,sizeof(giveplayername));
format(string, sizeof(string), "(INFO) Officer %s's unit ID has been set to George.",giveplayername);
SendClientMessage(playerid, COLOR_BLUE, string);
dini_Set("UnitIDs.txt",giveplayername, "George");
}
}
}
return 1;
}
if(strcmp(cmd, "/setunitidk", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setunitid(a,g,k,l,s) [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if(IsPlayerAdmin(playerid) == 1 || gteam[playerid]==Team_SFPD || gteam[playerid]==Team_LSPD || gteam[playerid]==Team_SWAT || gteam[playerid]==Team_SASP || gteam[playerid]==Team_DCP) {
if(dini_Exists("UnitIDs.txt")){
if (IsPlayerConnected(playerid)) {
GetPlayerName(giveplayerid,giveplayername,sizeof(giveplayername));
format(string, sizeof(string), "(INFO) Supervisor %s's unit ID has been set to King.",giveplayername);
SendClientMessage(playerid, COLOR_BLUE, string);
dini_Set("UnitIDs.txt",giveplayername, "King");
}
}
}
return 1;
}
if(strcmp(cmd, "/setunitidl", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setunitid(a,g,k,l,s) [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if(IsPlayerAdmin(playerid) == 1 || gteam[playerid]==Team_SFPD || gteam[playerid]==Team_LSPD || gteam[playerid]==Team_SWAT || gteam[playerid]==Team_SASP || gteam[playerid]==Team_DCP) {
if(dini_Exists("UnitIDs.txt")){
if (IsPlayerConnected(playerid)) {
GetPlayerName(giveplayerid,giveplayername,sizeof(giveplayername));
format(string, sizeof(string), "(INFO) Lieutenant %s's unit ID has been set to Lincoln.",giveplayername);
SendClientMessage(playerid, COLOR_BLUE, string);
dini_Set("UnitIDs.txt",giveplayername, "Lincoln");
}
}
}
return 1;
}
if(strcmp(cmd, "/setunitids", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setunitid(a,g,k,l,s) [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if(IsPlayerAdmin(playerid) == 1 || gteam[playerid]==Team_SFPD || gteam[playerid]==Team_LSPD || gteam[playerid]==Team_SWAT || gteam[playerid]==Team_SASP || gteam[playerid]==Team_DCP) {
if(dini_Exists("UnitIDs.txt")){
if (IsPlayerConnected(playerid)) {
GetPlayerName(giveplayerid,giveplayername,sizeof(giveplayername));
format(string, sizeof(string), "(INFO) Sergeant %s's unit ID has been set to Sam.",giveplayername);
SendClientMessage(playerid, COLOR_BLUE, string);
dini_Set("UnitIDs.txt",giveplayername, "Sam");
}
}
}
return 1;
}
//------------------------- RANKS -------------------------------------------------------------------------
if(strcmp(cmd, "/setranka", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setrank(a,g,k,l,s) [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if(IsPlayerAdmin(playerid) == 1 || gteam[playerid]==Team_SFPD || gteam[playerid]==Team_LSPD || gteam[playerid]==Team_SWAT) {
if(dini_Exists("Ranks.txt")){
if (IsPlayerConnected(playerid)) {
GetPlayerName(giveplayerid,giveplayername,sizeof(giveplayername));
format(string, sizeof(string), "(INFO) %s's rank has been set to Commissioner.",giveplayername);
SendClientMessage(playerid, COLOR_BLUE, string);
dini_Set("Ranks.txt",giveplayername, "Commissioner");
}
}
}
return 1;
}
if(strcmp(cmd, "/setranka2", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setrank(a,a2,g,k,l,s) [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if(IsPlayerAdmin(playerid) == 1 || gteam[playerid]==Team_SFPD || gteam[playerid]==Team_LSPD || gteam[playerid]==Team_SWAT) {
if(dini_Exists("Ranks.txt")){
if (IsPlayerConnected(playerid)) {
GetPlayerName(giveplayerid,giveplayername,sizeof(giveplayername));
format(string, sizeof(string), "(INFO) %s's rank has been set to Deputy Commissioner.",giveplayername);
SendClientMessage(playerid, COLOR_BLUE, string);
dini_Set("Ranks.txt",giveplayername, "Deputy Commissioner");
}
}
}
return 1;
}
if(strcmp(cmd, "/setrankg", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setrank(a,a2,g,k,l,s) [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if(IsPlayerAdmin(playerid) == 1 || gteam[playerid]==Team_SFPD || gteam[playerid]==Team_LSPD || gteam[playerid]==Team_SWAT) {
if(dini_Exists("Ranks.txt")){
if (IsPlayerConnected(playerid)) {
GetPlayerName(giveplayerid,giveplayername,sizeof(giveplayername));
format(string, sizeof(string), "(INFO) %s's rank has been set to Officer.",giveplayername);
SendClientMessage(playerid, COLOR_BLUE, string);
dini_Set("Ranks.txt",giveplayername, "Officer");
}
}
}
return 1;
}
if(strcmp(cmd, "/setrankk", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setrank(a,a2,g,k,l,s) [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if(IsPlayerAdmin(playerid) == 1 || gteam[playerid]==Team_SFPD || gteam[playerid]==Team_LSPD || gteam[playerid]==Team_SWAT) {
if(dini_Exists("Ranks.txt")){
if (IsPlayerConnected(playerid)) {
GetPlayerName(giveplayerid,giveplayername,sizeof(giveplayername));
format(string, sizeof(string), "(INFO) %s's rank has been set to Supervisor.",giveplayername);
SendClientMessage(playerid, COLOR_BLUE, string);
dini_Set("Ranks.txt",giveplayername, "Supervisor");
}
}
}
return 1;
}
if(strcmp(cmd, "/setrankl", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setrank(a,a2,g,k,l,s) [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if(IsPlayerAdmin(playerid) == 1 || gteam[playerid]==Team_SFPD || gteam[playerid]==Team_LSPD || gteam[playerid]==Team_SWAT) {
if(dini_Exists("Ranks.txt")){
if (IsPlayerConnected(playerid)) {
GetPlayerName(giveplayerid,giveplayername,sizeof(giveplayername));
format(string, sizeof(string), "(INFO) %s's rank has been set to Lieutenant.",giveplayername);
SendClientMessage(playerid, COLOR_BLUE, string);
dini_Set("Ranks.txt",giveplayername, "Lieutenant");
}
}
}
return 1;
}
if(strcmp(cmd, "/setranks", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setrank(a,a2,g,k,l,s) [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
if(IsPlayerAdmin(playerid) == 1 || gteam[playerid]==Team_SFPD || gteam[playerid]==Team_LSPD || gteam[playerid]==Team_SWAT) {
if(dini_Exists("Ranks.txt")){
if (IsPlayerConnected(playerid)) {
GetPlayerName(giveplayerid,giveplayername,sizeof(giveplayername));
format(string, sizeof(string), "(INFO) %s's rank has been set to Sergeant.",giveplayername);
SendClientMessage(playerid, COLOR_BLUE, string);
dini_Set("Ranks.txt",giveplayername, "Sergeant");
}
}
}
return 1;
}
//================================================== END =======================================================================================================================================
if(strcmp(cmd, "/s", true) == 0) {
new playername[MAX_PLAYER_NAME];
new UnitIdentifier[512];
GetPlayerName(playerid, playername, sizeof(playername));
UnitIdentifier = dini_Get("UnitIDs.txt",playername);
if (strlen(cmdtext) > 3){
if (IsPlayerConnected(playerid)) {
if(IsPlayerAdmin(playerid) == 1 || gteam[playerid]==Team_SFPD || gteam[playerid]==Team_LSPD || gteam[playerid]==Team_SWAT || gteam[playerid]==Team_SASP || gteam[playerid]==Team_DCP) {
GetPlayerName(playerid,playername,sizeof(playername));
format(string, sizeof(string), "(DCPCOM) %s %d: %s.",UnitIdentifier,playerid,cmdtext[3]);
SendMessageToLaw(string);
if(dini_Exists("OfficerStatus.txt")){
GetPlayerName(playerid,playername,sizeof(playername));
dini_Set("OfficerStatus.txt",playername, cmdtext[3]);
}
}
}
}else{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /s [And state your status and location]");
SendClientMessage(playerid, COLOR_GREY, "YOU MUST USE THE APPROPRIATE POLICE CODES FOR THIS.");
}
return 1;
}
if(strcmp(cmd, "/stat", true) == 0 || strcmp(cmd, "/status", true) == 0) {
new playername[MAX_PLAYER_NAME];
new UnitIdentifier[512];
new Status[256];
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /stat(us) [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
GetPlayerName(playerid, playername, sizeof(playername));
GetPlayerName(giveplayerid, giveplayername, sizeof(giveplayername));
UnitIdentifier = dini_Get("UnitIDs.txt",giveplayername);
Status = dini_Get("OfficerStatus.txt",giveplayername);
if (IsPlayerConnected(playerid)) {
if(PlayerIsADispatcher[playerid]==1) {
if(strlen(dini_Get("OfficerStatus.txt",giveplayername))!=0) {
if(gteam[giveplayerid]==Team_SFPD || gteam[giveplayerid]==Team_LSPD || gteam[giveplayerid]==Team_SWAT || gteam[giveplayerid]==Team_SASP || gteam[giveplayerid]==Team_DCP) {
GetPlayerName(playerid,playername,sizeof(playername));
format(string, sizeof(string), "(STATUSINFO) %s %d: %s.",UnitIdentifier,giveplayerid,Status);
SendClientMessage(playerid,COLOR_BLUE, string);
}else{
SendClientMessage(playerid, COLOR_RED, "The person specified is not a law enforcement unit.");
}
}else{
SendClientMessage(playerid, COLOR_RED, "(STATUSINFO) Status unknown.");
}
}
}
return 1;
}
if(strcmp(cmdtext,"/locate",true,7) == 0 && strlen(cmdtext) > 7) { // L1A = SF CITY LIMITS
new playername[MAX_PLAYER_NAME],message2[256];
new target, current_zone;
target = strval(cmdtext[7]);
current_zone = player_zone[target];
if(current_zone != -1 && IsPlayerConnected(target) ){
if(IsPlayerAdmin(target)== 0){
GetPlayerName(target,playername,MAX_PLAYER_NAME);
format(message2,sizeof(message2),"(GPS) Locating...");
SendClientMessage(playerid,0xFFFF00AA,message2);
format(message2,sizeof(message2),"(GPS) Current location of %s: %s",playername,zones[current_zone][zone_name]);
SendClientMessage(playerid,0xFFFF00AA,message2);
}else{
GetPlayerName(target,playername,MAX_PLAYER_NAME);
format(message2,sizeof(message2),"(GPS) Locating...");
SendClientMessage(playerid,0xFFFF00AA,message2);
format(message2,sizeof(message2),"(GPS) Current location of %s: San Fierro City Limits",playername);
SendClientMessage(playerid,0xFFFF00AA,message2);
}
}else{
SendClientMessage(playerid,COLOR_RED,"(GPS) Unable to loacte.");
}
return 1;
}else if(strcmp(cmdtext,"/where",true,6) == 0 && strlen(cmdtext) <= 7) {
SendClientMessage(playerid,COLOR_RED,"USAGE: /locate [Player ID");
return 1;
}
// TELEPORTS ----------------------------------------------------------------
if(strcmp(cmdtext, "/battlet", true) == 0)
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if (GetPlayerMoney(playerid) >= 1000)
{
if(IsPlayerInCircle(playerid, -2109.6699,-442.5396,20) || IsPlayerInCircle(playerid, -1051.6392,1099.6512,20))
{
SetPlayerPos(playerid, -1133.0667,1050.9171,1345.7560);
SetPlayerInterior(playerid,10);
GivePlayerMoney(playerid, -1000);
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_WHITE,"WELCOME TO THE SAN ANDREAS PAINTBALL BATTLEFIELD");
SendClientMessage(playerid,COLOR_GREY,"You have been charged an entrance fee of $1000.");
SendClientMessage(playerid,COLOR_TAN,"You are on the TAN team.");
SendClientMessage(playerid,COLOR_GREY,"Your objective is to eliminate the opposing team.");
SendClientMessage(playerid,COLOR_GREY,"You may use /r [Message] to communicate with your team.");
SendClientMessage(playerid,COLOR_GREY,"To exit the battlefield at any time type /ExitBattle.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SetPlayerColor(playerid,0xBDB76BAA);
SetPlayerSkin(playerid, 122);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,8,1);
GivePlayerWeapon(playerid,23,100);
GivePlayerWeapon(playerid,29,100);
GivePlayerWeapon(playerid,27,100);
GivePlayerWeapon(playerid,30,500);
GivePlayerWeapon(playerid,34,40);
GivePlayerWeapon(playerid,35,5);
gteam[playerid] = 29;
SetPlayerTeam(playerid,29);
}
}else{
SendClientMessage(playerid,COLOR_RED,"You do not have enough money to enter.");
}
}
}
return 1;
}
if(strcmp(cmdtext, "/battlep", true) == 0)
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if (GetPlayerMoney(playerid) >= 1000)
{
if(IsPlayerInCircle(playerid, -2109.6699,-442.5396,20) || IsPlayerInCircle(playerid, -1051.6392,1099.6512,20))
{
SetPlayerPos(playerid, -973.0212,1067.7780,1345.0072);
SetPlayerInterior(playerid,10);
GivePlayerMoney(playerid, -1000);
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_WHITE,"WELCOME TO THE SAN ANDREAS PAINTBALL BATTLEFIELD");
SendClientMessage(playerid,COLOR_GREY,"You have been charged an entrance fee of $1000.");
SendClientMessage(playerid,COLOR_PURPLE,"You are on the PURPLE team.");
SendClientMessage(playerid,COLOR_GREY,"Your objective is to eliminate the opposing team.");
SendClientMessage(playerid,COLOR_GREY,"You may use /r [Message] to communicate with your team.");
SendClientMessage(playerid,COLOR_GREY,"To exit the battlefield at any time type /ExitBattle.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SetPlayerColor(playerid,0x800080AA);
SetPlayerSkin(playerid, 287);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,4,1);
GivePlayerWeapon(playerid,24,100);
GivePlayerWeapon(playerid,29,100);
GivePlayerWeapon(playerid,25,100);
GivePlayerWeapon(playerid,31,500);
GivePlayerWeapon(playerid,34,40);
GivePlayerWeapon(playerid,35,5);
gteam[playerid] = 30;
SetPlayerTeam(playerid,30);
}
}else{
SendClientMessage(playerid,COLOR_RED,"You do not have enough money to enter.");
}
}
}
return 1;
}
if(strcmp(cmdtext, "/exitbattle", true) == 0)
{
if(gteam[playerid] == Team_BattlePurple || gteam[playerid] == Team_BattleTan || IsPlayerInCircle(playerid, -1051.6392,1099.6512,20))
{
SetPlayerPos(playerid, -2119.5518,-444.1512,35.5313);
SetPlayerInterior(playerid,0);
SendClientMessage(playerid,COLOR_YELLOW,"You have exited the Paintball Battlefield.");
SetPlayerColor(playerid,COLOR_GREY);
SetPlayerSkin(playerid, 250);
ResetPlayerWeapons(playerid);
gteam[playerid] = 10;
SetPlayerTeam(playerid,10);
SetPlayerArmour(playerid,0);
LockLSPDCars(playerid);
LockSFPDCars(playerid);
LockSWATCars(playerid);
LockLVPDCars(playerid);
LockSASPCars(playerid);
LockArmyCars(playerid);
LockEMSCars(playerid);
LockFDSACars(playerid);
LockAdminCars(playerid);
LockGOVCars(playerid);
LockDMVCars(playerid);
LockSACars(playerid);
LockTAXICars(playerid);
LockUTILCars(playerid);
LockDCPTCars(playerid);
LockSANNCars(playerid);
LockSWATCars(playerid);
LockVIPCars(playerid);
}
return 1;
}
if(strcmp(cmdtext, "/entersfrace", true) == 0)
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if (GetPlayerMoney(playerid) >= 1000)
{
if(IsPlayerInCircle(playerid, -2109.6648,-445.7484,20) || IsPlayerInCircle(playerid, -1443.5007,933.1899,20) || IsPlayerInCircle(playerid, -1400.7296,903.8184,20))
{
SetPlayerPos(playerid, -1409.1992,895.2404,1041.5184);
SetPlayerInterior(playerid,15);
GivePlayerMoney(playerid, -1000);
ResetPlayerWeapons(playerid);
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_WHITE,"SAN FIERRO STADIUM");
SendClientMessage(playerid,COLOR_GREY,"Welcome to the San Fierro Stadium Racing Circuit.");
SendClientMessage(playerid,COLOR_GREY,"You have been charged an entrance fee of $1000.");
SendClientMessage(playerid,COLOR_GREY,"Your weapons were confiscated upon admission.");
SendClientMessage(playerid,COLOR_GREY,"Weapons are strictly prohibited in this area.");
SendClientMessage(playerid,COLOR_GREY,"Do not lock vehicles. A $5000 fine will be applied upon violation.");
SendClientMessage(playerid,COLOR_GREEN,"Please WAIT FOR THE OTHER RACERS and USE THE /COUNTDOWN command once ready.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
}else{
SendClientMessage(playerid,COLOR_RED,"You do not have enough money to enter.");
}
}
}
return 1;
}
if(strcmp(cmdtext, "/entersfderby", true) == 0)
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if (GetPlayerMoney(playerid) >= 1000)
{
if(IsPlayerInCircle(playerid, -2109.6648,-445.7484,20) || IsPlayerInCircle(playerid, -1443.5007,933.1899,20) || IsPlayerInCircle(playerid, -1400.7296,903.8184,20))
{
SetPlayerPos(playerid, -1442.4580,937.4117,1036.5376);
SetPlayerInterior(playerid,15);
GivePlayerMoney(playerid, -1000);
ResetPlayerWeapons(playerid);
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_WHITE,"SAN FIERRO STADIUM");
SendClientMessage(playerid,COLOR_GREY,"Welcome to the San Fierro Stadium Destruction Derby.");
SendClientMessage(playerid,COLOR_GREY,"You have been charged an entrance fee of $1000.");
SendClientMessage(playerid,COLOR_GREY,"Your weapons were confiscated upon admission.");
SendClientMessage(playerid,COLOR_GREY,"Weapons are strictly prohibited in this area.");
SendClientMessage(playerid,COLOR_GREY,"Do not lock vehicles. A $5000 fine will be applied upon violation.");
SendClientMessage(playerid,COLOR_GREEN,"Please WAIT FOR THE OTHER PARTICIPANTS and USE THE /COUNTDOWN command once ready.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
}else{
SendClientMessage(playerid,COLOR_RED,"You do not have enough money to enter.");
}
}
}
return 1;
}
if(strcmp(cmdtext, "/exitsfstadium", true) == 0)
{
if(IsPlayerInCircle(playerid, -2109.6648,-445.7484,20) || IsPlayerInCircle(playerid, -1443.5007,933.1899,20) || IsPlayerInCircle(playerid, -1400.7296,903.8184,20))
{
SetPlayerPos(playerid, -2119.5518,-444.1512,35.5313);
SetPlayerInterior(playerid,0);
SendClientMessage(playerid,COLOR_YELLOW,"You have exited the San Fierro Stadium.");
SetPlayerColor(playerid,COLOR_GREY);
ResetPlayerWeapons(playerid);
}
return 1;
}
if(strcmp(cmdtext, "/enterlsrace", true) == 0)
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if (GetPlayerMoney(playerid) >= 1000)
{
if(IsPlayerInCircle(playerid, 2695.6570,-1704.7561,20))
{
SetPlayerPos(playerid, -1403.0116,-250.4526,1043.5341);
SetPlayerInterior(playerid,7);
GivePlayerMoney(playerid, -1000);
ResetPlayerWeapons(playerid);
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_WHITE,"LOS SANTOS FORUM");
SendClientMessage(playerid,COLOR_GREY,"Welcome to the Los Santos Forum racing circuit.");
SendClientMessage(playerid,COLOR_GREY,"You have been charged an entrance fee of $1000.");
SendClientMessage(playerid,COLOR_GREY,"Your weapons were confiscated upon admission.");
SendClientMessage(playerid,COLOR_GREY,"Weapons are strictly prohibited in this area.");
SendClientMessage(playerid,COLOR_GREY,"Do not lock vehicles. A $5000 fine will be applied upon violation.");
SendClientMessage(playerid,COLOR_GREEN,"Please WAIT FOR THE OTHER PARTICIPANTS and USE THE /COUNTDOWN command once ready.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
}else{
SendClientMessage(playerid,COLOR_RED,"You do not have enough money to enter.");
}
}
}
return 1;
}
if(strcmp(cmdtext, "/exitlsrace", true) == 0)
{
if(IsPlayerInCircle(playerid, -1400.8896,-260.5912,20))
{
SetPlayerPos(playerid, 2692.1011,-1699.8306,10.4132);
SetPlayerInterior(playerid,0);
SendClientMessage(playerid,COLOR_YELLOW,"You have exited the Los Santos Forum.");
SetPlayerColor(playerid,COLOR_GREY);
ResetPlayerWeapons(playerid);
}
return 1;
}
if(strcmp(cmdtext, "/entercarinrace", true) == 0)
{
if(gteam[playerid]==Team_Jail){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are in custody.");
}else{
if(gteam[playerid]==Team_Wanted){
SendClientMessage(playerid,COLOR_RED,"You cannot use this command as you are currently wanted.");
}else{
if(IsPlayerInCircle(playerid, 2697.0134,-1672.6162,20))
{
if (GetPlayerMoney(playerid) >= 1000)
{
if(IsPlayerInAnyVehicle(playerid))
{
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID, -1406.4951,-252.4833,1043.5922);
//SetPlayerFacingAngle(playerid,?);
LinkVehicleToInterior(VehicleID,7);
SetPlayerInterior(playerid,7);
GivePlayerMoney(playerid, -1000);
ResetPlayerWeapons(playerid);
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_WHITE,"LOS SANTOS FORUM");
SendClientMessage(playerid,COLOR_GREY,"Welcome to the Los Santos Forum racing circuit.");
SendClientMessage(playerid,COLOR_GREY,"You have been charged an entrance fee of $1000.");
SendClientMessage(playerid,COLOR_GREY,"Your weapons were confiscated upon admission.");
SendClientMessage(playerid,COLOR_GREY,"Weapons are strictly prohibited in this area.");
SendClientMessage(playerid,COLOR_GREY,"PLEASE MOVE YOUR VEHICLE AWAY FROM THE SPAWN AREA.");
SendClientMessage(playerid,COLOR_GREEN,"Please WAIT FOR THE OTHER PARTICIPANTS and USE THE /COUNTDOWN command once ready.");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}else{
SendClientMessage(playerid,COLOR_RED,"You must be in a vehicle in order to access this feature.");
}
}else{
SendClientMessage(playerid,COLOR_RED,"You do not have enough money to enter.");
}
}
}
}
return 1;
}
if(strcmp(cmdtext, "/removecarfromrace", true) == 0)
{
if(IsPlayerInCircle(playerid, -1406.4951,-252.4833,20))
{
if(IsPlayerInAnyVehicle(playerid))
{
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID, 2696.8894,-1671.9799,9.4208);
SetPlayerFacingAngle(playerid,359.6617);
LinkVehicleToInterior(VehicleID,0);
SetPlayerInterior(playerid,0);
ResetPlayerWeapons(playerid);
SendClientMessage(playerid,COLOR_YELLOW,"You have exited the Los Santos Forum.");
}else{
SendClientMessage(playerid,COLOR_RED,"You must be in a vehicle in order to access this feature.");
}
}
return 1;
}
if(strcmp(cmdtext, "/utiljobd", true) == 0)
{
if(IsPlayerInCircle(playerid, -1874.0033,-218.2336,20))
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_YELLOW,"SAN ANDREAS PUBLIC WORKS JOB DESCRIPTION");
SendClientMessage(playerid,COLOR_GREY,"The SA Public Works job is a side job which acts as an oppertunity for you to make quick easy money.");
SendClientMessage(playerid,COLOR_GREY,"The job consists of keeping San Andreas clean by parking misplaced cars, and towing vehicles if necessary.");
SendClientMessage(playerid,COLOR_GREY,"Should you accept the job, you will be given a new skin and access to SAPW vehicles.");
SendClientMessage(playerid,COLOR_GREY,"You will earn a regular (non-taxed) salary of $100 for fulfilling the aforementionned duties.");
SendClientMessage(playerid,COLOR_GREY,"Relevant commands are: /utilskin1 /utilskin2 and /repair.");
SendClientMessage(playerid,COLOR_GREY,"To accept the job, type /UtilJob.");
SendClientMessage(playerid,COLOR_GREY,"To quit the job, type /Civilian. (Make sure to return SAPW vehicles to the depot)");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
return 1;
}
if(strcmp(cmdtext, "/taxijobd", true) == 0)
{
if(IsPlayerInCircle(playerid, 2200.7917,1394.8052,20))
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_YELLOW,"AUTOBAHN TAXIS AND IMPORTS JOB DESCRIPTION");
SendClientMessage(playerid,COLOR_GREY,"The taxi job is a side job which acts as an oppertunity for you to make quick easy money.");
SendClientMessage(playerid,COLOR_GREY,"The job requires you to drive clients to their desired destinations - for a fee.");
SendClientMessage(playerid,COLOR_GREY,"Should you accept the job, you will be given access to the Autobahn taxis as well as taxi driver commands.");
//SendClientMessage(playerid,COLOR_GREY,"You can use /charge1 [ID], /charge2 [ID], and /charge3 [ID] to charge your clients.");
//SendClientMessage(playerid,COLOR_GREY,"1 is for inner-city travel, 2 is for inner-county travel, and 3 is for extra-county travel.");
SendClientMessage(playerid,COLOR_GREY,"You may use /hold [ID] and /release [ID] in order to keep the clients within the car or release them.");
SendClientMessage(playerid,COLOR_GREY,"To accept the job, type /TaxiJob.");
SendClientMessage(playerid,COLOR_GREY,"To quit the job, type /Civilian. (Make sure to return the vehicles to the depot)");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
return 1;
}
if(strcmp(cmdtext, "/dcpjobd", true) == 0)
{
if(IsPlayerInCircle(playerid, -1618.9114,867.9002,20))
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_CRIMBLUE,"SAN ANDREAS DCP TRAFFIC DIVISION JOB DESCRIPTION");
SendClientMessage(playerid,COLOR_GREY,"The DCP Traffic Division job is a side job which acts as an oppertunity for you to make quick easy money.");
SendClientMessage(playerid,COLOR_GREY,"The job requires you to patrol San Andreas and punish traffic violators by issuing fines.");
SendClientMessage(playerid,COLOR_GREY,"The money you fine others will be given to you. This will act as your pay.");
SendClientMessage(playerid,COLOR_GREY,"You may communicate with other DCP officers by using /r [Message] and all agencies with /ir [Message].");
SendClientMessage(playerid,COLOR_GREY,"You may fine people by typing /fine [ID] [Amount].");
SendClientMessage(playerid,COLOR_GREY,"To accept the job, type /DCPJob.");
SendClientMessage(playerid,COLOR_GREY,"To quit the job, type /Civilian. (Make sure to return the vehicles to the DCP building)");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
return 1;
}
if(strcmp(cmdtext, "/sannjobd", true) == 0)
{
if(IsPlayerInCircle(playerid, 751.8196,-1357.9432,20))
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_ORANGE,"SAN ANDREAS NEWS NETWORK EMPLOYMENT JOB DESCRIPTION");
SendClientMessage(playerid,COLOR_GREY,"Your task consists of looking for and reporting stories to the population of San Andreas.");
SendClientMessage(playerid,COLOR_GREY,"Should you accept the job, you will be given access to the SANN vehicles and commands.");
SendClientMessage(playerid,COLOR_GREY,"You can use the standard issue camera to snap photos and then post them on the ERP forum.");
SendClientMessage(playerid,COLOR_GREY,"Make sure not to abuse of the camera, as it is can often prove annoying for nearby persons.");
SendClientMessage(playerid,COLOR_GREY,"You can display instant news reports for all to see by using the /News [Message] command.");
SendClientMessage(playerid,COLOR_GREY,"You may communicate with other SANN employees by using /r [Message].");
SendClientMessage(playerid,COLOR_GREY,"To quit the job, type /Civilian. (Make sure to return the vehicles to the DCP building)");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
return 1;
}
if(strcmp(cmdtext, "/emsjobd", true) == 0)
{
if(IsPlayerInCircle(playerid, -2675.1934,634.1367,20) || IsPlayerInCircle(playerid, -315.0287,1050.1417,20) || IsPlayerInCircle(playerid, -1518.4143,2519.6487,20) || IsPlayerInCircle(playerid, 1626.9231,1814.7684,20) || IsPlayerInCircle(playerid, 1173.7386,-1332.4731,20) )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_YELLOW, "SAN ANDREAS EMERGENCY MEDICAL SERVICES PARAMEDIC JOB DESCRIPTION");
SendClientMessage(playerid,COLOR_GREY,"The paramedic job requires you to heal people upon request.");
SendClientMessage(playerid,COLOR_GREY,"It is your responsibility to ensure the medical well being of the citizens of San Andreas.");
SendClientMessage(playerid,COLOR_GREY,"Should you accept the job, you will be given access to the SAEMS vehicles and commands.");
SendClientMessage(playerid,COLOR_GREY,"You can heal people within 20m of you by using /heal [Player ID].");
SendClientMessage(playerid,COLOR_GREY,"You may communicate with other EMS units by using /r [Message].");
SendClientMessage(playerid,COLOR_GREY,"You may communicate with other governemnt agencies by using /rr [Message].");
SendClientMessage(playerid,COLOR_GREY,"To quit the job, type /Civilian. (Make sure to return the vehicles to the DCP building)");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
return 1;
}
if(strcmp(cmdtext, "/atcjobd", true) == 0)
{
if(IsPlayerInCircle(playerid, 1797.5999,-2461.2947,10) || IsPlayerInCircle(playerid, -1307.8965,32.4405,10) || IsPlayerInCircle(playerid, 1438.8936,1527.7117,10) || IsPlayerInCircle(playerid, 414.2574,2534.1497,10) )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,0xB8C426FF,"FEDERAL AVIATION ADMINISTRATION ATC JOB DESCRIPTION");
SendClientMessage(playerid,COLOR_GREY,"The task consists of safely guiding air vehicles through the skies of your jurisdiction.");
SendClientMessage(playerid,COLOR_GREY,"Jurisdiction goes by county and is determined by which airport you are stationned at.");
SendClientMessage(playerid,COLOR_GREY,"Should you accept the job, you will be given access to the FAA commands.");
SendClientMessage(playerid,COLOR_GREY,"You may communicate with all commissionned air vehicles by using /p [Message].");
SendClientMessage(playerid,COLOR_GREY,"You may communicate with the other San Andreas towers by using /t [Message].");
SendClientMessage(playerid,COLOR_GREY,"You should use /911 [Reason] [Loaction] in the event of any emergency.");
SendClientMessage(playerid,COLOR_GREY,"To quit the job, type /Civilian. (Make sure to return the vehicles to the DCP building)");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
return 1;
}
if(strcmp(cmdtext, "/prostjobd", true) == 0)
{
if( IsPlayerInCircle(playerid,942.0522,-50.2489,10) || IsPlayerInCircle(playerid,-2551.6768,188.6168,10) || IsPlayerInCircle(playerid,741.9272,1434.2535,10) || IsPlayerInCircle(playerid,2090.7869,2189.5115,10) )
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
SendClientMessage(playerid,COLOR_RED,"PART TIME PROSTITUTE JOB DESCRIPTION");
SendClientMessage(playerid,COLOR_GREY,"The task consists of providing a targeted clientele with its desired sexual services.");
SendClientMessage(playerid,COLOR_GREY,"Should you accept the job, you will be given access to the prostitution commands.");
SendClientMessage(playerid,COLOR_GREY,"The command /Psex [Player ID] may be used in order to provide clients with 'services'.");
SendClientMessage(playerid,COLOR_GREY,"Beware: Prostitution is illegal, and therefore, you run the risk of being arrested for solicitation.");
SendClientMessage(playerid,COLOR_GREY,"Beware: Prostitution can lead to the proliferation of deadly sexually transmitted diseases.");
SendClientMessage(playerid,COLOR_GREY,"You should use /EMS [Reason] [Loaction] to call for confidential medical services.");
SendClientMessage(playerid,COLOR_GREY,"To quit the job, type /Civilian. (Make sure to return the vehicles to the DCP building)");
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------------------------------------------------------");
}
return 1;
}
//license code
//============== DRIVING LICENSE ==============================================================================================================================================================
if(strcmp(cmd, "/givelicense", true) == 0)
{
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid] ==Team_DCP || gteam[playerid] ==Team_DMV || IsPlayerAdmin(playerid)==1 ){
new tmp[256];
new tracedID;
new tracedIDName[MAX_PLAYER_NAME];
tmp = strtok(cmdtext, idx);
tracedID = strval(tmp);
if(!strlen(tmp)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /givelicense [Player ID]");
return 1;
}
if(dini_Exists("DLicences.txt"))
{
GetPlayerName(tracedID, tracedIDName, sizeof(tracedIDName));
dini_Set("DLicences.txt", tracedIDName,"VALID");
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "LICENSE ISSUANCE");
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "Driving license has been issued to: %s (ID:%d)", tracedIDName, tracedID);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Current client license status: VALID");
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "You have been issued a driving licence.");
SendClientMessage(tracedID, COLOR_GREEN, string);
}
}
return 1;
}
if(strcmp(cmd, "/takelicense", true) == 0)
{
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid] ==Team_DCP || gteam[playerid] ==Team_DMV || IsPlayerAdmin(playerid)==1){
new tmp[256];
new tracedID;
new tracedIDName[MAX_PLAYER_NAME];
tmp = strtok(cmdtext, idx);
tracedID = strval(tmp);
if(!strlen(tmp)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /takelicense [Player ID]");
return 1;
}
if(dini_Exists("DLicences.txt"))
{
GetPlayerName(tracedID, tracedIDName, sizeof(tracedIDName));
dini_Set("DLicences.txt", tracedIDName,"REVOKED");
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "LICENSE DISQUALIFICATION");
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "Driving license has been revoked for: %s (ID:%d)", tracedIDName, tracedID);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Current client license status: REVOKED");
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "Your driving license has been revoked.");
SendClientMessage(tracedID, COLOR_BRIGHTRED, string);
}
}
return 1;
}
if(strcmp(cmd, "/license", true) == 0)
{
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid] ==Team_DCP || gteam[playerid] ==Team_DCPT || gteam[playerid] ==Team_DMV || gteam[playerid] ==Team_Army || gteam[playerid] ==Team_ArmyMed || IsPlayerAdmin(playerid)==1){
new tmp[256];
new lstatus[512];
new tracedID;
new tracedIDName[MAX_PLAYER_NAME];
tmp = strtok(cmdtext, idx);
tracedID = strval(tmp);
GetPlayerName(tracedID, tracedIDName, sizeof(tracedIDName));
if(GetDistanceBetweenPlayers(playerid,tracedID) < 20) {
if(!strlen(tmp)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /license [Player ID]");
return 1;
}
if(dini_Exists("DLicences.txt"))
{
if(strlen(dini_Get("DLicences.txt",tracedIDName))==0) {
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "LICENSE VERIFICATION");
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string, sizeof(string), "This person does NOT possess a driver's LICENSE");
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Name: %s", tracedIDName);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "ID: %d", tracedID);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "Your driving license is being verified.");
SendClientMessage(tracedID, COLOR_YELLOW, string);
}else{
lstatus=dini_Get("DLicences.txt", tracedIDName);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "LICENSE VERIFICATION");
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string, sizeof(string), "License status: %s",lstatus);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Name: %s", tracedIDName);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "ID: %d", tracedID);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "Your driving license is being verified.");
SendClientMessage(tracedID, COLOR_YELLOW, string);
}
}
}
}
return 1;
}
if(strcmp(cmd, "/mylicense", true) == 0)
{
new lstatus[512];
new playername[MAX_PLAYER_NAME];
if(dini_Exists("DLicences.txt"))
{
GetPlayerName(playerid, playername, sizeof(playername));
if(strlen(dini_Get("DLicences.txt",playername))==0) {
format(string, sizeof(string), "You do NOT possess a driver's LICENSE");
SendClientMessage(playerid, COLOR_BRIGHTRED, string);
SendClientMessage(playerid,COLOR_GREY,"You can apply for a driver's license in the DMV forum at www.erp-clan.com.");
}else{
lstatus=dini_Get("DLicences.txt", playername);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "SAN ANDREAS DRIVER'S LICENCE");
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string, sizeof(string), "License status: %s",lstatus);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Name: %s", playername);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "ID: %d", playerid);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
return 1;
}
//============== LICENSE PLATE DATABASE ======================================================================================================================================================
if(strcmp(cmd, "/plate", true) == 0)
{
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid] ==Team_DCP || gteam[playerid] ==Team_DCPT || gteam[playerid]==Team_Army || gteam[playerid]==Team_ArmyMed || IsPlayerAdmin(playerid)==1 || Agent[playerid]==1){
new tmp[256];
new owner[512];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /plate [Plate number (Without spaces)]");
return 1;
}
if(dini_Exists("Plates.txt"))
{
if(strlen(dini_Get("Plates.txt",tmp))==0) {
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "REGISTRATION CHECK");
SendClientMessage(playerid, COLOR_CRIMBLUE, string);
format(string, sizeof(string), "License plate ID: %s",tmp);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Registered to: Vehicle is not registered");
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
}else{
owner=dini_Get("Plates.txt",tmp);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "REGISTRATION CHECK");
SendClientMessage(playerid, COLOR_CRIMBLUE, string);
format(string, sizeof(string), "License plate ID: %s",tmp);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Registered to: %s", owner);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
}
return 1;
}
//=========================================================== END =======================================================================================================================
//================= WEAPONS LICENSE ==============================================================================================================================================================
if(strcmp(cmd, "/givec1gunlicense", true) == 0) // GIVE C1 LICENSE
{
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid] ==Team_DCP || gteam[playerid] ==Team_DMV || gteam[playerid] ==Team_WLD || IsPlayerAdmin(playerid)==1){
new tmp[256];
new tracedID;
new tracedIDName[MAX_PLAYER_NAME];
tmp = strtok(cmdtext, idx);
tracedID = strval(tmp);
if(!strlen(tmp)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /give(c1/c2/r1/r2/gv)gunlicense [Player ID]");
return 1;
}
if(dini_Exists("WLicenses.txt"))
{
GetPlayerName(tracedID, tracedIDName, sizeof(tracedIDName));
dini_Set("WLicenses.txt", tracedIDName,"C1");
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "WEAPON LICENSE ISSUANCE");
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "Class C1 weapon license has been issued to: %s (ID:%d)", tracedIDName, tracedID);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Current client weapon license class: C1");
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "You have been issued a class C1 weapon licence.");
SendClientMessage(tracedID, COLOR_GREEN, string);
}
}
return 1;
}
if(strcmp(cmd, "/givec2gunlicense", true) == 0) // GIVE C2 LICENSE
{
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid] ==Team_DCP || gteam[playerid] ==Team_DMV || gteam[playerid] ==Team_WLD || IsPlayerAdmin(playerid)==1){
new tmp[256];
new tracedID;
new tracedIDName[MAX_PLAYER_NAME];
tmp = strtok(cmdtext, idx);
tracedID = strval(tmp);
if(!strlen(tmp)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /give(c1/c2/r1/r2/gv)gunlicense [Player ID]");
return 1;
}
if(dini_Exists("WLicenses.txt"))
{
GetPlayerName(tracedID, tracedIDName, sizeof(tracedIDName));
dini_Set("WLicenses.txt", tracedIDName,"C2");
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "WEAPON LICENSE ISSUANCE");
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "Class C2 weapon license has been issued to: %s (ID:%d)", tracedIDName, tracedID);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Current client weapon license class: C2");
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "You have been issued a class C2 weapon licence.");
SendClientMessage(tracedID, COLOR_GREEN, string);
}
}
return 1;
}
if(strcmp(cmd, "/giver1gunlicense", true) == 0) // GIVE R1 LICENSE
{
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid] ==Team_DCP || gteam[playerid] ==Team_DMV || gteam[playerid] ==Team_WLD || IsPlayerAdmin(playerid)==1){
new tmp[256];
new tracedID;
new tracedIDName[MAX_PLAYER_NAME];
tmp = strtok(cmdtext, idx);
tracedID = strval(tmp);
if(!strlen(tmp)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /give(c1/c2/r1/r2/gv)gunlicense [Player ID]");
return 1;
}
if(dini_Exists("WLicenses.txt"))
{
GetPlayerName(tracedID, tracedIDName, sizeof(tracedIDName));
dini_Set("WLicenses.txt", tracedIDName,"R1");
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "WEAPON LICENSE ISSUANCE");
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "Class R1 weapon license has been issued to: %s (ID:%d)", tracedIDName, tracedID);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Current client weapon license class: R1");
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "You have been issued a class R1 weapon licence.");
SendClientMessage(tracedID, COLOR_GREEN, string);
}
}
return 1;
}
if(strcmp(cmd, "/giver2gunlicense", true) == 0) // GIVE R2 LICENSE
{
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid] ==Team_DCP || gteam[playerid] ==Team_DMV || gteam[playerid] ==Team_WLD || IsPlayerAdmin(playerid)==1){
new tmp[256];
new tracedID;
new tracedIDName[MAX_PLAYER_NAME];
tmp = strtok(cmdtext, idx);
tracedID = strval(tmp);
if(!strlen(tmp)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /give(c1/c2/r1/r2/gv)gunlicense [Player ID]");
return 1;
}
if(dini_Exists("WLicenses.txt"))
{
GetPlayerName(tracedID, tracedIDName, sizeof(tracedIDName));
dini_Set("WLicenses.txt", tracedIDName,"R2");
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "WEAPON LICENSE ISSUANCE");
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "Class R2 weapon license has been issued to: %s (ID:%d)", tracedIDName, tracedID);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Current client weapon license class: R2");
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "You have been issued a class R2 weapon licence.");
SendClientMessage(tracedID, COLOR_GREEN, string);
}
}
return 1;
}
if(strcmp(cmd, "/giveprgunlicense", true) == 0) // GIVE PR LICENSE
{
if(IsPlayerAdmin(playerid)==1){
new tmp[256];
new tracedID;
new tracedIDName[MAX_PLAYER_NAME];
tmp = strtok(cmdtext, idx);
tracedID = strval(tmp);
if(!strlen(tmp)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /give(c1/c2/r1/r2/gv/pr)gunlicense [Player ID]");
return 1;
}
if(dini_Exists("WLicenses.txt"))
{
GetPlayerName(tracedID, tracedIDName, sizeof(tracedIDName));
dini_Set("WLicenses.txt", tracedIDName,"PR");
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "WEAPON LICENSE ISSUANCE");
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "Class PR weapon license has been issued to: %s (ID:%d)", tracedIDName, tracedID);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Current client weapon license class: PR");
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "You have been issued a class PR weapon licence.");
SendClientMessage(tracedID, COLOR_GREEN, string);
}
}
return 1;
}
if(strcmp(cmd, "/givegvgunlicense", true) == 0) // GIVE GV LICENSE
{
if(gteam[playerid]==Team_GOV || gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid] ==Team_DCP || gteam[playerid] ==Team_DMV || gteam[playerid] ==Team_WLD || IsPlayerAdmin(playerid)==1){
new tmp[256];
new tracedID;
new tracedIDName[MAX_PLAYER_NAME];
tmp = strtok(cmdtext, idx);
tracedID = strval(tmp);
if(!strlen(tmp)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /give(c1/c2/r1/r2/gv)gunlicense [Player ID]");
return 1;
}
if(dini_Exists("WLicenses.txt"))
{
GetPlayerName(tracedID, tracedIDName, sizeof(tracedIDName));
dini_Set("WLicenses.txt", tracedIDName,"GV");
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "WEAPON LICENSE ISSUANCE");
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "Class GV weapon license has been issued to: %s (ID:%d)", tracedIDName, tracedID);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Current client weapon license class: GV");
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "You have been issued a class GV weapon licence.");
SendClientMessage(tracedID, COLOR_GREEN, string);
}
}
return 1;
}
if(strcmp(cmd, "/takegunlicense", true) == 0)
{
if(gteam[playerid]==Team_GOV || gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid] ==Team_DCP || gteam[playerid] ==Team_DMV || gteam[playerid] ==Team_WLD || IsPlayerAdmin(playerid)==1){
new tmp[256];
new tracedID;
new tracedIDName[MAX_PLAYER_NAME];
tmp = strtok(cmdtext, idx);
tracedID = strval(tmp);
if(!strlen(tmp)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /takegunlicense [Player ID]");
return 1;
}
if(dini_Exists("WLicenses.txt"))
{
GetPlayerName(tracedID, tracedIDName, sizeof(tracedIDName));
dini_Set("WLicenses.txt", tracedIDName,"REVOKED");
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "WEAPON LICENSE DISQUALIFICATION");
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "Weapon license has been revoked for: %s (ID:%d)", tracedIDName, tracedID);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Current client weapon license status: REVOKED");
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "Your weapon license has been revoked.");
SendClientMessage(tracedID, COLOR_BRIGHTRED, string);
}
}
return 1;
}
if(strcmp(cmd, "/gunlicense", true) == 0)
{
if(gteam[playerid]==Team_GOV || gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid] ==Team_DCP || gteam[playerid] ==Team_DCPT || gteam[playerid] ==Team_DMV || gteam[playerid] ==Team_Army || gteam[playerid] ==Team_ArmyMed || gteam[playerid] ==Team_WLD || IsPlayerAdmin(playerid)==1){
new tmp[256];
new lstatus[512];
new tracedID;
new tracedIDName[MAX_PLAYER_NAME];
tmp = strtok(cmdtext, idx);
tracedID = strval(tmp);
GetPlayerName(tracedID, tracedIDName, sizeof(tracedIDName));
if(GetDistanceBetweenPlayers(playerid,tracedID) < 10) {
if(!strlen(tmp)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /gunlicense [Player ID]");
return 1;
}
if(dini_Exists("WLicenses.txt"))
{
if(strlen(dini_Get("WLicenses.txt",tracedIDName))==0) {
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "WEAPON LICENSE VERIFICATION");
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string, sizeof(string), "This person does NOT possess a WEAPON LICENSE");
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Name: %s", tracedIDName);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "ID: %d", tracedID);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "Your weapon license is being verified.");
SendClientMessage(tracedID, COLOR_YELLOW, string);
}else{
lstatus=dini_Get("WLicenses.txt", tracedIDName);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "WEAPON LICENSE VERIFICATION");
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string, sizeof(string), "License class: %s",lstatus);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Name: %s", tracedIDName);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "ID: %d", tracedID);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "Your weapon license is being verified.");
SendClientMessage(tracedID, COLOR_YELLOW, string);
}
}
}
}
return 1;
}
if(strcmp(cmd, "/mygunlicense", true) == 0)
{
new lstatus[512];
new playername[MAX_PLAYER_NAME];
if(dini_Exists("WLicenses.txt"))
{
GetPlayerName(playerid, playername, sizeof(playername));
if(strlen(dini_Get("WLicenses.txt",playername))==0) {
format(string, sizeof(string), "You do NOT possess a WEAPON LICENSE");
SendClientMessage(playerid, COLOR_BRIGHTRED, string);
SendClientMessage(playerid,COLOR_GREY,"You can apply for a weapon license in the WLD forum at www.erp-clan.com.");
}else{
lstatus=dini_Get("WLicenses.txt", playername);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "SAN ANDREAS WEAPON LICENCE");
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string, sizeof(string), "License class: %s",lstatus);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Name: %s", playername);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "ID: %d", playerid);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
return 1;
}
//========================= END ================================================================================================================================================================
//========================= GOVERNMENT BUDGET COMMANDS ================================================================================================================================================================
if(strcmp(cmd, "/welfare", true) == 0)
{
if(gteam[playerid] ==Team_GOV || IsPlayerAdmin(playerid)==1 ){
new tmp[256];
new playername[MAX_PLAYER_NAME];
new newwelfarepay;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /welfare [Amount]");
return 1;
}
newwelfarepay = strval(tmp);
if(dini_Exists("Government.txt"))
{
GetPlayerName(playerid, playername, sizeof(playername));
dini_IntSet("Government.txt","WELFARE", newwelfarepay );
format(string, sizeof(string), "(GOVINFO) San Andreas welfare pay set to: $%d.",newwelfarepay);
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
format(string, sizeof(string), "SAN ANDREAS NEWS UPDATE");
SendClientMessageToAll(COLOR_SANTORANGE,string);
format(string, sizeof(string), "A change has been made to the San Andreas government budget.");
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "%s has just set the San Andreas welfare pay to $%d.",playername, newwelfarepay);
SendClientMessageToAll(COLOR_GREY,string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
}
}
return 1;
}
//========================= END ================================================================================================================================================================
if(strcmp(cmd, "/showid", true) == 0)
{
if(IsPlayerAdmin(playerid)==1 || gteam[playerid]==Team_GOV){
new tmp[256];
new tracedID;
new tracedIDName[MAX_PLAYER_NAME];
new officername[MAX_PLAYER_NAME];
tmp = strtok(cmdtext, idx);
tracedID = strval(tmp);
GetPlayerName(playerid, officername, sizeof(officername));
GetPlayerName(tracedID, tracedIDName, sizeof(tracedIDName));
if(GetDistanceBetweenPlayers(playerid,tracedID) < 20) {
if(!strlen(tmp)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /showid [Player ID]");
return 1;
}
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(tracedID, COLOR_WHITE, string);
format(string, sizeof(string), "SAN ANDREAS GOVERNMENT IDENTIFICATION CARD");
SendClientMessage(tracedID, COLOR_GREEN, string);
format(string, sizeof(string), "Certifies that the following is a San Andreas government official.");
SendClientMessage(tracedID, COLOR_GREY, string);
format(string, sizeof(string), "Name: %s", officername);
SendClientMessage(tracedID, COLOR_GREY, string);
format(string, sizeof(string), "ID: %d", playerid);
SendClientMessage(tracedID, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(tracedID, COLOR_WHITE, string);
format(string, sizeof(string), "You have shown %s your government ID.",tracedIDName);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
}
return 1;
}
if(strcmp(cmd, "/metroid", true) == 0)
{
if(IsPlayerAdmin(playerid)==1 || gteam[playerid]==Team_SFPD){
new tmp[256];
new tracedID;
new tracedIDName[MAX_PLAYER_NAME];
new officername[MAX_PLAYER_NAME];
tmp = strtok(cmdtext, idx);
tracedID = strval(tmp);
GetPlayerName(playerid, officername, sizeof(officername));
GetPlayerName(tracedID, tracedIDName, sizeof(tracedIDName));
if(GetDistanceBetweenPlayers(playerid,tracedID) < 20) {
if(!strlen(tmp)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /sfpdbadge [Player ID]");
return 1;
}
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(tracedID, COLOR_WHITE, string);
format(string, sizeof(string), "SAPD METRO DEPARTMENT IDENTIFICATION CARD");
SendClientMessage(tracedID, COLOR_BLUE, string);
format(string, sizeof(string), "Name: %s", officername);
SendClientMessage(tracedID, COLOR_GREY, string);
format(string, sizeof(string), "ID: %d", playerid);
SendClientMessage(tracedID, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(tracedID, COLOR_WHITE, string);
format(string, sizeof(string), "You have shown %s your SFPD ID.",tracedIDName);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
}
return 1;
}
if(strcmp(cmd, "/saspid", true) == 0)
{
if(IsPlayerAdmin(playerid)==1 || gteam[playerid]==Team_SASP){
new tmp[256];
new tracedID;
new tracedIDName[MAX_PLAYER_NAME];
new officername[MAX_PLAYER_NAME];
tmp = strtok(cmdtext, idx);
tracedID = strval(tmp);
GetPlayerName(playerid, officername, sizeof(officername));
GetPlayerName(tracedID, tracedIDName, sizeof(tracedIDName));
if(GetDistanceBetweenPlayers(playerid,tracedID) < 20) {
if(!strlen(tmp)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /saspbadge [Player ID]");
return 1;
}
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(tracedID, COLOR_WHITE, string);
format(string, sizeof(string), "SAN ANDREAS STATE POLICE POLICE IDENTIFICATION CARD");
SendClientMessage(tracedID, COLOR_BLUE, string);
format(string, sizeof(string), "Name: %s", officername);
SendClientMessage(tracedID, COLOR_GREY, string);
format(string, sizeof(string), "ID: %d", playerid);
SendClientMessage(tracedID, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(tracedID, COLOR_WHITE, string);
format(string, sizeof(string), "You have shown %s your SASP ID.",tracedIDName);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
}
return 1;
}
if(strcmp(cmd, "/dcpid", true) == 0)
{
if(IsPlayerAdmin(playerid)==1 || gteam[playerid]==Team_DCP){
new tmp[256];
new tracedID;
new tracedIDName[MAX_PLAYER_NAME];
new officername[MAX_PLAYER_NAME];
tmp = strtok(cmdtext, idx);
tracedID = strval(tmp);
GetPlayerName(playerid, officername, sizeof(officername));
GetPlayerName(tracedID, tracedIDName, sizeof(tracedIDName));
if(GetDistanceBetweenPlayers(playerid,tracedID) < 20) {
if(!strlen(tmp)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /dcpbadge [Player ID]");
return 1;
}
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(tracedID, COLOR_WHITE, string);
format(string, sizeof(string), "DEPARTMENT OF CIVIL PROTECTION IDENTIFICATION CARD");
SendClientMessage(tracedID, COLOR_BLUE, string);
format(string, sizeof(string), "Name: %s", officername);
SendClientMessage(tracedID, COLOR_GREY, string);
format(string, sizeof(string), "ID: %d", playerid);
SendClientMessage(tracedID, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(tracedID, COLOR_WHITE, string);
format(string, sizeof(string), "You have shown %s your DCP ID.",tracedIDName);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
}
return 1;
}
if(strcmp(cmd, "/showvip", true) == 0)
{
if(IsPlayerAdmin(playerid) == 1 || (VIP[playerid]==1) )
{
new tmp[256];
new tracedID;
new tracedIDName[MAX_PLAYER_NAME];
new officername[MAX_PLAYER_NAME];
tmp = strtok(cmdtext, idx);
tracedID = strval(tmp);
GetPlayerName(playerid, officername, sizeof(officername));
GetPlayerName(tracedID, tracedIDName, sizeof(tracedIDName));
if(GetDistanceBetweenPlayers(playerid,tracedID) < 20) {
if(!strlen(tmp)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /showvip [Player ID]");
return 1;
}
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(tracedID, COLOR_WHITE, string);
format(string, sizeof(string), "ELITE ROLE PLAYERS VIP IDENTIFICATION CARD");
SendClientMessage(tracedID, COLOR_GREEN, string);
format(string, sizeof(string), "Certifies that the following is a Elite Role Player VIP.");
SendClientMessage(tracedID, COLOR_GREY, string);
format(string, sizeof(string), "Name: %s", officername);
SendClientMessage(tracedID, COLOR_GREY, string);
format(string, sizeof(string), "ID: %d", playerid);
SendClientMessage(tracedID, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(tracedID, COLOR_WHITE, string);
format(string, sizeof(string), "You have shown %s your VIP ID.",tracedIDName);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
}
return 1;
}
if(strcmp(cmd, "/armyid", true) == 0)
{
if(IsPlayerAdmin(playerid) == 1 || (VIP[playerid]==1) )
{
new tmp[256];
new tracedID;
new tracedIDName[MAX_PLAYER_NAME];
new officername[MAX_PLAYER_NAME];
tmp = strtok(cmdtext, idx);
tracedID = strval(tmp);
GetPlayerName(playerid, officername, sizeof(officername));
GetPlayerName(tracedID, tracedIDName, sizeof(tracedIDName));
if(GetDistanceBetweenPlayers(playerid,tracedID) < 20) {
if(!strlen(tmp)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /showvip [Player ID]");
return 1;
}
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(tracedID, COLOR_WHITE, string);
format(string, sizeof(string), "SAN ANDREAS NATIONAL GUARD IDENTIFICATION");
SendClientMessage(tracedID, COLOR_GREEN, string);
format(string, sizeof(string), "This person is part of the United States Army National Guard.");
SendClientMessage(tracedID, COLOR_GREY, string);
format(string, sizeof(string), "Name: %s", officername);
SendClientMessage(tracedID, COLOR_GREY, string);
format(string, sizeof(string), "ID: %d", playerid);
SendClientMessage(tracedID, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(tracedID, COLOR_WHITE, string);
format(string, sizeof(string), "You have shown %s your VIP ID.",tracedIDName);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
}
return 1;
}
//============== TRUCKING COMMANDS ======================================================================================================================================================
// LOADING TRUCK
if(strcmp(cmd, "/loaddrugs", true) == 0)
{
if(gteam[playerid]==Team_STONER || gteam[playerid]==Team_DIABLO || IsPlayerAdmin(playerid)==1){
new owner[512];
new tmp[256];
new trailerid;
tmp = strtok(cmdtext, idx);
trailerid = strval(tmp);
if(!strlen(tmp)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /loaddrugs [Trailer ID]");
return 1;
}
// if(strlen(tmp) != 369 || strlen(trailerID) != 370 || strlen(trailerID) != 371) {
// SendClientMessage(playerid,COLOR_RED,"Trailer ID is incorrect.");
// return 1;
// }
if(!dini_Exists("TruckLoads.txt")){
SendClientMessage(playerid,COLOR_RED,"File not found. Command not available.");
}
if(!IsPlayerInCircle(playerid, -66.7878,-1131.5851,15)) {
SendClientMessage(playerid,COLOR_RED,"You are not at a loading station.");
}
//if( (strlen(trailerID) == 369) || (strlen(trailerID) == 370) || (strlen(trailerID) == 371) ) {
//if( (GetVehicleModel(trailerID)==435 ) {
if ( trailerid == 321 || trailerid == 369 || trailerid == 370 || trailerid == 371) {
if( GetDistanceToCar(playerid,trailerid)<=10 ) {
owner = dini_Get("Plates.txt",tmp);
dini_Set("TruckLoads.txt",tmp,"100");
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "LOADING DOCK");
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "Trailer ID: %d",trailerid);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Trailer registered to: %s", owner);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Load type: Pharmaceutical variants");
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Load quantity: 100Kg");
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
}else{
SendClientMessage(playerid,COLOR_RED,"Trailer not in range.");
}
}else{
SendClientMessage(playerid,COLOR_RED,"Trailer ID is incorrect.");
}
}
return 1;
}
// CHECKING LOADS
if(strcmp(cmd, "/checkload", true) == 0)
{
if(gteam[playerid]==Team_DIABLO || gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid] ==Team_DCP || gteam[playerid] ==Team_DCPT || gteam[playerid] ==Team_DMV || gteam[playerid] ==Team_Army || gteam[playerid] ==Team_ArmyMed || gteam[playerid] ==Team_STONER || IsPlayerAdmin(playerid)==1){
new tmp[256];
new loadstatus[512];
new trailerID;
new owner[512];
tmp = strtok(cmdtext, idx);
trailerID = strval(tmp);
if(!strlen(tmp)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /checktruckload [Trailer ID]");
return 1;
}
if( GetDistanceToCar(playerid,trailerID)<=10 ) {
if(dini_Exists("TruckLoads.txt")){
loadstatus = dini_Get("TruckLoads.txt", tmp);
owner = dini_Get("Plates.txt",tmp);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "TRAILER INVENTORY");
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "Trailer ID: %d",trailerID);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Registered to: %s", owner);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Load type: Pharmaceutical variants");
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Load quantity: %sKg", loadstatus);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
}
}else{
SendClientMessage(playerid,COLOR_RED,"Trailer not in range.");
}
}
return 1;
}
if(strcmp(cmd, "/checksadrugs", true) == 0)
{
if(gteam[playerid]==Team_Smoke || IsPlayerAdmin(playerid)==1){
new SAloadstatus[512];
if(!dini_Exists("TruckLoads.txt")){
SendClientMessage(playerid,COLOR_RED,"File not found. Command not available.");
}
if(!IsPlayerInCircle(playerid, -2158.8284,-264.4732,15)) {
SendClientMessage(playerid,COLOR_RED,"You are outside the bounds of the storage area.");
}
SAloadstatus = dini_Get("TruckLoads.txt", "Smoking Aces");
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "SMOKING ACES DRUG INVENTORY");
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "Current heroin quantity: %sKg",SAloadstatus);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
}
return 1;
}
if(strcmp(cmd, "/checkdiablodrugs", true) == 0)
{
if(gteam[playerid]==Team_DIABLO || IsPlayerAdmin(playerid)==1){
new SAloadstatus[512];
if(!dini_Exists("TruckLoads.txt")){
SendClientMessage(playerid,COLOR_RED,"File not found. Command not available.");
}
if(!IsPlayerInCircle(playerid, 1456.9108,968.9855,15)) {
SendClientMessage(playerid,COLOR_RED,"You are outside the bounds of the storage area.");
}
SAloadstatus = dini_Get("TruckLoads.txt", "Diablos");
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "DIABLOS DRUG INVENTORY");
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "Current heroin quantity: %sKg",SAloadstatus);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
}
return 1;
}
if(strcmp(cmd, "/mydrugs", true) == 0)
{
new playerloadstatus[512];
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playername));
if(!dini_Exists("TruckLoads.txt")){
SendClientMessage(playerid,COLOR_RED,"File not found. Command not available.");
}
playerloadstatus = dini_Get("TruckLoads.txt", playername);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "PERSONNAL DRUG INVENTORY");
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "Your current heroin quantity: %sKg",playerloadstatus);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
if(strcmp(cmd, "/frisk", true) == 0)
{
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid] ==Team_DCP || gteam[playerid] ==Team_DCPT || gteam[playerid]==Team_Army || gteam[playerid]==Team_ArmyMed || IsPlayerAdmin(playerid)==1){
new tmp[256];
new playerloadstatus[512];
new officer[MAX_PLAYER_NAME];
new suspect[MAX_PLAYER_NAME];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /frisk [Player ID]");
return 1;
}
giveplayerid = strval(tmp);
GetPlayerName(playerid,officer,sizeof(officer));
GetPlayerName(giveplayerid,suspect,sizeof(suspect));
playerloadstatus = dini_Get("TruckLoads.txt", suspect);
if(!dini_Exists("TruckLoads.txt")){
SendClientMessage(playerid,COLOR_RED,"File not found. Command not available.");
}
if(GetDistanceBetweenPlayers(playerid,playerid) < 5) {
if( strval(playerloadstatus) <= 0 ) {
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "FRISKING SUSPECT");
SendClientMessage(playerid, COLOR_CRIMBLUE, string);
format(string, sizeof(string), "No contraband found.");
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Name: %s", suspect);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "ID: %d", giveplayerid);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
SendClientMessage(giveplayerid, COLOR_RED, "You are being frisked.");
format(string, sizeof(string), "(INFO) %s (ID:%d) has been frisked by Officer %s (Unit %d) - Nothing found.", suspect, giveplayerid, officer, playerid);
SendMessageToLaw(string);
dini_Set("TruckLoads.txt",suspect, "0" );
ResetPlayerWeapons(giveplayerid);
}else{
if( strval(playerloadstatus) > 0 ) {
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "FRISKING SUSPECT");
SendClientMessage(playerid, COLOR_CRIMBLUE, string);
format(string, sizeof(string), "Contraband FOUND.");
SendClientMessage(playerid, COLOR_CRIMBLUE, string);
format(string, sizeof(string), "Name: %s", suspect);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "ID: %d", giveplayerid);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Heroin quantity: %dKg",playerloadstatus);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
SendClientMessage(giveplayerid, COLOR_RED, "You are being frisked.");
SendClientMessage(giveplayerid, COLOR_RED, "Contraband found - your drugs and weapons have been confiscated.");
format(string, sizeof(string), "You have confiscated %s's drugs and weapons.",suspect);
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "(INFO) %s (ID:%d) has been frisked by Officer %s (Unit %d) - CONTRABAND FOUND.", suspect, giveplayerid, officer, playerid);
SendMessageToLaw(string);
dini_Set("TruckLoads.txt",suspect, "0" );
ResetPlayerWeapons(giveplayerid);
}
}
}else{
SendClientMessage(giveplayerid, COLOR_RED, "Suspect out of range.");
}
}
return 1;
}
if(strcmp(cmd, "/clearload", true) == 0)
{
if(gteam[playerid]==Team_DIABLO || gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid] ==Team_DCP || gteam[playerid] ==Team_DCPT || gteam[playerid] ==Team_DMV || gteam[playerid] ==Team_Army || gteam[playerid] ==Team_ArmyMed || gteam[playerid] ==Team_STONER || IsPlayerAdmin(playerid)==1){
new tmp[256];
new trailerID;
new owner[512];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /clearload [Trailer ID]");
return 1;
}
if( GetDistanceToCar(playerid,trailerID)<=10 ) {
if(dini_Exists("TruckLoads.txt")){
//loadstatus = dini_Get("TruckLoads.txt", tmp);
owner = dini_Get("Plates.txt",tmp);
dini_Set("TruckLoads.txt",tmp, "0" );
ResetPlayerWeapons(giveplayerid);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "TRAILER CLEARED OF CONTRABAND");
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "Trailer ID: %d",trailerID);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Registered to: %s", owner);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Load type: Pharmaceutical variants");
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Load quantity: 0Kg");
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
}
}else{
SendClientMessage(playerid,COLOR_RED,"Trailer not in range.");
}
}
return 1;
}
// UNLOADING TRUCKS
if(strcmp(cmd, "/unloaddrugssa", true) == 0)
{
if(gteam[playerid]==Team_STONER || IsPlayerAdmin(playerid)==1){
new owner[512];
new oldloadTRUCK[512];
new oldloadSAHQ[512];
new tmp1[256];
new tmp2[256];
new trailerid;
new loadsize;
new newloadTRUCK;
new newloadSAHQ;
tmp1 = strtok(cmdtext, idx);
if(!strlen(tmp1)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /unloaddrugssa [Trailer ID] [Quantity]");
return 1;
}
trailerid = strval(tmp1);
tmp2 = strtok(cmdtext, idx);
if(!strlen(tmp2)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /unloaddrugssa [Trailer ID] [Quantity]");
return 1;
}
loadsize = strval(tmp2);
oldloadTRUCK = dini_Get("TruckLoads.txt",tmp1);
oldloadSAHQ = dini_Get("TruckLoads.txt","Smoking Aces");
if(!dini_Exists("TruckLoads.txt")){
SendClientMessage(playerid,COLOR_RED,"File not found. Command not available.");
}
if(!IsPlayerInCircle(playerid, -2131.6953,-219.3820,50)) {
SendClientMessage(playerid,COLOR_RED,"You are not in the vicinity of an unloading dock.");
}
if( strval(oldloadTRUCK) != 0 ) {
if( (strval(oldloadTRUCK) - loadsize) >= 0) {
if( loadsize <= 200 ) {
if( GetDistanceToCar(playerid,trailerid)<=10 ) {
owner = dini_Get("Plates.txt",tmp1);
newloadTRUCK = Subtract(strval(oldloadTRUCK),loadsize);
newloadSAHQ = Add(strval(oldloadSAHQ),loadsize);
dini_IntSet("TruckLoads.txt",tmp1, newloadTRUCK );
dini_IntSet("TruckLoads.txt","Smoking Aces", newloadSAHQ );
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "UNLOADING DOCK");
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "Trailer ID: %d",trailerid);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Registered to: %s", owner);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Load type: Pharmaceutical variants");
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Client: Smoking Aces Ltd.");
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Quantity discharged: %dKg", loadsize);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
}else{
SendClientMessage(playerid,COLOR_RED,"Trailer not in range.");
}
}else{
SendClientMessage(playerid,COLOR_RED,"Maximal warehouse storage capacity reached. (200Kg)");
}
}else{
SendClientMessage(playerid,COLOR_RED,"Trailer load insufficient for desired transfer.");
}
}else{
SendClientMessage(playerid,COLOR_RED,"The trailer is empty with respect to the desired product.");
}
}
return 1;
}
if(strcmp(cmd, "/unloaddrugsdiablo", true) == 0)
{
if(gteam[playerid]==Team_STONER || gteam[playerid]==Team_DIABLO || IsPlayerAdmin(playerid)==1){
new owner[512];
new oldloadTRUCK[512];
new oldloadSAHQ[512];
new tmp1[256];
new tmp2[256];
new trailerid;
new loadsize;
new newloadTRUCK;
new newloadSAHQ;
tmp1 = strtok(cmdtext, idx);
if(!strlen(tmp1)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /unloaddrugsdiablo [Trailer ID] [Quantity]");
return 1;
}
trailerid = strval(tmp1);
tmp2 = strtok(cmdtext, idx);
if(!strlen(tmp2)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /unloaddrugsdiablo [Trailer ID] [Quantity]");
return 1;
}
loadsize = strval(tmp2);
oldloadTRUCK = dini_Get("TruckLoads.txt",tmp1);
oldloadSAHQ = dini_Get("TruckLoads.txt","Smoking Aces");
if(!dini_Exists("TruckLoads.txt")){
SendClientMessage(playerid,COLOR_RED,"File not found. Command not available.");
}
if(!IsPlayerInCircle(playerid, 2156.5261,-2279.0820,50)) {
SendClientMessage(playerid,COLOR_RED,"You are not in the vicinity of an unloading dock.");
}
if( strval(oldloadTRUCK) != 0 ) {
if( (strval(oldloadTRUCK) - loadsize) >= 0) {
if( loadsize <= 200 ) {
if( GetDistanceToCar(playerid,trailerid)<=10 ) {
owner = dini_Get("Plates.txt",tmp1);
newloadTRUCK = Subtract(strval(oldloadTRUCK),loadsize);
newloadSAHQ = Add(strval(oldloadSAHQ),loadsize);
dini_IntSet("TruckLoads.txt",tmp1, newloadTRUCK );
dini_IntSet("TruckLoads.txt","Diablos", newloadSAHQ );
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "UNLOADING DOCK");
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "Trailer ID: %d",trailerid);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Registered to: %s", owner);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Load type: Pharmaceutical variants");
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Client: Diablo Industries Ltd.");
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Quantity discharged: %dKg", loadsize);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
}else{
SendClientMessage(playerid,COLOR_RED,"Trailer not in range.");
}
}else{
SendClientMessage(playerid,COLOR_RED,"Maximal warehouse storage capacity reached. (200Kg)");
}
}else{
SendClientMessage(playerid,COLOR_RED,"Trailer load insufficient for desired transfer.");
}
}else{
SendClientMessage(playerid,COLOR_RED,"The trailer is empty with respect to the desired product.");
}
}
return 1;
}
// LOADING PLAYERS
if(strcmp(cmd, "/sadrugs", true) == 0)
{
if(gteam[playerid]==Team_Smoke || IsPlayerAdmin(playerid)==1){
new tmp[256];
new quantitytaken;
new oldloadPLAYER[512];
new oldloadSAHQ[512];
new newloadPLAYER;
new newloadSAHQ;
new playername[MAX_PLAYER_NAME];
tmp = strtok(cmdtext, idx);
quantitytaken = strval(tmp);
if(!strlen(tmp)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /sadrugs [Quantity]");
return 1;
}
GetPlayerName(playerid,playername,sizeof(playername));
oldloadPLAYER = dini_Get("TruckLoads.txt",playername);
oldloadSAHQ = dini_Get("TruckLoads.txt","Smoking Aces");
if(!dini_Exists("TruckLoads.txt")){
SendClientMessage(playerid,COLOR_RED,"File not found. Command not available.");
}
if(!IsPlayerInCircle(playerid, -2158.8284,-264.4732,15)) {
SendClientMessage(playerid,COLOR_RED,"You are outside the bounds of the storage area.");
}
if( strval(oldloadSAHQ) > 0 ) {
if( (strval(oldloadPLAYER) + quantitytaken) <= 50) {
if( (strval(oldloadSAHQ) - quantitytaken) >= 0) {
newloadPLAYER = Add(strval(oldloadPLAYER),quantitytaken);
newloadSAHQ = Subtract(strval(oldloadSAHQ),quantitytaken);
dini_IntSet("TruckLoads.txt",playername, newloadPLAYER );
dini_IntSet("TruckLoads.txt","Smoking Aces", newloadSAHQ );
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "SMOKING ACES DRUG INVENTORY");
SendClientMessage(playerid, COLOR_RED, string);
format(string, sizeof(string), "Member name: %s",playername);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Quantity transfered: %dKg",quantitytaken);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Your current quantity: %dKg",newloadPLAYER);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Current inventory quantity: %dKg",newloadSAHQ);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
}else{
SendClientMessage(playerid,COLOR_RED,"There is not enough heroin in the inventory. Select a smaller amount.");
}
}else{
SendClientMessage(playerid,COLOR_RED,"You cannot carry more than 50Kg of heroin at a time.");
}
}else{
SendClientMessage(playerid,COLOR_RED,"The inventory is empty. You should order a new shipment to resupply.");
}
}
return 1;
}
if(strcmp(cmd, "/diablodrugs", true) == 0)
{
if(gteam[playerid]==Team_Smoke || IsPlayerAdmin(playerid)==1){
new tmp[256];
new quantitytaken;
new oldloadPLAYER[512];
new oldloadSAHQ[512];
new newloadPLAYER;
new newloadSAHQ;
new playername[MAX_PLAYER_NAME];
tmp = strtok(cmdtext, idx);
quantitytaken = strval(tmp);
if(!strlen(tmp)) {
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /diablodrugs [Quantity]");
return 1;
}
GetPlayerName(playerid,playername,sizeof(playername));
oldloadPLAYER = dini_Get("TruckLoads.txt",playername);
oldloadSAHQ = dini_Get("TruckLoads.txt","Diablos");
if(!dini_Exists("TruckLoads.txt")){
SendClientMessage(playerid,COLOR_RED,"File not found. Command not available.");
}
if(!IsPlayerInCircle(playerid, 2156.5261,-2279.0820,15)) {
SendClientMessage(playerid,COLOR_RED,"You are outside the bounds of the storage area.");
}
if( strval(oldloadSAHQ) > 0 ) {
if( (strval(oldloadPLAYER) + quantitytaken) <= 50) {
if( (strval(oldloadSAHQ) - quantitytaken) >= 0) {
newloadPLAYER = Add(strval(oldloadPLAYER),quantitytaken);
newloadSAHQ = Subtract(strval(oldloadSAHQ),quantitytaken);
dini_IntSet("TruckLoads.txt",playername, newloadPLAYER );
dini_IntSet("TruckLoads.txt","Diablos", newloadSAHQ );
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "DIABLOS DRUG INVENTORY");
SendClientMessage(playerid, COLOR_RED, string);
format(string, sizeof(string), "Member name: %s",playername);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Quantity transfered: %dKg",quantitytaken);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Your current quantity: %dKg",newloadPLAYER);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Current inventory quantity: %dKg",newloadSAHQ);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
}else{
SendClientMessage(playerid,COLOR_RED,"There is not enough heroin in the inventory. Select a smaller amount.");
}
}else{
SendClientMessage(playerid,COLOR_RED,"You cannot carry more than 50Kg of heroin at a time.");
}
}else{
SendClientMessage(playerid,COLOR_RED,"The inventory is empty. You should order a new shipment to resupply.");
}
}
return 1;
}
if(strcmp(cmd, "/selldrugs", true) == 0)
{
//if(gteam[playerid]==Team_Smoke || IsPlayerAdmin(playerid)==1){
new tmp1[256];
new tmp2[256];
new quantitygiven;
new oldloadCLIENT[512];
new oldloadSELLER[512];
new newloadCLIENT;
new newloadSELLER;
new sellername[MAX_PLAYER_NAME];
new clientname[MAX_PLAYER_NAME];
tmp1 = strtok(cmdtext, idx);
if(!strlen(tmp1)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /selldrugs [Player ID] [Quantity]");
return 1;
}
giveplayerid = strval(tmp1);
tmp2 = strtok(cmdtext, idx);
if(!strlen(tmp2)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /selldrugs [Player ID] [Quantity]");
return 1;
}
quantitygiven = strval(tmp2);
GetPlayerName(playerid,sellername,sizeof(sellername));
GetPlayerName(giveplayerid,clientname,sizeof(clientname));
oldloadCLIENT = dini_Get("TruckLoads.txt",sellername);
oldloadSELLER = dini_Get("TruckLoads.txt",clientname);
if(!dini_Exists("TruckLoads.txt")){
SendClientMessage(playerid,COLOR_RED,"File not found. Command not available.");
}
if( playerid != giveplayerid ) {
if( strval(oldloadSELLER) > 0 ) {
if( (strval(oldloadSELLER) + quantitygiven) <= 50) {
if( (strval(oldloadSELLER) - quantitygiven) >= 0) {
newloadCLIENT = Add(strval(oldloadCLIENT),quantitygiven);
newloadSELLER = Subtract(strval(oldloadSELLER),quantitygiven);
dini_IntSet("TruckLoads.txt",sellername, newloadCLIENT );
dini_IntSet("TruckLoads.txt",clientname, newloadSELLER );
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "DRUG TRANSACTION");
SendClientMessage(playerid, COLOR_RED, string);
format(string, sizeof(string), "Client name: %s",clientname);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Quantity sold: %dKg",quantitygiven);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Your current quantity: %dKg",newloadSELLER);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(giveplayerid, COLOR_WHITE, string);
format(string, sizeof(string), "DRUG TRANSACTION");
SendClientMessage(giveplayerid, COLOR_RED, string);
format(string, sizeof(string), "Seller name: %s",sellername);
SendClientMessage(giveplayerid, COLOR_GREY, string);
format(string, sizeof(string), "Quantity sold: %dKg",quantitygiven);
SendClientMessage(giveplayerid, COLOR_GREY, string);
format(string, sizeof(string), "Your current quantity: %dKg",newloadCLIENT);
SendClientMessage(giveplayerid, COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessage(giveplayerid, COLOR_WHITE, string);
}else{
SendClientMessage(playerid,COLOR_RED,"You do not have enough heroin to make the desired transfer.");
}
}else{
SendClientMessage(playerid,COLOR_RED,"A person cannot carry more than 50Kg of heroin. Your client must have too much on him already.");
}
}else{
SendClientMessage(playerid,COLOR_RED,"You currently do not possess any drugs.");
}
}else{
SendClientMessage(playerid,COLOR_RED,"You cannot sell drugs to yourself.");
}
//}
return 1;
}
//=========================================================== END =======================================================================================================================
if(strcmp(cmdtext, "/invisible", true) == 0) {
if (IsPlayerAdmin(playerid)==1) {
SetPlayerVirtualWorld(playerid,playerid+1);
SetPlayerColor(playerid,COLOR_GREY);
SendClientMessage(playerid,COLOR_YELLOW,"(ADMININFO) Invisible mode activated.");
}
return 1;
}
if(strcmp(cmdtext, "/visible", true) == 0) {
if (IsPlayerAdmin(playerid)==1) {
SetPlayerVirtualWorld(playerid,0);
SetPlayerColor(playerid,COLOR_GREY);
SendClientMessage(playerid,COLOR_YELLOW,"(ADMININFO) Invisible mode deactivated.");
}
return 1;
}
//========================== FINE COMMAND ===============================================================================================
//(givecash)
if(strcmp(cmd, "/fine", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fine [Player ID] [Amount]");
return 1;
}
giveplayerid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fine [Player ID] [Amount]");
return 1;
}
moneys = strval(tmp);
//printf("givecash_command: %d %d",giveplayerid,moneys);
if(gteam[playerid]==Team_LSPD || gteam[playerid] ==Team_SFPD || gteam[playerid] ==Team_SWAT || gteam[playerid] ==Team_SASP || gteam[playerid] ==Team_SWAT || gteam[playerid] == Team_DCPT || gteam[playerid] == Team_DCP || gteam[playerid]==Team_L1A){
if (IsPlayerConnected(giveplayerid)) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
playermoney = GetPlayerMoney(playerid);
GivePlayerMoney(playerid, moneys);
GivePlayerMoney(giveplayerid, (0 - moneys));
format(string, sizeof(string), "You have fined %s (ID:%d) $%d.", giveplayer,giveplayerid, moneys);
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "You have been fined $%d by Officer %s.", moneys, sendername);
format(string, sizeof(string), "(INFO) Unit %d has issued %s (ID:%d) a $%d fine.",playerid, giveplayer, giveplayerid, moneys);
SendMessageToLaw(string);
} else {
format(string, sizeof(string), "ID %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
return 1;
}
}
return 1;
}
//========================================== END ======================================================================================
stock OnPlayerInfoChange(playerid)
{
printf("OnPlayerInfoChange(%d)");
return 1;
}
public Dschool_Yes(playerid)
{
new PName[MAX_PLAYER_NAME];
GetPlayerName(playerid,PName,sizeof(PName));
DSchool=fopen("DSchool",io_readwrite);
dini_Set("DSchool",PName,"Y");
fclose(DSchool);
return 1;
}
public Dschool_No(playerid)
{
new PName[MAX_PLAYER_NAME];
GetPlayerName(playerid,PName,sizeof(PName));
DSchool=fopen("DSchool",io_readwrite);
dini_Set("DSchool",PName,"N");
fclose(DSchool);
return 1;
}
public Dschool_Dis(playerid)
{
new PName[MAX_PLAYER_NAME];
GetPlayerName(playerid,PName,sizeof(PName));
DSchool=fopen("DSchool",io_readwrite);
dini_Set("DSchool",PName,"D");
fclose(DSchool);
return 1;
}
// =============================================================== UNJAIL FUNCTIONS ==================================================
public AutoUnjailSFPD(giveplayerid)
{
new string[256];
new Float:X, Float:Y, Float:Z;
GetPlayerPos(giveplayerid, X, Y, Z);
if(IsPlayerInCircle(giveplayerid, 223.5966,109.7866,20)){
format(string, sizeof(string), "You have served your sentence and have been released from prison.");
SendClientMessage(giveplayerid, COLOR_GREEN, string);
format(string, sizeof(string), "(INFO) ID:%d has been automatically released from prison (SOC).", giveplayerid);
SendMessageToLaw(string);
printf(string);
format(string, sizeof(string), "You have been charged an incarceration fee of $2000.");
SendClientMessage(giveplayerid, COLOR_RED, string);
GivePlayerMoney(giveplayerid, -2000);
gteam[giveplayerid] = 10;
SetPlayerTeam(giveplayerid,10);
SetPlayerColor(giveplayerid,COLOR_GREY);
PlayerInfo[giveplayerid][pInt] = 6;
ResetPlayerWeapons(giveplayerid);
SetPlayerInterior(giveplayerid,10);
SetPlayerPos(giveplayerid,224.5249,114.3020,999.0156);
SetCameraBehindPlayer(giveplayerid);
TogglePlayerControllable(giveplayerid,1);
GetPlayerName(giveplayerid, giveplayername, sizeof(giveplayername));
dini_Set("Suspects.txt", giveplayername,"CLEAR (But criminal history present)");
}
return 1;
}
public AutoUnjailStatePen(giveplayerid)
{
new string[256];
new Float:X, Float:Y, Float:Z;
GetPlayerPos(giveplayerid, X, Y, Z);
//if(IsPlayerInCircle(giveplayerid, 264.4372,77.4595,20)) // Dillimore Prison
if(IsPlayerInCircle(giveplayerid, -24.4538,-224.7190,90))
{
format(string, sizeof(string), "You have served your sentence and have been released from prison.");
SendClientMessage(giveplayerid, COLOR_GREEN, string);
format(string, sizeof(string), "(INFO) ID:%d has been automatically released from prison.", giveplayerid);
SendMessageToLaw(string);
printf(string);
format(string, sizeof(string), "You have been charged an incarceration fee of $2000.");
SendClientMessage(giveplayerid, COLOR_RED, string);
GivePlayerMoney(giveplayerid, -2000);
gteam[giveplayerid] = 10;
SetPlayerTeam(giveplayerid,10);
SetPlayerColor(giveplayerid,COLOR_GREY);
PlayerInfo[giveplayerid][pInt] = 6;
ResetPlayerWeapons(giveplayerid);
//SetPlayerPos(giveplayerid,268.6105,76.8747,1001.0391); // OLD IN DILLIMORE PRISON
//SetPlayerInterior(giveplayerid,6);
SetPlayerPos(giveplayerid,-49.7214,-275.0713,5.4297); // NEW IN STATE PEN
SetPlayerInterior(giveplayerid,0);
SetCameraBehindPlayer(giveplayerid);
TogglePlayerControllable(giveplayerid,1);
GetPlayerName(giveplayerid, giveplayername, sizeof(giveplayername));
dini_Set("Suspects.txt", giveplayername,"CLEAR (But criminal history present)");
}
return 1;
}
public AutoUnjailARMY(giveplayerid)
{
new string[256];
new Float:X, Float:Y, Float:Z;
GetPlayerPos(giveplayerid, X, Y, Z);
if(IsPlayerInCircle(giveplayerid, 272.4888,1816.2968,90))
{
format(string, sizeof(string), "You have served your sentence and have been released from prison.");
SendClientMessage(giveplayerid, COLOR_GREEN, string);
format(string, sizeof(string), "(INFO) ID:%d has been automatically released from prison.", giveplayerid);
SendMessageToLaw(string);
printf(string);
format(string, sizeof(string), "You have been charged an incarceration fee of $2000.");
SendClientMessage(giveplayerid, COLOR_RED, string);
GivePlayerMoney(giveplayerid, -2000);
gteam[giveplayerid] = 10;
SetPlayerTeam(giveplayerid,10);
SetPlayerColor(giveplayerid,COLOR_GREY);
PlayerInfo[giveplayerid][pInt] = 6;
ResetPlayerWeapons(giveplayerid);
SetPlayerPos(giveplayerid,425.0673,2539.0833,16.4958); // NEW IN STATE PEN
SetPlayerInterior(giveplayerid,0);
SetCameraBehindPlayer(giveplayerid);
TogglePlayerControllable(giveplayerid,1);
GetPlayerName(giveplayerid, giveplayername, sizeof(giveplayername));
dini_Set("Suspects.txt", giveplayername,"CLEAR (But criminal history present)");
}
return 1;
}
public Taze1(giveplayerid)
{
new string[256];
format(string, sizeof(string), "Tazer still in effect.");
SendClientMessage(giveplayerid, COLOR_GREY, string);
printf(string);
TogglePlayerControllable(giveplayerid,0);
ApplyAnimation(giveplayerid,"CRACK","crckdeth2",4.1,0,1,1,1,1);
//SetTimerEx("Taze2",4000,0,"i",giveplayerid);
SetTimerEx("EndTaze",3000,0,"i",giveplayerid);
return 1;
}
public Taze2(giveplayerid)
{
new string[256];
format(string, sizeof(string), "Tazer still in effect.");
SendClientMessage(giveplayerid, COLOR_GREY, string);
printf(string);
TogglePlayerControllable(giveplayerid,1);
ApplyAnimation(giveplayerid,"PED","getup",4.1,0,1,1,1,1);
//ApplyAnimation(giveplayerid,"PED","getup_front",4.1,0,1,1,1,1);
SetTimerEx("Taze3",6000,0,"i",giveplayerid);
return 1;
}
public Taze3(giveplayerid)
{
new string[256];
format(string, sizeof(string), "Tazer still in effect.");
SendClientMessage(giveplayerid, COLOR_GREY, string);
printf(string);
TogglePlayerControllable(giveplayerid,0);
ApplyAnimation(giveplayerid,"CRACK","crckdeth2",4.1,0,1,1,1,1);
SetTimerEx("EndTaze",4000,0,"i",giveplayerid);
return 1;
}
public EndTaze(giveplayerid)
{
new string[256];
format(string, sizeof(string), "Tazer has lost effect. You have regained control of your body.");
SendClientMessage(giveplayerid, COLOR_GREEN, string);
format(string, sizeof(string), "(INFO) Tazer on ID:%d has lost effect.", giveplayerid);
SendMessageToLaw(string);
printf(string);
TogglePlayerControllable(giveplayerid,1);
ApplyAnimation(giveplayerid,"PED","getup",4.1,0,1,1,1,1);
return 1;
}
public KillInjured(i)
{
if(InjuredPlayer[i] == 1)
{
//TogglePlayerControllable(i,1);
SetPlayerHealth(i,0);
InjuredPlayer[i] = 0;
}
return 1;
}
public GiveSniper(playerid)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if( IsServiceVehicle(vehicleid) ) {
SendClientMessage(playerid, COLOR_GREEN, "You have equiped yourself with a sniper rifle.");
GivePlayerWeapon(playerid,34,100000);
}else{
SendClientMessage(playerid, COLOR_RED, "You have failed to equip a sniper rifle as you have exited the vehicle.");
}
return 1;
}
public GiveNVG(playerid)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if( IsServiceVehicle(vehicleid) ) {
SendClientMessage(playerid, COLOR_GREEN, "You have equiped yourself with night vision goggles.");
GivePlayerWeapon(playerid,44,1);
}else{
SendClientMessage(playerid, COLOR_RED, "You have failed to equip night vision goggles as you have exited the vehicle.");
}
return 1;
}
public GiveTVG(playerid)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if( IsServiceVehicle(vehicleid) ) {
SendClientMessage(playerid, COLOR_GREEN, "You have equiped yourself with thermal vision goggles.");
GivePlayerWeapon(playerid,45,1);
}else{
SendClientMessage(playerid, COLOR_RED, "You have failed to equip thermal vision goggles as you have exited the vehicle.");
}
return 1;
}
public GivePistol(playerid)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if( IsServiceVehicle(vehicleid) ) {
SendClientMessage(playerid, COLOR_GREEN, "Your Desert Eagle has been replaced with a silenced 9mm pistol.");
GivePlayerWeapon(playerid,23,100000);
}else{
SendClientMessage(playerid, COLOR_RED, "You have failed to replace your Desert Eagle with a silenced pistol as you have exited the vehicle.");
}
return 1;
}
public GiveM16(playerid)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if( IsServiceVehicle(vehicleid) ) {
SendClientMessage(playerid, COLOR_GREEN, "You have equipped yourself with a police-issue M16.");
GivePlayerWeapon(playerid,31,100000);
}else{
SendClientMessage(playerid, COLOR_RED, "You have failed to equip an M16 as you have exited the vehicle.");
}
return 1;
}
public GiveCamera(playerid)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if( IsServiceVehicle(vehicleid) ) {
SendClientMessage(playerid, COLOR_GREEN, "You have equipped yourself with a police-issue camera.");
GivePlayerWeapon(playerid,43,100000);
}else{
SendClientMessage(playerid, COLOR_RED, "You have failed to equip a camera as you have exited the vehicle.");
}
return 1;
}
public GiveFireEx(playerid)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if( IsServiceVehicle(vehicleid) ) {
SendClientMessage(playerid, COLOR_GREEN, "You have equipped yourself with a fire extinguisher.");
GivePlayerWeapon(playerid,42,100000);
}else{
SendClientMessage(playerid, COLOR_RED, "You have failed to equip a fire extinguisher as you have exited the vehicle.");
}
return 1;
}
public GiveArmor(playerid)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if( IsServiceVehicle(vehicleid) ) {
SendClientMessage(playerid, COLOR_GREEN, "Field medical kit utilized - your health and armor have been replenished.");
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
}else{
SendClientMessage(playerid, COLOR_RED, "You have failed to use the field medical kit as you have exited the vehicle.");
}
return 1;
}
public GiveSWATSkin(playerid)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if( (GetVehicleModel(vehicleid) == 427) && (GetPlayerState(playerid)== PLAYER_STATE_PASSENGER) ) {
SendClientMessage(playerid, COLOR_GREEN, "You have changed your clothes. You are now wearing a SWAT uniform.");
SetPlayerArmour(playerid,100);
SetPlayerSkin(playerid, 285);
RemovePlayerFromVehicle(playerid);
}else{
SendClientMessage(playerid, COLOR_RED, "You have failed to change clothes as you have exited the vehicle.");
}
return 1;
}
public AutokickBRB(playerid)
{
if( brb[playerid] == 1 ) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "(INFO) You have been disconnected from the server due to prolongued inactivity.");
Kick(playerid);
}
return 1;
}
public AutokickAFK(playerid)
{
if( afk[playerid] == 1 ) {
SendClientMessage(playerid, COLOR_BRIGHTRED, "(INFO) You have been disconnected from the server due to prolongued inactivity.");
Kick(playerid);
}
return 1;
}
public CurePlayer(playerid,giveplayerid)
{
new sendername[MAX_PLAYER_NAME];
//new giveplayername[MAX_PLAYER_NAME];
new string[256];
if(IsPlayerInCircle(playerid, 352.8240,163.5471,15) || IsPlayerInCircle(giveplayerid, 352.8240,163.5471,15) ){
if (IsPlayerConnected(giveplayerid) || IsPlayerConnected(playerid) ){
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayername, sizeof(giveplayername));
format(string, sizeof(string), "(INFO) Unit %d has cured %s (ID:%d).", playerid, giveplayername, giveplayerid);
SendMessageToEMS(string);
format(string, sizeof(string), "Procedure successful.");
SendClientMessage(playerid,COLOR_GREEN,string);
format(string, sizeof(string), "Procedure successful.");
SendClientMessage(giveplayerid,COLOR_GREEN,string);
format(string, sizeof(string), "(INFO) You have been CURED by %s at a cost of $150.",sendername);
SendClientMessage(giveplayerid,COLOR_GREEN,string);
GivePlayerMoney(playerid,150);
GivePlayerMoney(giveplayerid,-150);
SetPlayerHealth(giveplayerid,100);
DiseasedPlayer[giveplayerid]=0;
}
}else{
format(string, sizeof(string), "The patient has exited the clinic - curing procedure aborted.");
SendClientMessage(playerid, COLOR_RED,string);
format(string, sizeof(string), "You have exited the clinic - curing procedure aborted.");
SendClientMessage(giveplayerid, COLOR_RED,string);
}
return 1;
}
public GetPlayerDistanceToPoint(playerid,Float:x,Float:y)
{
new Float:x1,Float:y1,Float:z1;
new Float:tmpdis;
GetPlayerPos(playerid,x1,y1,z1);
tmpdis = floatsqroot(floatpower(floatabs(floatsub(x,x1)),2)+floatpower(floatabs(floatsub(y,y1)),2));
return floatround(tmpdis);
}
public GetClosestPlayer(p1){
new x,Float:dis,Float:dis2,player;
player = -1;
dis = 99999.99;
for (x=0;x<MAX_PLAYERS;x++){
if (x != p1){
dis2 = GetDistanceBetweenPlayers(x,p1);
if (dis2 < dis && dis2 != -1.00 && gteam[x] == gteam[p1]){
dis = dis2;
player = x;
}
}
}
return player;
}
public Float:GetDistanceToCar(playerid,carid) {
new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
if (!IsPlayerConnected(playerid)) {
return -1.00;
}
GetPlayerPos(playerid,x1,y1,z1);
GetVehiclePos(carid,x2,y2,z2);
return floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
}
public GetClosestCar(playerid) {
if (!IsPlayerConnected(playerid)) {
return -1;
}
new Float:prevdist = 100000.000;
new prevcar;
for (new carid = 0; carid < MAX_VEHICLES; carid++) {
new Float:dist = GetDistanceToCar(playerid,carid);
if ((dist < prevdist)) {
prevdist = dist;
prevcar = carid;
}
}
return prevcar;
}
public GiveTeamMoney(team, amount)
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (gteam[i] == team && IsPlayerConnected(i)) GivePlayerMoney(i, amount);
}
}
public SetPlayerPosEx(playerid,Float:X,Float:Y,Float:Z,Float:Ang,Int)
{
new VehicleID;
if(IsPlayerInAnyVehicle(playerid) && Int == 0){
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID,X,Y,Z);
SetPlayerPos(playerid,X,Y,Z);
}else{
SetPlayerInterior(playerid,Int);
SetPlayerFacingAngle(playerid,Ang);
SetPlayerPos(playerid,X,Y,Z);
SetCameraBehindPlayer(playerid);
}
}
public IsPlayerInCircle(playerid,Float:x,Float:y,radius)
{
if(GetPlayerDistanceToPoint(playerid,x,y) < radius){
return 1;
}
return 0;
}
stock SendPlayerFormattedTextg(playerid, const str[], define)
{
new tmpbuf[256];
format(tmpbuf, sizeof(tmpbuf), str, define);
SendClientMessage(playerid, COLOR_GREEN, tmpbuf);
}
stock SendPlayerFormattedText(playerid, const str[], define)
{
new tmpbuf[256];
format(tmpbuf, sizeof(tmpbuf), str, define);
SendClientMessage(playerid, COLOR_ORANGE, tmpbuf);
}
public CountDown()
{
if (Count == 5)
{
GameTextForAll("~r~5", 999, 3);
SetTimer("CountDown", 1000, 0);
Count--;
}
else if (Count == 4)
{
GameTextForAll("~r~4", 999, 3);
SetTimer("CountDown", 1000, 0);
Count--;
}
else if (Count == 3)
{
GameTextForAll("~r~~h~3", 999, 3);
SetTimer("CountDown", 1000, 0);
Count--;
}
else if (Count == 2)
{
GameTextForAll("~r~~h~2", 999, 3);
SetTimer("CountDown", 1000, 0);
Count--;
}
else if (Count == 1)
{
GameTextForAll("~r~~h~1", 999, 3);
SetTimer("CountDown", 1000, 0);
Count--;
}
else if (Count == 0)
{
GameTextForAll("~g~~h~GO", 999, 3);
Count=5;
}
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new PName[MAX_PLAYER_NAME];
GetPlayerName(playerid,PName,sizeof(PName));
if((newstate==PLAYER_STATE_DRIVER)&&(strcmp(dini_Get("DLicences.txt",PName),"REVOKED",false)==0)) {
SendClientMessage(playerid,COLOR_BRIGHTRED,"Driving without a license is a crime. Jail time can result if prosecuted.");
SendClientMessage(playerid,COLOR_GREY,"You can apply for a driver's license in the DMV forum at www.erp-clan.com.");
SendClientMessage(playerid,COLOR_GREY,"You can type /Mylicense to view the status of your driver's license.");
SendClientMessage(playerid,COLOR_GREY,"Drive safely and remember to make a short stop at every intersection.");
new vehicleid = GetPlayerVehicleID(playerid);
MessageForDriver(playerid, vehicleid);
GameTextForPlayer(playerid,"~r~~h~WARNING ~n~~r~You are driving without a license ~n~~r~You may be arrested",6000,3);
printf("%s (ID:%d) is driving without a licence.",PName,playerid);
}else{
if((newstate==PLAYER_STATE_DRIVER)&&(strcmp(dini_Get("DLicences.txt",PName),"VALID",false)==0)) {
//SendClientMessage(playerid,COLOR_BRIGHTRED,"WARNING: You are driving without a license. You may be arrested.");
//printf("%s(ID:%d) is driving with a suspended licence.",PName,playerid);
}else{
if((newstate==PLAYER_STATE_DRIVER)) {
new vehicleid = GetPlayerVehicleID(playerid);
MessageForDriver(playerid, vehicleid);
SendClientMessage(playerid,COLOR_BRIGHTRED,"Driving without a license is a crime. Jail time can result if prosecuted.");
SendClientMessage(playerid,COLOR_GREY,"You can apply for a driver's license in the DMV forum at www.erp-clan.com.");
SendClientMessage(playerid,COLOR_GREY,"You can type /Mylicense to view the status of your driver's license.");
SendClientMessage(playerid,COLOR_GREY,"Drive safely and remember to make a short stop at every intersection.");
GameTextForPlayer(playerid,"~r~~h~WARNING ~n~~r~You are driving without a license ~n~~r~You may be arrested",6000,3);
printf("%s (ID:%d) is driving without a licence.",PName,playerid);
return 1;
}
if (newstate==PLAYER_STATE_PASSENGER)
{
new vehicleid = GetPlayerVehicleID(playerid);
MessageForPassenger(playerid,vehicleid);
return 1;
}
if (newstate==PLAYER_STATE_ONFOOT)
{
TextDrawHideForPlayer(playerid,medidorTanque[playerid]);
SinGas[playerid]=0;
TogglePlayerControllable(playerid,true);
}
}
return 1;
}return 0;}
stock IsStringAName(string[])
{
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1)
{
new testname[MAX_PLAYER_NAME];
GetPlayerName(i, testname, sizeof(testname));
//printf("IsS:testname = %s : string = %s",testname,string);
if(strcmp(testname, string, true, strlen(string)) == 0)
{
//printf("TRUE IsS:testname = %s : string = %s",testname,string);
return 1;
}
}
}
return 0;
}
stock GetPlayerID(string[])
{
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1)
{
new testname[MAX_PLAYER_NAME];
GetPlayerName(i, testname, sizeof(testname));
//printf("GetP:testname = %s : string = %s",testname,string);
if(strcmp(testname, string, true, strlen(string)) == 0)
{
//printf("TRUE GetP:testname = %s : string = %s playerid %d",testname,string, i);
return i;
}
}
}
return INVALID_PLAYER_ID;
}
stock ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5)
{
if (gdebug >= 3){printf("DEBUG ProxDetector()");}
new Float:posx, Float:posy, Float:posz;
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
//radi = 2.0; //Trigger Radius
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1)
{
if(!BigEar[i])
{
GetPlayerPos(i, posx, posy, posz);
tempposx = (oldposx -posx);
tempposy = (oldposy -posy);
tempposz = (oldposz -posz);
//printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
{
SendClientMessage(i, col1, string);
}
else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
{
SendClientMessage(i, col2, string);
}
else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
{
SendClientMessage(i, col3, string);
}
else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
{
SendClientMessage(i, col4, string);
}
else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
SendClientMessage(i, col5, string);
}
}
else
{
SendClientMessage(i, col1, string);
}
}
}
return 1;
}
stock OOCOff(color,const string[])
{
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1 && !gOoc[i])
{
SendClientMessage(i, color, string);
}
}
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_ACTION ){
if(IsPlayerInAnyVehicle(playerid)){
new vehID = GetPlayerVehicleID(playerid);
if(!IsTrailerAttachedToVehicle(vehID)){
new Float:x, Float:y, Float:z;
GetVehiclePos(vehID, x, y, z );
new trailer;
GetVehicleWithinDistance(playerid, x, y, z, 100.0, trailer);
if(IsVehicleTrailer(trailer)){
AttachTrailerToVehicle(trailer, vehID);
}
}
else{
DetachTrailerFromVehicle(vehID);
}
}
}
return 1;
}
IsVehicleTrailer( vehicleid){
new model = GetVehicleModel(vehicleid);
switch(model){
case SemiTrailer1:return 1;
case SemiTrailer2:return 1;
case SemiTrailer3:return 1;
case Baggagebox1:return 1;
case Baggagebox2:return 1;
case FarmTrailer:return 1;
case Stairs:return 1;
case PetrolTrailer:return 1;
case UtilsTrailer:return 1;
default: return 0;
}
return 1;
}
GetVehicleWithinDistance( playerid, Float:x1, Float:y1, Float:z1, Float:dist, &veh){
for(new i = 1; i < MAX_VEHICLES; i++){
if(GetVehicleModel(i) > 0){
if(GetPlayerVehicleID(playerid) != i ){
new Float:x, Float:y, Float:z;
new Float:x2, Float:y2, Float:z2;
GetVehiclePos(i, x, y, z);
x2 = x1 - x; y2 = y1 - y; z2 = z1 - z;
new Float:vDist = (x2*x2+y2*y2+z2*z2);
printf("vehicle %d is %f", i, vDist);
if( vDist < dist){
veh = i;
}
}
}
}
}
public AreaProcess() {
new people_in_area;
for(new i; i<SLOTS;i++) {
if(IsPlayerConnected(i)) {
new Float:x, Float:y, Float:z;
GetPlayerPos(i, x, y, z);
if(x >= MINX && x <= MAXX && y >= MINY && y <= MAXY) {
people_in_area++;
}
}
}
if(people_in_area == 0) { // Noone's there, yet we can close the door
MoveObject(objects[0],doors[0][0],doors[0][1],doors[0][2],MOVE_SPEED);
MoveObject(objects[1],doors[1][0],doors[1][1],doors[1][2],MOVE_SPEED);
doors_open[0] = -2;
doors_open[1] = -2;
}
}
public OnObjectMoved(objectid) {
if(objects[0] == objectid) {
if(doors_open[0] == -1) {
SetObjectPos(objectid,doors[0][0]+5.0,doors[0][1],doors[0][2]);
// those setobjectpos is just because of a bug with MoveObject, if a player joins while the object is
// moving, it's frozen for him.
doors_open[0] = 1;
} else if(doors_open[0] == -2) {
SetObjectPos(objectid,doors[0][0],doors[0][1],doors[0][2]);
doors_open[0] = 0;
}
} else if(objects[1] == objectid) {
if(doors_open[1] == -1) {
SetObjectPos(objectid,doors[1][0]-5.0,doors[1][1],doors[1][2]);
doors_open[1] = 1;
} else if(doors_open[1] == -2) {
SetObjectPos(objectid,doors[1][0],doors[1][1],doors[1][2]);
doors_open[1] = 0;
}
}
}
public KeyPress() {
for(new i; i<SLOTS;i++) {
if(IsPlayerConnected(i)) {
new Float:x, Float:y, Float:z;
GetPlayerPos(i, x, y, z);
if(x >= MINX && x <= MAXX && y >= MINY && y < MAXY) {
new Keys[3];
GetPlayerKeys(i, Keys[0], Keys[1], Keys[2]);
if(Keys[0] != last_keys[i] && Keys[0] & KEY_LOOK_BEHIND) { // usually NUM1 on foot, 2 in car
if(doors_open[0] == 1 || doors_open[0] == -1) { // Doors are open or going to open
MoveObject(objects[0],doors[0][0],doors[0][1],doors[0][2],MOVE_SPEED);
MoveObject(objects[1],doors[1][0],doors[1][1],doors[1][2],MOVE_SPEED);
doors_open[0] = -2;
doors_open[1] = -2;
} else { // Closed, open them
MoveObject(objects[0],doors[0][0]+5.0,doors[0][1],doors[0][2],MOVE_SPEED);
MoveObject(objects[1],doors[1][0]-5.0,doors[1][1],doors[1][2],MOVE_SPEED);
doors_open[0] = -1;
doors_open[1] = -1;
}
}
last_keys[i] = Keys[0];
}
}
}
}
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
if (gdebug >= 3){printf("DEBUG ProxDetectorS()");}
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
//printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
return 0;
}
// ============================================================= WEATHER CODE ============================================================================
GetRandomWeather(weather, ...) {
new random_weather = weather, count = 0, len = numargs() - 1;
if(len > 0) {
do {
random_weather = getarg(random(len*1000)/1000);
count++;
} while(random_weather == weather && count < 10); // try up to 10 times to get a random weather
}
return random_weather;
}
GetSequencedWeather(hour) {
static weather = 10;
switch(weather) { // only normal weather changes are possible, eg clouds before rain and no sandstorm after rain
case 0 .. 7, 10: { // blue skies/clouds
switch(hour) {
case 11 .. 14: weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7,9,10,11,17,18,20,27,28,29,35,36,37,38,39);
case 17 .. 23: weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7,9,10,20);
default: weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7,9,10,12,13,14,15,20,27,28,29);
}
}
case 8: { // stormy
weather = GetRandomWeather(weather,8,9,16,20,21,22,30,31,32,33);
}
case 9: { // cloudy and foggy
switch(hour) {
case 17 .. 23: weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7,9,20);
default: weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7,9,20,27,28,29,30,31,32,33);
}
}
case 11, 17, 18: { // scorching hot/bright
switch(hour) {
case 11 .. 14: weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7,9,10,11,17,18,20,27,28,29,35,26,37,38,39);
default: weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7,9,10,20);
}
}
case 12 .. 15: { // very dull, colorless, hazy
switch(hour) {
case 16 .. 19: weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7,9,12,13,14,15,16,20,21,22,33,35);
default: weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7,9,12,13,14,15,16,20);
}
}
case 16: { // dull, cloudy, rainy
weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7,9,12,13,14,15,16,20,33,35);
}
case 19: { // sandstorm
weather = GetRandomWeather(weather,8,16);
}
case 20: { // foggy/greenish
weather = GetRandomWeather(weather,9,16,20,21,22);
}
case 21, 22: { // very dark, gradiented skyline, purple/green
weather = GetRandomWeather(weather,8,16,20,21,22);
}
case 23 .. 26: { // variations of pale orange
switch(hour) {
case 7 .. 11, 16 .. 20: GetRandomWeather(weather,0,1,2,3,4,5,6,7,9,12,13,14,15,20,23,24,25,26,27,28,29,35,36,37,38);
default: weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7,9,12,13,14,15,20);
}
}
case 27 .. 29: { // variations of fresh blue
switch(hour) {
case 11 .. 14: weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7,9,10,11,17,18,20,27,28,29,35,36,37,38,39);
case 17 .. 23: weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7,9,10,20);
default: weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7,9,10,12,13,14,15,20);
}
}
case 30 .. 32: { // variations of dark, cloudy, teal
weather = GetRandomWeather(weather,8,9,16,20,21,22);
}
case 33: { // dark, cloudy, brown
switch(hour) {
case 17 .. 23: weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7,16,20);
default: weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7,16,20);
}
}
case 34: { // blue/purple, regular
weather = GetRandomWeather(weather,16,20,21,22);
}
case 35: { // dull brown
switch(hour) {
case 11 .. 14: weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7,9,11,17,18,35,36,37,38);
case 17 .. 23: weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7,9,23,24);
default: weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7,9,12,13,14,15);
}
}
case 36 .. 38: { // bright, foggy, orange
switch(hour) {
case 11 .. 14: weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7,9,11,17,18);
case 17 .. 23: weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7,9,23,24);
default: weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7,9);
}
}
case 39: { // extremely bright
switch(hour) {
case 11 .. 14: weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7,10,11,17,18,27,28,29,39);
case 17 .. 23: weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7,10);
default: weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7,10);
}
}
case 40 .. 42: { // blue/purple cloudy
weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7,16,20);
}
case 43: { // dark toxic clouds
weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7);
}
case 44: { // black/white sky
weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7,9,10,12,13,14,15);
}
case 45: { // black/purple sky
weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7,9,10,12,13,14,15);
}
default: {
weather = GetRandomWeather(weather,0,1,2,3,4,5,6,7,9,10,12,13,14,15);
}
}
return weather;
}
public Timer_DayHeartbeat() {
static hour = 0;
SetWorldTime(hour);
if(!(hour % 3)) SetWeather(GetSequencedWeather(hour));
hour++, hour %= 24;
}
// ===================================== END WEATHER CODE =======================================================================================================
public OnPlayerSelectedMenuRow(playerid, row)
{
new Menu:Current = GetPlayerMenu(playerid);
if (GetPlayerMenu(playerid)==MenuGas)
{
new vid =GetPlayerVehicleID(playerid);
switch (row)
{
case 0: {
if (combustible[vid] == FULLTANK)
{
SendClientMessage(playerid, COLOR_RED, "This car is already refuelled.");
TogglePlayerControllable(playerid,true);
return 1;
}
new cant=FULLTANK-combustible[vid];
if (GASPRICE*cant>GetPlayerMoney(playerid))
{
SendClientMessage(playerid, COLOR_RED, "You don't have enough money..");
TogglePlayerControllable(playerid,true);
return 1;
}
combustible[vid]=combustible[vid]+cant;
GivePlayerMoney(playerid,GASPRICE*cant*-1);
new string[255];
new string2[255];
format(string, sizeof(string), "You bought %d gallons of fuel.", cant);
format(string2, sizeof(string2), "Your car has been refuelled with %d gallons. The tank is full.", cant);
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string, sizeof(string), "Fuel:%d", combustible[vid]);
actualizarMedidor(playerid,string);
for (new j=0;j<MAX_PLAYERS;j++)
{
if ((IsPlayerConnected(j))&&(IsPlayerInVehicle(j,vid))&&(j!=playerid))
{
SendClientMessage(j, COLOR_YELLOW, string2);
}
}
}
case 1: {
if (combustible[vid] >= FULLTANK/2)
{
SendClientMessage(playerid, COLOR_RED, "The tank is half-filled.");
TogglePlayerControllable(playerid,true);
return 1;
}
new cant=(FULLTANK/2)-combustible[vid];
if (GASPRICE*cant>GetPlayerMoney(playerid))
{
SendClientMessage(playerid, COLOR_RED, "You don't have enough money.");
TogglePlayerControllable(playerid,true);
return 1;
}
combustible[vid]=combustible[vid]+cant;
GivePlayerMoney(playerid,GASPRICE*cant*-1);
new string[255];
new string2[255];
format(string, sizeof(string), "You bought %d gallons of fuel, the tank is full", cant);
format(string2, sizeof(string2), "Your car has been refuelled with %d gallons of fuel, the tank is full", cant);
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string, sizeof(string), "Fuel:%d", combustible[vid]);
actualizarMedidor(playerid,string);
for (new j=0;j<MAX_PLAYERS;j++)
{
if ((IsPlayerConnected(j))&&(IsPlayerInVehicle(j,vid))&&(j!=playerid))
{
SendClientMessage(j, COLOR_YELLOW, string2);
}
}
}
}
TogglePlayerControllable(playerid,true);
}
if(Current == Weapons) {
switch(row){
case 0:
if(IsPlayerConnected(playerid))
{
ShowMenuForPlayer(Pistols, playerid);
}
case 1:
if(IsPlayerConnected(playerid))
{
ShowMenuForPlayer(Shotguns, playerid);
}
case 2:
if(IsPlayerConnected(playerid))
{
ShowMenuForPlayer(Armor, playerid);
}
case 3:
if(IsPlayerConnected(playerid))
{
ShowMenuForPlayer(SMG, playerid);
}
case 4:
if(IsPlayerConnected(playerid))
{
ShowMenuForPlayer(Thrown, playerid);
}
case 5:
if(IsPlayerConnected(playerid))
{
ShowMenuForPlayer(Rifle, playerid);
}
case 6:
if(IsPlayerConnected(playerid))
{
ShowMenuForPlayer(Assault, playerid);
}
}
}
if(Current == Pistols) {
switch(row){
case 0:
if(GetPlayerMoney(playerid) >= 299)
{
GivePlayerWeapon(playerid, 22, 250); // 9mm
GivePlayerMoney(playerid,-300);
ShowMenuForPlayer(Weapons, playerid);
}
else
{
SendClientMessage(playerid,COLOR_RED,"You do not have enough money to purchase this item.");
ShowMenuForPlayer(Weapons, playerid);
}
case 1:
if(GetPlayerMoney(playerid) >= 399)
{
GivePlayerWeapon(playerid, 23, 250); // silenced 9mm
GivePlayerMoney(playerid,-400);
ShowMenuForPlayer(Weapons, playerid);
}
else
{
SendClientMessage(playerid,COLOR_RED,"You do not have enough money to purchase this item.");
ShowMenuForPlayer(Weapons, playerid);
}
case 2:
if(GetPlayerMoney(playerid) >= 499)
{
GivePlayerWeapon(playerid, 24, 250); //deagle
GivePlayerMoney(playerid,-500);
ShowMenuForPlayer(Weapons, playerid);
}
else
{
SendClientMessage(playerid,COLOR_RED,"You do not have enough money to purchase this item.");
ShowMenuForPlayer(Weapons, playerid);
}
case 3:ShowMenuForPlayer(Weapons, playerid);
}
}
if(Current == Shotguns) {
switch(row){
case 0:
if(GetPlayerMoney(playerid) >= 799)
{
GivePlayerWeapon(playerid, 25, 200); // Shotgun
GivePlayerMoney(playerid,-800);
ShowMenuForPlayer(Weapons, playerid);
}
else
{
SendClientMessage(playerid,COLOR_RED,"You do not have enough money to purchase this item.");
ShowMenuForPlayer(Weapons, playerid);
}
case 1:
if(GetPlayerMoney(playerid) >= 6799)
{
GivePlayerWeapon(playerid, 26, 100); // Sawnoff Shotgun
GivePlayerMoney(playerid,-6800);
ShowMenuForPlayer(Weapons, playerid);
}
else
{
SendClientMessage(playerid,COLOR_RED,"You do not have enough money to purchase this item.");
ShowMenuForPlayer(Weapons, playerid);
}
case 2:
if(GetPlayerMoney(playerid) >= 1499)
{
GivePlayerWeapon(playerid, 27, 200); //Combat Shotgun
GivePlayerMoney(playerid,-1500);
ShowMenuForPlayer(Weapons, playerid);
}
else
{
SendClientMessage(playerid,COLOR_RED,"You do not have enough money to purchase this item.");
ShowMenuForPlayer(Weapons, playerid);
}
case 3:ShowMenuForPlayer(Weapons, playerid);
}
}
if(Current == Armor) {
switch(row){
case 0:
if(GetPlayerMoney(playerid) >= 499)
{
SetPlayerArmour(playerid,50.0); // 50% armor
GivePlayerMoney(playerid,-500);
ShowMenuForPlayer(Weapons, playerid);
}
else
{
SendClientMessage(playerid,COLOR_RED,"You do not have enough money to purchase this item.");
ShowMenuForPlayer(Weapons, playerid);
}
case 1:
if(GetPlayerMoney(playerid) >= 999)
{
SetPlayerArmour(playerid,100.0); // 100% armor
GivePlayerMoney(playerid,-1000);
ShowMenuForPlayer(Weapons, playerid);
}
else
{
SendClientMessage(playerid,COLOR_RED,"You do not have enough money to purchase this item.");
ShowMenuForPlayer(Weapons, playerid);
}
case 2:ShowMenuForPlayer(Weapons, playerid);
}
}
if(Current == SMG) {
switch(row){
case 0:
if(GetPlayerMoney(playerid) >= 699)
{
GivePlayerWeapon(playerid, 29, 300); // SMG MP5
GivePlayerMoney(playerid,-700);
ShowMenuForPlayer(Weapons, playerid);
}
else
{
SendClientMessage(playerid,COLOR_RED,"You do not have enough money to purchase this item.");
ShowMenuForPlayer(Weapons, playerid);
}
case 1:ShowMenuForPlayer(Weapons, playerid);
}
}
if(Current == Thrown) {
switch(row){
case 0:
if(GetPlayerMoney(playerid) >= 1999)
{
GivePlayerWeapon(playerid, 16, 15); // Granade
GivePlayerMoney(playerid,-2000);
ShowMenuForPlayer(Weapons, playerid);
}
else
{
SendClientMessage(playerid,COLOR_RED,"You do not have enough money to purchase this item.");
ShowMenuForPlayer(Weapons, playerid);
}
case 1:
if(GetPlayerMoney(playerid) >= 299)
{
GivePlayerWeapon(playerid, 17, 15); // Tear gas
GivePlayerMoney(playerid,-300);
ShowMenuForPlayer(Weapons, playerid);
}
else
{
SendClientMessage(playerid,COLOR_RED,"You do not have enough money to purchase this item.");
ShowMenuForPlayer(Weapons, playerid);
}
case 2:ShowMenuForPlayer(Weapons, playerid);
}
}
if(Current == Rifle) {
switch(row){
case 0:
if(GetPlayerMoney(playerid) >= 5499)
{
GivePlayerWeapon(playerid, 33, 90); // rifle
GivePlayerMoney(playerid,-5500);
ShowMenuForPlayer(Weapons, playerid);
}
case 1:
if(GetPlayerMoney(playerid) >= 9999)
{
GivePlayerWeapon(playerid, 34, 70); // sniper
GivePlayerMoney(playerid,-10000);
ShowMenuForPlayer(Weapons, playerid);
}
else
{
SendClientMessage(playerid,COLOR_RED,"You do not have enough money to purchase this item.");
ShowMenuForPlayer(Weapons, playerid);
}
case 2:ShowMenuForPlayer(Weapons, playerid);
}
}
if(Current == Assault) {
switch(row){
case 0:
if(GetPlayerMoney(playerid) >= 8099)
{
GivePlayerWeapon(playerid, 30, 300); // ak47
GivePlayerMoney(playerid,-8100);
ShowMenuForPlayer(Weapons, playerid);
}
else
{
SendClientMessage(playerid,COLOR_RED,"You do not have enough money to purchase this item.");
ShowMenuForPlayer(Weapons, playerid);
}
case 1:
if(GetPlayerMoney(playerid) >= 7999)
{
GivePlayerWeapon(playerid, 31, 300); // m4
GivePlayerMoney(playerid,-8000);
ShowMenuForPlayer(Weapons, playerid);
}
else
{
SendClientMessage(playerid,COLOR_RED,"You do not have enough money to purchase this item.");
ShowMenuForPlayer(Weapons, playerid);
}
case 2:ShowMenuForPlayer(Weapons, playerid);
}
}
if(Current == Weapons) {
switch(row){
case 0:
if(IsPlayerConnected(playerid))
{
ShowMenuForPlayer(Pistols, playerid);
}
case 1:
if(IsPlayerConnected(playerid))
{
ShowMenuForPlayer(Shotguns, playerid);
}
case 2:
if(IsPlayerConnected(playerid))
{
ShowMenuForPlayer(Armor, playerid);
}
case 3:
if(IsPlayerConnected(playerid))
{
ShowMenuForPlayer(SMG, playerid);
}
case 4:
if(IsPlayerConnected(playerid))
{
ShowMenuForPlayer(Thrown, playerid);
}
case 5:
if(IsPlayerConnected(playerid))
{
ShowMenuForPlayer(Rifle, playerid);
}
case 6:
if(IsPlayerConnected(playerid))
{
ShowMenuForPlayer(Assault, playerid);
}
}
}
return 1;
}
public OnPlayerExitedMenu(playerid)
{
TogglePlayerControllable(playerid, true);
}
#define VTYPE_CAR 1
#define VTYPE_HEAVY 2
#define VTYPE_BIKE 3
#define VTYPE_AIR 4
#define VTYPE_SEA 5
#define VTYPE_BMX 6
#define VTYPE_TRAILER 7
#define VTYPE_TRAIN 8
GetVehicleTypeFromId(mid)
{
new type;
// ================== CARS =======
switch(mid) {
case
416, //ambulan - car
445, //admiral - car
602, //alpha - car
485, //baggage - car
568, //bandito - car
429, //banshee - car
499, //benson - car
424, //bfinject, //car
536, //blade - car
496, //blistac - car
504, //bloodra - car
422, //bobcat - car
609, //boxburg - car
498, //boxville, //car
401, //bravura - car
575, //broadway, //car
518, //buccanee, //car
402, //buffalo - car
541, //bullet - car
482, //burrito - car
431, //bus - car
438, //cabbie - car
457, //caddy - car
527, //cadrona - car
483, //camper - car
524, //cement - car
415, //cheetah - car
542, //clover - car
589, //club - car
480, //comet - car
596, //copcarla, //car
599, //copcarru, //car
597, //copcarsf, //car
598, //copcarvg, //car
578, //dft30 - car
486, //dozer - car
507, //elegant - car
562, //elegy - car
585, //emperor - car
427, //enforcer, //car
419, //esperant, //car
587, //euros - car
490, //fbiranch, //car
528, //fbitruck, //car
533, //feltzer - car
544, //firela - car
407, //firetruk, //car
565, //flash - car
455, //flatbed - car
530, //forklift, //car
526, //fortune - car
466, //glendale, //car
604, //glenshit, //car
492, //greenwoo, //car
474, //hermes - car
434, //hotknife, //car
502, //hotrina - car
503, //hotrinb - car
494, //hotring - car
579, //huntley - car
545, //hustler - car
411, //infernus, //car
546, //intruder, //car
559, //jester - car
508, //journey - car
571, //kart - car
400, //landstal, //car
403, //linerun - car
517, //majestic, //car
410, //manana - car
551, //merit - car
500, //mesa - car
418, //moonbeam, //car
572, //mower - car
423, //mrwhoop - car
516, //nebula - car
582, //newsvan - car
467, //oceanic - car
404, //peren - car
514, //petro - car
603, //phoenix - car
600, //picador - car
413, //pony - car
426, //premier - car
436, //previon - car
547, //primo - car
489, //rancher - car
441, //rcbandit, //car
594, //rccam - car
564, //rctiger - car
515, //rdtrain - car
479, //regina - car
534, //remingtn, //car
505, //rnchlure, //car
442, //romero - car
440, //rumpo - car
475, //sabre - car
543, //sadler - car
605, //sadlshit, //car
495, //sandking, //car
567, //savanna - car
428, //securica, //car
405, //sentinel, //car
535, //slamvan - car
458, //solair - car
580, //stafford, //car
439, //stallion, //car
561, //stratum - car
409, //stretch - car
560, //sultan - car
550, //sunrise - car
506, //supergt - car
601, //swatvan - car
574, //sweeper - car
566, //tahoma - car
549, //tampa - car
420, //taxi - car
459, //topfun - car
576, //tornado - car
583, //tug - car
451, //turismo - car
558, //uranus - car
552, //utility - car
540, //vincent - car
491, //virgo - car
412, //voodoo - car
478, //walton - car
421, //washing - car
529, //willard - car
555, //windsor - car
456, //yankee - car
554, //yosemite, //car
477, //zr3 50 - car
470 //patriot - car
: type = VTYPE_CAR;
// ================== BIKES =======
case
581, //bf400 - bike
523, //copbike - bike
462, //faggio - bike
521, //fcr900 - bike
463, //freeway - bike
522, //nrg500 - bike
461, //pcj600 - bike
448, //pizzaboy, //bike
468, //sanchez - bike
586, //wayfarer, //bike
471 //quad - quad
: type = VTYPE_BIKE;
// ================== BMX =======
case
509, //bike - bmx
481, //bmx - bmx
510 //mtbike - bmx
: type = VTYPE_BMX;
// ================== SEA =======
case
472, //coastg - boat
473, //dinghy - boat
493, //jetmax - boat
595, //launch - boat
484, //marquis - boat
430, //predator, //boat
453, //reefer - boat
452, //speeder - boat
446, //squalo - boat
454 //tropic - boat
: type = VTYPE_SEA;
// ================== AIR =======
case
548, //cargobob, //heli
425, //hunter - heli
417, //leviathn, //heli
487, //maverick, //heli
497, //polmav - heli
563, //raindanc, //heli
501, //rcgoblin, //heli
465, //rcraider, //heli
447, //seaspar - heli
469, //sparrow - heli
488, //vcnmav - heli
592, //androm - plane
577, //at 400 - plane
511, //beagle - plane
512, //cropdust, //plane
593, //dodo - plane
520, //hydra - plane
553, //nevada - plane
464, //rcbaron - plane
476, //rustler - plane
519, //shamal - plane
460, //skimmer - plane
513, //stunt - plane
539 //vortex - plane
: type = VTYPE_AIR;
// ================== HEAVY =======
case
588, //hotdog - car
437, //coach - car
532, //combine - car
433, //barracks, //car
414, //mule - car
443, //packer - car
432, //rhino - car
525, //towtruck, //car
531, //tractor - car
408, //trash - car
406, //dumper - mtruck
573, //duneride, //mtruck
444, //monster - mtruck
556, //monstera, //mtruck
557 //monsterb, //mtruck
: type = VTYPE_HEAVY;
// ================== TRAILERS =======
case
435, //artict1 - trailer
450, //artict2 - trailer
591, //artict3 - trailer
606, //bagboxa - trailer
607, //bagboxb - trailer
610, //farmtr1 - trailer
584, //petrotr - trailer
608, //tugstair - trailer
611 //utiltr1 - trailer
: type = VTYPE_TRAILER;
// ================== TRAINS =======
case
590, //freibox - train
569, //freiflat, //train
537, //freight - train
538, //streak - train
570, //streakc - train
449 //tram - train
: type = VTYPE_TRAIN;
}
return type;
}