Advertisement
bgtracker

BTW Gamemode

May 18th, 2012
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 37.85 KB | None | 0 0
  1. /*
  2. OK so here is my 2nd TeamWars release. Well now i desided to change it to
  3. TeamWars last 3 was TDM only here in this relese i have added more families,
  4. more cars i removed the gates and fences in the last release because they
  5. were not needed.
  6. NEW: I have added register system it saves your money and score.
  7.  
  8.  
  9. Credits:
  10. Scripting: Me(Bgtracker)
  11. Mapping: Me(Bgtracker)
  12. Testing: Me(Bgtracker)
  13. */
  14.  
  15. /*
  16. TESTED FOR BUGS
  17. BUG RESULTS: NO BUGS !!!
  18. */
  19. #include <a_samp>
  20. #include <dudb>
  21. #include <dutils>
  22. #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
  23. #define version "V2"
  24. //Colors
  25. #define COLOR_SYSTEM 0xEFEFF7AA
  26. #define COLOR_GREY 0xAFAFAFAA
  27. #define COLOR_GREEN 0x33AA33AA
  28. #define COLOR_BRIGHTRED 0xFF0000AA
  29. #define COLOR_YELLOW 0xFFFF00AA
  30. #define COLOR_PINK 0xFF66FFAA
  31. #define COLOR_BLUE 0x3A47DEFF
  32. #define COLOR_TAN 0xBDB76BAA
  33. #define COLOR_PURPLE 0x800080AA
  34. #define COLOR_WHITE 0xFFFFFFAA
  35. #define COLOR_LIGHTBLUE 0x33CCFFAA
  36. #define COLOR_ORANGE 0xFF9900AA
  37. #define COLOR_INDIGO 0x4B00B0AA
  38. #define COLOR_BLACK 0x00000000
  39. #define COLOR_DARKGREY 0x696969FF
  40.  
  41. new PLAYERLIST_authed[MAX_PLAYERS];
  42. new pTeam[MAX_PLAYERS];
  43.  
  44. #define team_lspd 1
  45. #define team_balla 2
  46. #define team_groove 3
  47. #define team_civ 4
  48. #define team_aztecas 5
  49. #define team_vagos 6
  50. #define team_army 7
  51. #define team_mafia 8
  52.  
  53.  
  54. main()
  55. {
  56.     print("\n----------------------------------");
  57.     print("______ Team Wars by Bgtracker ______");
  58.     print("----------------------------------\n");
  59. }
  60.  
  61. public OnGameModeInit()
  62. {
  63.     SetGameModeText("TeamWars V1");
  64.     AddPlayerClass(188,2342.3667,-1410.1563,23.8190,356.0515,27,10000,0,0,0,0);
  65.     AddStaticVehicle(412,2708.3896,-1078.7310,69.2530,269.9885,29,8); // aztecas car 1
  66.     AddStaticVehicle(412,2700.3889,-1078.7593,69.1932,270.1381,37,8); // aztecas car 2
  67.     AddStaticVehicle(412,2692.4985,-1078.8114,69.1412,270.3337,10,8); // aztecas car 3
  68.     AddStaticVehicle(412,2684.4832,-1078.7067,69.1333,270.3390,25,8); // aztecas car 4
  69.     AddStaticVehicle(412,2676.5527,-1078.8163,69.1358,270.4381,29,8); // aztecas car 5
  70.     AddStaticVehicle(412,2668.6731,-1078.6996,69.2390,269.4294,37,8); // aztecas car 6
  71.     AddStaticVehicle(412,2660.8250,-1078.6937,69.3908,270.4018,10,8); // aztecas car 7
  72.     AddStaticVehicle(492,2508.0024,-1671.7793,13.1602,167.7555,24,55); // groove car 1
  73.     AddStaticVehicle(492,2502.8662,-1680.0143,13.1579,129.3550,49,59); // groove car 2
  74.     AddStaticVehicle(492,2492.1992,-1682.8428,13.1192,89.7918,71,107); // groove car 3
  75.     AddStaticVehicle(492,2480.9858,-1682.2529,13.1136,78.4462,77,26); // groove car 4
  76.     AddStaticVehicle(492,2479.6367,-1655.2382,13.1008,270.0910,24,55); // groove car 5
  77.     AddStaticVehicle(492,2498.2615,-1655.6814,13.1767,258.8107,49,59); // groove car 6
  78.     AddStaticVehicle(517,2348.2312,-1398.9740,23.7538,359.7301,51,72); // balla car 1
  79.     AddStaticVehicle(517,2348.2405,-1406.7755,23.7559,359.7607,55,84); // balla car 2
  80.     AddStaticVehicle(517,2348.0752,-1414.5280,23.7611,358.5140,36,36); // balla car 3
  81.     AddStaticVehicle(517,2348.0347,-1421.9746,23.7646,359.1602,43,41); // balla car 4
  82.     AddStaticVehicle(517,2348.1343,-1429.8129,23.7647,0.4395,51,72); // balla car 5
  83.     AddStaticVehicle(517,2348.1306,-1437.8583,23.7647,359.1113,55,84); // balla car 6
  84.     AddStaticVehicle(576,2359.2971,-1162.4626,27.1860,269.6276,75,96); // vagos car 1
  85.     AddStaticVehicle(576,2352.4233,-1162.3909,27.0320,269.3164,79,1); // vagos car 2
  86.     AddStaticVehicle(576,2345.7139,-1162.3087,26.8795,269.3735,67,1); // vagos car 3
  87.     AddStaticVehicle(576,2339.2646,-1162.3069,26.7320,269.5419,72,1); // vagos car 4
  88.     AddStaticVehicle(576,2332.5952,-1162.3176,26.6006,269.4251,75,96); // vagos car 5
  89.     AddStaticVehicle(576,2325.9224,-1162.0173,26.5887,264.3307,79,1); // vagos car 6
  90.     AddStaticVehicle(596,1536.3380,-1678.5457,13.1041,359.3814,0,1); // cop car 1
  91.     AddStaticVehicle(596,1536.3397,-1672.6353,13.1068,359.6864,0,1); // cop car 2
  92.     AddStaticVehicle(596,1536.3688,-1666.5757,13.1032,359.6729,0,1); // cop car 3
  93.     AddStaticVehicle(596,1523.7937,-1684.2811,13.1828,359.7524,0,1); // cop car 4
  94.     AddStaticVehicle(596,1523.7949,-1671.0313,13.1815,1.6419,0,1); // cop car 5
  95.     AddStaticVehicle(596,1523.8750,-1677.5562,13.1910,359.5335,0,1); // cop car 6
  96.     CreateObject(12814,586.90002441,-3097.80004883,53.50000000,0.00000000,0.00000000,0.00000000); //object(cuntyeland04) (1)
  97.     CreateObject(987,601.70001221,-3073.10009766,53.50000000,0.00000000,0.00000000,180.00000000); //object(elecfence_bar) (2)
  98.     CreateObject(987,589.70001221,-3073.00000000,53.50000000,0.00000000,0.00000000,179.99450684); //object(elecfence_bar) (3)
  99.     CreateObject(987,583.90002441,-3073.00000000,53.50000000,0.00000000,0.00000000,179.99450684); //object(elecfence_bar) (4)
  100.     CreateObject(987,572.09997559,-3072.80004883,53.50000000,0.00000000,0.00000000,270.00000000); //object(elecfence_bar) (5)
  101.     CreateObject(987,572.09997559,-3084.80004883,53.50000000,0.00000000,0.00000000,269.99450684); //object(elecfence_bar) (6)
  102.     CreateObject(987,572.09997559,-3096.80004883,53.50000000,0.00000000,0.00000000,269.99450684); //object(elecfence_bar) (7)
  103.     CreateObject(987,572.20001221,-3108.80004883,53.50000000,0.00000000,0.00000000,269.99450684); //object(elecfence_bar) (8)
  104.     CreateObject(987,572.20001221,-3110.80004883,53.50000000,0.00000000,0.00000000,269.99450684); //object(elecfence_bar) (9)
  105.     CreateObject(987,601.59997559,-3085.10009766,53.50000000,0.00000000,0.00000000,90.00000000); //object(elecfence_bar) (10)
  106.     CreateObject(987,601.50000000,-3096.89990234,53.50000000,0.00000000,0.00000000,89.99450684); //object(elecfence_bar) (11)
  107.     CreateObject(987,601.59997559,-3108.89990234,53.50000000,0.00000000,0.00000000,89.99450684); //object(elecfence_bar) (12)
  108.     CreateObject(987,601.59997559,-3120.80004883,53.50000000,0.00000000,0.00000000,89.99450684); //object(elecfence_bar) (13)
  109.     CreateObject(987,601.79998779,-3122.80004883,53.50000000,0.00000000,0.00000000,89.99450684); //object(elecfence_bar) (14)
  110.     CreateObject(987,589.90002441,-3122.50000000,53.50000000,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (15)
  111.     CreateObject(987,577.90002441,-3122.50000000,53.50000000,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (16)
  112.     CreateObject(987,571.90002441,-3122.50000000,53.50000000,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (17)
  113.     CreateObject(1685,593.09997559,-3082.10009766,54.29999924,0.00000000,0.00000000,0.00000000); //object(blockpallet) (1)
  114.     CreateObject(1685,583.40002441,-3102.39990234,54.29999924,0.00000000,0.00000000,0.00000000); //object(blockpallet) (2)
  115.     CreateObject(1685,576.59997559,-3090.80004883,54.29999924,0.00000000,0.00000000,0.00000000); //object(blockpallet) (3)
  116.     CreateObject(1685,598.59997559,-3098.69995117,54.29999924,0.00000000,0.00000000,0.00000000); //object(blockpallet) (4)
  117.     CreateObject(1685,593.29998779,-3114.89990234,54.29999924,0.00000000,0.00000000,0.00000000); //object(blockpallet) (5)
  118.     CreateObject(1685,576.09997559,-3113.60009766,54.29999924,0.00000000,0.00000000,0.00000000); //object(blockpallet) (6)
  119.     CreateObject(1685,577.70001221,-3079.30004883,54.29999924,0.00000000,0.00000000,0.00000000); //object(blockpallet) (7)
  120.     AddStaticVehicleEx(413,1063.40002441,-1775.50000000,13.50000000,90.00000000,-1,-1,15); //Pony
  121.     AddStaticVehicleEx(422,1077.69995117,-1766.69995117,13.39999962,90.00000000,-1,-1,15); //Bobcat
  122.     AddStaticVehicleEx(554,1062.90002441,-1755.00000000,13.60000038,90.00000000,-1,-1,15); //Yosemite
  123.     AddStaticVehicleEx(506,1097.80004883,-1752.50000000,13.19999981,90.00000000,-1,-1,15); //Super GT
  124.     AddStaticVehicleEx(541,1097.90002441,-1772.40002441,13.10000038,90.00000000,-1,-1,15); //Bullet
  125.     AddStaticVehicleEx(522,1098.80004883,-1763.90002441,13.00000000,90.00000000,-1,-1,15); //NRG-500
  126.     AddStaticVehicleEx(522,1085.69995117,-1760.90002441,13.00000000,90.00000000,-1,-1,15); //NRG-500
  127.     AddStaticVehicleEx(522,1063.19995117,-1766.50000000,13.00000000,90.00000000,-1,-1,15); //NRG-500
  128.     AddStaticVehicleEx(522,1078.69995117,-1774.80004883,13.00000000,90.00000000,-1,-1,15); //NRG-500
  129.     AddStaticVehicleEx(521,1062.90002441,-1749.59997559,13.00000000,90.00000000,-1,-1,15); //FCR-900
  130.     AddStaticVehicleEx(521,1085.19995117,-1769.09997559,13.00000000,90.00000000,-1,-1,15); //FCR-900
  131.     AddStaticVehicleEx(586,1099.00000000,-1755.30004883,13.00000000,90.00000000,-1,-1,15); //Wayfarer
  132.     AddStaticVehicleEx(586,1064.09997559,-1737.80004883,13.00000000,90.00000000,-1,-1,15); //Wayfarer
  133.     CreateObject(984,1065.69995117,-1777.09997559,13.00000000,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (1)
  134.     CreateObject(984,1078.40002441,-1777.09997559,13.00000000,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (2)
  135.     CreateObject(984,1091.19995117,-1777.09997559,13.00000000,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (3)
  136.     CreateObject(984,1095.50000000,-1777.09997559,13.00000000,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (4)
  137.     CreateObject(984,1101.90002441,-1770.70007324,13.00000000,0.00000000,0.00000000,0.00000000); //object(fenceshit2) (5)
  138.     CreateObject(984,1101.90002441,-1758.00000000,13.00000000,0.00000000,0.00000000,0.00000000); //object(fenceshit2) (6)
  139.     CreateObject(984,1059.29992676,-1770.65991211,13.00000000,0.00000000,0.00000000,0.00000000); //object(fenceshit2) (7)
  140.     CreateObject(984,1059.29992676,-1757.90002441,13.00000000,0.00000000,0.00000000,0.00000000); //object(fenceshit2) (8)
  141.     CreateObject(984,1059.29992676,-1745.09997559,13.00000000,0.00000000,0.00000000,0.00000000); //object(fenceshit2) (9)
  142.     CreateObject(984,1059.30004883,-1742.30004883,13.00000000,0.00000000,0.00000000,0.00000000); //object(fenceshit2) (10)
  143.     CreateObject(984,1065.69006348,-1735.90002441,13.00000000,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (11)
  144.     CreateObject(984,1078.40002441,-1735.90002441,13.00000000,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (12)
  145.     CreateObject(984,1091.19995117,-1735.90002441,13.00000000,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (13)
  146.     CreateObject(984,1095.19995117,-1735.90002441,13.00000000,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (14)
  147.     CreateObject(966,1101.69995117,-1736.09997559,12.60000038,0.00000000,0.00000000,92.00000000); //object(bar_gatebar01) (1)
  148.     CreateObject(984,1101.90002441,-1749.48999023,13.00000000,0.00000000,0.00000000,0.00000000); //object(fenceshit2) (15)
  149.     CreateObject(968,1101.70007324,-1736.00000000,13.60000038,0.00000000,0.00000000,270.00000000); //object(barrierturn) (1)
  150.     AddStaticVehicle(415,1574.9547,-1877.7562,13.2327,270.1637,0,0); // mafia car 1
  151.     AddStaticVehicle(415,1568.8975,-1877.8414,13.2330,269.1317,0,0); // mafia car 2
  152.     AddStaticVehicle(415,1562.9204,-1877.8121,13.2333,269.4261,0,0); // mafia car 3
  153.     AddStaticVehicle(415,1557.1274,-1877.8124,13.2330,268.8275,0,0); // mafia car 4
  154.     AddStaticVehicle(470,2753.9539,-2429.8955,13.6364,358.9632,43,0); // army car 1
  155.     AddStaticVehicle(470,2753.8162,-2436.0510,13.6404,358.0538,43,0); // army car 2
  156.     AddStaticVehicle(470,2753.6538,-2442.0452,13.6377,358.6379,43,0); // army car 3
  157.     AddStaticVehicle(470,2753.5771,-2448.3992,13.6376,359.8399,43,0); // army car 4
  158.     AddStaticVehicle(470,2753.5642,-2454.8157,13.6349,359.6396,43,0); // army car 5
  159.     AddStaticVehicle(470,2753.4824,-2460.7576,13.6347,359.6992,43,0); // army car 6
  160.     AddStaticVehicle(470,2753.4666,-2466.8186,13.6425,359.2469,43,0); // army car 7
  161.     AddStaticVehicle(470,2753.3992,-2472.9429,13.6414,0.4665,43,0); // army car 8
  162.     AddStaticVehicle(425,2753.3333,-2393.4395,14.2326,236.6077,43,0); // army heli
  163.     AddStaticVehicleEx(420,1731.90002441,-1857.30004883,13.30000019,90.00000000,-1,-1,15); //Taxi
  164.     AddStaticVehicleEx(420,1739.09997559,-1857.30004883,13.30000019,90.00000000,-1,-1,15); //Taxi
  165.     AddStaticVehicleEx(420,1746.09997559,-1857.30004883,13.30000019,90.00000000,-1,-1,15); //Taxi
  166.     AddStaticVehicleEx(420,1752.80004883,-1857.30004883,13.30000019,90.00000000,-1,-1,15); //Taxi
  167.     AddStaticVehicleEx(420,1759.59997559,-1857.30004883,13.30000019,90.00000000,-1,-1,15); //Taxi
  168.     AddStaticVehicleEx(420,1766.09997559,-1857.30004883,13.30000019,90.00000000,-1,-1,15); //Taxi
  169.     AddStaticVehicleEx(420,1773.09997559,-1857.30004883,13.30000019,90.00000000,-1,-1,15); //Taxi
  170.     AddStaticVehicleEx(420,1779.80004883,-1857.30004883,13.30000019,90.00000000,-1,-1,15); //Taxi
  171.     AddStaticVehicleEx(420,1786.50000000,-1857.30004883,13.30000019,90.00000000,-1,-1,15); //Taxi
  172.     AddStaticVehicleEx(420,1793.30004883,-1857.30004883,13.30000019,90.00000000,-1,-1,15); //Taxi
  173.     AddStaticVehicleEx(420,1800.00000000,-1857.30004883,13.30000019,90.00000000,-1,-1,15); //Taxi
  174.     AddStaticVehicleEx(420,1807.00000000,-1857.30004883,13.30000019,90.00000000,-1,-1,15); //Taxi
  175.     AddStaticVehicleEx(437,1735.09997559,-1852.40002441,13.69999981,90.00000000,-1,-1,15); //Coach
  176.     AddStaticVehicleEx(437,1748.59997559,-1852.40002441,13.69999981,90.00000000,-1,-1,15); //Coach
  177.     AddStaticVehicleEx(437,1761.19995117,-1852.40002441,13.69999981,90.00000000,-1,-1,15); //Coach
  178.     AddStaticVehicleEx(437,1774.69995117,-1852.40002441,13.69999981,90.00000000,-1,-1,15); //Coach
  179.     AddStaticVehicleEx(437,1787.50000000,-1852.40002441,13.69999981,90.00000000,-1,-1,15); //Coach
  180.     AddStaticVehicleEx(437,1800.00000000,-1852.40002441,13.69999981,90.00000000,-1,-1,15); //Coach
  181.     AddStaticVehicleEx(409,1492.09997559,-1737.80004883,13.30000019,90.00000000,-1,-1,15); //Stretch
  182.     AddStaticVehicleEx(409,1480.69995117,-1737.80004883,13.30000019,90.00000000,-1,-1,15); //Stretch
  183.     AddStaticVehicleEx(409,1469.69995117,-1737.80004883,13.30000019,90.00000000,-1,-1,15); //Stretch
  184.     AddStaticVehicleEx(425,1978.00000000,-2458.30004883,14.19999981,0.00000000,-1,-1,15); //Hunter
  185.     AddStaticVehicleEx(425,1964.59997559,-2457.80004883,14.19999981,0.00000000,-1,-1,15); //Hunter
  186.     AddStaticVehicleEx(425,1950.59997559,-2457.19995117,14.19999981,0.00000000,-1,-1,15); //Hunter
  187.     AddStaticVehicleEx(425,1935.90002441,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  188.     AddStaticVehicleEx(425,1922.09997559,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  189.     AddStaticVehicleEx(425,1908.09997559,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  190.     AddStaticVehicleEx(425,1893.59997559,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  191.     AddStaticVehicleEx(425,1879.30004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  192.     AddStaticVehicleEx(425,1866.00000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  193.     AddStaticVehicleEx(425,1852.50000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  194.     AddStaticVehicleEx(425,1839.30004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  195.     AddStaticVehicleEx(425,1825.50000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  196.     AddStaticVehicleEx(425,1811.50000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  197.     AddStaticVehicleEx(425,1798.00000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  198.     AddStaticVehicleEx(425,1783.80004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  199.     AddStaticVehicleEx(425,1770.50000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  200.     AddStaticVehicleEx(425,1757.00000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  201.     AddStaticVehicleEx(425,1743.50000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  202.     AddStaticVehicleEx(425,1729.50000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  203.     AddStaticVehicleEx(425,1716.80004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  204.     AddStaticVehicleEx(425,1704.00000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  205.     AddStaticVehicleEx(425,1689.50000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  206.     AddStaticVehicleEx(425,1675.00000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  207.     AddStaticVehicleEx(425,1661.00000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  208.     AddStaticVehicleEx(425,1647.50000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  209.     AddStaticVehicleEx(425,1634.00000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  210.     AddStaticVehicleEx(425,1620.80004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  211.     AddStaticVehicleEx(425,1607.30004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  212.     AddStaticVehicleEx(425,1593.80004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  213.     AddStaticVehicleEx(425,1580.00000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  214.     AddStaticVehicleEx(425,1565.50000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  215.     AddStaticVehicleEx(425,1551.30004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  216.     AddStaticVehicleEx(425,1537.80004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  217.     AddStaticVehicleEx(425,1523.50000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  218.     AddStaticVehicleEx(425,1508.80004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  219.     AddStaticVehicleEx(425,1495.50000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  220.     AddStaticVehicleEx(425,1481.80004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  221.     AddStaticVehicleEx(425,1467.80004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  222.     AddStaticVehicleEx(425,1453.30004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  223.     AddStaticVehicleEx(425,1439.30004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  224.     AddStaticVehicleEx(425,1425.30004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  225.     AddStaticVehicleEx(425,1411.80004883,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  226.     AddStaticVehicleEx(425,1398.00000000,-2457.10009766,14.19999981,0.00000000,-1,-1,15); //Hunter
  227.     AddStaticVehicleEx(520,2065.89990234,-2619.50000000,14.50000000,0.00000000,-1,-1,15); //Hydra
  228.     AddStaticVehicleEx(520,2053.39990234,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  229.     AddStaticVehicleEx(520,2041.40002441,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  230.     AddStaticVehicleEx(520,2029.90002441,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  231.     AddStaticVehicleEx(520,2018.09997559,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  232.     AddStaticVehicleEx(520,2006.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  233.     AddStaticVehicleEx(520,1994.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  234.     AddStaticVehicleEx(520,1982.50000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  235.     AddStaticVehicleEx(520,1970.50000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  236.     AddStaticVehicleEx(520,1959.00000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  237.     AddStaticVehicleEx(520,1947.00000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  238.     AddStaticVehicleEx(520,1935.00000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  239.     AddStaticVehicleEx(520,1922.80004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  240.     AddStaticVehicleEx(520,1911.00000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  241.     AddStaticVehicleEx(520,1899.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  242.     AddStaticVehicleEx(520,1887.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  243.     AddStaticVehicleEx(520,1875.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  244.     AddStaticVehicleEx(520,1863.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  245.     AddStaticVehicleEx(520,1851.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  246.     AddStaticVehicleEx(520,1839.50000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  247.     AddStaticVehicleEx(520,1827.80004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  248.     AddStaticVehicleEx(520,1815.50000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  249.     AddStaticVehicleEx(520,1803.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  250.     AddStaticVehicleEx(520,1791.50000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  251.     AddStaticVehicleEx(520,1779.50000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  252.     AddStaticVehicleEx(520,1767.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  253.     AddStaticVehicleEx(520,1755.50000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  254.     AddStaticVehicleEx(520,1743.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  255.     AddStaticVehicleEx(520,1731.50000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  256.     AddStaticVehicleEx(520,1718.80004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  257.     AddStaticVehicleEx(520,1706.80004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  258.     AddStaticVehicleEx(520,1694.80004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  259.     AddStaticVehicleEx(520,1682.59997559,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  260.     AddStaticVehicleEx(520,1670.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  261.     AddStaticVehicleEx(520,1658.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  262.     AddStaticVehicleEx(520,1646.00000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  263.     AddStaticVehicleEx(520,1633.80004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  264.     AddStaticVehicleEx(520,1621.80004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  265.     AddStaticVehicleEx(520,1609.00000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  266.     AddStaticVehicleEx(520,1597.00000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  267.     AddStaticVehicleEx(520,1584.80004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  268.     AddStaticVehicleEx(520,1572.50000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  269.     AddStaticVehicleEx(520,1560.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  270.     AddStaticVehicleEx(520,1548.09997559,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  271.     AddStaticVehicleEx(520,1536.09997559,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  272.     AddStaticVehicleEx(520,1523.80004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  273.     AddStaticVehicleEx(520,1511.00000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  274.     AddStaticVehicleEx(520,1499.00000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  275.     AddStaticVehicleEx(520,1486.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  276.     AddStaticVehicleEx(520,1473.80004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  277.     AddStaticVehicleEx(520,1461.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  278.     AddStaticVehicleEx(520,1449.50000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  279.     AddStaticVehicleEx(520,1437.30004883,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  280.     AddStaticVehicleEx(520,1425.50000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  281.     AddStaticVehicleEx(520,1413.50000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  282.     AddStaticVehicleEx(520,1401.00000000,-2619.60009766,14.50000000,0.00000000,-1,-1,15); //Hydra
  283.     AddStaticVehicleEx(596,1601.09997559,-1684.30004883,5.69999981,90.00000000,-1,1,15); //Police Car (LSPD)
  284.     AddStaticVehicleEx(596,1601.09997559,-1688.00000000,5.69999981,90.00000000,-1,1,15); //Police Car (LSPD)
  285.     AddStaticVehicleEx(596,1601.09997559,-1692.00000000,5.69999981,90.00000000,-1,1,15); //Police Car (LSPD)
  286.     AddStaticVehicleEx(596,1601.09997559,-1696.30004883,5.69999981,90.00000000,-1,1,15); //Police Car (LSPD)
  287.     AddStaticVehicleEx(596,1601.09997559,-1700.30004883,5.69999981,90.00000000,-1,1,15); //Police Car (LSPD)
  288.     AddStaticVehicleEx(596,1601.09997559,-1704.30004883,5.69999981,90.00000000,-1,1,15); //Police Car (LSPD)
  289.     AddStaticVehicleEx(596,1595.30004883,-1710.80004883,5.69999981,0.00000000,-1,1,15); //Police Car (LSPD)
  290.     AddStaticVehicleEx(596,1591.30004883,-1710.69995117,5.69999981,0.00000000,-1,1,15); //Police Car (LSPD)
  291.     AddStaticVehicleEx(596,1587.30004883,-1710.59997559,5.69999981,0.00000000,-1,1,15); //Police Car (LSPD)
  292.     AddStaticVehicleEx(596,1583.09997559,-1710.50000000,5.69999981,0.00000000,-1,1,15); //Police Car (LSPD)
  293.     AddStaticVehicleEx(596,1578.40002441,-1710.40002441,5.69999981,0.00000000,-1,1,15); //Police Car (LSPD)
  294.     AddStaticVehicleEx(596,1574.19995117,-1710.30004883,5.69999981,0.00000000,-1,1,15); //Police Car (LSPD)
  295.     AddStaticVehicleEx(596,1570.00000000,-1710.19995117,5.69999981,0.00000000,-1,1,15); //Police Car (LSPD)
  296.     AddStaticVehicleEx(596,1559.00000000,-1709.90002441,5.69999981,0.00000000,-1,1,15); //Police Car (LSPD)
  297.     AddStaticVehicleEx(432,1564.59997559,-1710.30004883,6.00000000,0.00000000,-1,-1,15); //Rhino
  298.     AddStaticVehicleEx(432,2782.60009766,-2418.00000000,13.69999981,90.00000000,-1,-1,15); //Rhino
  299.     AddStaticVehicleEx(432,2783.30004883,-2456.69995117,13.69999981,90.00000000,-1,-1,15); //Rhino
  300.     AddStaticVehicleEx(432,2783.69995117,-2493.89990234,13.69999981,90.00000000,-1,-1,15); //Rhino
  301.     CreateObject(984,1706.19995117,-1860.00000000,13.19999981,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (1)
  302.     CreateObject(984,1718.90002441,-1860.00000000,13.19999981,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (2)
  303.     CreateObject(984,1731.59997559,-1860.00000000,13.19999981,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (3)
  304.     CreateObject(984,1744.30004883,-1860.00000000,13.19999981,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (4)
  305.     CreateObject(984,1757.00000000,-1860.00000000,13.19999981,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (5)
  306.     CreateObject(984,1769.80004883,-1860.00000000,13.19999981,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (6)
  307.     CreateObject(984,1782.50000000,-1860.00000000,13.19999981,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (7)
  308.     CreateObject(984,1795.30004883,-1860.00000000,13.19999981,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (8)
  309.     CreateObject(984,1804.80004883,-1860.00000000,13.19999981,0.00000000,0.00000000,90.00000000); //object(fenceshit2) (9)
  310.     return 1;
  311. }
  312.  
  313. public OnGameModeExit()
  314. {
  315.     print("\n----------------------------------");
  316.     print("______Thank you for using TeamWars by Bgtracker ______");
  317.     print("----------------------------------\n");
  318.     return 1;
  319. }
  320.  
  321. public OnPlayerRequestClass(playerid, classid)
  322. {
  323.     if (udb_Exists(PlayerName(playerid))){
  324.     if (!PLAYERLIST_authed[playerid]){
  325.     SendClientMessage(playerid,COLOR_GREEN,"You are registerd, use /login to log into your account please.");
  326.     return 0;
  327.     }
  328.     }
  329.     return 1;
  330. }
  331.  
  332. public OnPlayerConnect(playerid)
  333. {
  334.     if (PLAYERLIST_authed[playerid]==0){
  335.     if (udb_Exists(PlayerName(playerid))){
  336.     SystemMsg(playerid,"You are registered, please /login [password] to login please.");
  337.     }
  338.     else{ SystemMsg(playerid,"You do not have an account, use /register [password] to register then /login [password] to login please.");
  339.     }
  340.  
  341.     return 0;
  342.     }
  343.     pTeam[playerid] = team_civ;
  344.     return 1;
  345. }
  346.  
  347. public OnPlayerDisconnect(playerid, reason)
  348. {
  349.     if (PLAYERLIST_authed[playerid]) {
  350.     dUserSetINT(PlayerName(playerid)).("BMoney",GetPlayerMoney(playerid));
  351.     dUserSetINT(PlayerName(playerid)).("BScore",GetPlayerScore(playerid));
  352.     }
  353.     PLAYERLIST_authed[playerid]=false;
  354.     return 1;
  355.  
  356. }
  357.  
  358. public OnPlayerSpawn(playerid)
  359. {
  360.     SendClientMessage(playerid, COLOR_BRIGHTRED , "Welcome to our server first please choose a team by typing /lspd, /groove, /balla, /civilian /vagos /aztecas /army /mafia");
  361.     return 1;
  362. }
  363.  
  364. public OnPlayerDeath(playerid, killerid, reason)
  365. {
  366.     return 1;
  367. }
  368.  
  369. public OnVehicleSpawn(vehicleid)
  370. {
  371.     return 1;
  372. }
  373.  
  374. public OnVehicleDeath(vehicleid, killerid)
  375. {
  376.     return 1;
  377. }
  378.  
  379. public OnPlayerText(playerid, text[])
  380. {
  381.     return 1;
  382. }
  383.  
  384. public OnPlayerCommandText(playerid, cmdtext[])
  385. {
  386.     if (strcmp("/helis", cmdtext, true, 5) == 0)
  387.     {
  388.         SendClientMessage(playerid, COLOR_YELLOW , "You have been teleported to the helicopters!");
  389.         SetPlayerPos(playerid, 1917.6460,-2435.8284,13.5391);
  390.         return 1;
  391.     }
  392.    
  393.     if (strcmp("/planes", cmdtext, true, 5) == 0)
  394.     {
  395.         SendClientMessage(playerid, COLOR_YELLOW , "You have been teleported to the planes!");
  396.         SetPlayerPos(playerid, 1954.0288,-2608.4131,13.5469);
  397.         return 1;
  398.     }
  399.  
  400.     if (strcmp("/army", cmdtext, true, 5) == 0)
  401.     {
  402.         SendClientMessage(playerid, COLOR_YELLOW , "You are playing in as a Army Guard Cops Are Allys With You!");
  403.         pTeam[playerid] = team_army;
  404.         SetPlayerSkin(playerid, 287);
  405.         SetPlayerPos(playerid, 2747.4990,-2431.9531,13.6432);
  406.         GameTextForPlayer(playerid, "~g~Welcome to Army Cops Are Allys With You", 3000, 5);
  407.         return 1;
  408.     }
  409.    
  410.     if (strcmp("/mafia", cmdtext, true, 5) == 0)
  411.     {
  412.         SendClientMessage(playerid, COLOR_YELLOW , "You are playing in as a Mafia !");
  413.         pTeam[playerid] = team_mafia;
  414.         SetPlayerSkin(playerid, 126);
  415.         SetPlayerPos(playerid, 1567.7882,-1891.3816,13.5593);
  416.         GameTextForPlayer(playerid, "~g~Welcome to Mafia's", 3000, 5);
  417.         return 1;
  418.     }
  419.  
  420.     if (strcmp("/groove", cmdtext, true, 5) == 0)
  421.     {
  422.         SendClientMessage(playerid, COLOR_YELLOW , "You are playing in as a Groove Street Gangster !");
  423.         pTeam[playerid] = team_groove;
  424.         SetPlayerSkin(playerid, 107);
  425.         SetPlayerPos(playerid, 2488.4053,-1669.9097,13.3359);
  426.         GameTextForPlayer(playerid, "~g~Welcome to Groove", 3000, 5);
  427.         return 1;
  428.     }
  429.    
  430.     if (strcmp("/vagos", cmdtext, true, 5) == 0)
  431.     {
  432.         SendClientMessage(playerid, COLOR_YELLOW , "You are playing in as a Vagos Gangster !");
  433.         pTeam[playerid] = team_vagos;
  434.         SetPlayerSkin(playerid, 108);
  435.         SetPlayerPos(playerid, 2352.0803,-1166.7577,27.5005);
  436.         GameTextForPlayer(playerid, "~g~Welcome to Vagos", 3000, 5);
  437.         return 1;
  438.     }
  439.    
  440.     if (strcmp("/aztecas", cmdtext, true, 5) == 0)
  441.     {
  442.         SendClientMessage(playerid, COLOR_YELLOW , "You are playing in as a Aztecas Gangster !");
  443.         pTeam[playerid] = team_aztecas;
  444.         SetPlayerSkin(playerid, 115);
  445.         SetPlayerPos(playerid, 2661.9253,-1092.7109,69.4967);
  446.         GameTextForPlayer(playerid, "~g~Welcome to Aztecas", 3000, 5);
  447.         return 1;
  448.     }
  449.    
  450.     if (strcmp("/balla", cmdtext, true, 5) == 0)
  451.     {
  452.         SendClientMessage(playerid, COLOR_YELLOW , "You are now playing in as a Balla Gangster!");
  453.         pTeam[playerid] = team_balla;
  454.         SetPlayerPos(playerid, 2342.3667,-1410.1563,23.8190);
  455.         SetPlayerSkin(playerid, 104);
  456.         GameTextForPlayer(playerid, "~g~Welcome to Ballas", 3000, 5);
  457.         return 1;
  458.     }
  459.  
  460.     if (strcmp("/civilian", cmdtext, true, 5) == 0)
  461.     {
  462.         SendClientMessage(playerid, COLOR_YELLOW , "You are now playing in as Civilian !");
  463.         pTeam[playerid] = team_civ;
  464.         SetPlayerSkin(playerid, 188);
  465.         SetPlayerPos(playerid, 1536.9590,-1676.0010,13.3828);
  466.         GameTextForPlayer(playerid, "~g~Welcome to Civilians", 3000, 5);
  467.         return 1;
  468.     }
  469.  
  470.     if (strcmp("/lspd", cmdtext, true, 5) == 0)
  471.     {
  472.         SendClientMessage(playerid, COLOR_YELLOW , "You are now playing in as Police Officer Army Are Allys With You");
  473.         pTeam[playerid] = team_lspd;
  474.         SetPlayerSkin(playerid, 280);
  475.         SetPlayerPos(playerid, 1536.9590,-1676.0010,13.3828);
  476.         GameTextForPlayer(playerid, "~g~Welcome to Police Army Are Allys With You", 3000, 5);
  477.         return 1;
  478.     }
  479.  
  480.     if (strcmp("/dm", cmdtext, true, 10) == 0)
  481.     {
  482.         SetPlayerPos(playerid,593.09997559,-3082.10009766,54.29999924);
  483.         SendClientMessage(playerid, COLOR_BRIGHTRED , "You Teleported Yourself to the TeamWars arena !");
  484.         return 1;
  485.     }
  486.    
  487.     if (strcmp("/help", cmdtext, true, 10) == 0)
  488.     {
  489.         SendClientMessage(playerid, COLOR_TAN , "[ANNOUNCE] This is TeamWars by Bgtracker");
  490.         SendClientMessage(playerid, COLOR_TAN , "[CMD] To teleport yourself to TeamWars Arena type /dm");
  491.         SendClientMessage(playerid, COLOR_TAN , "[CMD] To give yourself a armor do /armor");
  492.         SendClientMessage(playerid, COLOR_TAN , "[CMD] To kill yourself type /kill");
  493.         SendClientMessage(playerid, COLOR_TAN , "[CMD] To repair your vehicle type /repair");
  494.         SendClientMessage(playerid, COLOR_TAN , "[CMD] To give yourself a M4 type /getm4");
  495.         SendClientMessage(playerid, COLOR_TAN , "[CMD] To give yourself a MP5 type /getmp5");
  496.         SendClientMessage(playerid, COLOR_TAN , "[CMD] To give yourself a ak47 type /getak47");
  497.         SendClientMessage(playerid, COLOR_TAN , "[CMD] To give yourself a Sawn-off Shotgun type /getss");
  498.         SendClientMessage(playerid, COLOR_TAN , "[CMD] To give yourself a shotgun type /getshotgun");
  499.         SendClientMessage(playerid, COLOR_TAN , "[CMD] To be a LSPD officer type /lspd");
  500.         SendClientMessage(playerid, COLOR_TAN , "[CMD] To switch to groove team type /groove");
  501.         SendClientMessage(playerid, COLOR_TAN , "[CMD] To switch to balla team type /balla");
  502.         SendClientMessage(playerid, COLOR_TAN , "[CMD] To switch to civilian team type /civilian");
  503.         SendClientMessage(playerid, COLOR_TAN , "[CMD] To switch to vagos team type /vagos");
  504.         SendClientMessage(playerid, COLOR_TAN , "[CMD] To switch to aztecas team type /aztecas");
  505.         SendClientMessage(playerid, COLOR_TAN , "[CMD] To switch to mafia team type /mafia");
  506.         SendClientMessage(playerid, COLOR_TAN , "[CMD] To switch to army team type /army");
  507.         SendClientMessage(playerid, COLOR_TAN , "[CMD] To teleport to planes /planes");
  508.         SendClientMessage(playerid, COLOR_TAN , "[CMD] To teleport to helicopters /helis");
  509.         return 1;
  510.     }
  511.  
  512.     if (strcmp("/kill", cmdtext, true) == 0)
  513.     {
  514.         SetPlayerHealth(playerid, 0);
  515.         SendClientMessage(playerid, COLOR_GREEN , "You killed yourself.");
  516.         return 1;
  517.     }
  518.    
  519.     if (strcmp("/repair", cmdtext, true) == 0)
  520.     {
  521.         if(!IsPlayerInAnyVehicle(playerid)){
  522.         SendClientMessage(playerid, COLOR_GREEN , "You need to be in a vehicle to use the /repair command.");
  523.         return 1;
  524.     }
  525.  
  526.         new vehicleid = GetPlayerVehicleID(playerid);
  527.         new string[128];
  528.         format(string, sizeof(string), "You repaired Vehicle ID: %d", vehicleid);
  529.         SendClientMessage(playerid, COLOR_GREEN , string);
  530.         RepairVehicle(vehicleid);
  531.         return 1;
  532.     }
  533.    
  534.     if(strcmp(cmdtext,"/getm4",true)==0)
  535.     {
  536.     GivePlayerWeapon(playerid, 31, 10000);
  537.     SendClientMessage(playerid, COLOR_GREEN , "You have given yourself a M4");
  538.     return 1;
  539.     }
  540.    
  541.     if(strcmp(cmdtext,"/getmp5",true)==0)
  542.     {
  543.     GivePlayerWeapon(playerid, 29, 10000);
  544.     SendClientMessage(playerid, COLOR_GREEN , "You have given yourself a MP5");
  545.     return 1;
  546.     }
  547.    
  548.     if(strcmp(cmdtext,"/getak47",true)==0)
  549.     {
  550.     GivePlayerWeapon(playerid, 30, 10000);
  551.     SendClientMessage(playerid, COLOR_GREEN , "You have given yourself a AK47");
  552.     return 1;
  553.     }
  554.    
  555.     if(strcmp(cmdtext,"/getss",true)==0)
  556.     {
  557.     GivePlayerWeapon(playerid, 26, 10000);
  558.     SendClientMessage(playerid, COLOR_GREEN , "You have given yourself a Sawn-off Shotgun");
  559.     return 1;
  560.     }
  561.    
  562.     if(strcmp(cmdtext,"/getshotgun",true)==0)
  563.     {
  564.     GivePlayerWeapon(playerid, 25, 10000);
  565.     SendClientMessage(playerid, COLOR_GREEN , "You have given yourself a Shotgun");
  566.     return 1;
  567.     }
  568.     dcmd(login,5,cmdtext);
  569.     dcmd(register,8,cmdtext);
  570.     return 0;
  571. }
  572.  
  573. stock SystemMsg(playerid,msg[]) {
  574.    if ((IsPlayerConnected(playerid))&&(strlen(msg)>0)) {
  575.        SendClientMessage(playerid,COLOR_SYSTEM,msg);
  576.    }
  577.    return 1;
  578. }
  579.  
  580. stock PlayerName(playerid) {
  581.   new name[255];
  582.   GetPlayerName(playerid, name, 255);
  583.   return name;
  584. }
  585.  
  586. dcmd_register(playerid,params[]) {
  587.  
  588.     if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid,"You have already had an account.");
  589.     if (udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"You have already created an account, /login [password] to login.");
  590.     if (strlen(params)==0) return SystemMsg(playerid,"USAGE: /register [password]");
  591.     if (udb_Create(PlayerName(playerid),params)) return SystemMsg(playerid,"You have successfully created your account, now use /login [password] to login.");
  592.     return true;
  593.  
  594. }
  595.  
  596. dcmd_login(playerid,params[]) {
  597.  
  598.     if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid,"You have already logined.");
  599.     if (!udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"You do not have an account, please /register [password]");
  600.     if (strlen(params)==0) return SystemMsg(playerid,"USAGE: /login [password]");
  601.     if (udb_CheckLogin(PlayerName(playerid),params)) {
  602.        SetPlayerScore(playerid,dUserINT(PlayerName(playerid)).("score"));
  603.        SetPlayerMoney(playerid,dUserINT(PlayerName(playerid)).("money"));
  604.        PLAYERLIST_authed[playerid]=true;
  605.        return SystemMsg(playerid,"You have successfully logined.");
  606.     }
  607.     return SystemMsg(playerid,"Wrong password or nickname!");
  608. }
  609.  
  610. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  611. {
  612.     return 1;
  613. }
  614.  
  615. public OnPlayerExitVehicle(playerid, vehicleid)
  616. {
  617.     return 1;
  618. }
  619.  
  620. public OnPlayerStateChange(playerid, newstate, oldstate)
  621. {
  622.     return 1;
  623. }
  624.  
  625. public OnPlayerEnterCheckpoint(playerid)
  626. {
  627.     return 1;
  628. }
  629.  
  630. public OnPlayerLeaveCheckpoint(playerid)
  631. {
  632.     return 1;
  633. }
  634.  
  635. public OnPlayerEnterRaceCheckpoint(playerid)
  636. {
  637.     return 1;
  638. }
  639.  
  640. public OnPlayerLeaveRaceCheckpoint(playerid)
  641. {
  642.     return 1;
  643. }
  644.  
  645. public OnRconCommand(cmd[])
  646. {
  647.     return 1;
  648. }
  649.  
  650. public OnPlayerRequestSpawn(playerid)
  651. {
  652.     return 1;
  653. }
  654.  
  655. public OnObjectMoved(objectid)
  656. {
  657.     return 1;
  658. }
  659.  
  660. public OnPlayerObjectMoved(playerid, objectid)
  661. {
  662.     return 1;
  663. }
  664.  
  665. public OnPlayerPickUpPickup(playerid, pickupid)
  666. {
  667.     return 1;
  668. }
  669.  
  670. public OnVehicleMod(playerid, vehicleid, componentid)
  671. {
  672.     return 1;
  673. }
  674.  
  675. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  676. {
  677.     return 1;
  678. }
  679.  
  680. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  681. {
  682.     return 1;
  683. }
  684.  
  685. public OnPlayerSelectedMenuRow(playerid, row)
  686. {
  687.     return 1;
  688. }
  689.  
  690. public OnPlayerExitedMenu(playerid)
  691. {
  692.     return 1;
  693. }
  694.  
  695. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  696. {
  697.     return 1;
  698. }
  699.  
  700. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  701. {
  702.     return 1;
  703. }
  704.  
  705. public OnRconLoginAttempt(ip[], password[], success)
  706. {
  707.     return 1;
  708. }
  709.  
  710. public OnPlayerUpdate(playerid)
  711. {
  712.     return 1;
  713. }
  714.  
  715. public OnPlayerStreamIn(playerid, forplayerid)
  716. {
  717.     return 1;
  718. }
  719.  
  720. public OnPlayerStreamOut(playerid, forplayerid)
  721. {
  722.     return 1;
  723. }
  724.  
  725. public OnVehicleStreamIn(vehicleid, forplayerid)
  726. {
  727.     return 1;
  728. }
  729.  
  730. public OnVehicleStreamOut(vehicleid, forplayerid)
  731. {
  732.     return 1;
  733. }
  734.  
  735. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  736. {
  737.     return 1;
  738. }
  739.  
  740. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  741. {
  742.     return 1;
  743. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement