Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //------------------------------------------------------------------------------
- //==============================================================================
- //------------------------------------------------------------------------------
- //Black Eye of Gangs by Hor1z0n v0.8 // Don't remove credits
- //------------------------------------------------------------------------------
- //==============================================================================
- //------------------------------------------------------------------------------
- #include <a_samp>
- #include <dini>
- #include <dudb>
- #include <zcmd>
- #include <core>
- #include <float>
- #include "../include/gl_common.inc"
- stock sscanf(string[], format[], {Float,_}:...)
- {
- new
- formatPos = 0,
- stringPos = 0,
- paramPos = 2,
- paramCount = numargs();
- while (paramPos < paramCount && string[stringPos])
- {
- switch (format[formatPos++])
- {
- case '\0':
- {
- return 0;
- }
- case 'i', 'd':
- {
- new
- neg = 1,
- num = 0,
- ch = string[stringPos];
- if (ch == '-')
- {
- neg = -1;
- ch = string[++stringPos];
- }
- do
- {
- stringPos++;
- if (ch >= '0' && ch <= '9')
- {
- num = (num * 10) + (ch - '0');
- }
- else
- {
- return 1;
- }
- }
- while ((ch = string[stringPos]) && ch != ' ');
- setarg(paramPos, 0, num * neg);
- }
- case 'h', 'x':
- {
- new
- ch,
- num = 0;
- while ((ch = string[stringPos++]))
- {
- switch (ch)
- {
- case 'x', 'X':
- {
- num = 0;
- continue;
- }
- case '0' .. '9':
- {
- num = (num << 4) | (ch - '0');
- }
- case 'a' .. 'f':
- {
- num = (num << 4) | (ch - ('a' - 10));
- }
- case 'A' .. 'F':
- {
- num = (num << 4) | (ch - ('A' - 10));
- }
- case ' ':
- {
- break;
- }
- default:
- {
- return 1;
- }
- }
- }
- setarg(paramPos, 0, num);
- }
- case 'c':
- {
- setarg(paramPos, 0, string[stringPos++]);
- }
- case 'f':
- {
- new tmp[25];
- strmid(tmp, string, stringPos, stringPos+sizeof(tmp)-2);
- setarg(paramPos, 0, _:floatstr(tmp));
- }
- case 's', 'z':
- {
- new
- i = 0,
- ch;
- if (format[formatPos])
- {
- while ((ch = string[stringPos++]) && ch != ' ')
- {
- setarg(paramPos, i++, ch);
- }
- if (!i) return 1;
- }
- else
- {
- while ((ch = string[stringPos++]))
- {
- setarg(paramPos, i++, ch);
- }
- }
- stringPos--;
- setarg(paramPos, i, '\0');
- }
- default:
- {
- continue;
- }
- }
- while (string[stringPos] && string[stringPos] != ' ')
- {
- stringPos++;
- }
- while (string[stringPos] == ' ')
- {
- stringPos++;
- }
- paramPos++;
- }
- while (format[formatPos] == 'z') formatPos++;
- return format[formatPos];
- }
- enum pInfo
- {
- pAdminLevel,
- pCash,
- pScore,
- pWanted,
- pJailed,
- pJailTime,
- }
- new PlayerInfo[MAX_PLAYERS][pInfo];
- #define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
- //eadmin
- #define eadmin 0x33660000
- #define CASH 1
- // Colors
- #define COLOR_BRIGHTRED 0xFF000AAA
- #define COLOR_AQUA 0x00FFFFAA
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_BEIGE 0xFFF8DCAA
- #define COLOR_BLACK 0x000000AA
- #define COLOR_BLUE 0x0000FFAA
- #define COLOR_BLUELIGHTER 0x00BFFFAA
- #define COLOR_BLUELIGHT 0x1E90FFAA
- #define COLOR_BLUEMEDIUM 0x0000CDAA
- #define COLOR_BLUEDARK 0x00008BAA
- #define COLOR_PINK 0xFF1493AA
- #define COLOR_PINKDARK 0xFF00FFAA
- #define COLOR_GREEN 0x008000AA
- #define COLOR_GREENLIGHT 0x00FF00AA
- #define COLOR_GREENDARK 0x006400AA
- #define COLOR_MAROON 0x800000AA
- #define COLOR_OKER 0x808000AA
- #define COLOR_ORANGE 0xFF4500AA
- #define COLOR_ORANGELIGHT 0xFF8C00AA
- #define COLOR_PURPLE 0x800080AA
- #define COLOR_VIOLETDARK 0x9400D3AA
- #define COLOR_INDIGO 0xAB0082AA
- #define COLOR_RED 0xFF0000AA
- #define COLOR_SAND 0xFFDEADAA
- #define COLOR_SILVER 0xC0C0C0AA
- #define COLOR_TEAL 0x008080AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_GOLD 0xFFD700AA
- #define COLOR_BROWN 0x8B4513AA
- #define COLOR_BROWNLIGHT 0xA0522DAA
- #define COLOR_GRAY 0xA9A9A9AA
- #define COLOR_GRAYDARK 0x696969AA
- #define COLOR_INVISIBLE 0xFFFFFF00
- #define SPECIAL_ACTION_PISSING 68
- //register
- #define SERVER_USER_FILE "/Users/%s.ini"
- #define smallw 4
- #define hardw 5
- //
- // Teams
- new gPlayerClass[MAX_PLAYERS];
- new gTeam[MAX_PLAYERS];
- new gPlayerLogged[MAX_PLAYERS];
- //SPEEDO
- new Text:SPEEDOS[MAX_PLAYERS];
- //Jail
- new Float:JailCellSpawns[][3] =
- {
- {197.3941,162.4637,1003.0300},
- {194.3641,175.6378,1003.0234},
- {197.8117,174.2043,1003.0234}
- };
- //Gang Zones
- new groove1;
- new groove2;
- new groove3;
- new groove4;
- new groove5;
- new groove6;
- new groove7;
- new groove8;
- new groove9;
- new groove10;
- new ballas1;
- new ballas2;
- new ballas3;
- new ballas4;
- new ballas5;
- new ballas6;
- new ballas7;
- new ballas8;
- new vagos2;
- new vagos3;
- new vagos4;
- new vagos5;
- new vagos6;
- new vagos7;
- new vagos8;
- new vagos9;
- new vagos10;
- new sicilian1;
- new sicilian2;
- new sicilian3;
- new sicilian4;
- new sicilian5;
- new sicilian6;
- new sicilian7;
- new sicilian8;
- new sicilian9;
- new army1;
- new army2;
- new army3;
- new army4;
- new army5;
- new army6;
- new army7;
- new aztecas1;
- new aztecas2;
- new aztecas3;
- new aztecas4;
- new aztecas5;
- new aztecas6;
- new aztecas7;
- new aztecas8;
- new aztecas9;
- new cosa1;
- new cosa2;
- new cosa3;
- new cosa4;
- new cosa5;
- new cosa6;
- new cosa7;
- new cosa8;
- new triads1;
- new triads2;
- new triads3;
- new triads4;
- new triads5;
- new triads6;
- new triads7;
- new eme1;
- new eme2;
- new eme3;
- new eme4;
- new eme5;
- new eme6;
- new eme7;
- new eme8;
- new bikers1;
- new bikers2;
- new bikers3;
- new bikers4;
- new bikers5;
- new bikers6;
- new bikers7;
- new bikers8;
- //Pikcups
- // Menus
- //Money
- new MoneyLost[MAX_PLAYERS];
- new MoneyPickup[MAX_PLAYERS][10];
- new bool:PickupsCreated[MAX_PLAYERS];
- new DestroyMoneyPickupst[MAX_PLAYERS];
- new InJail[MAX_PLAYERS];
- new AdminLevel[MAX_PLAYERS];
- new Mute[MAX_PLAYERS];
- new Robtime[MAX_PLAYERS];
- //TextDrawlar
- new Text:Textdraw0;
- new Text:rosu;
- new Text:galben;
- new Text:albastru;
- new Text:cmdshelp;
- //====================
- forward DestroyMoneyPickups(playerid);
- forward SendTeamMessage(team, color, string[]);
- forward SetPlayerToTeamColor(playerid);
- forward DropPlayerWeapons(playerid);
- forward DeletePickup(pickupid);
- forward GetWeaponModel(weaponid);
- forward UnJail(pId);
- forward OnPlayerUpdate(playerid);
- forward MessageToCops(color,const string[]);
- forward Die(playerid, msg[]);
- forward CanRob(playerid, msg[]);
- forward RobPrize(playerid, msg[]);
- //Money
- #define MoneyLossProcent 100
- #define TimeToDestroyMoneyPickups 15000
- new NumberOfPickups = 10;
- //Weapon drop
- //MAX PICKUPS PER WEAPON
- new DropLimit=6;
- //DELETE PICKUPS IN ... SECONDS
- new DeleteTime=15;
- // Teams
- #define TEAM_GROVE 0
- #define TEAM_BALLAS 1
- #define TEAM_VAGOS 2
- #define TEAM_AZTECAS 3
- #define TEAM_LSPD 4
- #define TEAM_BIKERS 5
- #define TEAM_ARMY 6
- #define TEAM_SICILIAN 7
- #define TEAM_COSANOSTRA 8
- #define TEAM_TRIADS 9
- #define TEAM_EME 10
- #if defined FILTERSCRIPT
- stock Save(playerid)
- {
- dini_IntSet(pInfo, "Money" , PlayerInfo[playerid][pCash]);
- }
- public OnFilterScriptInit()
- {
- print("\n~=~=~=~=~=~=~=~=~=~=~=~=~=~=~~=~=~=");
- print(" .: Black Eye of Gangs :.\n");
- print(" .: by Hor1z0n :.");
- print("~=~=~=~=~=~=~=~=~=~=~=~=~=~=~~=~=~=\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(PickupsCreated[i] == true)
- {
- for(new n=0; n<NumberOfPickups; n++)
- {
- DestroyPickup(MoneyPickup[i][n]);
- }
- KillTimer(DestroyMoneyPickupst[i]);
- }
- }
- }
- #else
- main()
- {
- print("\n~=~=~=~=~=~=~=~=~=~=~=~=~=~=~~=~=~=");
- print(" .: Black Eye of Gangs :.\n");
- print(" .: by Hor1z0n :.");
- print("~=~=~=~=~=~=~=~=~=~=~=~=~=~=~~=~=~=\n");
- }
- #endif
- public OnGameModeInit()
- {
- Textdraw0 = TextDrawCreate(15.000000,300.000000,"B.E.G Wars v0.8 by Hor1z0n.");
- cmdshelp = TextDrawCreate(15.000000,430.000000,"Type /commands /stats /help in chat for more info");
- albastru = TextDrawCreate(460.000000,405.000000,"Romania");
- galben = TextDrawCreate(460.000000,420.000000,"B.E.G Wars v0.8");
- rosu = TextDrawCreate(460.000000,435.000000,"by Hor1z0n");
- TextDrawUseBox(Textdraw0,1);
- TextDrawUseBox(albastru,1);
- TextDrawUseBox(galben,1);
- TextDrawUseBox(rosu,1);
- TextDrawBoxColor(Textdraw0,COLOR_BLACK);
- TextDrawBoxColor(albastru,0x0000FF22);
- TextDrawBoxColor(galben,0xFFFF0022);
- TextDrawBoxColor(rosu,0xFF000022);
- TextDrawTextSize(Textdraw0,208.000000,-19.000000);
- TextDrawAlignment(Textdraw0,0);
- TextDrawBackgroundColor(Textdraw0,0x000000ff);
- TextDrawFont(Textdraw0,1);
- TextDrawLetterSize(Textdraw0,0.400000,1.600000);
- TextDrawLetterSize(cmdshelp,0.200000,1.000000);
- TextDrawColor(Textdraw0,COLOR_YELLOW);
- TextDrawColor(cmdshelp,COLOR_RED);
- TextDrawColor(albastru,COLOR_BLUE);
- TextDrawColor(galben,COLOR_YELLOW);
- TextDrawColor(rosu,COLOR_RED);
- TextDrawSetOutline(Textdraw0,1);
- TextDrawSetProportional(Textdraw0,1);
- TextDrawSetShadow(Textdraw0,1);
- TextDrawSetShadow(cmdshelp,1);
- TextDrawFont(cmdshelp,3);
- //3dtextlabels--------------------------------------------------------------
- Create3DTextLabel("/streetthug\n/streetsoldier\n/udgrove",COLOR_GREEN,2492.8123,-1710.7850,1014.7422,20.0,0);
- Create3DTextLabel("/turfwalker\n/frontyardballa\n/udballas",COLOR_PURPLE,308.1769,1120.4403,1083.8828,20.0,0);
- Create3DTextLabel("/kidnapper\n/streetkiller\n/udvagos",COLOR_ORANGE,2807.5552,-1165.3676,1025.5703,20.0,0);
- Create3DTextLabel("/observer\n/thief\n/udaztecas",COLOR_BLUE,1075.5396,2077.6289,10.8203,20.0,0);
- Create3DTextLabel("/motorcop\n/patruler\n/lieutenant\n/swat\n/fbi",COLOR_SAND,1525.0012,-1677.9576,5.8906,20.0,0);
- Create3DTextLabel("/tiny\n/punk\n/udbikers",COLOR_RED,954.5814,-56.3507,1001.1246,20.0,0);
- Create3DTextLabel("/sergeant\n/general\n/udarmy",COLOR_GREY,225.7137,122.8947,999.0574,20.0,0);
- Create3DTextLabel("/piccioto\n/capodituticapi\n/udsicilian",COLOR_WHITE,934.2408,2109.9873,1011.0234,20.0,0);
- Create3DTextLabel("/soldire\n/caporegime\n/udcosanostra",COLOR_OKER,2217.0754,1594.4120,999.9735,20.0,0);
- Create3DTextLabel("/protector\n/capo\n/udtriads",COLOR_BLUELIGHT,754.8130,-40.4202,1000.5859,20.0,0);
- Create3DTextLabel("/padre\n/hermano\n/udeme",COLOR_BROWN,-2170.2595,635.3943,1052.3750,20.0,0);
- //healme textlabels
- Create3DTextLabel("Type here '/healme'",COLOR_GREEN,2498.2524,-1711.1841,1014.7422,20.0,0);
- Create3DTextLabel("Type here '/healme'",COLOR_PURPLE,332.0238,1119.5453,1083.8903,20.0,0);
- Create3DTextLabel("Type here '/healme'",COLOR_ORANGE,2819.5203,-1173.3083,1025.5703,20.0,0);
- Create3DTextLabel("Type here '/healme'",COLOR_BLUE,1091.7166,2121.3447,15.3504,20.0,0);
- Create3DTextLabel("Type here '/healme'",COLOR_SAND,249.5486,196.5705,1008.1719,20.0,0);
- Create3DTextLabel("Type here '/healme'",COLOR_RED,971.0430,-48.9377,1001.1172,20.0,0);
- Create3DTextLabel("Type here '/healme'",COLOR_GREY,238.2102,107.8858,1003.2257,20.0,0);
- Create3DTextLabel("Type here '/healme'",COLOR_WHITE,935.6519,2137.0225,1011.0234,20.0,0);
- Create3DTextLabel("Type here '/healme'",COLOR_OKER,2202.5352,1617.8859,999.9766,20.0,0);
- Create3DTextLabel("Type here '/healme'",COLOR_BLUELIGHT,754.3125,-26.5753,1000.5917,20.0,0);
- Create3DTextLabel("Type here '/healme'",COLOR_BROWN,-2160.2871,640.0001,1057.5861,20.0,0);
- //---------------------------------------------------------------
- Create3DTextLabel("Press'Enter'",COLOR_GREEN,2523.0305,-1679.2692,15.4970,20.0,0);
- Create3DTextLabel("Press'Enter'",COLOR_PURPLE,2324.1777,-1218.8508,27.9766,20.0,0);
- Create3DTextLabel("Press'Enter'",COLOR_ORANGE,2808.0039,-1190.0422,25.3455,20.0,0);
- Create3DTextLabel("Press'Enter'",COLOR_BLUE,1673.6644,-2122.4485,14.1460,20.0,0);
- Create3DTextLabel("Press'Enter'",COLOR_SAND,1553.4794,-1675.3102,16.1953,20.0,0);
- Create3DTextLabel("Press'Enter'",COLOR_RED,681.5913,-473.5256,16.5363,20.0,0);
- Create3DTextLabel("Press'Enter'",COLOR_GREY,2755.1052,-2382.2556,13.6328,20.0,0);
- Create3DTextLabel("Press'Enter'",COLOR_WHITE,2509.0000,-2120.1321,13.5469,20.0,0);
- Create3DTextLabel("Press'Enter'",COLOR_OKER,1124.0004,-2037.0791,69.8854,20.0,0);
- Create3DTextLabel("Press'Enter'",COLOR_BLUELIGHT,1004.1676,-1431.2755,13.5469,20.0,0);
- Create3DTextLabel("Press'Enter'",COLOR_BROWN,300.1774,-1154.3909,81.3890,20.0,0);
- Create3DTextLabel("Press'Enter'",COLOR_RED,2244.6514,-1664.8066,15.4766,20.0,0);
- //-----------------------------------------------------------------------------------
- Create3DTextLabel("Type /buyskin [SkinID] to buy a skin\nCost 500$",COLOR_RED,212.0662,-102.2246,1005.2578,20.0,0);
- Create3DTextLabel("You can robe this store!\nUse /robstore and run away",COLOR_OKER,207.8523,-100.9970,1005.2578,20.0,0);
- Create3DTextLabel("Use /buygun to buy guns!\nYou can also rob this store with /robstore",COLOR_OKER,295.7513,-38.3262,1001.5156,20.0,0);
- Create3DTextLabel("Use /buygun to buy guns!\nYou can also rob this store with /robstore",COLOR_OKER,295.5133,-80.6941,1001.5156,20.0,0);
- Create3DTextLabel("Use /buygun to buy guns!\nYou can also rob this store with /robstore",COLOR_OKER,291.2514,-106.2294,1001.5156,20.0,0);
- Create3DTextLabel("Here is the Melee Weapons Shop\nPress 'Enter' to enter\nYou can also rob this store!",COLOR_GREEN,2002.5015,-1782.4841,13.5537,20.0,0);
- Create3DTextLabel("Here is the Small Weapons Shop\nPress 'Enter' to enter\nYou can also rob this store!",COLOR_GREEN,1367.7048,-1279.7506,13.5469,20.0,0);
- Create3DTextLabel("Here is the Hard Weapons Shop\nPress 'Enter' to enter\nYou can also rob this store!",COLOR_GREEN,2685.9246,-1470.5939,30.5573,20.0,0);
- //GANG ZONES
- //GROOVE
- groove1 = GangZoneCreate(2441.5081,-1721.9397,2539.8772,-1628.9447);
- groove2 = GangZoneCreate(2530.2822,-1721.7056,2632.6147,-1622.5804);
- groove3 = GangZoneCreate(2423.9265,-1823.4841,2624.8948,-1722.8147);
- groove4 = GangZoneCreate(2419.3042,-1940.5369,2624.1082,-1803.1726);
- groove5 = GangZoneCreate(2325.8025,-1758.3470,2442.4734,-1635.8428);
- groove6 = GangZoneCreate(2221.1187,-1759.1849,2350.9578,-1602.7145);
- groove7 = GangZoneCreate(2357.6609,-1633.5963,2626.0034,-1600.8311);
- groove8 = GangZoneCreate(2350.9224,-1601.5435,2627.1812,-1458.7699);
- groove9 = GangZoneCreate(2225.8738,-1886.7842,2421.8145,-1743.3746);
- groove10 = GangZoneCreate(2222.5491,-1617.0259,2356.0684,-1470.1068);
- //BALLAS
- ballas1 = GangZoneCreate(2067.242675, -1389.221557, 2265.061035, -1228.900512);
- ballas2 = GangZoneCreate(2077.273437, -1231.228149, 2282.113281, -1087.954101);
- ballas3 = GangZoneCreate(2077.273437, -1231.228149, 2282.113281, -1087.954101);
- ballas4 = GangZoneCreate(2266.209960, -1170.516357, 2481.882812, -1092.539550);
- ballas5 = GangZoneCreate(2218.265625, -1455.980957, 2647.720458, -1396.926147);
- ballas6 = GangZoneCreate(1840.876586, -1463.239013, 2073.559570, -1269.061523);
- ballas7 = GangZoneCreate(1840.573364, -1267.208740, 2074.233642, -1094.783325);
- ballas8 = GangZoneCreate(2264.656982, -1380.480834, 2475.666992, -1180.634399);
- //VAGOS
- vagos2 = GangZoneCreate(2474.304443, -1183.288818, 2912.061523, -1132.161621);
- vagos3 = GangZoneCreate(2740.426757, -1260.511230, 2913.800537, -1178.488403);
- vagos4 = GangZoneCreate(2625.698974, -1885.446899, 2902.999023, -1672.008422);
- vagos5 = GangZoneCreate(2487.8284,-1391.4014,2747.3872,-1172.8063);
- vagos6 = GangZoneCreate(2728.7898,-1398.6948,2921.0420,-1253.0707);
- vagos7 = GangZoneCreate(2634.9663,-1666.5417,2743.8682,-1393.7225);
- vagos8 = GangZoneCreate(2745.2952,-1484.4573,2943.5505,-1381.0524);
- vagos9 = GangZoneCreate(2714.1169,-1666.8400,2947.3645,-1492.6141);
- vagos10 = GangZoneCreate(2476.8416,-1453.7611,2476.8416,-1453.7611);
- //SICILIAN MAFIA
- sicilian1 = GangZoneCreate(2413.5386,-2152.8020,2709.1023,-2058.6760);
- sicilian2 = GangZoneCreate(2709.0833,-2170.5071,2942.8745,-2048.4788);
- sicilian3 = GangZoneCreate(2419.7424,-2274.9507,2903.1035,-2150.3325);
- sicilian4 = GangZoneCreate(2418.3381,-2057.8850,2565.7766,-1939.2930);
- sicilian5 = GangZoneCreate(2555.8809,-2057.4683,2724.9824,-1880.9048);
- sicilian6 = GangZoneCreate(2714.9268,-2054.2922,2870.5068,-1878.2496);
- sicilian7 = GangZoneCreate(2225.1455,-2125.9753,2419.8030,-1866.0585);
- sicilian8 = GangZoneCreate(2230.8442,-2281.9294,2423.4094,-2133.7441);
- sicilian9 = GangZoneCreate(2086.5654,-2379.4519,2230.0793,-1884.8080);
- //ARMY
- army1 = GangZoneCreate(2666.2617,-2565.7695,2810.6797,-2330.2891);
- army2 = GangZoneCreate(2561.9192,-2514.3220,2678.0627,-2330.5823);
- army3 = GangZoneCreate(2373.9280,-2696.9109,2587.4714,-2330.6077);
- army4 = GangZoneCreate(2122.1387,-2705.2117,2398.6414,-2257.6663);
- army5 = GangZoneCreate(1782.2411,-2770.1599,2084.8884,-2170.1628);
- army6 = GangZoneCreate(1331.9463,-2748.1091,1801.5833,-2373.5359);
- army7 = GangZoneCreate(1327.3872,-2378.9741,1823.2642,-2169.5447);
- //AZTECAS
- aztecas1 = GangZoneCreate(1500.9897,-2189.5073,1813.4741,-2019.5452);
- aztecas2 = GangZoneCreate(1813.8042,-2176.0576,1955.7228,-1939.2938);
- aztecas3 = GangZoneCreate(1956.6600,-2177.3586,2091.7683,-1945.4641);
- aztecas4 = GangZoneCreate(1530.9368,-2071.0173,1812.0070,-1932.0487);
- aztecas5 = GangZoneCreate(1812.0066,-1939.0957,2079.6433,-1761.9779);
- aztecas6 = GangZoneCreate(2078.8169,-1915.4862,2233.8945,-1628.5707);
- aztecas7 = GangZoneCreate(1524.0541,-1882.5083,1816.5635,-1733.4230);
- aztecas8 = GangZoneCreate(1820.5393,-1742.5968,2104.8298,-1621.1365);
- aztecas9 = GangZoneCreate(1535.0228,-1743.8683,1745.7524,-1603.4529);
- //COSA NOSTRA
- cosa1 = GangZoneCreate(1058.496704, -2089.135009, 1308.264770, -1857.868408);
- cosa2 = GangZoneCreate(1304.310302, -2080.874023, 1533.186401, -1878.395019);
- cosa3 = GangZoneCreate(1039.090454, -2350.777587, 1304.348999, -2086.392089);
- cosa4 = GangZoneCreate(1295.145751, -2179.597412, 1504.606811, -2081.465576);
- cosa5 = GangZoneCreate(1059.610839, -1861.866821, 1292.550903, -1718.970703);
- cosa6 = GangZoneCreate(1290.259765, -1867.065429, 1537.341918, -1718.863525);
- cosa7 = GangZoneCreate(820.270324, -2066.709472, 1066.208496, -1861.780029);
- cosa8 = GangZoneCreate(1059.610839, -1861.866821, 1292.550903, -1718.970703);
- //THE TRIADS OF CHINA
- triads1 = GangZoneCreate(922.341979, -1565.491088, 1055.462890, -1411.466430);
- triads2 = GangZoneCreate(1043.053466, -1565.101440, 1188.640869, -1411.787597);
- triads3 = GangZoneCreate(923.401123, -1415.328857, 1189.367065, -1286.898925);
- triads4 = GangZoneCreate(826.085571, -1852.847167, 1043.764892, -1565.192016);
- triads5 = GangZoneCreate(1034.214477, -1727.555664, 1291.817749, -1564.643920);
- triads6 = GangZoneCreate(923.401123, -1415.328857, 1189.367065, -1286.898925);
- triads7 = GangZoneCreate(1186.474243, -1576.002685, 1336.147460, -1290.395507);
- //La eMe
- eme1 = GangZoneCreate(137.612762, -1255.652221, 286.783813, -1104.483642);
- eme2 = GangZoneCreate(285.000030, -1270.961791, 464.571411, -1097.791381);
- eme3 = GangZoneCreate(152.605682, -1537.037353, 284.811187, -1268.485961);
- eme4 = GangZoneCreate(467.063995, -1262.914428, 647.654907, -1101.211059);
- eme5 = GangZoneCreate(452.463012, -1382.120605, 648.974243, -1261.051513);
- eme6 = GangZoneCreate(646.121459, -1377.847656, 788.710021, -1230.794921);
- eme7 = GangZoneCreate(642.081604, -1237.379638, 790.505615, -1069.354125);
- eme8 = GangZoneCreate(284.108001, -1422.228515, 463.469512, -1266.236328);
- //BIKERS
- bikers1 = GangZoneCreate(578.935058, -554.303649, 839.529174, -410.561798);
- bikers2 = GangZoneCreate(590.456970, -704.941040, 836.573120, -544.057434);
- bikers3 = GangZoneCreate(642.247497, -887.647766, 833.364868, -691.718627);
- bikers4 = GangZoneCreate(654.274353, -1072.656616, 832.464904, -880.391845);
- bikers5 = GangZoneCreate(791.593505, -1160.763671, 1144.278198, -851.811889);
- bikers6 = GangZoneCreate(791.593505, -1160.763671, 1144.278198, -851.811889);
- bikers7 = GangZoneCreate(1143.546264, -1152.300903, 1255.888061, -916.712097);
- bikers8 = GangZoneCreate(1143.546264, -1152.300903, 1255.888061, -916.712097);
- SetGameModeText("B.E.G v0.8");
- // Grove Street Families
- AddPlayerClass(187, 2495.3772,-1689.8151,14.6665,359.5442, 0, 0, 0, 0, 0, 0);
- // East Side Hoods
- AddPlayerClass(188, 2334.4036,-1234.0586,27.9766,359.4949, 0, 0, 0, 0, 0, 0);
- // Vagos
- AddPlayerClass(258, 2808.0010,-1176.4957,25.3799,185.9302, 0, 0, 0, 0, 0, 0);
- // Aztecas
- AddPlayerClass(259, 1734.5688,-2129.1440,13.8510,355.4684, 0, 0, 0, 0, 0, 0);
- // Police
- AddPlayerClass(276, 1553.3158,-1675.6783,16.1953,90.0725, 0, 0, 0, 0, 0, 0);
- // Bickers
- AddPlayerClass(290, 681.4986,-473.7175,16.5363,177.3378, 0, 0, 0, 0, 0, 0);
- // AMRY
- AddPlayerClass(299, 2721.2224,-2380.4287,17.3403,174.8024, 0, 0, 0, 0, 0, 0);
- // SICILIAN
- AddPlayerClass(297, 2484.2524,-2120.3640,13.5469,354.8890, 0, 0, 0, 0, 0, 0);
- // COSA NOSTRA
- AddPlayerClass(262, 1123.7648,-2036.9152,69.8862,268.9068, 0, 0, 0, 0, 0, 0);
- // TRIADS
- AddPlayerClass(242, 1031.2793,-1442.6976,13.5546,92.3480, 0, 0, 0, 0, 0, 0);
- // La eMe
- AddPlayerClass(240, 299.6429,-1154.9779,81.0361,133.2045, 0, 0, 0, 0, 0, 0);
- // Cars
- // BALLAS
- AddStaticVehicle(507,2347.4727,-1253.6342,22.3319,272.4442,85,85); // ballas 01 elegant
- AddStaticVehicle(507,2347.2576,-1244.2198,22.3348,266.9613,85,85); // ballas 02 elegant
- AddStaticVehicle(507,2346.8516,-1234.9639,22.3299,267.2386,85,85); // ballas 03 elegant
- AddStaticVehicle(517,2325.9341,-1236.1556,22.3522,271.9126,85,85); // ballas 04 majestic
- AddStaticVehicle(517,2326.1584,-1245.7046,22.3370,271.8529,85,85); // ballas 05 majestic
- AddStaticVehicle(559,2326.0603,-1254.5306,22.1593,271.2032,85,85); // ballas 06 jester
- AddStaticVehicle(579,2332.0659,-1272.1399,22.4384,1.8265,85,85); // ballas 07 huntley
- AddStaticVehicle(579,2338.3740,-1271.6055,22.4385,2.5637,85,85); // ballas 08 huntley
- AddStaticVehicle(487,2243.3965,-1172.0094,33.7138,4.0693,85,85); // ballas 09 heli
- //GROOVE
- AddStaticVehicle(439,2509.8787,-1665.6620,13.3852,188.5082,86,86); // groove 01 stallion
- AddStaticVehicle(439,2505.6733,-1679.6978,13.3573,136.2319,86,86); // groove 02 stallion
- AddStaticVehicle(492,2484.7747,-1683.9615,13.1970,267.0227,86,86); // groove 03 green
- AddStaticVehicle(492,2502.1094,-1656.1394,13.2369,241.8316,86,86); // groove 04 green
- AddStaticVehicle(492,2485.8132,-1653.9874,13.1804,91.3507,86,86); // groove 05 green
- AddStaticVehicle(482,2473.3533,-1705.4377,13.6523,359.2906,86,86); // groove 06 burrito
- AddStaticVehicle(482,2473.4031,-1696.6383,13.6405,359.4107,86,86); // groove 07 burrito
- AddStaticVehicle(603,2468.8933,-1671.0935,13.2390,11.9545,86,86); // groove 08 phoenix
- AddStaticVehicle(487,2530.2126,-1676.9374,20.1061,277.7516,86,86); // groove 09 heli
- //VAGOS
- AddStaticVehicle(566,2828.4873,-1165.3916,24.8389,268.9883,6,6); // vagos 01 tahoma
- AddStaticVehicle(566,2828.0762,-1169.9503,24.8257,270.3986,6,6); // vagos 02 tahoma
- AddStaticVehicle(566,2826.9670,-1199.9155,24.7188,2.3721,6,6); // vagos 03 tahoma
- AddStaticVehicle(576,2830.5322,-1199.1229,24.1818,6.4551,6,6); // vagos 04 tornado
- AddStaticVehicle(576,2828.3899,-1174.4857,24.6146,271.0916,6,6); // vagos 05 tornado
- AddStaticVehicle(482,2805.1858,-1185.5496,25.5579,266.4940,6,6); // vagos 06 burrito
- AddStaticVehicle(482,2805.4148,-1180.7333,25.5643,264.9319,6,6); // vagos 07 burrito
- AddStaticVehicle(487,2850.4309,-1161.6298,25.0477,2.4859,6,6); // vagos 08 heli
- AddStaticVehicle(480,2850.2551,-1177.2411,24.5254,5.8472,6,6); // vagos 09 comet
- //AZTECAS
- AddStaticVehicle(487,1693.9554,-2112.9102,13.5964,270.5876,7,7); // aztecas 01 heli
- AddStaticVehicle(412,1704.9215,-2118.2578,13.2988,270.1773,7,7); // aztecas 02 voodoo
- AddStaticVehicle(412,1698.9972,-2097.1079,13.3839,0.0580,7,7); // aztecas 03 voodoo
- AddStaticVehicle(536,1711.0227,-2107.6284,13.1979,268.7992,7,7); // aztecas 04 blade
- AddStaticVehicle(536,1720.7344,-2117.6753,13.1985,271.3951,7,7); // aztecas 05 blade
- AddStaticVehicle(567,1724.3131,-2100.0986,13.4130,180.5630,7,7); // aztecas 06 savanna
- AddStaticVehicle(567,1735.6517,-2107.4421,13.3296,270.5347,7,7); // aztecas 07 savanna
- AddStaticVehicle(567,1744.7197,-2126.2549,13.4168,359.6786,7,7); // aztecas 08 savanna
- AddStaticVehicle(429,1747.7242,-2100.2051,13.2266,178.6172,7,7); // aztecas 09 banshee
- //POLICE
- AddStaticVehicle(596,1586.4189,-1671.9269,5.6143,268.7982,0,1); // police 01
- AddStaticVehicle(596,1586.2963,-1667.7262,5.6129,269.7121,0,1); // police 02
- AddStaticVehicle(596,1600.0887,-1684.1478,5.6109,89.7974,0,1); // police 03
- AddStaticVehicle(597,1599.8501,-1688.0430,5.6602,89.1690,0,1); // police 04
- AddStaticVehicle(597,1600.0466,-1692.2527,5.6593,90.5237,0,1); // police 05
- AddStaticVehicle(597,1600.2528,-1695.9629,5.6586,91.9491,0,1); // police 06
- AddStaticVehicle(598,1591.4541,-1711.1526,5.6373,359.7874,0,1); // police 07
- AddStaticVehicle(598,1587.4288,-1711.3256,5.6371,359.9720,0,1); // police 08
- AddStaticVehicle(598,1583.2821,-1711.1836,5.6380,359.9328,0,1); // police 09
- AddStaticVehicle(598,1578.7363,-1711.2302,5.6370,358.5367,0,1); // police 10
- AddStaticVehicle(599,1574.3203,-1711.2726,6.0822,359.3114,0,1); // police 11 rancher
- AddStaticVehicle(599,1570.3276,-1711.2590,6.0792,0.0288,0,1); // police 12 rancher
- AddStaticVehicle(601,1543.2969,-1684.5061,5.6494,90.0064,1,1); // police 13 water tanc
- AddStaticVehicle(427,1538.4274,-1644.3947,6.0225,0.8143,0,1); // police 14 enforcer
- AddStaticVehicle(497,1558.9586,-1611.9580,13.5588,90.1788,0,1); // police 15 heli
- //SICILIAN
- AddStaticVehicle(587,2457.1443,-2078.0095,13.2733,359.2780,90,90); // sicilian 1 alpha
- AddStaticVehicle(426,2453.6511,-2117.4604,13.2933,0.9470,90,90); // sicilian 2
- AddStaticVehicle(426,2448.6458,-2117.6262,13.2901,359.9811,90,90); // sicilian 3
- AddStaticVehicle(426,2467.9268,-2117.5742,13.2911,1.1953,90,90); // sicilian 4
- AddStaticVehicle(482,2471.1106,-2078.4600,13.6728,179.3456,90,90); // sicilian 5
- AddStaticVehicle(482,2466.5811,-2078.5278,13.6667,180.3141,90,90); // sicilian 6
- AddStaticVehicle(491,2472.3057,-2117.7781,13.3031,358.4562,90,90); // sicilian 7
- AddStaticVehicle(491,2476.5061,-2117.8921,13.3031,0.5813,90,90); // sicilian 8
- AddStaticVehicle(487,2521.3203,-2089.9834,13.7244,271.2982,90,90); // sicilian 9 heli
- //ARMY
- AddStaticVehicle(433,2796.4846,-2417.2827,14.0682,91.2462,43,0); // army 1
- AddStaticVehicle(433,2784.3179,-2417.4668,14.0712,90.1093,43,0); // army 2
- AddStaticVehicle(433,2767.3269,-2383.0625,14.0695,359.3756,43,0); // army 3
- AddStaticVehicle(470,2796.7424,-2455.5320,13.6226,91.2268,43,0); // army 4
- AddStaticVehicle(470,2787.2734,-2455.5278,13.6260,90.0713,43,0); // army 5
- AddStaticVehicle(470,2779.4946,-2455.1882,13.6282,89.6346,43,0); // army 6
- AddStaticVehicle(470,2737.7524,-2469.7102,13.6404,269.4359,43,0); // army 7
- AddStaticVehicle(470,2737.5627,-2464.1343,13.6400,270.1183,43,0); // army 8
- AddStaticVehicle(548,2779.6672,-2352.8862,15.2607,269.4096,1,1); // army 9
- //BICKERS
- AddStaticVehicle(463,695.0170,-470.1431,15.8765,269.5208,58,58); // bickers 1
- AddStaticVehicle(463,695.1013,-473.2639,15.8762,271.7395,58,58); // bickers 2
- AddStaticVehicle(463,695.1535,-467.3553,15.8762,271.7665,58,58); // bickers 3
- AddStaticVehicle(463,695.0108,-464.1331,15.8750,269.2417,58,58); // bickers 4
- AddStaticVehicle(463,695.1422,-460.9960,15.8763,272.3798,58,58); // bickers 5
- AddStaticVehicle(463,708.3022,-473.9142,15.8763,86.1891,58,58); // bickers 6
- AddStaticVehicle(463,708.2749,-470.5738,15.8762,91.6018,58,58); // bickers 7
- AddStaticVehicle(463,708.3629,-467.8611,15.8763,91.4589,58,58); // bickers 8
- AddStaticVehicle(463,708.6377,-464.3804,15.8763,89.4909,58,58); // bickers 9
- AddStaticVehicle(463,708.5651,-461.2787,15.8764,92.4502,58,58); // bickers 10
- AddStaticVehicle(463,708.9188,-457.7967,15.8766,92.2244,58,58); // bickers 11
- AddStaticVehicle(487,686.7789,-462.2895,22.7136,6.8099,58,58); // bickers 12
- // LA COSA NOSTRA
- AddStaticVehicle(482,1247.9374,-2060.5103,59.9751,269.9218,65,65); // cosa 1
- AddStaticVehicle(482,1255.9921,-2060.5156,59.7574,267.6342,65,65); // cosa 2
- AddStaticVehicle(529,1243.1621,-2015.3114,59.6004,1.0765,65,65); // cosa 3
- AddStaticVehicle(529,1243.4801,-2023.9115,59.6047,0.5304,65,65); // cosa 4
- AddStaticVehicle(529,1254.0077,-2007.3531,59.3220,267.6390,65,65); // cosa 5
- AddStaticVehicle(529,1262.8600,-2007.5339,59.0693,269.5681,65,65); // cosa 6
- AddStaticVehicle(545,1277.0527,-2046.0773,58.9471,86.8907,65,65); // cosa 7
- AddStaticVehicle(545,1245.9083,-2045.3121,59.7307,90.8882,65,65); // cosa 8
- AddStaticVehicle(487,1275.2012,-2016.3704,59.1560,120.6134,65,65); // cosa 9
- // THE TRIADS
- AddStaticVehicle(547,981.9263,-1434.0846,13.2817,358.6449,79,79); // triads 1
- AddStaticVehicle(547,988.7029,-1433.9589,13.2819,358.9695,79,79); // triads 2
- AddStaticVehicle(547,996.2534,-1433.7627,13.2825,359.1072,79,79); // triads 3
- AddStaticVehicle(547,981.9568,-1452.2133,13.2440,359.6982,79,79); // triads 4
- AddStaticVehicle(580,997.9922,-1460.8439,13.3430,0.2836,79,79); // triads 5
- AddStaticVehicle(580,1005.2990,-1460.6830,13.3445,0.4185,79,79); // triads 6
- AddStaticVehicle(589,1029.0756,-1451.5690,13.2127,270.0733,79,79); // triads 7
- AddStaticVehicle(482,1012.4747,-1460.0968,13.6668,358.7817,79,79); // triads 8
- AddStaticVehicle(482,1020.9832,-1459.6251,13.6735,359.7105,79,79); // triads 9
- AddStaticVehicle(487,1012.8854,-1438.3914,13.6756,157.7414,79,79); // triads 10
- // LA eMe
- AddStaticVehicle(487,285.6484,-1195.8359,80.6178,127.3555,30,30); // eme 1
- AddStaticVehicle(534,283.1613,-1160.6736,80.6369,223.9451,30,30); // eme 2
- AddStaticVehicle(534,287.2235,-1156.8391,80.6346,222.9877,30,30); // eme 3
- AddStaticVehicle(534,306.5376,-1163.5391,80.6332,93.3923,30,30); // eme 4
- AddStaticVehicle(579,305.7106,-1195.4186,80.8469,39.0826,30,30); // eme 5
- AddStaticVehicle(579,300.7306,-1199.0646,80.8464,36.4058,30,30); // eme 6
- AddStaticVehicle(555,292.1751,-1178.2961,80.5981,316.1828,30,30); // eme 7
- AddStaticVehicle(533,289.0420,-1175.2097,80.6232,316.0080,30,30); // eme 8
- AddStaticVehicle(533,286.1865,-1172.3617,80.6210,315.4159,30,30); // eme 9
- AddStaticVehicle(533,283.2917,-1169.3068,80.6221,314.7696,30,30); // eme 10
- //Cars ALL OVER LOS SANTOS
- AddStaticVehicle(456,2172.1484,-1704.0304,14.7217,270.6012,10,0); // car1
- AddStaticVehicle(400,2287.4597,-1727.2971,13.5528,269.4816,2,0); // car2
- AddStaticVehicle(401,2448.9727,-1761.6919,13.3652,358.3051,3,0); // car3
- AddStaticVehicle(402,2452.0356,-1789.2152,13.3835,358.2271,4,0); // car4
- AddStaticVehicle(403,2676.9880,-1673.0253,10.0034,179.0250,5,0); // car5
- AddStaticVehicle(404,2658.7212,-1697.0664,9.0550,270.1255,6,0); // car6
- AddStaticVehicle(405,2658.0645,-1707.1693,9.1952,89.5561,7,0); // car7
- AddStaticVehicle(408,2717.6353,-1479.9655,30.9244,1.0072,8,0); // car8
- AddStaticVehicle(409,2804.7483,-1251.9375,46.7103,344.9382,9,0); // car9
- AddStaticVehicle(410,2780.9492,-1313.4619,36.7393,271.7590,10,0); // car10
- AddStaticVehicle(412,2814.3506,-1430.8308,16.0872,1.5103,0,11); // car11
- AddStaticVehicle(413,2792.7444,-1446.2538,16.3278,269.3972,12,0); // car12
- AddStaticVehicle(414,2788.0820,-1876.4384,9.9261,181.2054,13,0); // car13
- AddStaticVehicle(415,2776.6995,-1840.6027,9.5520,20.5528,14,0); // car14
- AddStaticVehicle(418,2729.5437,-1999.6205,13.5433,91.6179,15,0); // car15
- AddStaticVehicle(419,2359.5466,-2155.2288,13.3733,133.9574,16,0); // car16
- AddStaticVehicle(420,2239.4978,-2015.7126,13.3265,90.0280,17,0); // car17
- AddStaticVehicle(421,2179.2673,-1907.3595,13.3953,181.1202,18,0); // car18
- AddStaticVehicle(422,2059.1572,-1904.3435,13.5312,180.1997,19,0); // car19
- AddStaticVehicle(423,2096.1030,-1800.6063,13.4065,272.2126,20,0); // car20
- AddStaticVehicle(424,2120.9707,-1778.4247,13.1713,271.2816,21,0); // car21
- AddStaticVehicle(426,2134.5261,-1467.1727,23.6317,358.7728,22,0); // car22
- AddStaticVehicle(428,2137.2896,-1368.4683,24.8737,358.7090,23,0); // car23
- AddStaticVehicle(429,2235.5334,-1320.4761,23.6640,180.8537,24,0); // car24
- AddStaticVehicle(431,2209.5359,-1161.3612,25.8290,89.7971,25,0); // car25
- AddStaticVehicle(434,2115.3782,-1060.2334,25.7199,141.0345,26,0); // car26
- AddStaticVehicle(436,2085.6692,-1194.4681,23.6359,270.8720,27,0); // car27
- AddStaticVehicle(438,2008.4399,-1275.0663,23.8263,179.3902,28,0); // car28
- AddStaticVehicle(439,1999.4980,-1274.9226,23.7163,359.4624,29,0); // car29
- AddStaticVehicle(440,1891.2751,-1362.2239,13.6617,183.8896,30,0); // car30
- AddStaticVehicle(442,1811.8354,-1569.7512,13.3284,222.4229,31,0); // car31
- AddStaticVehicle(443,1842.8503,-1617.1444,14.0944,90.2991,32,0); // car32
- AddStaticVehicle(444,1944.9940,-1800.9492,13.9182,269.8197,33,0); // car33
- AddStaticVehicle(445,1922.5571,-2013.5972,13.4219,178.2396,34,0); // car34
- AddStaticVehicle(448,1863.2068,-2020.5160,13.1476,272.8297,35,0); // car35
- AddStaticVehicle(449,1944.9480,-1953.7500,14.2082,270.0000,36,0); // car36 trenulet
- AddStaticVehicle(451,1778.0769,-1890.6219,13.0945,91.1270,37,0); // car37
- AddStaticVehicle(455,1801.6604,-1930.0320,13.8240,270.0774,38,0); // car38
- AddStaticVehicle(456,1836.2374,-1855.1095,13.5608,358.5057,39,0); // car39
- AddStaticVehicle(457,1717.6721,-1712.2158,13.1268,47.7912,40,0); // car40
- AddStaticVehicle(458,1636.7677,-1907.3569,13.4303,185.3988,41,0); // car41
- AddStaticVehicle(459,1647.5746,-1904.4974,13.6103,14.6189,42,0); // car42
- AddStaticVehicle(461,1553.9252,-1785.0142,13.1309,90.0535,43,0); // car43
- AddStaticVehicle(462,1553.8926,-1471.9467,13.1481,3.9163,44,0); // car44
- AddStaticVehicle(462,1551.7341,-1472.2445,13.1483,3.1277,45,0); // car45
- AddStaticVehicle(463,1419.7726,-1323.8895,13.0998,85.9360,46,0); // car46
- AddStaticVehicle(466,1464.5681,-1135.0100,23.8030,312.1262,47,0); // car47
- AddStaticVehicle(467,1377.8411,-985.5174,30.5346,351.8946,48,0); // car48
- AddStaticVehicle(468,1306.3550,-865.5318,39.2463,89.0155,49,0); // car49
- AddStaticVehicle(470,1245.8607,-1108.1543,25.4900,89.8200,50,50); // car50
- AddStaticVehicle(471,1250.3733,-1229.2137,13.1609,183.1250,51,51); // car51
- AddStaticVehicle(474,1176.5010,-1337.7756,13.6953,91.9309,52,0); // car52
- AddStaticVehicle(475,1171.2941,-1493.8429,14.3255,89.9335,52,0); // car53
- AddStaticVehicle(477,1110.8477,-1630.7831,13.3750,90.0636,53,0); // car54
- AddStaticVehicle(478,1169.6051,-1790.5934,13.4686,178.4400,54,0); // car55
- AddStaticVehicle(479,1076.9706,-1847.3872,13.2596,89.9241,55,0); // car56
- AddStaticVehicle(480,981.7457,-1611.3402,13.3056,179.9746,56,0); // car57
- AddStaticVehicle(481,959.9683,-1522.2520,13.0421,359.8105,57,0); // car58
- AddStaticVehicle(482,898.8840,-1358.6852,13.7002,89.7149,58,0); // car59
- AddStaticVehicle(483,902.1531,-1207.0575,16.9736,359.0119,59,0); // car60
- AddStaticVehicle(485,1001.3934,-1105.3809,23.4840,270.4190,60,0); // car61
- AddStaticVehicle(486,1045.0109,-1087.6455,24.0478,270.2009,61,0); // car62
- AddStaticVehicle(489,983.1433,-895.6073,42.8664,359.2623,62,0); // car63
- AddStaticVehicle(491,837.1405,-1045.9878,25.0213,127.4906,63,0); // car64
- AddStaticVehicle(492,771.5253,-1334.1200,13.3231,359.8255,64,0); // car65
- AddStaticVehicle(494,766.0792,-1151.6353,22.6259,110.5875,65,0); // car66
- AddStaticVehicle(495,688.9246,-1233.3419,16.4307,120.4886,66,0); // car67
- AddStaticVehicle(496,613.2687,-1348.3066,13.3972,101.0867,67,0); // car68
- AddStaticVehicle(498,588.2167,-1501.2134,15.4003,92.7100,68,0); // car69
- AddStaticVehicle(499,709.3599,-1591.4232,14.1244,270.6087,69,0); // car70
- AddStaticVehicle(500,738.3250,-1793.9640,13.3878,165.9916,70,0); // car71
- AddStaticVehicle(505,480.3784,-1729.2866,11.1258,82.8955,71,0); // car72
- AddStaticVehicle(506,442.9023,-1802.7012,5.2511,354.2753,72,0); // car73
- AddStaticVehicle(507,343.8070,-1808.6646,4.3652,179.5365,73,0); // car74
- AddStaticVehicle(508,156.8062,-1764.2191,4.9555,182.8497,74,0); // car75
- AddStaticVehicle(509,133.2554,-1712.9760,8.0605,28.5699,75,0); // car76
- AddStaticVehicle(510,183.9308,-1581.7849,13.2171,48.3345,76,0); // car77
- AddStaticVehicle(516,363.1588,-1439.5576,34.1948,308.1254,77,0); // car78
- AddStaticVehicle(517,386.3100,-1597.0477,29.6127,88.7405,78,0); // car79
- AddStaticVehicle(518,437.6653,-1295.1917,14.8389,31.9184,79,0); // car80
- AddStaticVehicle(521,367.5655,-1340.2676,14.1078,119.6713,80,0); // car81
- AddStaticVehicle(522,822.1147,-868.0880,69.5002,109.4160,81,0); // car82
- // OTHER
- EnableTirePopping(0);
- DisableInteriorEnterExits();
- UsePlayerPedAnims();
- //Pickups
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public Die(playerid, msg[])
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You died fool");
- SetPlayerHealth(playerid, 0);
- return 1;
- }
- public CanRob(playerid, msg[])
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You can rob again");
- Robtime[playerid] = 0;
- return 1;
- }
- public RobPrize(playerid, msg[])
- {
- new earn = 300 + random(300);
- new PlayerName[MAX_PLAYER_NAME];
- new string[128];
- GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
- GivePlayerMoney(playerid,earn);
- SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+1);
- TogglePlayerControllable(playerid, 1);
- format(string, sizeof(string), "<< WARNING: %s has robbed a shop and recived %d$ >>", PlayerName, earn);
- SendClientMessageToAll(COLOR_WHITE,string);
- format(string, sizeof(string), "<< You earned: %d$. You can't move for 1 minute >>", earn);
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- gPlayerClass[playerid] = classid;
- switch (classid) {
- case 0:
- {
- gTeam[playerid] = TEAM_GROVE;
- GameTextForPlayer(playerid, "~g~Grove Street Family", 1000, 6);
- ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
- SetPlayerColor(playerid, COLOR_GREEN);
- }
- case 1:
- {
- gTeam[playerid] = TEAM_BALLAS;
- GameTextForPlayer(playerid, "~p~East Side Hoods Gang", 1000, 6);
- ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
- SetPlayerColor(playerid, COLOR_PURPLE);
- }
- case 2:
- {
- gTeam[playerid] = TEAM_VAGOS;
- GameTextForPlayer(playerid, "~y~Los Santos Vagos", 1000, 6);
- ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
- SetPlayerColor(playerid, COLOR_YELLOW);
- }
- case 3:
- {
- gTeam[playerid] = TEAM_AZTECAS;
- GameTextForPlayer(playerid, "~b~~h~~h~Los Aztecas", 1000, 6);
- ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
- SetPlayerColor(playerid, COLOR_BLUE);
- }
- case 4:
- {
- gTeam[playerid] = TEAM_LSPD;
- GameTextForPlayer(playerid, "~y~~h~~h~Police Force", 1000, 6);
- ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
- SetPlayerColor(playerid, COLOR_SAND);
- }
- case 5:
- {
- gTeam[playerid] = TEAM_BIKERS;
- GameTextForPlayer(playerid, "~r~~r~~r~BIKERS CLUB", 1000, 6);
- ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
- SetPlayerColor(playerid, COLOR_RED);
- }
- case 6:
- {
- gTeam[playerid] = TEAM_ARMY;
- GameTextForPlayer(playerid, "~y~~h~~h~THE ARMY", 1000, 6);
- ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
- SetPlayerColor(playerid, COLOR_GREY);
- }
- case 7:
- {
- gTeam[playerid] = TEAM_SICILIAN;
- GameTextForPlayer(playerid, "~s~The Sicilian Mafia", 1000, 6);
- ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
- SetPlayerColor(playerid, COLOR_WHITE);
- }
- case 8:
- {
- gTeam[playerid] = TEAM_COSANOSTRA;
- GameTextForPlayer(playerid, "~o~La Cosa Nostra", 1000, 6);
- ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
- SetPlayerColor(playerid, COLOR_OKER);
- }
- case 9:
- {
- gTeam[playerid] = TEAM_TRIADS;
- GameTextForPlayer(playerid, "~b~~b~~b~The Triads of China", 1000, 6);
- ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
- SetPlayerColor(playerid, COLOR_BLUELIGHT);
- }
- case 10:
- {
- gTeam[playerid] = TEAM_EME;
- GameTextForPlayer(playerid, "~b~~b~~b~La eMe", 1000, 6);
- ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
- SetPlayerColor(playerid, COLOR_BROWN);
- }
- }
- SetPlayerPos(playerid, 489.6994,-72.1350,999.2266);
- SetPlayerFacingAngle( playerid, 269.4459 );
- SetPlayerCameraPos(playerid, 491.4409,-72.0709,999.2266);
- SetPlayerCameraLookAt(playerid, 489.8416,-72.4437,999.2266);
- SetPlayerInterior(playerid ,11);
- return 1;
- }
- public SetPlayerToTeamColor(playerid)
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- new playerfile[100];
- AdminLevel[playerid] = dini_Int(playerfile, "AdminLevel");
- if(!gPlayerLogged[playerid])
- return 0;
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- //REGISTER
- gPlayerLogged[playerid] = 0;
- new name[MAX_PLAYER_NAME], file[256];
- GetPlayerName(playerid, name, sizeof(name));
- format(file, sizeof(file), SERVER_USER_FILE, name);
- if (!dini_Exists(file))
- {
- ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "B.E.G Wars v0.8 - by Hor1z0n", "Hi,you're not registred.Type your password in the box to register", "Register", "Quit");
- }
- if(fexist(file))
- {
- ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "B.E.G Wars v0.8 - by Hor1z0n", "You're registred on this server.Please type your password to login", "Login", "Quit");
- }
- //REGISTER - END
- PickupsCreated[playerid] = false;
- SPEEDOS[playerid] = TextDrawCreate(10.0,200.0," ");
- TextDrawShowForPlayer(playerid,SPEEDOS[playerid]);
- TextDrawUseBox(SPEEDOS[playerid], 1);
- new pName[MAX_PLAYER_NAME];
- new string[128];
- SetTimerEx("CanRob", 1200000, false, "i", playerid);
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "<< B.E.G Wars: %s was logged on the server. >>", pName);
- SendClientMessageToAll(COLOR_GREY, string);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- //--------------------------------------------------------------------------
- new PName[MAX_PLAYER_NAME];
- new name[MAX_PLAYER_NAME], file[256];
- new string[128];
- GetPlayerName(playerid, name, sizeof(name));
- format(file, sizeof(file), SERVER_USER_FILE, name);
- if(gPlayerLogged[playerid] == 1)
- {
- dini_IntSet(file, "Score", GetPlayerScore(playerid));
- dini_IntSet(file, "Money", GetPlayerMoney(playerid));
- dini_IntSet(file, "Wanted", GetPlayerWantedLevel(playerid));
- dini_IntSet(file, "Jailed", PlayerInfo[playerid][pJailed]);
- dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][pAdminLevel]);
- dini_IntSet(file, "JailTime",PlayerInfo[playerid][pJailTime]);
- }
- gPlayerLogged[playerid] = 0;
- GetPlayerName(playerid, PName, sizeof(PName));
- format(string, sizeof(string), "<< B.E.G Wars: %s was left the server. >>", PName);
- SendClientMessageToAll(COLOR_GREY, string);
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- //Jail
- new pId;
- if(InJail[playerid] == 1)
- {
- new rand = random(sizeof(JailCellSpawns));
- SetPlayerPos(playerid, JailCellSpawns[rand][0], JailCellSpawns[rand][1], JailCellSpawns[rand][2]);
- SendClientMessage(playerid, COLOR_YELLOW, "Back to Jail!");
- SetPlayerInterior(playerid, 3);
- SetPlayerVirtualWorld(playerid, 0);
- SetTimerEx("UnJail",20000*10,0,"i",pId);
- return 1;
- }
- //------------------
- //Text Draws
- //Map Icons ----------------------------------------------------------------
- SetPlayerMapIcon( playerid, 12, 2487.7107,-1670.5569,13.3359, 62, 0 );//Grove
- SetPlayerMapIcon( playerid, 13, 2334.4312,-1224.1099,27.9766, 59, 0 );//Ballas
- SetPlayerMapIcon( playerid, 14, 2815.1865,-1185.2362,25.2515, 60, 0 );//Vagos
- SetPlayerMapIcon( playerid, 15, 1678.0968,-2113.5818,13.5469, 58, 0 );//Aztecas
- SetPlayerMapIcon( playerid, 16, 1552.7961,-1675.1948,16.1953, 30, 0 );//LSPD
- SetPlayerMapIcon( playerid, 17, 679.0971,-478.4585,16.3359, 23, 0 );//Biker
- SetPlayerMapIcon( playerid, 18, 2763.0349,-2396.6782,13.6328, 20, 0 );//Army
- SetPlayerMapIcon( playerid, 19, 2482.2102,-2111.2078,13.5469, 38, 0 );//Sicilian
- SetPlayerMapIcon( playerid, 20, 1178.0574,-2038.9641,69.0078, 25, 0 );//Cosa Nostra
- SetPlayerMapIcon( playerid, 21, 1011.6063,-1452.2133,13.5546, 40, 0 );//Triads
- SetPlayerMapIcon( playerid, 22, 301.0275,-1164.3633,80.9099, 44, 0);//la eMe
- SetPlayerMapIcon( playerid, 23, 2244.6514,-1664.8066,15.4766, 45, 0);//la eMe
- SetPlayerMapIcon( playerid, 24, 2002.5015,-1782.4841,13.5537, 18, 0 );//Melee Weapons
- SetPlayerMapIcon( playerid, 25, 1367.7048,-1279.7506,13.5469, 18, 0);//Small Weapons
- SetPlayerMapIcon( playerid, 26, 2685.9246,-1470.5939,30.5573, 6, 0);//Hard Weapons
- //Text Draws
- TextDrawShowForPlayer(playerid, cmdshelp);
- TextDrawShowForPlayer(playerid, albastru);
- TextDrawShowForPlayer(playerid, galben);
- TextDrawShowForPlayer(playerid, rosu);
- //Gang Zones
- GangZoneShowForAll (groove1, 0x008000AA);
- GangZoneShowForAll (groove2, 0x008000AA);
- GangZoneShowForAll (groove3, 0x008000AA);
- GangZoneShowForAll (groove4, 0x008000AA);
- GangZoneShowForAll (groove5, 0x008000AA);
- GangZoneShowForAll (groove6, 0x008000AA);
- GangZoneShowForAll (groove7, 0x008000AA);
- GangZoneShowForAll (groove8, 0x008000AA);
- GangZoneShowForAll (groove9, 0x008000AA);
- GangZoneShowForAll (groove10, 0x008000AA);
- GangZoneShowForAll (ballas1, 0x800080AA);
- GangZoneShowForAll (ballas2, 0x800080AA);
- GangZoneShowForAll (ballas3, 0x800080AA);
- GangZoneShowForAll (ballas4, 0x800080AA);
- GangZoneShowForAll (ballas5, 0x800080AA);
- GangZoneShowForAll (ballas6, 0x800080AA);
- GangZoneShowForAll (ballas7, 0x800080AA);
- GangZoneShowForAll (ballas8, 0x800080AA);
- GangZoneShowForAll (vagos2, 0xFFFF00AA);
- GangZoneShowForAll (vagos3, 0xFFFF00AA);
- GangZoneShowForAll (vagos4, 0xFFFF00AA);
- GangZoneShowForAll (vagos5, 0xFFFF00AA);
- GangZoneShowForAll (vagos6, 0xFFFF00AA);
- GangZoneShowForAll (vagos7, 0xFFFF00AA);
- GangZoneShowForAll (vagos8, 0xFFFF00AA);
- GangZoneShowForAll (vagos9, 0xFFFF00AA);
- GangZoneShowForAll (vagos10, 0xFFFF00AA);
- GangZoneShowForAll (sicilian1, 0xFFFFFFAA);
- GangZoneShowForAll (sicilian2, 0xFFFFFFAA);
- GangZoneShowForAll (sicilian3, 0xFFFFFFAA);
- GangZoneShowForAll (sicilian4, 0xFFFFFFAA);
- GangZoneShowForAll (sicilian5, 0xFFFFFFAA);
- GangZoneShowForAll (sicilian6, 0xFFFFFFAA);
- GangZoneShowForAll (sicilian7, 0xFFFFFFAA);
- GangZoneShowForAll (sicilian8, 0xFFFFFFAA);
- GangZoneShowForAll (sicilian9, 0xFFFFFFAA);
- GangZoneShowForAll (army1, 0x000000AA);
- GangZoneShowForAll (army2, 0x000000AA);
- GangZoneShowForAll (army3, 0x000000AA);
- GangZoneShowForAll (army4, 0x000000AA);
- GangZoneShowForAll (army5, 0x000000AA);
- GangZoneShowForAll (army6, 0x000000AA);
- GangZoneShowForAll (army7, 0x000000AA);
- GangZoneShowForAll (aztecas1, 0x0000FFAA);
- GangZoneShowForAll (aztecas2, 0x0000FFAA);
- GangZoneShowForAll (aztecas3, 0x0000FFAA);
- GangZoneShowForAll (aztecas4, 0x0000FFAA);
- GangZoneShowForAll (aztecas5, 0x0000FFAA);
- GangZoneShowForAll (aztecas6, 0x0000FFAA);
- GangZoneShowForAll (aztecas7, 0x0000FFAA);
- GangZoneShowForAll (aztecas8, 0x0000FFAA);
- GangZoneShowForAll (aztecas9, 0x0000FFAA);
- GangZoneShowForAll (cosa1, 0x808000AA);
- GangZoneShowForAll (cosa2, 0x808000AA);
- GangZoneShowForAll (cosa3, 0x808000AA);
- GangZoneShowForAll (cosa4, 0x808000AA);
- GangZoneShowForAll (cosa5, 0x808000AA);
- GangZoneShowForAll (cosa6, 0x808000AA);
- GangZoneShowForAll (cosa7, 0x808000AA);
- GangZoneShowForAll (cosa8, 0x808000AA);
- GangZoneShowForAll (triads1, 0x00FFFFAA);
- GangZoneShowForAll (triads2, 0x00FFFFAA);
- GangZoneShowForAll (triads3, 0x00FFFFAA);
- GangZoneShowForAll (triads4, 0x00FFFFAA);
- GangZoneShowForAll (triads5, 0x00FFFFAA);
- GangZoneShowForAll (triads6, 0x00FFFFAA);
- GangZoneShowForAll (triads7, 0x00FFFFAA);
- GangZoneShowForAll (eme1, 0xFFDEADAA);
- GangZoneShowForAll (eme2, 0xFFDEADAA);
- GangZoneShowForAll (eme3, 0xFFDEADAA);
- GangZoneShowForAll (eme4, 0xFFDEADAA);
- GangZoneShowForAll (eme5, 0xFFDEADAA);
- GangZoneShowForAll (eme6, 0xFFDEADAA);
- GangZoneShowForAll (eme7, 0xFFDEADAA);
- GangZoneShowForAll (eme8, 0xFFDEADAA);
- GangZoneShowForAll (bikers1, 0xFF0000AA);
- GangZoneShowForAll (bikers2, 0xFF0000AA);
- GangZoneShowForAll (bikers3, 0xFF0000AA);
- GangZoneShowForAll (bikers4, 0xFF0000AA);
- GangZoneShowForAll (bikers5, 0xFF0000AA);
- GangZoneShowForAll (bikers6, 0xFF0000AA);
- GangZoneShowForAll (bikers7, 0xFF0000AA);
- GangZoneShowForAll (bikers8, 0xFF0000AA);
- SendClientMessage(playerid, COLOR_ORANGE, "Need guns and a good skin?Go to deposit!(/deposit)");
- SetPlayerInterior(playerid, 0);
- SetPlayerVirtualWorld(playerid, 0);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- new killername[MAX_PLAYER_NAME];
- new playername[MAX_PLAYER_NAME];
- GetPlayerName(killerid ,killername,sizeof(killername));
- GetPlayerName(playerid ,playername,sizeof(playername));
- SendDeathMessage(killerid, playerid, reason);
- GivePlayerMoney(killerid, 200);
- GivePlayerMoney(playerid, -200);
- //Wanted System ----------------------------------------------------------------
- SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid)+1);
- SendClientMessage(killerid, COLOR_YELLOW, ">> You are a criminal! The police is after you! <<");
- //END Wanted System ------------------------------------------------------------
- DisablePlayerCheckpoint(playerid);
- MoneyLost[playerid] = GetPlayerMoney(playerid)/MoneyLossProcent;
- DropPlayerWeapons(playerid);
- GivePlayerMoney(playerid, -MoneyLost[playerid]);
- new Float:X, Float:Y, Float:Z;
- new string[50];
- GetPlayerPos(playerid, X, Y, Z);
- if(PickupsCreated[playerid] == true)
- {
- for(new n=0; n<NumberOfPickups; n++)
- {
- DestroyPickup(MoneyPickup[playerid][n]);
- }
- KillTimer(DestroyMoneyPickupst[playerid]);
- PickupsCreated[playerid] = false;
- }
- if(MoneyLost[playerid] != 0)
- {
- for(new p=0; p<NumberOfPickups; p++)
- {
- MoneyPickup[playerid][p] = CreatePickup(1212,3, X+random(3)-random(3), Y+random(3)-random(3), Z-0.6);
- }
- DestroyMoneyPickupst[playerid] = SetTimerEx("DestroyMoneyPickups", TimeToDestroyMoneyPickups, 0, "i", playerid);
- PickupsCreated[playerid] = true;
- }
- SetPlayerScore(killerid,(GetPlayerScore(killerid))+1);
- if(GetPlayerWantedLevel(killerid) > 1)
- {
- format(string, sizeof(string), "<< [911 Report] %s killed %s(/wl) >>",killername,playername);
- MessageToCops(COLOR_ORANGE,string);
- }
- else if(GetPlayerWantedLevel(killerid) > 6)
- {
- SetPlayerWantedLevel(killerid, 6);
- }
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- new name[MAX_PLAYER_NAME];
- new string[258];
- GetPlayerName(playerid, name, sizeof(name));
- if(text[0] == '!')
- {
- if(PlayerInfo[playerid][pAdminLevel] >= 1)
- {
- format(string, sizeof(string), "Admin %s: %s",name,text[1]);
- MessageToAdmins(COLOR_ORANGE,string);
- return 0;
- } else {
- SendClientMessage(playerid, COLOR_GREY, "You must be an admin to use the Admin Chat.");
- return 0;
- }
- }
- else if(text[0] == '#')
- {
- format(string,sizeof(string),"[ (Team Chat):[%d] %s : %s ]",playerid,name,text[1]);
- SendTeamMessage(gTeam[playerid],COLOR_YELLOW, string);
- return 0;
- }
- else if(Mute[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_SAND, "You have been muted");
- return 0;
- }
- return 1;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- //ENTER & EXIT HQ
- if(newkeys == KEY_SECONDARY_ATTACK)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 2523.0305,-1679.2692,15.4970))
- {
- SetPlayerPos(playerid, 2496.049804,-1695.238159,1014.742187);
- SetPlayerInterior(playerid, 3);
- GameTextForPlayer(playerid, "Welcome to ~r~Grove HQ", 3000, 4);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 2496.049804,-1695.238159,1014.742187))
- {
- SetPlayerPos(playerid, 2523.0305,-1679.2692,15.4970);
- SetPlayerInterior(playerid, 0);
- GameTextForPlayer(playerid, "Go to ~r~WAR!", 3000, 4);
- }
- ///////////////////////////////////////////////////////////////////////////
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 2244.6514,-1664.8066,15.4766))
- {
- SetPlayerPos(playerid, 207.737991,-109.019996,1005.132812);
- SetPlayerInterior(playerid, 15);
- GameTextForPlayer(playerid, "Welcome to ~r~Binco", 3000, 4);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 207.737991,-109.019996,1005.132812))
- {
- SetPlayerPos(playerid, 2244.6514,-1664.8066,15.4766);
- SetPlayerInterior(playerid, 0);
- GameTextForPlayer(playerid, "Back to ~r~Los Santos!", 3000, 4);
- }
- ///////////////////////////////////////////////////////////////////////////
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 2002.5015,-1782.4841,13.5537))
- {
- SetPlayerPos(playerid, 286.148986,-40.644397,1001.515625);
- SetPlayerInterior(playerid, 1);
- GameTextForPlayer(playerid, "Welcome to ~r~Melee Weapons Shop", 3000, 4);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 286.148986,-40.644397,1001.515625))
- {
- SetPlayerPos(playerid, 2002.5015,-1782.4841,13.5537);
- SetPlayerInterior(playerid, 0);
- GameTextForPlayer(playerid, "Back to ~r~Los Santos!", 3000, 4);
- }
- ///////////////////////////////////////////////////////////////////////////
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1367.7048,-1279.7506,13.5469))
- {
- SetPlayerPos(playerid, 286.800994,-82.547599,1001.515625);
- SetPlayerInterior(playerid, 4);
- GameTextForPlayer(playerid, "Welcome to ~r~Small Weapons Shop", 3000, 4);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 286.800994,-82.547599,1001.515625))
- {
- SetPlayerPos(playerid, 295.5133,-80.6941,1001.5156);
- SetPlayerInterior(playerid, 0);
- GameTextForPlayer(playerid, "Back to ~r~Los Santos!", 3000, 4);
- }
- ///////////////////////////////////////////////////////////////////////////
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1367.7048,-1279.7506,13.5469))
- {
- SetPlayerPos(playerid, 286.800994,-82.547599,1001.515625);
- SetPlayerInterior(playerid, 4);
- GameTextForPlayer(playerid, "Welcome to ~r~Small Weapons Shop", 3000, 4);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 286.800994,-82.547599,1001.515625))
- {
- SetPlayerPos(playerid, 1367.7048,-1279.7506,13.5469);
- SetPlayerInterior(playerid, 0);
- GameTextForPlayer(playerid, "Back to ~r~Los Santos!", 3000, 4);
- }
- ///////////////////////////////////////////////////////////////////////////
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 2685.9246,-1470.5939,30.5573))
- {
- SetPlayerPos(playerid, 296.919982,-108.071998,1001.515625);
- SetPlayerInterior(playerid, 6);
- GameTextForPlayer(playerid, "Welcome to ~r~Hard Weapons Shop", 3000, 4);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 296.919982,-108.071998,1001.515625))
- {
- SetPlayerPos(playerid, 2685.9246,-1470.5939,30.5573);
- SetPlayerInterior(playerid, 0);
- GameTextForPlayer(playerid, "Back to ~r~Los Santos!", 3000, 4);
- }
- ///////////////////////////////////////////////////////////////////////////
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 2324.1777,-1218.8508,27.9766))
- {
- SetPlayerPos(playerid, 318.564971,1118.209960,1083.882812);
- SetPlayerInterior(playerid, 5);
- GameTextForPlayer(playerid, "Welcome to ~r~Ballas HQ", 3000, 4);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 318.564971,1118.209960,1083.882812))
- {
- SetPlayerPos(playerid, 2324.1777,-1218.8508,27.9766);
- SetPlayerInterior(playerid, 0);
- GameTextForPlayer(playerid, "Go to ~r~WAR!", 3000, 4);
- }
- ///////////////////////////////////////////////////////////////////////////
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 2808.0039,-1190.0422,25.3455))
- {
- SetPlayerPos(playerid, 2807.619873,-1171.899902,1025.570312);
- SetPlayerInterior(playerid, 8);
- GameTextForPlayer(playerid, "Welcome to ~r~Vagos HQ", 3000, 4);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 2807.619873,-1171.899902,1025.570312))
- {
- SetPlayerPos(playerid, 2808.0039,-1190.0422,25.3455);
- SetPlayerInterior(playerid, 0);
- GameTextForPlayer(playerid, "Go to ~r~WAR!", 3000, 4);
- }
- ///////////////////////////////////////////////////////////////////////////
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1673.6644,-2122.4485,14.1460))
- {
- SetPlayerPos(playerid, 1059.895996,2081.685791,10.820312);
- SetPlayerInterior(playerid, 0);
- GameTextForPlayer(playerid, "Welcome to ~r~Aztecas HQ", 3000, 4);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1059.895996,2081.685791,10.820312))
- {
- SetPlayerPos(playerid, 1673.6644,-2122.4485,14.1460);
- SetPlayerInterior(playerid, 0);
- GameTextForPlayer(playerid, "Go to ~r~WAR!", 3000, 4);
- }
- ///////////////////////////////////////////////////////////////////////////
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1553.4794,-1675.3102,16.1953))
- {
- SetPlayerPos(playerid, 288.745971,169.350997,1007.171875);
- SetPlayerInterior(playerid, 3);
- GameTextForPlayer(playerid, "Los Santos ~r~Police", 3000, 4);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 288.745971,169.350997,1007.171875))
- {
- SetPlayerPos(playerid, 1553.4794,-1675.3102,16.1953);
- SetPlayerInterior(playerid, 0);
- GameTextForPlayer(playerid, "Go to ~r~WAR!", 3000, 4);
- }
- ///////////////////////////////////////////////////////////////////////////
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 681.5913,-473.5256,16.5363))
- {
- SetPlayerPos(playerid, 964.106994,-53.205497,1001.124572);
- SetPlayerInterior(playerid, 3);
- GameTextForPlayer(playerid, "Welcome to ~r~Bikers Bar", 3000, 4);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 964.106994,-53.205497,1001.124572))
- {
- SetPlayerPos(playerid, 681.5913,-473.5256,16.5363);
- SetPlayerInterior(playerid, 0);
- GameTextForPlayer(playerid, "Go to ~r~WAR!", 3000, 4);
- }
- ///////////////////////////////////////////////////////////////////////////
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 2755.1052,-2382.2556,13.6328))
- {
- SetPlayerPos(playerid, 246.375991,109.245994,1003.218750);
- SetPlayerInterior(playerid, 10);
- GameTextForPlayer(playerid, "Welcome to ~r~Army Secret Base", 3000, 4);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 246.375991,109.245994,1003.218750))
- {
- SetPlayerPos(playerid, 2755.1052,-2382.2556,13.6328);
- SetPlayerInterior(playerid, 0);
- GameTextForPlayer(playerid, "Go to ~r~WAR!", 3000, 4);
- }
- ///////////////////////////////////////////////////////////////////////////
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 2509.0000,-2120.1321,13.5469))
- {
- SetPlayerPos(playerid, 963.418762,2108.292480,1011.030273);
- SetPlayerInterior(playerid, 1);
- GameTextForPlayer(playerid, "Welcome to ~r~Sicilian HQ", 3000, 4);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 963.418762,2108.292480,1011.030273))
- {
- SetPlayerPos(playerid, 2509.0000,-2120.1321,13.5469);
- SetPlayerInterior(playerid, 0);
- GameTextForPlayer(playerid, "Go to ~r~WAR!", 3000, 4);
- }
- ///////////////////////////////////////////////////////////////////////////
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1124.0004,-2037.0791,69.8854))
- {
- SetPlayerPos(playerid, 2169.461181,1618.798339,999.976562);
- SetPlayerInterior(playerid, 1);
- GameTextForPlayer(playerid, "Welcome to ~r~Cosa Nostra HQ", 3000, 4);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 2169.461181,1618.798339,999.976562))
- {
- SetPlayerPos(playerid, 1124.0004,-2037.0791,69.8854);
- SetPlayerInterior(playerid, 0);
- GameTextForPlayer(playerid, "Go to ~r~WAR!", 3000, 4);
- }
- ///////////////////////////////////////////////////////////////////////////
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1004.1676,-1431.2755,13.5469))
- {
- SetPlayerPos(playerid, 774.213989,-48.924297,1000.585937);
- SetPlayerInterior(playerid, 6);
- GameTextForPlayer(playerid, "Welcome to ~r~Triads HQ", 3000, 4);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 774.213989,-48.924297,1000.585937))
- {
- SetPlayerPos(playerid, 1004.1676,-1431.2755,13.5469);
- SetPlayerInterior(playerid, 0);
- GameTextForPlayer(playerid, "Go to ~r~WAR", 3000, 4);
- }
- ///////////////////////////////////////////////////////////////////////////
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 300.1774,-1154.3909,81.3890))
- {
- SetPlayerPos(playerid, -2159.122802,641.517517,1052.381713);
- SetPlayerInterior(playerid, 1);
- GameTextForPlayer(playerid, "Welcome to ~r~La eMe HQ", 3000, 4);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, -2159.122802,641.517517,1052.381713))
- {
- SetPlayerPos(playerid, 300.1774,-1154.3909,81.3890);
- SetPlayerInterior(playerid, 0);
- GameTextForPlayer(playerid, "Go to ~r~WAR!", 3000, 4);
- }
- ///////////////////////////////////////////////////////////////////////////
- }
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(pickupid == MoneyPickup[i][0] || pickupid == MoneyPickup[i][1] || pickupid == MoneyPickup[i][2] || pickupid == MoneyPickup[i][3]
- || pickupid == MoneyPickup[i][4] || pickupid == MoneyPickup[i][5] || pickupid == MoneyPickup[i][6] || pickupid == MoneyPickup[i][7]
- || pickupid == MoneyPickup[i][8] || pickupid == MoneyPickup[i][9])
- {
- GivePlayerMoney(playerid, MoneyLost[i]/NumberOfPickups);
- DestroyPickup(pickupid);
- }
- }
- DestroyPickup(pickupid);
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- new vehicleid,Float:speed_x,Float:speed_y,Float:speed_z,Float:final_speed,speed_string[256],final_speed_int;
- vehicleid = GetPlayerVehicleID(playerid);
- if(vehicleid != 0)
- {
- GetVehicleVelocity(vehicleid,speed_x,speed_y,speed_z);
- final_speed = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))+(speed_z*speed_z))*136.666667;
- final_speed_int = floatround(final_speed,floatround_round);
- format(speed_string,256,"Speed: ~r~%i km/h",final_speed_int);
- TextDrawSetString(SPEEDOS[playerid], speed_string);
- }
- else
- {
- TextDrawSetString(SPEEDOS[playerid], " ");
- }
- if(gTeam[playerid] == TEAM_LSPD)
- {
- SetPlayerWantedLevel(playerid, 0);
- }
- return 1;
- }
- public SendTeamMessage(team, color, string[])
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(gTeam[i] == team)
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- }
- public DestroyMoneyPickups(playerid)
- {
- for(new n=0; n<NumberOfPickups; n++)
- {
- DestroyPickup(MoneyPickup[playerid][n]);
- }
- PickupsCreated[playerid] = false;
- }
- public DropPlayerWeapons(playerid)
- {
- new playerweapons[13][2];
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid, x, y, z);
- for(new i=0;i<13;i++){
- GetPlayerWeaponData(playerid, i, playerweapons[i][0], playerweapons[i][1]);
- new model=GetWeaponModel(playerweapons[i][0]);
- new times=floatround(playerweapons[i][1]/10.0001);
- new string[256];
- format(string, sizeof(string), "%d", times);
- times=strval(string);
- new Float:X=x+(random(3)-random(3));
- new Float:Y=y+(random(3)-random(3));
- if(playerweapons[i][1]!=0)
- {
- if(times>DropLimit) times=DropLimit;
- for(new a=0;a<times;a++)
- {
- if(model!=-1)
- {
- new pickupid=CreatePickup(model, 3, X, Y, z);
- SetTimerEx("DeletePickup", DeleteTime*1000, false, "d", pickupid);
- }
- }
- }
- }
- return 1;
- }
- public DeletePickup(pickupid)
- {
- DestroyPickup(pickupid);
- return 1;
- }
- public GetWeaponModel(weaponid)
- {
- new model;
- switch(weaponid)
- {
- case 1: model=331; case 2: model=333; case 3: model=334;
- case 4: model=335; case 5: model=336; case 6: model=337;
- case 7: model=338; case 8: model=339; case 9: model=341;
- case 10: model=321; case 11: model=322; case 12: model=323;
- case 13: model=324; case 14: model=325; case 15: model=326;
- case 16: model=342; case 17: model=343; case 18: model=344;
- case 22: model=346; case 23: model=347; case 24: model=348;
- case 25: model=349; case 26: model=350; case 27: model=351;
- case 28: model=352; case 29: model=353; case 30: model=355;
- case 31: model=356; case 32: model=372; case 33: model=357;
- case 34: model=358; case 35: model=359; case 36: model=360;
- case 37: model=361; case 38: model=362; case 39: model=363;
- case 41: model=365; case 42: model=366; case 46: model=371;
- }
- if(model<300) return -1;
- return model;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if (dialogid == 1)
- {
- new name[MAX_PLAYER_NAME], file[256], string[128];
- GetPlayerName(playerid, name, sizeof(name));
- format(file, sizeof(file), SERVER_USER_FILE, name);
- if(!response) return Kick(playerid);
- if (!strlen(inputtext)) return
- ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "B.E.G Wars v0.8 - by Hor1z0n", "Hi,you're not registred.Type your password in the box to register", "Register", "Quit");
- dini_Create(file);
- dini_IntSet(file, "Password", udb_hash(inputtext));
- dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][pAdminLevel] = 0);
- dini_IntSet(file, "Money",PlayerInfo[playerid][pCash] = 750);
- dini_IntSet(file, "Score",PlayerInfo[playerid][pScore] = 0);
- dini_IntSet(file, "JailTime",PlayerInfo[playerid][pJailTime] = 0);
- dini_IntSet(file, "Wanted",PlayerInfo[playerid][pWanted] = 0);
- GivePlayerMoney(playerid, 750);
- format(string, 128, "[B.E.G]: You succesfully registered the nickname %s with password %s, you have been auto logged in.", name, inputtext);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- gPlayerLogged[playerid] = 1;
- }
- if (dialogid == 2)
- {
- new name[MAX_PLAYER_NAME], file[256];
- GetPlayerName(playerid, name, sizeof(name));
- format(file, sizeof(file), SERVER_USER_FILE, name);
- if(!response) return Kick(playerid);
- if (!strlen(inputtext)) return ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "B.E.G Wars v0.8 - by Hor1z0n", "You're registred on this server.Please type your password to login", "Login", "Quit");
- new tmp;
- tmp = dini_Int(file, "Password");
- if(udb_hash(inputtext) != tmp) {
- SendClientMessage(playerid, COLOR_RED, "Wrong Password.");
- ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "B.E.G Wars v0.8 - by Hor1z0n", "You're registred on this server.Please type your password to login", "Login", "Quit");
- }
- else
- {
- gPlayerLogged[playerid] = 1;
- PlayerInfo[playerid][pAdminLevel] = dini_Int(file, "AdminLevel");
- SetPlayerScore(playerid, dini_Int(file, "Score")-GetPlayerScore(playerid));
- GivePlayerMoney(playerid, dini_Int(file, "Money")-GetPlayerMoney(playerid));
- SetPlayerWantedLevel(playerid, dini_Int(file, "Wanted")-GetPlayerWantedLevel(playerid));
- SendClientMessage(playerid,COLOR_RED, "B.E.G Wars: Welcome on Beg Wars version 0.8 by Hor1z0n!");
- }
- }
- if(response)//they pressed the first button
- {
- switch(dialogid)//if your using only one dialog this isn't needed but you never know.
- {
- case 3://our dialog
- {
- switch(listitem)//wich listitem is chosen
- {
- case 0://the first item in the list
- {
- if(GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
- GivePlayerWeapon(playerid, 1 ,0);
- GivePlayerMoney(playerid, -50);
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a Brass Knuckles for 50$");
- }
- case 1:
- {
- if(GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
- GivePlayerWeapon(playerid, 2 ,0);
- GivePlayerMoney(playerid, -50);
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a Golf Club for 50$");
- }
- case 2:
- {
- if(GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
- GivePlayerWeapon(playerid, 5 ,0);
- GivePlayerMoney(playerid, -50);
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a Baseball Bat for 50$");
- }
- case 3:
- {
- if(GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
- GivePlayerWeapon(playerid, 6 ,0);
- GivePlayerMoney(playerid, -50);
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a Shovel for 50$");
- }
- case 4:
- {
- if(GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
- GivePlayerWeapon(playerid, 7 ,0);
- GivePlayerMoney(playerid, -50);
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a Pool Cue for 50$");
- }
- case 5:
- {
- if(GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
- GivePlayerWeapon(playerid, 8 ,0);
- GivePlayerMoney(playerid, -100);
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a Katana for 100$");
- }
- case 6:
- {
- if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
- GivePlayerWeapon(playerid, 9 ,0);
- GivePlayerMoney(playerid, -500);
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a Chainsaw for 500$");
- }
- case 7:
- {
- if(GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
- GivePlayerWeapon(playerid, 14 ,0);
- GivePlayerMoney(playerid, -10);
- SendClientMessage(playerid, COLOR_YELLOW, "You bought Flowers for 10$");
- }
- case 8:
- {
- if(GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
- GivePlayerWeapon(playerid, 15 ,0);
- GivePlayerMoney(playerid, -50);
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a Cane for 50$");
- }
- case 9:
- {
- if(GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
- GivePlayerWeapon(playerid, 46 ,0);
- GivePlayerMoney(playerid, -50);
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a Parachute for 50$");
- }
- case 10:
- {
- if(GetPlayerMoney(playerid) < 200) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
- GivePlayerWeapon(playerid, 4 ,0);
- GivePlayerMoney(playerid, -200);
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a Knife for 200$");
- }
- }
- }
- }
- }
- if(dialogid == smallw)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(GetPlayerMoney(playerid) < 300) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
- GivePlayerWeapon(playerid, 22 ,100);
- GivePlayerMoney(playerid, -300);
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a 9mm for 300$");
- }
- if(listitem == 1)
- {
- if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
- GivePlayerWeapon(playerid, 23 ,100);
- GivePlayerMoney(playerid, -500);
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a Silenced 9mm for 500$");
- }
- if(listitem == 2)
- {
- if(GetPlayerMoney(playerid) < 850) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
- GivePlayerWeapon(playerid, 24 ,100);
- GivePlayerMoney(playerid, -850);
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a Desert Eeagle for 850$");
- }
- if(listitem == 3)
- {
- if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
- GivePlayerWeapon(playerid, 28 ,300);
- GivePlayerMoney(playerid, -1000);
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a Micro SMG for 1000$");
- }
- if(listitem == 4)
- {
- if(GetPlayerMoney(playerid) < 1200) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
- GivePlayerWeapon(playerid, 32 ,360);
- GivePlayerMoney(playerid, -1200);
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a Tec9 for 1200$");
- }
- if(listitem == 5)
- {
- if(GetPlayerMoney(playerid) < 1500) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
- GivePlayerWeapon(playerid, 29 ,400);
- GivePlayerMoney(playerid, -1500);
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a MP5 for 1500$");
- }
- }
- }
- if(dialogid == hardw)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(GetPlayerMoney(playerid) < 700) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
- GivePlayerWeapon(playerid, 25 ,50);
- GivePlayerMoney(playerid, -700);
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a Shotgun for 700$");
- }
- if(listitem == 1)
- {
- if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
- GivePlayerWeapon(playerid, 27 ,100);
- GivePlayerMoney(playerid, -2000);
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a Combat Shotgun for 2000$");
- }
- if(listitem == 2)
- {
- if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
- GivePlayerWeapon(playerid, 30 ,500);
- GivePlayerMoney(playerid, -2000);
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a AK47 for 2000$");
- }
- if(listitem == 3)
- {
- if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
- GivePlayerWeapon(playerid, 31 ,500);
- GivePlayerMoney(playerid, -2000);
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a M4 for 2000$");
- }
- if(listitem == 4)
- {
- if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
- GivePlayerWeapon(playerid, 33 ,100);
- GivePlayerMoney(playerid, -1000);
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a Country Rifle for 1000$");
- }
- if(listitem == 5)
- {
- if(GetPlayerMoney(playerid) < 1500) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
- GivePlayerWeapon(playerid, 34 ,100);
- GivePlayerMoney(playerid, -1500);
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a Sniper Rifle for 1500$");
- }
- if(listitem == 6)
- {
- if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
- GivePlayerWeapon(playerid, 37 , 150);
- GivePlayerMoney(playerid, -5000);
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a Flame Thrower for 5000$");
- }
- if(listitem == 7)
- {
- if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash.");
- GivePlayerWeapon(playerid, 35 ,50);
- GivePlayerMoney(playerid, -5000);
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a Rocket Launcher for 5000$");
- }
- }
- }
- return 1;
- }
- public UnJail(pId)
- {
- new file[256];
- SpawnPlayer(pId);
- SendClientMessage(pId, 0xFF0000AA, "You Have Ben Released From Jail!");
- InJail[pId] = 0;
- dini_IntSet(file, "Jailed", 0);
- TogglePlayerControllable(pId, 1);
- return 1;
- }
- stock Name(playerid)
- {
- new name[24];
- GetPlayerName(playerid, name, sizeof(name));
- return name;
- }
- public OnPlayerCommandReceived(playerid, cmdtext[])
- {
- new cmd[256];
- new tmp[256];
- new Message[256];
- new gMessage[256];
- new pName[MAX_PLAYER_NAME+1];
- new iName[MAX_PLAYER_NAME+1];
- new idx;
- new adminname[MAX_PLAYER_NAME];
- cmd = strtok(cmdtext, idx);
- // PM Command
- if(strcmp("/stats", cmd, true) == 0)
- {
- new string[128];
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- format(string ,sizeof(string), "-----------Stats %s---------", name);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string, sizeof(string), "Admin Level: [%d] || Interior: [%d]", PlayerInfo[playerid][pAdminLevel], GetPlayerInterior(playerid));
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Cash: [%d] || Virtual World: [%d]", GetPlayerMoney(playerid), GetPlayerVirtualWorld(playerid));
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Score: [%d] || Ping: [%d]", GetPlayerScore(playerid), GetPlayerPing(playerid));
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Skin: [%d] || Wanted Level: [%d]", GetPlayerSkin(playerid),GetPlayerWantedLevel(playerid));
- SendClientMessage(playerid, COLOR_WHITE, string);
- SendClientMessage(playerid, COLOR_YELLOW, "-------------------------------------------------");
- return 1;
- }
- if(strcmp("/check", cmd, true) == 0)
- {
- if(PlayerInfo[playerid][pAdminLevel] >= 1) {
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp) || strlen(tmp) > 5) {
- return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /check [id/name] [reason]");
- }
- new id = strval(tmp);
- if(!IsPlayerConnected(id)) {
- SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
- return 1;
- }
- gMessage = strrest(cmdtext,idx);
- GetPlayerName(id,iName,sizeof(iName));
- GetPlayerName(playerid, adminname, sizeof(adminname));
- SendClientMessage(id,COLOR_YELLOW,"<< B.E.G Wars: An Admin checked your stats. >>");
- if(strlen(gMessage) > 0) {
- format(Message,sizeof(Message),"Reason: %s",gMessage);
- SendClientMessage(id,COLOR_YELLOW,Message);
- }
- format(Message,sizeof(Message),"<< B.E.G Wars: %s(%d) has been checked by %s. Reason: %s.",iName,id,adminname,gMessage);
- SendClientMessage(playerid,COLOR_RED,Message);
- new string[128];
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- format(string ,sizeof(string), "-----------Stats %s---------", iName);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string, sizeof(string), "Admin Level: [%d] || Interior: [%d]", PlayerInfo[id][pAdminLevel], GetPlayerInterior(id));
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Cash: [%d] || Virtual World: [%d]", GetPlayerMoney(id), GetPlayerVirtualWorld(id));
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Score: [%d] || Ping: [%d]", GetPlayerScore(id), GetPlayerPing(id));
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Skin: [%d] || Wanted Level: [%d]", GetPlayerSkin(id),GetPlayerWantedLevel(id));
- SendClientMessage(playerid, COLOR_WHITE, string);
- SendClientMessage(playerid, COLOR_YELLOW, "-------------------------------------------------");
- return 1;
- } else {
- SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low ");
- return 1;
- }
- }
- if(strcmp("/dropweapon", cmd, true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new weapon;
- new ammo;
- ammo=GetPlayerAmmo(playerid);
- weapon=GetPlayerWeapon(playerid);
- if(ammo == 0) return true;
- GivePlayerWeapon(playerid, weapon, -ammo);
- SendClientMessage(playerid, COLOR_WHITE, "You've dropped your weapon!");
- }
- return true;
- }
- if(!strcmp(cmd, "/gotols", true))
- {
- if(PlayerInfo[playerid][pAdminLevel] >= 1)
- {
- SetPlayerPos(playerid, 1516.0526,-1669.2056,14.0469);
- SendClientMessage(playerid,COLOR_GREY, "Welcome to Los Santos,use /veh to spawn a vehicle");
- }
- else return SendClientMessage(playerid, COLOR_SAND, "You must be an admin to use this command");
- return 1;
- }
- if(!strcmp(cmd, "/gotosf", true))
- {
- if(PlayerInfo[playerid][pAdminLevel] >= 1)
- {
- SetPlayerPos(playerid, -2033.4580,148.7766,28.8359);
- SendClientMessage(playerid,COLOR_GREY, "Welcome to San Fierro,use /veh to spawn a vehicle");
- }
- else return SendClientMessage(playerid, COLOR_SAND, "You must be an admin to use this command");
- return 1;
- }
- if(!strcmp(cmd, "/gotolv", true))
- {
- if(PlayerInfo[playerid][pAdminLevel] >= 1)
- {
- SetPlayerPos(playerid, 1718.6371,1421.1610,10.6406);
- SendClientMessage(playerid,COLOR_GREY, "Welcome to Las Venturas,use /veh to spawn a vehicle");
- }
- else return SendClientMessage(playerid, COLOR_SAND, "You must be an admin to use this command");
- return 1;
- }
- if(strcmp("/buygun", cmd, true) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid , 2.0, 295.7513,-38.3262,1001.5156))
- {
- ShowPlayerDialog(playerid,3, DIALOG_STYLE_LIST, "What weapons do you want?", "Brass Knuckles ($50)\nGolf Club ($50)\nBaseball Bat ($50)\nShovel ($50)\nPool Cue ($50)\nKatana ($100)\nChainsaw ($500)\nFlowers ($10)\nCane ($50)\nParachute ($50)\nKnife ($200)", "Purchase", "Cancel");
- }
- else if(IsPlayerInRangeOfPoint(playerid , 2.0, 295.5133,-80.6941,1001.5156))
- {
- ShowPlayerDialog(playerid,smallw, DIALOG_STYLE_LIST, "What weapons do you want?", "9mm ($300)\nSilence 9mm ($500)\nDesert Eagle ($850)\nMicro SMG ($1000)\nTec9 ($1200)\nMP5 ($1500)", "Purchase", "Cancel");
- }
- else if(IsPlayerInRangeOfPoint(playerid , 2.0, 291.2514,-106.2294,1001.5156))
- {
- ShowPlayerDialog(playerid,hardw, DIALOG_STYLE_LIST, "What weapons do you want?", "Shotgun ($700)\nCombat Shotgun ($2000)\nAK47 ($2000)\nM4 ($2000)\nCountry Rifle ($1000)\nSniper Rifle ($1500)\nFlame Thrower ($5000)\nRocket Launcher ($5000)", "Purchase", "Cancel");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Weapons Store");
- }
- return 1;
- }
- if(!strcmp(cmd, "/gotodair", true))
- {
- if(PlayerInfo[playerid][pAdminLevel] >= 1)
- {
- SetPlayerPos(playerid, 427.2907,2536.0698,16.4956);
- SendClientMessage(playerid,COLOR_GREY, "Welcome to Desert Airport,use /veh to spawn a vehicle");
- }
- else return SendClientMessage(playerid, COLOR_SAND, "You must be an admin to use this command");
- return 1;
- }
- if(!strcmp(cmd, "/gotochilliad", true))
- {
- if(PlayerInfo[playerid][pAdminLevel] >= 1)
- {
- SetPlayerPos(playerid, -2316.8755,-1622.2094,483.7203);
- SendClientMessage(playerid,COLOR_GREY, "Welcome to Mount Chilliad,use /veh to spawn a vehicle");
- }
- else return SendClientMessage(playerid, COLOR_SAND, "You must be an admin to use this command");
- return 1;
- }
- if(strcmp("/deposit", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_GROVE)
- {
- SetPlayerCheckpoint(playerid,2492.8123,-1710.7850,1014.7422,4.0);
- GameTextForPlayer(playerid, "~w~Grove Deposit on the map", 5000, 1);
- SendClientMessage(playerid, COLOR_GREY, "The deposit is in your gang's HQ");
- return 1;
- }
- else if(gTeam[playerid] == TEAM_BALLAS)
- {
- SetPlayerCheckpoint(playerid,308.1769,1120.4403,1083.8828,4.0);
- GameTextForPlayer(playerid, "~w~Ballas Deposit on the map", 5000, 1);
- SendClientMessage(playerid, COLOR_GREY, "The deposit is in your gang's HQ");
- return 1;
- }
- else if(gTeam[playerid] == TEAM_VAGOS)
- {
- SetPlayerCheckpoint(playerid,2807.5552,-1165.3676,1025.5703,4.0);
- GameTextForPlayer(playerid, "~w~Vagos Deposit on the map", 5000, 1);
- SendClientMessage(playerid, COLOR_GREY, "The deposit is in your gang's HQ");
- return 1;
- }
- else if(gTeam[playerid] == TEAM_AZTECAS)
- {
- SetPlayerCheckpoint(playerid,1075.5396,2077.6289,10.8203,4.0);
- GameTextForPlayer(playerid, "~w~Aztecas Deposit on the map", 5000, 1);
- SendClientMessage(playerid, COLOR_GREY, "The deposit is in your gang's HQ");
- return 1;
- }
- else if(gTeam[playerid] == TEAM_LSPD)
- {
- SetPlayerCheckpoint(playerid,1525.3486,-1677.9718,5.8906,4.0);
- GameTextForPlayer(playerid, "~w~LSPD Deposit on the map", 5000, 1);
- return 1;
- }
- else if(gTeam[playerid] == TEAM_BIKERS)
- {
- SetPlayerCheckpoint(playerid,954.5814,-56.3507,1001.1246,4.0);
- GameTextForPlayer(playerid, "~w~Bikers Deposit on the map", 5000, 1);
- SendClientMessage(playerid, COLOR_GREY, "The deposit is in your gang's HQ");
- return 1;
- }
- else if(gTeam[playerid] == TEAM_ARMY)
- {
- SetPlayerCheckpoint(playerid,225.7137,122.8947,999.0574,4.0);
- GameTextForPlayer(playerid, "~w~Army Deposit on the map", 5000, 1);
- SendClientMessage(playerid, COLOR_GREY, "The deposit is in your gang's HQ");
- return 1;
- }
- else if(gTeam[playerid] == TEAM_SICILIAN)
- {
- SetPlayerCheckpoint(playerid,934.2408,2109.9873,1011.0234,4.0);
- GameTextForPlayer(playerid, "~w~Sicilian Deposit on the map", 5000, 1);
- SendClientMessage(playerid, COLOR_GREY, "The deposit is in your gang's HQ");
- return 1;
- }
- else if(gTeam[playerid] == TEAM_COSANOSTRA)
- {
- SetPlayerCheckpoint(playerid,2217.0754,1594.4120,999.9735,4.0);
- GameTextForPlayer(playerid, "~w~Cosa Nostra Deposit on the map", 5000, 1);
- SendClientMessage(playerid, COLOR_GREY, "The deposit is in your gang's HQ");
- return 1;
- }
- else if(gTeam[playerid] == TEAM_TRIADS)
- {
- SetPlayerCheckpoint(playerid,754.8130,-40.4202,1000.5859,4.0);
- GameTextForPlayer(playerid, "~w~The Triads Deposit on the map", 5000, 1);
- SendClientMessage(playerid, COLOR_GREY, "The deposit is in your gang's HQ");
- return 1;
- }
- else if(gTeam[playerid] == TEAM_EME)
- {
- SetPlayerCheckpoint(playerid,-2170.2595,635.3943,1052.3750,4.0);
- GameTextForPlayer(playerid, "~w~La Eme Deposit on the map", 5000, 1);
- SendClientMessage(playerid, COLOR_GREY, "The deposit is in your gang's HQ");
- return 1;
- }
- return 1;
- }
- if(strcmp("/healme", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_GROVE && IsPlayerInRangeOfPoint(playerid , 4.0, 2498.2524,-1711.1841,1014.7422))
- {
- SendClientMessage(playerid, COLOR_GREY, "MSG: You find some food in the fridge");
- SetPlayerHealth(playerid, 100);
- return 1;
- }
- else if(gTeam[playerid] == TEAM_BALLAS && IsPlayerInRangeOfPoint(playerid , 4.0, 332.0238,1119.5453,1083.8903))
- {
- SendClientMessage(playerid, COLOR_GREY, "MSG: You find some food in the fridge");
- SetPlayerHealth(playerid, 100);
- return 1;
- }
- else if(gTeam[playerid] == TEAM_VAGOS && IsPlayerInRangeOfPoint(playerid , 4.0, 2819.5203,-1173.3083,1025.5703))
- {
- SendClientMessage(playerid, COLOR_GREY, "MSG: You find some food in the cupboard");
- SetPlayerHealth(playerid, 100);
- return 1;
- }
- else if(gTeam[playerid] == TEAM_AZTECAS && IsPlayerInRangeOfPoint(playerid , 4.0, 1091.7166,2121.3447,15.3504))
- {
- SendClientMessage(playerid, COLOR_GREY, "MSG: You find some food in this room");
- SetPlayerHealth(playerid, 100);
- return 1;
- }
- else if(gTeam[playerid] == TEAM_LSPD && IsPlayerInRangeOfPoint(playerid , 4.0, 249.5486,196.5705,1008.1719))
- {
- SendClientMessage(playerid, COLOR_GREY, "MSG: You drunk some watter");
- SetPlayerHealth(playerid, 100);
- return 1;
- }
- else if(gTeam[playerid] == TEAM_BIKERS && IsPlayerInRangeOfPoint(playerid , 4.0, 971.0430,-48.9377,1001.1172))
- {
- SendClientMessage(playerid, COLOR_GREY, "MSG: You drunk some beer from the fridge");
- SetPlayerHealth(playerid, 100);
- return 1;
- }
- else if(gTeam[playerid] == TEAM_ARMY && IsPlayerInRangeOfPoint(playerid , 4.0, 238.2102,107.8858,1003.2257))
- {
- SendClientMessage(playerid, COLOR_GREY, "MSG: You found a sandwitch and ate him");
- SetPlayerHealth(playerid, 100);
- return 1;
- }
- else if(gTeam[playerid] == TEAM_SICILIAN && IsPlayerInRangeOfPoint(playerid , 4.0, 935.6519,2137.0225,1011.0234))
- {
- SendClientMessage(playerid, COLOR_GREY, "MSG: You found some meat and ate her");
- SetPlayerHealth(playerid, 100);
- return 1;
- }
- else if(gTeam[playerid] == TEAM_COSANOSTRA && IsPlayerInRangeOfPoint(playerid , 4.0, 2202.5352,1617.8859,999.9766))
- {
- SendClientMessage(playerid, COLOR_GREY, "MSG: You drunk some sprunk from the bottle");
- SetPlayerHealth(playerid, 100);
- return 1;
- }
- else if(gTeam[playerid] == TEAM_TRIADS && IsPlayerInRangeOfPoint(playerid , 4.0, 754.3125,-26.5753,1000.5917))
- {
- SendClientMessage(playerid, COLOR_GREY, "MSG: You found a sandwitch in the locker room and ate him");
- SetPlayerHealth(playerid, 100);
- return 1;
- }
- else if(gTeam[playerid] == TEAM_EME && IsPlayerInRangeOfPoint(playerid , 4.0, -2160.2871,640.0001,1057.5861))
- {
- SendClientMessage(playerid, COLOR_GREY, "MSG: You cooked some food and then ate her");
- SetPlayerHealth(playerid, 100);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at the eating place!");
- }
- return 1;
- }
- if(strcmp("/killme", cmd, true) == 0)
- {
- SetPlayerHealth(playerid, 1);
- ApplyAnimation(playerid,"PED","BIKE_fallR",4.1,0,1,1,1,1);
- SetTimerEx("Die", 5000, false, "c", playerid, "SA-MP");
- SendClientMessage(playerid, COLOR_YELLOW, "God kicked you with his leg,you almost died!");
- return 1;
- }
- if(strcmp("/commands", cmd, true) == 0)
- {
- SendClientMessage(playerid, COLOR_BLACK, "<< ========================================================== >>");
- SendClientMessage(playerid, COLOR_YELLOW, "Players: /anims /pm /killme /dropweapon /deposit /rules /help /stats");
- SendClientMessage(playerid, COLOR_YELLOW, "Players: /admins /robstore /buyskin /buygun");
- SendClientMessage(playerid, COLOR_YELLOW, "Players: /grovehelp /ballashelp /vagoshelp /aztecashelp /lspdhelp");
- SendClientMessage(playerid, COLOR_YELLOW, "Players: /bikershelp /armyhelp /sicilianhelp /cosahelp /triadshelp /emehelp");
- SendClientMessage(playerid, COLOR_BLACK, "<< ========================================================== >>");
- return 1;
- }
- if(strcmp("/ahelp", cmd, true) == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "<< ========================================================== >>");
- SendClientMessage(playerid, COLOR_YELLOW, "Helper(lvl 1): /kick /akill /m /slap /ahelp /check /gotols /gotosf /gotolv /gotodair /gotochilliad ![message]-in chat for admin chat ");
- SendClientMessage(playerid, COLOR_YELLOW, "Admin(lvl 2): /freeze /unfreeze /ban /mute /unmute /mslap /disarm /spawnp");
- SendClientMessage(playerid, COLOR_YELLOW, "SuperAdmin(lvl 3): /goto /get /veh /ss /shp /sar /gpm /ajail");
- SendClientMessage(playerid, COLOR_YELLOW, "Moderator(lvl 4): /fucku /godon /godoff /xplode /spm ");
- SendClientMessage(playerid, COLOR_YELLOW, "Owner(lvl 5): /mad(don't work)(To make a player admin go to scriptfiles/Users and modify AdminLevel)");
- SendClientMessage(playerid, COLOR_GREY, "<< ========================================================== >>");
- return 1;
- }
- if(strcmp("/rules", cmd, true) == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "<< ========================================================== >>");
- SendClientMessage(playerid, COLOR_YELLOW, "Edit this with the rules of your server ");
- SendClientMessage(playerid, COLOR_YELLOW, "Edit this with the rules of your server");
- SendClientMessage(playerid, COLOR_YELLOW, "Edit this with the rules of your server");
- SendClientMessage(playerid, COLOR_YELLOW, "Edit this with the rules of your server ");
- SendClientMessage(playerid, COLOR_YELLOW, "Edit this with the rules of your server");
- SendClientMessage(playerid, COLOR_GREY, "<< ========================================================== >>");
- return 1;
- }
- if(strcmp("/grovehelp", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_GROVE)
- {
- SendClientMessage(playerid, COLOR_GREEN, "_______________________________________________________________________________________________________");
- SendClientMessage(playerid, COLOR_GREEN, "***GROVE 4 LIFE***");
- SendClientMessage(playerid, COLOR_GREEN, "****Team Chat:#[message] ");
- SendClientMessage(playerid, COLOR_GREEN, "****Grove Equip:/streetthug /streetsoldier /udgrove");
- SendClientMessage(playerid, COLOR_GREEN, "****Grove Commands:/deposit");
- SendClientMessage(playerid, COLOR_GREEN, "Undercover Kid - Knife and a undercover skin");
- SendClientMessage(playerid, COLOR_GREEN, "Street Thug - Basball Bat, Deagle---Street Soldier:Pool Cue,Deagle");
- SendClientMessage(playerid, COLOR_GREEN, "________________________________________________________________________________________________________");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a Grove Member");
- }
- return 1;
- }
- if(strcmp("/streetthug", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_GROVE)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 2492.8123,-1710.7850,1014.7422))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 5, 1);
- GivePlayerWeapon(playerid, 24, 100);
- SetPlayerColor(playerid, COLOR_GREEN);
- SendClientMessage(playerid, COLOR_GREEN, "You are now a Street Thug");
- SetPlayerSkin(playerid, 107);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Grove Deposit or you are not a Grove Member");
- }
- }
- return 1;
- }
- if(strcmp("/streetsoldier", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_GROVE)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 2492.8123,-1710.7850,1014.7422))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 7, 1);
- GivePlayerWeapon(playerid, 24, 100);
- SetPlayerColor(playerid, COLOR_GREEN);
- SendClientMessage(playerid, COLOR_GREEN, "You are now a Street Soldier");
- SetPlayerSkin(playerid, 106);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Grove Deposit or you are not a Grove Member");
- }
- }
- return 1;
- }
- if(strcmp("/udgrove", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_GROVE)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 2492.8123,-1710.7850,1014.7422))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 4, 1);
- SetPlayerSkin(playerid, 159);
- SetPlayerColor(playerid, COLOR_INVISIBLE);
- SendClientMessage(playerid, COLOR_GREEN, "You are now a Undercover Kid");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Grove Deposit or you are not a Grove Member");
- }
- }
- return 1;
- }
- if(strcmp("/ballashelp", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_BALLAS)
- {
- SendClientMessage(playerid, COLOR_PURPLE, "_______________________________________________________________________________________________________");
- SendClientMessage(playerid, COLOR_PURPLE, "***East Side Hoods***");
- SendClientMessage(playerid, COLOR_PURPLE, "****Team Chat:#[message] ");
- SendClientMessage(playerid, COLOR_PURPLE, "****Ballas Equip:/turfwalker /frontyardballa /udballas");
- SendClientMessage(playerid, COLOR_PURPLE, "****Ballas Commands:/deposit");
- SendClientMessage(playerid, COLOR_PURPLE, "Turf Walker - Brass Knuckle ,Deagle");
- SendClientMessage(playerid, COLOR_PURPLE, "Frond Yard Balla - Basball Bat, Deagle---Undercover Kid: Knife and a undercover skin");
- SendClientMessage(playerid, COLOR_PURPLE, "________________________________________________________________________________________________________");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a ballas member");
- }
- return 1;
- }
- if(strcmp("/turfwalker", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_BALLAS)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 308.1769,1120.4403,1083.8828))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 1, 1);
- GivePlayerWeapon(playerid, 24, 100);
- SetPlayerColor(playerid, COLOR_PURPLE);
- SendClientMessage(playerid, COLOR_PURPLE, "You are now a Turf walker");
- SetPlayerSkin(playerid, 102);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Ballas Deposit or you are not a Ballas Member");
- }
- }
- return 1;
- }
- if(strcmp("/frontyardballa", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_BALLAS)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 308.1769,1120.4403,1083.8828))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 5, 1);
- GivePlayerWeapon(playerid, 24, 100);
- SetPlayerColor(playerid, COLOR_PURPLE);
- SendClientMessage(playerid, COLOR_PURPLE, "You are now a Front Yard Ballas");
- SetPlayerSkin(playerid, 104);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Ballas Deposit or you are not a Ballas Member");
- }
- }
- return 1;
- }
- if(strcmp("/udballas", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_BALLAS)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 308.1769,1120.4403,1083.8828))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 4, 1);
- SetPlayerSkin(playerid, 160);
- SetPlayerColor(playerid, COLOR_INVISIBLE);
- SendClientMessage(playerid, COLOR_PURPLE, "You are now a Undercover Kid");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Ballas Deposit or you are not a Ballas Member");
- }
- }
- return 1;
- }
- if(strcmp("/vagoshelp", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_VAGOS)
- {
- SendClientMessage(playerid, COLOR_ORANGE, "_______________________________________________________________________________________________________");
- SendClientMessage(playerid, COLOR_ORANGE, "***Los Santos Vagos***");
- SendClientMessage(playerid, COLOR_ORANGE, "****Team Chat:#[message] ");
- SendClientMessage(playerid, COLOR_ORANGE, "****Vagos Equip:/kidnapper /killer /udvagos");
- SendClientMessage(playerid, COLOR_ORANGE, "****Vagos Commands:/deposit");
- SendClientMessage(playerid, COLOR_ORANGE, "Kidnapper - Baseball Bat ,Deagle");
- SendClientMessage(playerid, COLOR_ORANGE, "Street Killer - Shovel, Deagle---Undercover Kid: Knife and a undercover skin");
- SendClientMessage(playerid, COLOR_ORANGE, "________________________________________________________________________________________________________");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a vagos member");
- }
- return 1;
- }
- if(strcmp("/kidnapper", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_VAGOS)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 2807.5552,-1165.3676,1025.5703))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 5, 1);
- GivePlayerWeapon(playerid, 24, 100);
- SetPlayerColor(playerid, COLOR_YELLOW
- );
- SendClientMessage(playerid, COLOR_ORANGE, "You are now a Kidnapper");
- SetPlayerSkin(playerid, 110);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Vagos Deposit or you are not a Vagos Member");
- }
- }
- return 1;
- }
- if(strcmp("/streetkiller", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_VAGOS)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 2807.5552,-1165.3676,1025.5703))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 6, 1);
- GivePlayerWeapon(playerid, 24, 100);
- SetPlayerColor(playerid, COLOR_YELLOW);
- SendClientMessage(playerid, COLOR_ORANGE, "You are now a Street Killer");
- SetPlayerSkin(playerid, 108);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Vagos Deposit or you are not a Vagos Member");
- }
- }
- return 1;
- }
- if(strcmp("/udvagos", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_VAGOS)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 2807.5552,-1165.3676,1025.5703))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 4, 1);
- SetPlayerSkin(playerid, 158);
- SetPlayerColor(playerid, COLOR_INVISIBLE);
- SendClientMessage(playerid, COLOR_ORANGE, "You are now a Undercover Kid");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Vagos Deposit or you are not a Vagos Member");
- }
- }
- return 1;
- }
- if(strcmp("/aztecashelp", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_AZTECAS)
- {
- SendClientMessage(playerid, COLOR_BLUE, "_______________________________________________________________________________________________________");
- SendClientMessage(playerid, COLOR_BLUE, "***Los Aztecas***");
- SendClientMessage(playerid, COLOR_BLUE, "****Team Chat:#[message] ");
- SendClientMessage(playerid, COLOR_BLUE, "****Aztecas Equip:/observer /thief /udaztecas");
- SendClientMessage(playerid, COLOR_BLUE, "****Aztecas Commands:/deposit");
- SendClientMessage(playerid, COLOR_BLUE, "Observer - Brass Knuckles,Deagle");
- SendClientMessage(playerid, COLOR_BLUE, "Thief - Pool Cue,Deaglr---Undercover Kid: Knife and a undercover skin");
- SendClientMessage(playerid, COLOR_BLUE, "________________________________________________________________________________________________________");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a aztecas member");
- }
- return 1;
- }
- if(strcmp("/observer", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_AZTECAS)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 1075.5396,2077.6289,10.8203))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 1, 1);
- GivePlayerWeapon(playerid, 24, 100);
- SetPlayerColor(playerid, COLOR_BLUE);
- SendClientMessage(playerid, COLOR_BLUE, "You are now a Observer");
- SetPlayerSkin(playerid, 114);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Aztecas Deposit or you are not a Aztecas Member");
- }
- }
- return 1;
- }
- if(strcmp("/thief", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_AZTECAS)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 1075.5396,2077.6289,10.8203))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 7, 1);
- GivePlayerWeapon(playerid, 24, 100);
- SetPlayerColor(playerid, COLOR_BLUE);
- SendClientMessage(playerid, COLOR_BLUE, "You are now a Thief");
- SetPlayerSkin(playerid, 115);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Aztecas Deposit or you are not a Aztecas Member");
- }
- }
- return 1;
- }
- if(strcmp("/udaztecas", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_AZTECAS)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 1075.5396,2077.6289,10.8203))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 4, 1);
- SetPlayerSkin(playerid, 161);
- SetPlayerColor(playerid, COLOR_INVISIBLE);
- SendClientMessage(playerid, COLOR_BLUE, "You are now a Undercover Kid");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Aztecas Deposit or you are not a Aztecas Member");
- }
- }
- return 1;
- }
- if(strcmp("/lspdhelp", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_LSPD)
- {
- SendClientMessage(playerid, COLOR_SAND, "_______________________________________________________________________________________________________");
- SendClientMessage(playerid, COLOR_SAND, "***Los Santos Police Departament***");
- SendClientMessage(playerid, COLOR_SAND, "****Team Chat:#[message] ");
- SendClientMessage(playerid, COLOR_SAND, "****Police Equip:/motorcop /patruler /lieutenant /swat /fbi");
- SendClientMessage(playerid, COLOR_SAND, "****Police Commands:/deposit /ar /tk");
- SendClientMessage(playerid, COLOR_SAND, "Motor Cop - Nite Stick , Deagle");
- SendClientMessage(playerid, COLOR_SAND, "Patruler - Nite Stick, Spray, Deagle---Lieutenant: Nite Stick,Spray,Deagle,Shotgun");
- SendClientMessage(playerid, COLOR_SAND, "SWAT - Nite Stick,Spray,Deagle,Shotgun,MP5,M4");
- SendClientMessage(playerid, COLOR_SAND, "FBI - Knife,Spray,Sniper,");
- SendClientMessage(playerid, COLOR_SAND, "________________________________________________________________________________________________________");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a police member");
- }
- return 1;
- }
- if(strcmp("/motorcop", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_LSPD)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 1525.0012,-1677.9576,5.8906))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 3, 1);
- GivePlayerWeapon(playerid, 24, 200);
- SetPlayerColor(playerid, COLOR_SAND);
- SendClientMessage(playerid, COLOR_SAND, "You are now a Motor Cop");
- SetPlayerSkin(playerid, 284);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Police Armoury or you are not a Police Member");
- }
- }
- return 1;
- }
- if(strcmp("/patruler", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_LSPD)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 1525.0012,-1677.9576,5.8906))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 3, 1);
- GivePlayerWeapon(playerid, 24, 100);
- GivePlayerWeapon(playerid, 41, 700);
- SetPlayerColor(playerid, COLOR_SAND);
- SendClientMessage(playerid, COLOR_SAND, "You are now a Patruler");
- SetPlayerSkin(playerid, 280);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Police Armoury or you are not a Police Member");
- }
- }
- return 1;
- }
- if(strcmp("/lieutenant", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_LSPD)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 1525.0012,-1677.9576,5.8906))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 3, 1);
- GivePlayerWeapon(playerid, 24, 100);
- GivePlayerWeapon(playerid, 25, 200);
- GivePlayerWeapon(playerid, 41, 700);
- SetPlayerColor(playerid, COLOR_SAND);
- SendClientMessage(playerid, COLOR_SAND, "You are now a Lieutenant");
- SetPlayerSkin(playerid, 283);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Police Armoury or you are not a Police Member");
- }
- }
- return 1;
- }
- if(strcmp("/swat", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_LSPD)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 1525.0012,-1677.9576,5.8906))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 3, 1);
- GivePlayerWeapon(playerid, 29, 250);
- GivePlayerWeapon(playerid, 31, 700);
- GivePlayerWeapon(playerid, 24, 100);
- GivePlayerWeapon(playerid, 41, 700);
- SetPlayerColor(playerid, COLOR_SAND);
- SendClientMessage(playerid, COLOR_SAND, "You are now a SWAT");
- SetPlayerSkin(playerid, 285);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Police Armoury or you are not a Police Member");
- }
- }
- return 1;
- }
- if(strcmp("/fbi", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_LSPD)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 1525.0012,-1677.9576,5.8906))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 4, 1);
- GivePlayerWeapon(playerid, 34, 100);
- SetPlayerColor(playerid, COLOR_INVISIBLE);
- SendClientMessage(playerid, COLOR_SAND, "You are now a FBI(Undercover)");
- SetPlayerSkin(playerid, 286);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Police Armoury or you are not a Police Member");
- }
- }
- return 1;
- }
- if(strcmp("/bikershelp", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_BIKERS)
- {
- SendClientMessage(playerid, COLOR_RED, "_______________________________________________________________________________________________________");
- SendClientMessage(playerid, COLOR_RED, "***BIKERS***");
- SendClientMessage(playerid, COLOR_RED, "****Team Chat:#[message] ");
- SendClientMessage(playerid, COLOR_RED, "****BIKERS Equip:/tiny /punk /udbikers");
- SendClientMessage(playerid, COLOR_RED, "****BIKERS Commands:/deposit");
- SendClientMessage(playerid, COLOR_RED, "Tiny - Baseball Bat,Deagle");
- SendClientMessage(playerid, COLOR_RED, "Punk - Pool Cue,Deagle---Undercover Kid: Knife and a undercover skin");
- SendClientMessage(playerid, COLOR_RED, "________________________________________________________________________________________________________");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a bikers member");
- }
- return 1;
- }
- if(strcmp("/tiny", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_BIKERS)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 954.5814,-56.3507,1001.1246))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 5, 1);
- GivePlayerWeapon(playerid, 24, 100);
- SetPlayerColor(playerid, COLOR_RED);
- SendClientMessage(playerid, COLOR_RED, "You are now a Tiny");
- SetPlayerSkin(playerid, 181);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Bikers Garage or you are not a Bikers Member");
- }
- }
- return 1;
- }
- if(strcmp("/punk", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_BIKERS)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 954.5814,-56.3507,1001.1246))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 5, 1);
- GivePlayerWeapon(playerid, 24, 100);
- SetPlayerColor(playerid, COLOR_RED);
- SendClientMessage(playerid, COLOR_RED, "You are now a Punk");
- SetPlayerSkin(playerid, 100);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Bikers Garage or you are not a Bikers Member");
- }
- }
- return 1;
- }
- if(strcmp("/udbikers", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_BIKERS)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 954.5814,-56.3507,1001.1246))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 4, 1);
- SetPlayerSkin(playerid, 200);
- SetPlayerColor(playerid, COLOR_INVISIBLE);
- SendClientMessage(playerid, COLOR_RED, "You are now a Undercover Kid");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Bikers Garage or you are not a Bikers Member");
- }
- }
- return 1;
- }
- if(strcmp("/armyhelp", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_ARMY)
- {
- SendClientMessage(playerid, COLOR_GREY, "_______________________________________________________________________________________________________");
- SendClientMessage(playerid, COLOR_GREY, "***The Army***");
- SendClientMessage(playerid, COLOR_GREY, "****Team Chat:#[message] ");
- SendClientMessage(playerid, COLOR_GREY, "****Army Equip:/sergeant /general /udarmy");
- SendClientMessage(playerid, COLOR_GREY, "****Army Commands:/deposit");
- SendClientMessage(playerid, COLOR_GREY, "Sergeant - Baseball Bat,Deagle");
- SendClientMessage(playerid, COLOR_GREY, "General - Brass knuckle,Deagle---Undercover Soldier: Knife and a undercover skin");
- SendClientMessage(playerid, COLOR_GREY, "________________________________________________________________________________________________________");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a aztecas member");
- }
- return 1;
- }
- if(strcmp("/sergeant", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_ARMY)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 225.7137,122.8947,999.0574))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 5, 1);
- GivePlayerWeapon(playerid, 24, 100);
- SetPlayerColor(playerid, COLOR_GREY);
- SendClientMessage(playerid, COLOR_GREY, "You are now a Sergeant");
- SetPlayerSkin(playerid, 179);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Army Deposit or you are not a Army Member");
- }
- }
- return 1;
- }
- if(strcmp("/general", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_ARMY)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 225.7137,122.8947,999.0574))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 1, 1);
- GivePlayerWeapon(playerid, 24, 100);
- SetPlayerColor(playerid, COLOR_GREY);
- SendClientMessage(playerid, COLOR_GREY, "You are now a General");
- SetPlayerSkin(playerid, 287);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Army Deposit or you are not a Army Member");
- }
- }
- return 1;
- }
- if(strcmp("/udarmy", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_ARMY)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 225.7137,122.8947,999.0574))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 4, 1);
- SetPlayerSkin(playerid, 213);
- SetPlayerColor(playerid, COLOR_INVISIBLE);
- SendClientMessage(playerid, COLOR_GREY, "You are now a Undercover Soldire");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Army Deposit or you are not a Army Member");
- }
- }
- return 1;
- }
- if(strcmp("/sicilianhelp", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_SICILIAN)
- {
- SendClientMessage(playerid, COLOR_WHITE, "_______________________________________________________________________________________________________");
- SendClientMessage(playerid, COLOR_WHITE, "***The Sicilian Mafia***");
- SendClientMessage(playerid, COLOR_WHITE, "****Team Chat:#[message] ");
- SendClientMessage(playerid, COLOR_WHITE, "****Sicilian Equip:/piccioto /capodituticapi /udsicilian");
- SendClientMessage(playerid, COLOR_WHITE, "****Sicilian Commands:/deposit");
- SendClientMessage(playerid, COLOR_WHITE, "Piccioto - Baseball Bat,Deagle");
- SendClientMessage(playerid, COLOR_WHITE, "Thief - Baseball Bat,Deagle---Undercover Associato: Knife and a undercover skin");
- SendClientMessage(playerid, COLOR_WHITE, "________________________________________________________________________________________________________");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a sicilian member");
- }
- return 1;
- }
- if(strcmp("/piccioto", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_SICILIAN)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 934.2408,2109.9873,1011.0234))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 5, 1);
- GivePlayerWeapon(playerid, 24, 100);
- SetPlayerColor(playerid, COLOR_WHITE);
- SendClientMessage(playerid, COLOR_WHITE, "You are now a Piccioto");
- SetPlayerSkin(playerid, 124);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Sicilian Deposit or you are not a Sicilian Member");
- }
- }
- return 1;
- }
- if(strcmp("/capodituticapi", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_SICILIAN)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 934.2408,2109.9873,1011.0234))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 5, 1);
- GivePlayerWeapon(playerid, 24, 100);
- SetPlayerColor(playerid, COLOR_WHITE);
- SendClientMessage(playerid, COLOR_WHITE, "You are now a Capo di tuti Capi");
- SetPlayerSkin(playerid, 125);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Sicilian Deposit or you are not a Sicilian Member");
- }
- }
- return 1;
- }
- if(strcmp("/udsicilian", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_SICILIAN)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 934.2408,2109.9873,1011.0234))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 4, 1);
- SetPlayerSkin(playerid, 217);
- SetPlayerColor(playerid, COLOR_INVISIBLE);
- SendClientMessage(playerid, COLOR_WHITE, "You are now a Undercover Associato");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Sicilian Deposit or you are not a Sicilian Member");
- }
- }
- return 1;
- }
- if(strcmp("/cosahelp", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_COSANOSTRA)
- {
- SendClientMessage(playerid, COLOR_OKER, "_______________________________________________________________________________________________________");
- SendClientMessage(playerid, COLOR_OKER, "***La Cosa Nostra***");
- SendClientMessage(playerid, COLOR_OKER, "****Team Chat:#[message] ");
- SendClientMessage(playerid, COLOR_OKER, "****Cosa Nostra Equip:/soldire /caporegime /udcosanostra");
- SendClientMessage(playerid, COLOR_OKER, "****Cosa Nostra Commands:/deposit");
- SendClientMessage(playerid, COLOR_OKER, "Soldire - Baseball Bat,Deagle");
- SendClientMessage(playerid, COLOR_OKER, "Caporegime - Brass Knuckle,Deagle---Undercover Soldire: Knife and a undercover skin");
- SendClientMessage(playerid, COLOR_OKER, "________________________________________________________________________________________________________");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a cosa nostra member");
- }
- return 1;
- }
- if(strcmp("/soldire", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_COSANOSTRA)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 2217.0754,1594.4120,999.9735))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 5, 1);
- GivePlayerWeapon(playerid, 24, 100);
- SetPlayerColor(playerid, COLOR_OKER);
- SendClientMessage(playerid, COLOR_OKER, "You are now a Soldire");
- SetPlayerSkin(playerid, 126);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Cosa Nostra deposit or you are not a Cosa Nostra Member");
- }
- }
- return 1;
- }
- if(strcmp("/caporegime", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_COSANOSTRA)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 2217.0754,1594.4120,999.9735))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 1, 1);
- GivePlayerWeapon(playerid, 24, 100);
- SetPlayerColor(playerid, COLOR_OKER);
- SendClientMessage(playerid, COLOR_OKER, "You are now a Caporegime");
- SetPlayerSkin(playerid, 127);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Cosa Nostra Deposit or you are not a Cosa Nostra Member");
- }
- }
- return 1;
- }
- if(strcmp("/udcosa", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_COSANOSTRA)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 2217.0754,1594.4120,999.9735))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 4, 1);
- SetPlayerSkin(playerid, 230);
- SetPlayerColor(playerid, COLOR_INVISIBLE);
- SendClientMessage(playerid, COLOR_OKER, "You are now a Undercover Soldire");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Cosa Nostra Deposit or you are not a Cosa Nostra Member");
- }
- }
- return 1;
- }
- if(strcmp("/triadshelp", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_TRIADS)
- {
- SendClientMessage(playerid, COLOR_BLUELIGHT, "_______________________________________________________________________________________________________");
- SendClientMessage(playerid, COLOR_BLUELIGHT, "***The Triads of China***");
- SendClientMessage(playerid, COLOR_BLUELIGHT, "****Team Chat:#[message] ");
- SendClientMessage(playerid, COLOR_BLUELIGHT, "****Triads Equip:/protector /capo /udtriads");
- SendClientMessage(playerid, COLOR_BLUELIGHT, "****Triads Commands:/deposit");
- SendClientMessage(playerid, COLOR_BLUELIGHT, "Protector - Katana,Deagle");
- SendClientMessage(playerid, COLOR_BLUELIGHT, "Capo - Katana,Deagle---Undercover Choa: Knife and a undercover skin");
- SendClientMessage(playerid, COLOR_BLUELIGHT, "________________________________________________________________________________________________________");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a triads member");
- }
- return 1;
- }
- if(strcmp("/protector", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_TRIADS)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 754.8130,-40.4202,1000.5859))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 8, 1);
- GivePlayerWeapon(playerid, 24, 100);
- SetPlayerColor(playerid, COLOR_BLUELIGHT);
- SendClientMessage(playerid, COLOR_BLUELIGHT, "You are now a Chinese Protector");
- SetPlayerSkin(playerid, 117);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Triads Garage or you are not a Triads Member");
- }
- }
- return 1;
- }
- if(strcmp("/capo", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_TRIADS)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 754.8130,-40.4202,1000.5859))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 8, 1);
- GivePlayerWeapon(playerid, 24, 100);
- SetPlayerColor(playerid, COLOR_BLUELIGHT);
- SendClientMessage(playerid, COLOR_BLUELIGHT, "You are now a Chinese Capo");
- SetPlayerSkin(playerid, 120);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Triads Garage or you are not a Triads Member");
- }
- }
- return 1;
- }
- if(strcmp("/udtriads", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_TRIADS)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, 754.8130,-40.4202,1000.5859))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 4, 1);
- SetPlayerSkin(playerid, 234);
- SetPlayerColor(playerid, COLOR_INVISIBLE);
- SendClientMessage(playerid, COLOR_BLUELIGHT, "You are now a Undercover Chao");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at Triads Garage or you are not a Triads Member");
- }
- }
- return 1;
- }
- if(strcmp("/emehelp", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_EME)
- {
- SendClientMessage(playerid, COLOR_BROWN, "_______________________________________________________________________________________________________");
- SendClientMessage(playerid, COLOR_BROWN, "***Mexican Mafia(La eMe)***");
- SendClientMessage(playerid, COLOR_BROWN, "****Team Chat:#[message] ");
- SendClientMessage(playerid, COLOR_BROWN, "****La eMe Equip:/padre /hermano /udeme");
- SendClientMessage(playerid, COLOR_BROWN, "****La eMe Commands:/deposit");
- SendClientMessage(playerid, COLOR_BROWN, "Padre - Baseball Bat,Deagle");
- SendClientMessage(playerid, COLOR_BROWN, "Thief - Brass Knuckle,Deagle---Undercover Kid: Knife and a undercover skin");
- SendClientMessage(playerid, COLOR_BROWN, "________________________________________________________________________________________________________");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a eMe member");
- }
- return 1;
- }
- if(strcmp("/padre", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_EME)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, -2170.2595,635.3943,1052.3750))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 5, 1);
- GivePlayerWeapon(playerid, 24, 100);
- SetPlayerColor(playerid, COLOR_BROWN);
- SendClientMessage(playerid, COLOR_BROWN, "You are now a Padre");
- SetPlayerSkin(playerid, 173);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at eMe Deposit or you are not a eMe Member");
- }
- }
- return 1;
- }
- if(strcmp("/hermano", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_EME)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, -2170.2595,635.3943,1052.3750))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 1, 1);
- GivePlayerWeapon(playerid, 24, 100);
- SetPlayerColor(playerid, COLOR_BROWN);
- SendClientMessage(playerid, COLOR_BROWN, "You are now a Hermano");
- SetPlayerSkin(playerid, 174);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at eMe Deposit or you are not a eMe Member");
- }
- }
- return 1;
- }
- if(strcmp("/udeme", cmd, true) == 0)
- {
- if(gTeam[playerid] == TEAM_EME)
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0, -2170.2595,635.3943,1052.3750))
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 4, 1);
- SetPlayerSkin(playerid, 236);
- SetPlayerColor(playerid, COLOR_BROWN);
- SendClientMessage(playerid, COLOR_BROWN, "You are now a Undercover Kid");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not at eMe Deposit or you are not a eMe Member");
- }
- }
- return 1;
- }
- if(strcmp("/anims", cmd, true) == 0)
- {
- SendClientMessage(playerid, COLOR_BLACK, "<< =======================---Anims---===================== >>");
- SendClientMessage(playerid, COLOR_YELLOW, "<< /lay /hup(handsup) /rob /taichi /sick /scared /chat /kiss /sit >>");
- SendClientMessage(playerid, COLOR_YELLOW, "<< /fuck /crack /smoke /die /lol /drunk /pee /injured /slapass>>");
- SendClientMessage(playerid, COLOR_YELLOW, "<< Anim System created by Hor1z0n >>");
- SendClientMessage(playerid, COLOR_BLACK, "<< =======================B.E.G Wars v0.8======================== >>");
- return 1;
- }
- if(strcmp("/lay", cmd, true) == 0)
- {
- ApplyAnimation(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/hup", cmd, true) == 0)
- {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
- return 1;
- }
- if(strcmp("/injured", cmdtext, true) == 0)
- {
- ApplyAnimation(playerid, "SWEET", "Sweet_injuredloop", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if (strcmp("/slapass", cmdtext, true) == 0)
- {
- ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0); // Ass Slapping
- return 1;
- }
- if(strcmp("/rob", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/taichi", cmd, true) == 0)
- {
- ApplyAnimation(playerid,"PARK","Tai_Chi_Loop",4.0,1,0,0,0,0);
- return 1;
- }
- if(strcmp("/sick", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/scared", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/chat", cmd, true) == 0)
- {
- ApplyAnimation(playerid,"PED","IDLE_CHAT",1.800001, 1, 1, 1, 1, 13000);
- return 1;
- }
- if(strcmp("/kiss", cmd, true) == 0)
- {
- ApplyAnimation(playerid,"KISSING", "Grlfrd_Kiss_02", 1.800001, 1, 0, 0, 1, 600);
- return 1;
- }
- if(strcmp("/sit", cmd, true) == 0)
- {
- ApplyAnimation(playerid,"INT_OFFICE", "OFF_Sit_Bored_Loop", 1.800001, 1, 0, 0, 1, 600);
- return 1;
- }
- if(strcmp("/fuck", cmd, true) == 0)
- {
- ApplyAnimation(playerid,"ped", "fucku", 4.1, 0, 1, 1, 1, 1 );
- return 1;
- }
- if(strcmp("/crack", cmd, true) == 0)
- {
- ApplyAnimation(playerid,"CRACK", "crckdeth2", 1.800001, 1, 0, 0, 1, 600);
- return 1;
- }
- if(strcmp("/smoke", cmd, true) == 0)
- {
- ApplyAnimation(playerid,"SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/die", cmd, true) == 0)
- {
- ApplyAnimation(playerid,"PED","BIKE_fallR",4.1,0,1,1,1,1);
- return 1;
- }
- if(strcmp("/lol", cmd, true) == 0)
- {
- ApplyAnimation(playerid,"PED","Crouch_Roll_L",4.1,0,1,1,1,1);
- return 1;
- }
- if(strcmp("/drunk", cmd, true) == 0)
- {
- ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,0,1,1,1,1);
- return 1;
- }
- if(strcmp("/pee", cmd, true) == 0)
- {
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_PISSING);
- return 1;
- }
- if(strcmp("/help", cmd, true) == 0)
- {
- SendClientMessage(playerid, COLOR_BLACK, "<< ========================================================== >>");
- SendClientMessage(playerid, COLOR_YELLOW, "<< For a complet list of commands tipe /commands >>");
- SendClientMessage(playerid, COLOR_YELLOW, "<< Don't use cheats and don't bug abuse or you'll be banned >>");
- SendClientMessage(playerid, COLOR_YELLOW, "<< This Gamemode was created by Hor1z0n >>");
- SendClientMessage(playerid, COLOR_BLACK, "<< ========================================================== >>");
- return 1;
- }
- if(strcmp("/tk", cmd, true) == 0)
- {
- new pId;
- if(gTeam[playerid] == TEAM_LSPD)
- {
- if(!strlen(tmp) || strlen(tmp) > 5) {
- SendClientMessage(playerid,COLOR_YELLOW,"Usage: /tk (id) ");
- return 1;
- }
- else if(!IsPlayerConnected(pId)) return SendClientMessage(playerid, COLOR_GREY, "The ID You Entered Was Not Found.");
- else
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(pId, x, y, z);
- if(IsPlayerInRangeOfPoint(playerid, 8.0, x, y, z))
- {
- new pname[MAX_PLAYER_NAME], aname[MAX_PLAYER_NAME], string1[250];
- GetPlayerName(playerid, pname, sizeof(pname));
- GetPlayerName(pId, aname, sizeof(aname));
- if (GetPlayerWantedLevel(pId) == 0)
- {
- SendClientMessage(playerid, COLOR_SAND, "B.E.G Wars : Player is not a criminal!");
- return 1;
- }
- else if (GetPlayerWantedLevel(pId) == 1)
- {
- SendClientMessage(pId, COLOR_YELLOW, "You payed 1000$ for having 1 Wanted level!");
- GivePlayerMoney(pId, -1000);
- GivePlayerMoney(playerid, 1000);
- SendClientMessage(playerid, COLOR_SAND, "B.E.G Wars : Officer,you recived 1000$!");
- SetPlayerWantedLevel(pId, 0);
- format(string1, sizeof(string1), "<< B.E.G. Wars : %s(%d) has recieved a ticet from Officer %s(%d) >>", aname, pId, pname, playerid);
- SendClientMessageToAll(COLOR_SAND, string1);
- return 1;
- }
- else if (GetPlayerWantedLevel(pId) > 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "This player is a criminal,arrest him[/ar]");
- return 1;
- }
- }
- }
- }
- else
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not a police officer!");
- }
- return 1;
- }
- if(strcmp("/ar", cmd, true) == 0)
- {
- new pId;
- if(gTeam[playerid] == TEAM_LSPD)
- {
- if(!strlen(tmp) || strlen(tmp) > 5) {
- SendClientMessage(playerid,COLOR_YELLOW,"Usage: /ar (id) ");
- return 1;
- }
- else if(!IsPlayerConnected(pId)) return SendClientMessage(playerid, 0xFF0000AA, "The ID You Entered Was Not Found.");
- else
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(pId, x, y, z);
- if(IsPlayerInRangeOfPoint(playerid, 8.0, x, y, z))
- {
- new pname[MAX_PLAYER_NAME], aname[MAX_PLAYER_NAME], string1[250], string2[256], string3[100], string4[100];
- GetPlayerName(playerid, pname, sizeof(pname));
- GetPlayerName(pId, aname, sizeof(aname));
- if (GetPlayerWantedLevel(pId) == 0)
- {
- SendClientMessage(playerid, COLOR_SAND, "B.E.G Wars : Player isn't a criminal!");
- return 1;
- }
- else if (GetPlayerWantedLevel(pId) == 1)
- {
- SendClientMessage(playerid, COLOR_SAND, "B.E.G Wars: This player's wanted level is 1.Please use /tk [ID]");
- return 1;
- }
- else if (GetPlayerWantedLevel(pId) > 1)
- {
- new WantedLevel = GetPlayerWantedLevel(pId);
- SetPlayerInterior(pId, 3);
- new rand = random(sizeof(JailCellSpawns));
- SetPlayerPos(pId, JailCellSpawns[rand][0], JailCellSpawns[rand][1], JailCellSpawns[rand][2]);
- SetTimerEx("UnJail",WantedLevel*10000*60,0,"i",pId);
- InJail[pId] = 1;
- GivePlayerMoney(pId, -WantedLevel*1000);
- GivePlayerMoney(playerid, WantedLevel*1000);
- ResetPlayerWeapons(pId);
- SetPlayerWantedLevel(pId, 0);
- TogglePlayerControllable(pId, 0);
- format(string1, sizeof(string1), "<< B.E.G Wars : %s(%d) Has Ben Arrested By Officer %s(%d) for %d >>", aname, pId, pname, playerid);
- SendClientMessageToAll(COLOR_SAND, string1);
- format(string2, sizeof(string2), "^^ You have been sent to jail killing a person! ^^", WantedLevel, WantedLevel);
- SendClientMessage(pId, COLOR_YELLOW, string2);
- format(string3, sizeof(string3), "You have recived bonus for arresting a suspect!", WantedLevel, WantedLevel);
- SendClientMessage(playerid, 0xFF0000AA, string3);
- format(string4, sizeof(string4), "You have payed penalty for having Wanted Level!", WantedLevel, WantedLevel);
- SendClientMessage(pId, COLOR_YELLOW, string4);
- return 1;
- }
- }
- }
- }
- else
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not a LSPD member!");
- }
- return 1;
- }
- if(strcmp("/pm", cmd, true) == 0)
- {
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp) || strlen(tmp) > 5) {
- SendClientMessage(playerid,COLOR_YELLOW,"Usage: /pm [id/name] [message]");
- return 1;
- }
- new id = strval(tmp);
- gMessage = strrest(cmdtext,idx);
- if(!strlen(gMessage)) {
- SendClientMessage(playerid,COLOR_SAND,"Usage: /pm [id/name] [message]");
- return 1;
- }
- if(!IsPlayerConnected(id)) {
- SendClientMessage(playerid,COLOR_SAND,"<< B.E.G Wars : Bad name or ID >>");
- return 1;
- }
- if(playerid != id) {
- GetPlayerName(id,iName,sizeof(iName));
- GetPlayerName(playerid,pName,sizeof(pName));
- format(Message,sizeof(Message),"<< [MESSAGE]: %s(%d): %s >>",pName,id,gMessage);
- SendClientMessage(playerid,COLOR_BLUELIGHT,Message);
- format(Message,sizeof(Message),"<< [MESSAGE]: %s(%d): %s >>",pName,playerid,gMessage);
- SendClientMessage(id,COLOR_BLUELIGHT,Message);
- PlayerPlaySound(id,1085,0.0,0.0,0.0);
- printf("[MESSAGE]: %s",Message);
- }
- else {
- SendClientMessage(playerid,COLOR_SAND,"ERROR: You cannot PM yourself");
- }
- return 1;
- }
- if(strcmp(cmd, "/robstore", true) == 0)
- {
- new PlayerName[MAX_PLAYER_NAME];
- new string[128];
- GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
- if(gTeam[playerid] != TEAM_LSPD)
- {
- if (Robtime[playerid] == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 207.8523,-100.9970,1005.2578))
- {
- format(string, sizeof(string), "<< [WARNING] %s try to rob Los Santos Binco Store.You have 1 minute to go to him(/wl) >>",PlayerName);
- MessageToCops(COLOR_ORANGE,string);
- SendClientMessage(playerid, COLOR_YELLOW, "Wait 1 minute....");
- ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
- Robtime[playerid] = 1;
- TogglePlayerControllable(playerid, 0);
- SetTimerEx("CanRob", 1200000, false, "i", playerid);
- SetTimerEx("RobPrize", 60000, false, "i", playerid);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 295.7513,-38.3262,1001.5156))
- {
- format(string, sizeof(string), "<< [WARNING] %s try to rob Los Santos Meele Weapons Shop.You have 1 minute to go to him(/wl) >>",PlayerName);
- MessageToCops(COLOR_ORANGE,string);
- SendClientMessage(playerid, COLOR_YELLOW, "Wait 1 minute....");
- ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
- Robtime[playerid] = 1;
- TogglePlayerControllable(playerid, 0);
- SetTimerEx("CanRob", 1200000, false, "i", playerid);
- SetTimerEx("RobPrize", 60000, false, "i", playerid);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 291.2514,-106.2294,1001.5156))
- {
- format(string, sizeof(string), "<< [WARNING] %s try to rob Los Santos Hard Weapons Shop.You have 1 minute to go to him(/wl) >>",PlayerName);
- MessageToCops(COLOR_ORANGE,string);
- SendClientMessage(playerid, COLOR_YELLOW, "Wait 1 minute....");
- ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
- Robtime[playerid] = 1;
- TogglePlayerControllable(playerid, 0);
- SetTimerEx("CanRob", 1200000, false, "i", playerid);
- SetTimerEx("RobPrize", 60000, false, "i", playerid);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 295.5133,-80.6941,1001.5156))
- {
- format(string, sizeof(string), "<< [WARNING] %s try to rob Los Santos Small Weapons Shop.You have 1 minute to go to him(/wl) >>",PlayerName);
- MessageToCops(COLOR_ORANGE,string);
- SendClientMessage(playerid, COLOR_YELLOW, "Wait 1 minute....");
- ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
- Robtime[playerid] = 1;
- TogglePlayerControllable(playerid, 0);
- SetTimerEx("CanRob", 1200000, false, "i", playerid);
- SetTimerEx("RobPrize", 60000, false, "i", playerid);
- }else SendClientMessage(playerid,COLOR_GREY,"You aren't at any rob point!");
- }else SendClientMessage(playerid,COLOR_GREY,"You must wait 20 minutes to rob again!");
- }else SendClientMessage(playerid,COLOR_GREY,"LSPD members can't rob!");
- }
- if(strcmp("/report", cmd, true) == 0)
- {
- if(PlayerInfo[playerid][pAdminLevel] < 1) {
- tmp = strtok(cmdtext,idx);
- new string[128];
- if(!strlen(tmp) || strlen(tmp) > 5) {
- return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /report [id/name] [reason]");
- }
- new id = strval(tmp);
- if(!IsPlayerConnected(id)) {
- SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
- return 1;
- }
- gMessage = strrest(cmdtext,idx);
- GetPlayerName(id,iName,sizeof(iName));
- GetPlayerName(playerid, adminname, sizeof(adminname));
- format(string, sizeof(string), "[Report] %s reported %s reason: %s",adminname,iName,gMessage);
- MessageToAdmins(COLOR_ORANGE,string);
- return 1;
- } else {
- SendClientMessage(playerid,COLOR_SAND,"ERROR:You are an admin and can't report ");
- return 1;
- }
- }
- if(strcmp("/kick", cmd, true) == 0)
- {
- if(PlayerInfo[playerid][pAdminLevel] >= 1) {
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp) || strlen(tmp) > 5) {
- return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /kick [id/name] [reason]");
- }
- new id = strval(tmp);
- if(!IsPlayerConnected(id)) {
- SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
- return 1;
- }
- gMessage = strrest(cmdtext,idx);
- GetPlayerName(id,iName,sizeof(iName));
- GetPlayerName(playerid, adminname, sizeof(adminname));
- SendClientMessage(id,COLOR_YELLOW,"<< B.E.G Wars: You have been kicked from the server. >>");
- if(strlen(gMessage) > 0) {
- format(Message,sizeof(Message),"Reason: %s",gMessage);
- SendClientMessage(id,COLOR_YELLOW,Message);
- }
- format(Message,sizeof(Message),"<< B.E.G Wars: %s(%d) has been kicked from this server by %s. Reason: %s.",iName,id,adminname,gMessage);
- SendClientMessageToAll(COLOR_RED,Message);
- Kick(id);
- return 1;
- } else {
- SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low ");
- return 1;
- }
- }
- if(strcmp("/spawnp", cmd, true) == 0)
- {
- if(PlayerInfo[playerid][pAdminLevel] >= 2) {
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp) || strlen(tmp) > 5) {
- return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /spawnp [id/name] [reason]");
- }
- new id = strval(tmp);
- if(!IsPlayerConnected(id)) {
- SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
- return 1;
- }
- gMessage = strrest(cmdtext,idx);
- GetPlayerName(id,iName,sizeof(iName));
- GetPlayerName(playerid, adminname, sizeof(adminname));
- SendClientMessage(id,COLOR_YELLOW,"<< B.E.G Wars: You have been spawned . >>");
- if(strlen(gMessage) > 0) {
- format(Message,sizeof(Message),"Reason: %s",gMessage);
- SendClientMessage(id,COLOR_YELLOW,Message);
- }
- format(Message,sizeof(Message),"<< B.E.G Wars: %s(%d) has been spawned by %s. Reason: %s.",iName,id,adminname,gMessage);
- SendClientMessageToAll(COLOR_RED,Message);
- SpawnPlayer(id);
- return 1;
- } else {
- SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low ");
- return 1;
- }
- }
- if(strcmp("/disarm", cmd, true) == 0)
- {
- if(PlayerInfo[playerid][pAdminLevel] >= 2) {
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp) || strlen(tmp) > 5) {
- return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /disarm [id/name] [reason]");
- }
- new id = strval(tmp);
- if(!IsPlayerConnected(id)) {
- SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
- return 1;
- }
- gMessage = strrest(cmdtext,idx);
- GetPlayerName(id,iName,sizeof(iName));
- GetPlayerName(playerid, adminname, sizeof(adminname));
- SendClientMessage(id,COLOR_YELLOW,"<< B.E.G Wars: You have been disarmed . >>");
- if(strlen(gMessage) > 0) {
- format(Message,sizeof(Message),"Reason: %s",gMessage);
- SendClientMessage(id,COLOR_YELLOW,Message);
- }
- format(Message,sizeof(Message),"<< B.E.G Wars: %s(%d) has been disarmed by %s. Reason: %s.",iName,id,adminname,gMessage);
- SendClientMessageToAll(COLOR_RED,Message);
- ResetPlayerWeapons(id);
- return 1;
- } else {
- SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low ");
- return 1;
- }
- }
- if(strcmp("/mute", cmd, true) == 0)
- {
- if(PlayerInfo[playerid][pAdminLevel] >= 2) {
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp) || strlen(tmp) > 5) {
- return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /mute [id/name] [reason]");
- }
- new id = strval(tmp);
- if(!IsPlayerConnected(id)) {
- SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
- return 1;
- }
- gMessage = strrest(cmdtext,idx);
- GetPlayerName(id,iName,sizeof(iName));
- GetPlayerName(playerid, adminname, sizeof(adminname));
- SendClientMessage(id,COLOR_YELLOW,"<< B.E.G Wars: You have been muted. >>");
- if(strlen(gMessage) > 0) {
- format(Message,sizeof(Message),"Reason: %s",gMessage);
- SendClientMessage(id,COLOR_YELLOW,Message);
- }
- format(Message,sizeof(Message),"<< B.E.G Wars: %s(%d) has been muted by %s. Reason: %s.",iName,id,adminname,gMessage);
- SendClientMessageToAll(COLOR_RED,Message);
- Mute[id] = 1;
- return 1;
- } else {
- SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
- return 1;
- }
- }
- if(strcmp("/unmute", cmd, true) == 0)
- {
- if(PlayerInfo[playerid][pAdminLevel] >= 2) {
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp) || strlen(tmp) > 5) {
- return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /unmute [id/name] [reason]");
- }
- new id = strval(tmp);
- if(!IsPlayerConnected(id)) {
- SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
- return 1;
- }
- gMessage = strrest(cmdtext,idx);
- GetPlayerName(id,iName,sizeof(iName));
- GetPlayerName(playerid, adminname, sizeof(adminname));
- SendClientMessage(id,COLOR_YELLOW,"<< B.E.G Wars: You have been unmuted. >>");
- if(strlen(gMessage) > 0) {
- format(Message,sizeof(Message),"Reason: %s",gMessage);
- SendClientMessage(id,COLOR_YELLOW,Message);
- }
- format(Message,sizeof(Message),"<< B.E.G Wars: %s(%d) has been unmuted by %s. Reason: %s.",iName,id,adminname,gMessage);
- SendClientMessageToAll(COLOR_RED,Message);
- Mute[id] = 0;
- return 1;
- } else {
- SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
- return 1;
- }
- }
- if(!strcmp(cmd, "/m", true))
- {
- if(PlayerInfo[playerid][pAdminLevel] >= 1)
- {
- new string[128];
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /m [text]");
- GetPlayerName(playerid, adminname, sizeof(adminname));
- format(string, sizeof(string), "Admin %s[%d]: %s", adminname,playerid, cmdtext[2]);
- SendClientMessageToAll(COLOR_BLUELIGHT, string);
- print(string);
- }
- else return SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
- return 1;
- }
- if(!strcmp(cmd, "/admins", true))
- {
- if(IsPlayerConnected(playerid))
- {
- new Admin[MAX_PLAYER_NAME];
- new string[50 + MAX_PLAYER_NAME];
- SendClientMessage(playerid, COLOR_SAND, "<< B.E.G Wars Online Admins: >>");
- SendClientMessage(playerid, COLOR_SAND, "[-]-[-]-[-]-[-]-[-]-[-]-[-]-[-]-[-]");
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- new al = PlayerInfo[i][pAdminLevel];
- if(al > 0)
- {
- GetPlayerName(i, Admin, sizeof(Admin));
- format(string, sizeof(string), "Admin Name: %s || Admin Level: %d", Admin, al);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- SendClientMessage(playerid, COLOR_WHITE, "[-]-[-]-[-]-[-]-[-]-[-]-[-]-[-]-[-]");
- }
- return 1;
- }
- if(!strcmp(cmd, "/wl", true))
- {
- if(gTeam[playerid] == TEAM_LSPD)
- {
- new criminal[MAX_PLAYER_NAME];
- new string[50 + MAX_PLAYER_NAME];
- SendClientMessage(playerid, COLOR_SAND, "<< B.E.G Wars Wanted List: >>");
- SendClientMessage(playerid, COLOR_SAND, "[-]-[-]-[-]-[-]-[-]-[-]-[-]-[-]-[-]");
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- new wl = GetPlayerWantedLevel(i);
- if(wl > 0)
- {
- GetPlayerName(i, criminal, sizeof(criminal));
- format(string, sizeof(string), "Criminal Name: %s || Wanted Level: %d", criminal, wl);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- SendClientMessage(playerid, COLOR_WHITE, "[-]-[-]-[-]-[-]-[-]-[-]-[-]-[-]-[-]");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a police member");
- }
- return 1;
- }
- if(strcmp("/freeze", cmd, true) == 0)
- {
- if(PlayerInfo[playerid][pAdminLevel] >= 2) {
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp) || strlen(tmp) > 5) {
- return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /freeze [id/name] [reason]");
- }
- new id = strval(tmp);
- if(!IsPlayerConnected(id)) {
- SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
- return 1;
- }
- gMessage = strrest(cmdtext,idx);
- GetPlayerName(id,iName,sizeof(iName));
- GetPlayerName(playerid, adminname, sizeof(adminname));
- SendClientMessage(id,COLOR_YELLOW,"<< B.E.G Wars: You have been freezed. >>");
- if(strlen(gMessage) > 0) {
- format(Message,sizeof(Message),"Reason: %s",gMessage);
- SendClientMessage(id,COLOR_YELLOW,Message);
- }
- format(Message,sizeof(Message),"<< B.E.G Wars: %s(%d) has been freezed by %s. Reason: %s.",iName,id,adminname,gMessage);
- SendClientMessageToAll(COLOR_BRIGHTRED,Message);
- TogglePlayerControllable(id, 0);
- return 1;
- } else {
- SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
- return 1;
- }
- }
- if(strcmp(cmd, "/gw", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GREY, "USAGE: /gw [Playerid/Name] [WeaponID](Give players a weapon)");
- SendClientMessage(playerid, COLOR_WHITE, "*** Weapon IDs ***");
- SendClientMessage(playerid, COLOR_GREY, "|1 Brass Knuckles|2 Golf Club|3 Nite Stick|4 Knife|5 Baseball Bat|6 Shovel|7 Pool Cue|8 Katana| ");
- SendClientMessage(playerid, COLOR_GREY, "|9 Chainsaw|10 Purple Dildo|11 Small White Vibrator|12 Large White Vibrator|13 Silver Vibrator|");
- SendClientMessage(playerid, COLOR_GREY, "|14 Flowers|15 Cane|16 Gernade|17 Tear Gas|18 Molotov Cocktail|22 Pistol|23 SDPistol|24 Desert Eagle|");
- SendClientMessage(playerid, COLOR_GREY, "|25 Shotgun|26 Sawnoffs|27 SPAS12|28 UZI|29 MP5|30 AK47|31 M4|32 Tec9|33 Rifle|34 Sniper Rifle| ");
- SendClientMessage(playerid, COLOR_GREY, "|35 Rocket Launcher|36 HeatSeeker Rocket Launcher|37 Flamethrower|38 Minigun|41 Spraycan|");
- SendClientMessage(playerid, COLOR_GREY, "|42 Fire Extinguisher|43 Camera|44 Nightvision Goggles|45 Infrared Vision|46 Parachute| ");
- return 1;
- }
- new playa;
- new gun;
- new id = strval(tmp);
- playa = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- gun = strval(tmp);
- if(gun < 1||gun > 46)
- { SendClientMessage(playerid, COLOR_GREY, "Wrong ID"); return 1; }
- if (PlayerInfo[playerid][pAdminLevel] >= 4)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- GetPlayerName(id,iName,sizeof(iName));
- GetPlayerName(playerid, adminname, sizeof(adminname));
- GivePlayerWeapon(playa, gun, 650000);
- format(Message,sizeof(Message),"<< B.E.G Wars: %s has recived a weapon from %s.>>",iName,adminname);
- SendClientMessageToAll(COLOR_RED,Message);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR:You are not an admin or yout Admin Level is too low");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/ajail", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GREY, "USAGE: /ajail [Playerid/Name] [Miliseconds](Jail a player)(1 sec = 1000 milisec)");
- return 1;
- }
- new playa;
- new jt;
- new id = strval(tmp);
- playa = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- jt = strval(tmp);
- if (PlayerInfo[playerid][pAdminLevel] >= 3)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- TogglePlayerControllable(id, 0);
- InJail[id] = 1;
- GetPlayerName(id,iName,sizeof(iName));
- GetPlayerName(playerid, adminname, sizeof(adminname));
- SetPlayerInterior(id, 3);
- new rand = random(sizeof(JailCellSpawns));
- SetPlayerPos(id, JailCellSpawns[rand][0], JailCellSpawns[rand][1], JailCellSpawns[rand][2]);
- SetTimerEx("UnJail",jt, false,"i",id);
- format(Message,sizeof(Message),"<< B.E.G Wars: %s has jailed by %s.>>",iName,adminname);
- SendClientMessageToAll(COLOR_RED,Message);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR:You are not an admin or yout Admin Level is too low");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/ss", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GREY, "USAGE: /ss [Playerid/Name] [SkinID](Set the players skin)");
- return 1;
- }
- new playa;
- new skin;
- new id = strval(tmp);
- playa = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- skin = strval(tmp);
- if(skin < 0||skin > 300)
- { SendClientMessage(playerid, COLOR_GREY, "Wrong ID"); return 1; }
- if (PlayerInfo[playerid][pAdminLevel] >= 3)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- GetPlayerName(id,iName,sizeof(iName));
- GetPlayerName(playerid, adminname, sizeof(adminname));
- SetPlayerSkin(playa, skin);
- format(Message,sizeof(Message),"<< B.E.G Wars: %s has recived a skin from %s.>>",iName,adminname);
- SendClientMessageToAll(COLOR_RED,Message);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR:You are not an admin or yout Admin Level is too low");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/shp", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GREY, "USAGE: /shp [Playerid/Name] [Health](Set the players health)");
- return 1;
- }
- new playa;
- new health;
- new id = strval(tmp);
- playa = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- health = strval(tmp);
- if(health < 0||health > 100)
- { SendClientMessage(playerid, COLOR_GREY, "Can't set player's health more than 100"); return 1; }
- if (PlayerInfo[playerid][pAdminLevel] >= 3)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- GetPlayerName(id,iName,sizeof(iName));
- GetPlayerName(playerid, adminname, sizeof(adminname));
- SetPlayerHealth(playa, health);
- format(Message,sizeof(Message),"<< B.E.G Wars: %s health was set by Admin %s.>>",iName,adminname);
- SendClientMessageToAll(COLOR_RED,Message);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR:You are not an admin or yout Admin Level is too low");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/sar", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GREY, "USAGE: /sar [Playerid/Name] [Armour](Set the players armour)");
- return 1;
- }
- new playa;
- new armour;
- new id = strval(tmp);
- playa = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- armour = strval(tmp);
- if(armour < 0||armour > 100)
- { SendClientMessage(playerid, COLOR_GREY, "Can't set player's armour more than 100"); return 1; }
- if (PlayerInfo[playerid][pAdminLevel] >= 3)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- GetPlayerName(id,iName,sizeof(iName));
- GetPlayerName(playerid, adminname, sizeof(adminname));
- SetPlayerArmour(playa, armour);
- format(Message,sizeof(Message),"<< B.E.G Wars: %s armour was set by Admin %s.>>",iName,adminname);
- SendClientMessageToAll(COLOR_RED,Message);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR:You are not an admin or yout Admin Level is too low");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/gpm", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GREY, "USAGE: /gpm [Playerid/Name] [Ammount](Give players money)");
- return 1;
- }
- new playa;
- new money;
- new id = strval(tmp);
- playa = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- money = strval(tmp);
- if(money < 0||money > 99999)
- { SendClientMessage(playerid, COLOR_GREY, "Maxim ammount of money you can give is 99999"); return 1; }
- if (PlayerInfo[playerid][pAdminLevel] >= 3)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- GetPlayerName(id,iName,sizeof(iName));
- GetPlayerName(playerid, adminname, sizeof(adminname));
- GivePlayerMoney(playa, money);
- format(Message,sizeof(Message),"<< B.E.G Wars: %s has recived money from Admin %s.>>",iName,adminname);
- SendClientMessageToAll(COLOR_RED,Message);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR:You are not an admin or yout Admin Level is too low");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/spm", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GREY, "USAGE: /spm [Playerid/Name] [Ammount](Set the players money)");
- return 1;
- }
- new playa;
- new money;
- new id = strval(tmp);
- playa = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- money = strval(tmp);
- if(money < 0||money > 999999999)
- { SendClientMessage(playerid, COLOR_GREY, "Maxim ammount of money you can set is 999999999"); return 1; }
- if (PlayerInfo[playerid][pAdminLevel] >= 4)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- GetPlayerName(id,iName,sizeof(iName));
- GetPlayerName(playerid, adminname, sizeof(adminname));
- SetPlayerMoney(playa, money);
- format(Message,sizeof(Message),"<< B.E.G Wars: %s moneys was been set by Admin %s.>>",iName,adminname);
- SendClientMessageToAll(COLOR_RED,Message);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR:You are not an admin or yout Admin Level is too low");
- }
- }
- return 1;
- }
- /* if(strcmp(cmd, "/mad", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GREY, "USAGE: /mad [Playerid/Name] [Admin Level](Set the players Admin Level){COMMAND ISN't WORKING)");
- return 1;
- }
- new playa;
- new file[256];
- new adminlevel;
- new id = strval(tmp);
- playa = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- adminlevel = strval(tmp);
- if(adminlevel < 0||adminlevel > 5)
- { SendClientMessage(playerid, COLOR_GREY, "Maxim Admin Level you can set is 5"); return 1; }
- if (PlayerInfo[playerid][pAdminLevel] >= 5)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- GetPlayerName(id,iName,sizeof(iName));
- GetPlayerName(playerid, adminname, sizeof(adminname));
- dini_IntSet(file, "AdminLevel",adminlevel);
- format(Message,sizeof(Message),"<< B.E.G Wars: %s has been promoted to admin by %s.>>",iName,adminname);
- SendClientMessageToAll(COLOR_RED,Message);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR:You are not an admin or yout Admin Level is too low");
- }
- }
- return 1;
- }*/
- if(strcmp("/unfreeze", cmd, true) == 0)
- {
- if(PlayerInfo[playerid][pAdminLevel] >= 2) {
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp) || strlen(tmp) > 5) {
- return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /unfreeze [id/name] [reason]");
- }
- new id = strval(tmp);
- if(!IsPlayerConnected(id)) {
- SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
- return 1;
- }
- gMessage = strrest(cmdtext,idx);
- GetPlayerName(id,iName,sizeof(iName));
- GetPlayerName(playerid, adminname, sizeof(adminname));
- SendClientMessage(id,COLOR_YELLOW,"<< B.E.G Wars: You have been unfreezed. >>");
- if(strlen(gMessage) > 0) {
- format(Message,sizeof(Message),"Reason: %s",gMessage);
- SendClientMessage(id,COLOR_YELLOW,Message);
- }
- format(Message,sizeof(Message),"<< B.E.G Wars: %s(%d) has been unfreezed by %s. Reason: %s.",iName,id,adminname,gMessage);
- SendClientMessageToAll(COLOR_RED,Message);
- TogglePlayerControllable(id, 1);
- return 1;
- } else {
- SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
- return 1;
- }
- }
- if(strcmp("/akill", cmd, true) == 0)
- {
- if(PlayerInfo[playerid][pAdminLevel] >= 1) {
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp) || strlen(tmp) > 5) {
- return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /akill [id/name] [reason]");
- }
- new id = strval(tmp);
- if(!IsPlayerConnected(id)) {
- SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
- return 1;
- }
- gMessage = strrest(cmdtext,idx);
- GetPlayerName(id,iName,sizeof(iName));
- GetPlayerName(playerid, adminname, sizeof(adminname));
- SendClientMessage(id,COLOR_YELLOW,"<< B.E.G Wars: You have been Admin Killed. >>");
- if(strlen(gMessage) > 0) {
- format(Message,sizeof(Message),"Reason: %s",gMessage);
- SendClientMessage(id,COLOR_YELLOW,Message);
- }
- format(Message,sizeof(Message),"<< B.E.G Wars: %s(%d) has been Admin Killed by %s. Reason: %s.",iName,id,adminname,gMessage);
- SendClientMessageToAll(COLOR_RED,Message);
- SetPlayerHealth(id, 0);
- return 1;
- } else {
- SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
- return 1;
- }
- }
- if(strcmp("/fucku", cmd, true) == 0)
- {
- if(PlayerInfo[playerid][pAdminLevel] >= 4) {
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp) || strlen(tmp) > 5) {
- return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /fucku [id/name] [reason]");
- }
- new id = strval(tmp);
- if(!IsPlayerConnected(id)) {
- SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
- return 1;
- }
- gMessage = strrest(cmdtext,idx);
- GetPlayerName(id,iName,sizeof(iName));
- GetPlayerName(playerid, adminname, sizeof(adminname));
- SendClientMessage(id,COLOR_YELLOW,"<< B.E.G Wars: You have been fucked. >>");
- if(strlen(gMessage) > 0) {
- format(Message,sizeof(Message),"Reason: %s",gMessage);
- SendClientMessage(id,COLOR_YELLOW,Message);
- }
- format(Message,sizeof(Message),"<< B.E.G Wars: %s(%d) has been fucked by %s. Reason: %s.",iName,id,adminname,gMessage);
- SendClientMessageToAll(COLOR_RED,Message);
- SetPlayerHealth(id, 5);
- SetPlayerMoney(id, 1);
- SetPlayerSkin(id, 252);
- SetPlayerArmour(id, 0);
- ResetPlayerWeapons(id);
- GivePlayerWeapon(id, 10, 1);
- return 1;
- } else {
- SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
- return 1;
- }
- }
- if(strcmp("/goto", cmd, true) == 0)
- {
- if(PlayerInfo[playerid][pAdminLevel] >= 3) {
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp) || strlen(tmp) > 5) {
- return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /goto [id/name] [reason(obtional)]");
- }
- new id = strval(tmp);
- if(!IsPlayerConnected(id)) {
- SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
- return 1;
- }
- gMessage = strrest(cmdtext,idx);
- GetPlayerName(id,iName,sizeof(iName));
- GetPlayerName(playerid, adminname, sizeof(adminname));
- SendClientMessage(id,COLOR_YELLOW,"<< An admin teleported to you. >>");
- if(strlen(gMessage) > 0) {
- format(Message,sizeof(Message),"Reason: %s",gMessage);
- SendClientMessage(id,COLOR_YELLOW,Message);
- }
- format(Message,sizeof(Message),"<< B.E.G Wars: %s teleported to %s. Reason: %s.",adminname,iName,gMessage);
- SendClientMessageToAll(COLOR_RED,Message);
- new Float:x, Float:y, Float:z;
- new interior;
- new vw;
- interior = GetPlayerInterior(id);
- vw = GetPlayerVirtualWorld(id);
- GetPlayerPos(id, x, y, z);
- SetPlayerPos(playerid, x+1, y, z);
- SetPlayerInterior(playerid, interior);
- SetPlayerVirtualWorld(playerid, vw);
- return 1;
- } else {
- SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
- return 1;
- }
- }
- if(strcmp("/slap", cmd, true) == 0)
- {
- if(PlayerInfo[playerid][pAdminLevel] >= 1) {
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp) || strlen(tmp) > 5) {
- return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /slap [id/name] [reason(obtional)]");
- }
- new id = strval(tmp);
- if(!IsPlayerConnected(id)) {
- SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
- return 1;
- }
- gMessage = strrest(cmdtext,idx);
- GetPlayerName(id,iName,sizeof(iName));
- GetPlayerName(playerid, adminname, sizeof(adminname));
- SendClientMessage(id,COLOR_YELLOW,"<< An admin slapped you. >>");
- if(strlen(gMessage) > 0) {
- format(Message,sizeof(Message),"Reason: %s",gMessage);
- SendClientMessage(id,COLOR_YELLOW,Message);
- }
- format(Message,sizeof(Message),"<< B.E.G Wars: %s has been slapped by %s. Reason: %s.",iName,adminname,gMessage);
- SendClientMessageToAll(COLOR_RED,Message);
- new Float:x, Float:y, Float:z;
- GetPlayerPos(id, x, y, z);
- SetPlayerPos(id, x, y, z+5);
- return 1;
- } else {
- SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
- return 1;
- }
- }
- if(strcmp("/xplode", cmd, true) == 0)
- {
- if(PlayerInfo[playerid][pAdminLevel] >= 4) {
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp) || strlen(tmp) > 5) {
- return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /xplode [id/name] [reason(obtional)](Explode the player)");
- }
- new id = strval(tmp);
- if(!IsPlayerConnected(id)) {
- SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
- return 1;
- }
- gMessage = strrest(cmdtext,idx);
- GetPlayerName(id,iName,sizeof(iName));
- GetPlayerName(playerid, adminname, sizeof(adminname));
- SendClientMessage(id,COLOR_YELLOW,"<< An admin exploded you. >>");
- if(strlen(gMessage) > 0) {
- format(Message,sizeof(Message),"Reason: %s",gMessage);
- SendClientMessage(id,COLOR_YELLOW,Message);
- }
- format(Message,sizeof(Message),"<< B.E.G Wars: %s has been exploded by %s. Reason: %s.",iName,adminname,gMessage);
- SendClientMessageToAll(COLOR_RED,Message);
- new Float:x, Float:y, Float:z;
- GetPlayerPos(id, x, y, z);
- CreateExplosion(x, y, z, 7, 300);
- return 1;
- } else {
- SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
- return 1;
- }
- }
- if(strcmp("/mslap", cmd, true) == 0)
- {
- if(PlayerInfo[playerid][pAdminLevel] >= 2) {
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp) || strlen(tmp) > 5) {
- return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /mslap [id/name] [reason(obtional)]");
- }
- new id = strval(tmp);
- if(!IsPlayerConnected(id)) {
- SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
- return 1;
- }
- gMessage = strrest(cmdtext,idx);
- GetPlayerName(id,iName,sizeof(iName));
- GetPlayerName(playerid, adminname, sizeof(adminname));
- SendClientMessage(id,COLOR_YELLOW,"<< An admin mega slapped you. >>");
- if(strlen(gMessage) > 0) {
- format(Message,sizeof(Message),"Reason: %s",gMessage);
- SendClientMessage(id,COLOR_YELLOW,Message);
- }
- format(Message,sizeof(Message),"<< B.E.G Wars: %s has been mega slapped by %s. Reason: %s.",iName,adminname,gMessage);
- SendClientMessageToAll(COLOR_RED,Message);
- new Float:x, Float:y, Float:z;
- GetPlayerPos(id, x, y, z);
- SetPlayerPos(id, x, y, z+25);
- return 1;
- } else {
- SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
- return 1;
- }
- }
- if(strcmp("/get", cmd, true) == 0)
- {
- if(PlayerInfo[playerid][pAdminLevel] >= 3) {
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp) || strlen(tmp) > 5) {
- return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /get [id/name] [reason(obtional)]");
- }
- new id = strval(tmp);
- if(!IsPlayerConnected(id)) {
- SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
- return 1;
- }
- gMessage = strrest(cmdtext,idx);
- GetPlayerName(id,iName,sizeof(iName));
- GetPlayerName(playerid, adminname, sizeof(adminname));
- SendClientMessage(id,COLOR_YELLOW,"<< An admin teleported you to him. >>");
- if(strlen(gMessage) > 0) {
- format(Message,sizeof(Message),"Reason: %s",gMessage);
- SendClientMessage(id,COLOR_YELLOW,Message);
- }
- format(Message,sizeof(Message),"<< B.E.G Wars: %s teleported %s to him. Reason: %s.",adminname,iName,gMessage);
- SendClientMessageToAll(COLOR_RED,Message);
- new Float:x, Float:y, Float:z;
- new interior;
- new vw;
- interior = GetPlayerInterior(playerid);
- vw = GetPlayerVirtualWorld(playerid);
- GetPlayerPos(playerid, x, y, z);
- SetPlayerPos(id, x+1, y, z);
- SetPlayerInterior(id, interior);
- SetPlayerVirtualWorld(id, vw);
- return 1;
- } else {
- SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
- return 1;
- }
- }
- if(!strcmp(cmd, "/veh", true))
- {
- if(PlayerInfo[playerid][pAdminLevel] >= 3)
- {
- new carid, color1, color2;
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_SAND, "<< Usage: /veh [carid] [color1] [color2] >>");
- carid = strval(tmp);
- if(carid < 400 || carid > 611) return SendClientMessage(playerid, COLOR_SAND, "<< Usage: /veh [carid] [color1] [color2] >>");
- tmp = strtok(cmdtext, idx);
- color1 = strval(tmp);
- if(color1 < 0 || color1 > 126) return SendClientMessage(playerid, COLOR_SAND, "<< Usage: /veh [carid] [color1] [color2] >>");
- tmp = strtok(cmdtext, idx);
- color2 = strval(tmp);
- if(color1 < 0 || color1 > 126) return SendClientMessage(playerid, COLOR_SAND, "<< Usage: /veh [carid] [color1] [color2] >>");
- GetPlayerName(playerid, adminname, sizeof(adminname));
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- CreateVehicle(carid, X+2, Y, Z, 0 , color1, color2, 0);
- format(Message,sizeof(Message),"<< B.E.G Wars: Admin %s has spawned a car with id %d.",adminname,carid);
- SendClientMessageToAll(COLOR_RED,Message);
- }
- else return SendClientMessage(playerid, COLOR_GREY, "ERROR:You are not an admin or yout Admin Level is too low");
- return 1;
- }
- if(!strcmp(cmd, "/buyskin", true))
- {
- if(IsPlayerInRangeOfPoint(playerid , 4.0 , 212.0662,-102.2246,1005.2578))
- {
- new skinid;
- new money;
- money = GetPlayerMoney(playerid);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_SAND, "<< Usage: /buyskin [skinid] >>");
- skinid = strval(tmp);
- if(skinid < 0 || skinid > 300|| money < 500) return SendClientMessage(playerid, COLOR_SAND, "<< Usage: /buyskin [skinid](Cost 500$) >>");
- SetPlayerSkin(playerid, skinid);
- SendClientMessage(playerid, COLOR_GREY, "You bought a skin from binco with 500$");
- GivePlayerMoney(playerid, -500);
- }
- else return SendClientMessage(playerid, COLOR_GREY, "ERROR: You are not at the Binco clothes store");
- return 1;
- }
- if(strcmp("/godon", cmd, true) == 0)
- {
- if(PlayerInfo[playerid][pAdminLevel] >= 4) {
- tmp = strtok(cmdtext,idx);
- GetPlayerName(playerid, adminname, sizeof(adminname));
- format(Message,sizeof(Message),"<< B.E.G Wars: %s is now GOD.",adminname);
- SendClientMessage(playerid,COLOR_RED,Message);
- SetPlayerHealth(playerid, 100000);
- SetPlayerArmour(playerid, 100000);
- return 1;
- } else {
- SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
- return 1;
- }
- }
- if(strcmp("/godoff", cmd, true) == 0)
- {
- if(PlayerInfo[playerid][pAdminLevel] >= 4) {
- GetPlayerName(playerid, adminname, sizeof(adminname));
- format(Message,sizeof(Message),"<< B.E.G Wars: %s is now a normal player.",adminname);
- SendClientMessage(playerid,COLOR_RED,Message);
- SetPlayerHealth(playerid, 100);
- SetPlayerArmour(playerid, 0);
- return 1;
- } else {
- SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
- return 1;
- }
- }
- if(strcmp("/jailtime", cmd, true) == 0)
- {
- if(InJail[playerid] == 1) {
- format(Message,sizeof(Message),"Jail Time: %s",PlayerInfo[playerid][pJailTime]);
- SendClientMessage(playerid,COLOR_YELLOW,Message);
- return 1;
- } else {
- SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not in jail");
- return 1;
- }
- }
- if(strcmp("/ban", cmd, true) == 0)
- {
- if(PlayerInfo[playerid][pAdminLevel] >= 2) {
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp) || strlen(tmp) > 5) {
- return SendClientMessage(playerid,COLOR_SAND,"Usage: /ban [id/name] [reason]");
- }
- new id = strval(tmp);
- if(!IsPlayerConnected(id)) {
- SendClientMessage(playerid,COLOR_SAND,"ERROR : Bad player ID");
- return 1;
- }
- gMessage = strrest(cmdtext,idx);
- GetPlayerName(id,iName,sizeof(iName));
- GetPlayerName(playerid, adminname, sizeof(adminname));
- SendClientMessage(id,COLOR_YELLOW,"<< B.E.G Wars: You have been banned from the server. >>");
- if(strlen(gMessage) > 0) {
- format(Message,sizeof(Message),"Reason: %s",gMessage);
- SendClientMessage(id,COLOR_YELLOW,Message);
- }
- format(Message,sizeof(Message),"<< B.E.G Wars: %s(%d) has been banned form this server by %s.Reason: %s >>",iName,id,adminname,gMessage);
- SendClientMessage(playerid,COLOR_RED,Message);
- Ban(id);
- return 1;
- } else {
- SendClientMessage(playerid,COLOR_SAND,"ERROR:You are not an admin or yout Admin Level is too low");
- return 1;
- }
- }
- return 0;
- }
- public OnPlayerCommandPerformed(playerid, cmdtext[], success)
- {
- return 1;
- }
- COMMAND:tk(playerid,params[])
- {
- new pId;
- if(gTeam[playerid] == TEAM_LSPD)
- {
- if(sscanf(params, "d", pId)) return SendClientMessage(playerid, COLOR_GREY, "B.E.G Wars: /tk [ID]");
- else if(!IsPlayerConnected(pId)) return SendClientMessage(playerid, COLOR_GREY, "The ID You Entered Was Not Found.");
- else
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(pId, x, y, z);
- if(IsPlayerInRangeOfPoint(playerid, 8.0, x, y, z))
- {
- new pname[MAX_PLAYER_NAME], aname[MAX_PLAYER_NAME], string1[250];
- GetPlayerName(playerid, pname, sizeof(pname));
- GetPlayerName(pId, aname, sizeof(aname));
- if (GetPlayerWantedLevel(pId) == 0)
- {
- SendClientMessage(playerid, COLOR_SAND, "B.E.G Wars : Player is not a criminal!");
- return 1;
- }
- else if (GetPlayerWantedLevel(pId) == 1)
- {
- SendClientMessage(pId, COLOR_YELLOW, "You payed 500$ for having 1 Wanted level!");
- GivePlayerMoney(pId, -500);
- GivePlayerMoney(playerid, 500);
- SendClientMessage(playerid, COLOR_SAND, "B.E.G Wars : Officer,you recived 500$!");
- SetPlayerWantedLevel(pId, 0);
- format(string1, sizeof(string1), "<< B.E.G. Wars : %s(%d) has recieved a ticet from Officer %s(%d) >>", aname, pId, pname, playerid);
- SendClientMessageToAll(COLOR_SAND, string1);
- return 1;
- }
- else if (GetPlayerWantedLevel(pId) > 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "This player is a criminal,arrest him[/ar]");
- return 1;
- }
- }
- }
- }
- else
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not a police officer!");
- }
- return 1;
- }
- COMMAND:ticket(playerid,params[])
- {
- return cmd_tk(playerid, params);
- }
- COMMAND:ar(playerid,params[])
- {
- new pId;
- new file[256];
- if(gTeam[playerid] == TEAM_LSPD)
- {
- if(sscanf(params, "d", pId)) return SendClientMessage(playerid, COLOR_SAND, "B.E.G Wars: /ar [ID]");
- else if(!IsPlayerConnected(pId)) return SendClientMessage(playerid, 0xFF0000AA, "The ID You Entered Was Not Found.");
- else
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(pId, x, y, z);
- if(IsPlayerInRangeOfPoint(playerid, 8.0, x, y, z))
- {
- new pname[MAX_PLAYER_NAME], aname[MAX_PLAYER_NAME], string1[250], string2[256], string3[100], string4[100];
- GetPlayerName(playerid, pname, sizeof(pname));
- GetPlayerName(pId, aname, sizeof(aname));
- if (GetPlayerWantedLevel(pId) == 0)
- {
- SendClientMessage(playerid, COLOR_SAND, "B.E.G Wars : Player isn't a criminal!");
- return 1;
- }
- else if (GetPlayerWantedLevel(pId) == 1)
- {
- SendClientMessage(playerid, COLOR_SAND, "B.E.G Wars: This player's wanted level is 1.Please use /tk [ID]");
- return 1;
- }
- else if (GetPlayerWantedLevel(pId) > 1)
- {
- new WantedLevel = GetPlayerWantedLevel(pId);
- PlayerInfo[playerid][pJailTime] = WantedLevel*10000*10;
- SetPlayerInterior(pId, 3);
- new rand = random(sizeof(JailCellSpawns));
- SetPlayerPos(pId, JailCellSpawns[rand][0], JailCellSpawns[rand][1], JailCellSpawns[rand][2]);
- SetTimerEx("UnJail",WantedLevel*10000*10,0,"i",pId);
- InJail[pId] = 1;
- dini_IntSet(file, "Jailed", 1);
- GivePlayerMoney(pId, -WantedLevel*300);
- GivePlayerMoney(playerid, WantedLevel*300);
- ResetPlayerWeapons(pId);
- SetPlayerWantedLevel(pId, 0);
- TogglePlayerControllable(pId, 0);
- format(string1, sizeof(string1), "<< B.E.G Wars : %s(%d) Has Ben Arrested By Officer %s(%d) for %d miliseconds>>", aname, pId, pname, playerid, PlayerInfo[playerid][pJailTime]);
- SendClientMessageToAll(COLOR_SAND, string1);
- format(string2, sizeof(string2), "^^ You have been sent to jail for %d miliseconds killing a person! ^^", PlayerInfo[playerid][pJailTime], WantedLevel);
- SendClientMessage(pId, COLOR_YELLOW, string2);
- format(string3, sizeof(string3), "You have recived bonus for arresting a suspect!", WantedLevel, WantedLevel);
- SendClientMessage(playerid, 0xFF0000AA, string3);
- format(string4, sizeof(string4), "You have payed penalty for having Wanted Level!", WantedLevel, WantedLevel);
- SendClientMessage(pId, COLOR_YELLOW, string4);
- return 1;
- }
- }
- }
- }
- else
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not a LSPD member!");
- }
- return 1;
- }
- forward MessageToAdmins(color,const string[]);
- public MessageToAdmins(color,const string[])
- {
- for(new i = 0; i <= MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) == 1)
- {
- if (PlayerInfo[i][pAdminLevel] >= 1)
- {
- SendClientMessage(i, COLOR_YELLOW, string);
- }
- }
- }
- return 1;
- }
- public MessageToCops(color,const string[])
- {
- for(new i = 0; i <= MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) == 1)
- {
- if(gTeam[i] == TEAM_LSPD)
- {
- SendClientMessage(i, COLOR_BLUE, string);
- }
- }
- }
- return 1;
- }
- ReturnUser(text[], playerid = INVALID_PLAYER_ID)
- {
- new pos = 0;
- while (text[pos] < 0x21) // Strip out leading spaces
- {
- if (text[pos] == 0) return INVALID_PLAYER_ID; // No passed text
- pos++;
- }
- new userid = INVALID_PLAYER_ID;
- if (IsNumeric(text[pos])) // Check whole passed string
- {
- // If they have a numeric name you have a problem (although names are checked on id failure)
- userid = strval(text[pos]);
- if (userid >=0 && userid < MAX_PLAYERS)
- {
- if(!IsPlayerConnected(userid))
- {
- /*if (playerid != INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, 0xFF0000AA, "User not connected");
- }*/
- userid = INVALID_PLAYER_ID;
- }
- else
- {
- return userid; // A player was found
- }
- }
- /*else
- {
- if (playerid != INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, 0xFF0000AA, "Invalid user ID");
- }
- userid = INVALID_PLAYER_ID;
- }
- return userid;*/
- // Removed for fallthrough code
- }
- // They entered [part of] a name or the id search failed (check names just incase)
- new len = strlen(text[pos]);
- new count = 0;
- new name[MAX_PLAYER_NAME];
- for (new i = 0; i < MAX_PLAYERS; i++)
- {
- if (IsPlayerConnected(i))
- {
- GetPlayerName(i, name, sizeof (name));
- if (strcmp(name, text[pos], true, len) == 0) // Check segment of name
- {
- if (len == strlen(name)) // Exact match
- {
- return i; // Return the exact player on an exact match
- // Otherwise if there are two players:
- // Me and MeYou any time you entered Me it would find both
- // And never be able to return just Me's id
- }
- else // Partial match
- {
- count++;
- userid = i;
- }
- }
- }
- }
- if (count != 1)
- {
- if (playerid != INVALID_PLAYER_ID)
- {
- if (count)
- {
- SendClientMessage(playerid, 0xFF0000AA, "Multiple users found, please narrow earch");
- }
- else
- {
- SendClientMessage(playerid, 0xFF0000AA, "No matching user found");
- }
- }
- userid = INVALID_PLAYER_ID;
- }
- return userid; // INVALID_USER_ID for bad return
- }
- stock IsNumeric(const string[]) {
- new length=strlen(string);
- if (length==0) return false;
- for (new i = 0; i < length; i++) {
- if (
- (string[i] > '9' || string[i] < '0' && string[i]!='-' && string[i]!='+') // Not a number,'+' or '-'
- || (string[i]=='-' && i!=0) // A '-' but not at first.
- || (string[i]=='+' && i!=0) // A '+' but not at first.
- ) return false;
- }
- if (length==1 && (string[0]=='-' || string[0]=='+')) return false;
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement