Advertisement
Guest User

West Coast Deathmatch By Anthony

a guest
Jun 21st, 2012
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 124.19 KB | None | 0 0
  1. /*
  2. All Credits to Anthony (Anthony Heins) and Nick.
  3. */
  4. #include <a_samp> // Regular.
  5. #include <foreach> // For the Mass CMD's.
  6. #include <ZCMD> // Easier CMD Inc.
  7. #include <sscanf2> // Created by  Y_Less.
  8. #include <streamer> // Objects.
  9. #include <YSI\y_ini> // Registration & Login.
  10. #include <dutils>
  11. #pragma unused ret_memcpy
  12.  
  13. // |-----------------[ Colors ]-----------------|
  14. #define COLOR_LIGHTBLUE 0x33CCFFAA
  15. #define COLOR_RED 0xAA3333AA
  16. #define COLOR_GREY 0xAFAFAFAA
  17. #define COLOR_YELLOW 0xFFFF00AA
  18. #define COLOR_PINK 0xFF66FFAA
  19. #define COLOR_BLUE 0x0000BBAA
  20. #define COLOR_WHITE 0xFFFFFFAA
  21. #define COLOR_DARKRED 0x660000AA
  22. #define COLOR_ORANGE 0xFF9900AA
  23. #define COLOR_BRIGHTRED 0xFF0000AA
  24. #define COLOR_INDIGO 0x4B00B0AA
  25. #define COLOR_VIOLET 0x9955DEEE
  26. #define COLOR_LIGHTRED 0xFF0000AA
  27. #define COLOR_SEAGREEN 0x00EEADDF
  28. #define COLOR_GRAYWHITE 0xEEEEFFC4
  29. #define COLOR_LIGHTNEUTRALBLUE 0xabcdef66
  30. #define COLOR_GREENISHGOLD 0xCCFFDD56
  31. #define COLOR_LIGHTBLUEGREEN 0x0FFDD349
  32. #define COLOR_NEUTRALBLUE 0xABCDEF01
  33. #define COLOR_LIGHTCYAN 0xAAFFCC33
  34. #define COLOR_LEMON 0xDDDD2357
  35. #define COLOR_MEDIUMBLUE 0x63AFF00A
  36. #define COLOR_NEUTRAL 0xABCDEF97
  37. #define COLOR_BLACK 0x00000000
  38. #define COLOR_NEUTRALGREEN 0x81CFAB00
  39. #define COLOR_DARKGREEN 0x12900BBF
  40. #define COLOR_LIGHTGREEN 0x24FF0AB9
  41. #define COLOR_DARKBLUE 0x300FFAAB
  42. #define COLOR_BLUEGREEN 0x46BBAA00
  43. #define COLOR_PINK 0xFF66FFAA
  44. #define COLOR_LIGHTBLUE 0x33CCFFAA
  45. #define COLOR_DARKRED 0x660000AA
  46. #define COLOR_ORANGE 0xFF9900AA
  47. #define COLOR_PURPLE 0xC2A2DAAA
  48. #define COLOR_GRAD1 0xB4B5B7FF
  49. #define COLOR_GRAD2 0xBFC0C2FF
  50. #define COLOR_RED1 0xFF0000AA
  51. #define COLOR_GREY 0xAFAFAFAA
  52. #define COLOR_GREEN 0x33AA33AA
  53. #define COLOR_RED 0xAA3333AA
  54. #define COLOR_YELLOW 0xFFFF00AA
  55. #define COLOR_WHITE 0xFFFFFFAA
  56. #define COLOR_BROWN 0x993300AA
  57. #define COLOR_CYAN 0x99FFFFAA
  58. #define COLOR_TAN 0xFFFFCCAA
  59. #define COLOR_PINK 0xFF66FFAA
  60. #define COLOR_KHAKI 0x999900AA
  61. #define COLOR_LIME 0x99FF00AA
  62. #define COLOR_SYSTEM 0xEFEFF7AA
  63. #define COLOR_GRAD2 0xBFC0C2FF
  64. #define COLOR_GRAD4 0xD8D8D8FF
  65. #define COLOR_GRAD6 0xF0F0F0FF
  66. #define COLOR_GRAD2 0xBFC0C2FF
  67. #define COLOR_GRAD3 0xCBCCCEFF
  68. #define COLOR_GRAD5 0xE3E3E3FF
  69. #define COLOR_GRAD1 0xB4B5B7FF
  70.  
  71. // |-----------------[ Weapon Defines ]-----------------|
  72. #define WEAPON_BRASSKNUCKLE               (1)
  73. #define WEAPON_GOLFCLUB                   (2)
  74. #define WEAPON_NITESTICK                  (3)
  75. #define WEAPON_KNIFE                      (4)
  76. #define WEAPON_BAT                        (5)
  77. #define WEAPON_SHOVEL                     (6)
  78. #define WEAPON_POOLSTICK                  (7)
  79. #define WEAPON_KATANA                     (8)
  80. #define WEAPON_CHAINSAW                   (9)
  81. #define WEAPON_DILDO                      (10)
  82. #define WEAPON_DILDO2                     (11)
  83. #define WEAPON_VIBRATOR                   (12)
  84. #define WEAPON_VIBRATOR2                  (13)
  85. #define WEAPON_FLOWER                     (14)
  86. #define WEAPON_CANE                       (15)
  87. #define WEAPON_GRENADE                    (16)
  88. #define WEAPON_TEARGAS                    (17)
  89. #define WEAPON_MOLTOV                     (18)
  90. #define WEAPON_COLT45                     (22)
  91. #define WEAPON_SILENCED                   (23)
  92. #define WEAPON_DEAGLE                     (24)
  93. #define WEAPON_SHOTGUN                    (25)
  94. #define WEAPON_SAWEDOFF                   (26)
  95. #define WEAPON_SHOTGSPA                   (27)
  96. #define WEAPON_UZI                        (28)
  97. #define WEAPON_MP5                        (29)
  98. #define WEAPON_AK47                       (30)
  99. #define WEAPON_M4                         (31)
  100. #define WEAPON_TEC9                       (32)
  101. #define WEAPON_RIFLE                      (33)
  102. #define WEAPON_SNIPER                     (34)
  103. #define WEAPON_ROCKETLAUNCHER             (35)
  104. #define WEAPON_HEATSEEKER                 (36)
  105. #define WEAPON_FLAMETHROWER               (37)
  106. #define WEAPON_MINIGUN                    (38)
  107. #define WEAPON_SATCHEL                    (39)
  108. #define WEAPON_BOMB                       (40)
  109. #define WEAPON_SPRAYCAN                   (41)
  110. #define WEAPON_FIREEXTINGUISHER           (42)
  111. #define WEAPON_CAMERA                     (43)
  112. #define WEAPON_PARACHUTE                  (46)
  113.  
  114. #define DIALOG_PASSWORD 1
  115.  
  116. // Dialog Colors
  117. #define COL_WHITE "{FFFFFF}"
  118. #define COL_RED "{F81414}"
  119. #define COL_GREEN "{00FF22}"
  120. #define COL_LIGHTBLUE "{00CED1}"
  121.  
  122. #define AccPath "Users/%s.ini"
  123. #define ADMINOVERRIDE_PASS "chcisagoodscripter"
  124. #define SERVER_GM_TEXT "WC-DM v0.2 RC6"// Gamemode text.
  125.  
  126. // |-----------------[ Forward's ]-----------------|
  127. forward PayDay();
  128. forward ABroadCast(color,const string[],level);
  129. forward SendAdminMessage(color, string[]);
  130. forward OnPlayerOfflineSave(playername[]);
  131. forward SpeedoUpdate();
  132.  
  133. // |-----------------[ New's]-----------------|
  134. new GodMode[MAX_PLAYERS];
  135. new AntiCheat = 1;
  136. new NoGodMode = 1;
  137. new Float:X, Float:Y, Float:Z, Float:Angle, pInt;
  138. new AdminDuty[MAX_PLAYERS];
  139. new Text:TextDraw0;
  140. new Float:TeleportDest[MAX_PLAYERS][3];
  141. new TeleportDestInt[MAX_PLAYERS];
  142. new OverideTries[MAX_PLAYERS];
  143. new Gate1,Gate2,Gate3,
  144.     bool:Open1,bool:Open2,bool:Open3;
  145. #define JSPEEDO_TIMER_UPDATE        800     //time in MS that the timer updates.
  146.  
  147. new PlayerText:ptdSpeedo[MAX_PLAYERS];
  148. new bool:pSpeedo_Shown[MAX_PLAYERS];
  149.  
  150. stock GetVehicleSpeed(vehicleid, bool:kmph=false)
  151. {
  152.     new Float:x, Float:y, Float:z;GetVehicleVelocity(vehicleid, x, y, z);
  153.     if(kmph) return floatround(floatsqroot(x*x + y*y + z*z) * 180);     // RETURN kmph
  154.     return floatround( floatsqroot(x*x + y*y + z*z) * 180 / 1.609344);   //RETURN mph
  155. }
  156.  
  157. public SpeedoUpdate()
  158. {
  159.     new vehicleid;
  160.     new str[12];
  161.     new playerid;
  162.     for(playerid = 0;playerid<MAX_PLAYERS;playerid++)      //if you use for each then replace this line.
  163.     {
  164.         vehicleid = GetPlayerVehicleID(playerid);
  165.         if((vehicleid > 0) && (GetPlayerState(playerid) == PLAYER_STATE_DRIVER))
  166.         {
  167.         #if !defined JSPEEDO_KMPH
  168.             format(str, 12, "%i", GetVehicleSpeed(vehicleid));
  169.         #else
  170.             format(str, 12, "%i", GetVehicleSpeed(vehicleid,true));
  171.         #endif
  172.             PlayerTextDrawSetString(playerid,ptdSpeedo[playerid],str);
  173.             if (!pSpeedo_Shown[playerid])
  174.             {
  175.                 PlayerTextDrawShow(playerid,ptdSpeedo[playerid]);
  176.                 pSpeedo_Shown[playerid]=true;
  177.             }
  178.         }
  179.         else
  180.         {
  181.             if (pSpeedo_Shown[playerid])
  182.             {
  183.                 PlayerTextDrawSetString(playerid,ptdSpeedo[playerid]," ");
  184.                 PlayerTextDrawHide(playerid,ptdSpeedo[playerid]);
  185.                 pSpeedo_Shown[playerid] = false;
  186.             }
  187.         }
  188.     }
  189.     return 1;
  190. }
  191.  
  192. //For more info on ALS Hooking check
  193. //http://forum.sa-mp.com/showthread.php?t=85907
  194. static gSpeedo_HasCB[2];
  195.  
  196. main()
  197. {
  198.     return 1;
  199. }
  200.  
  201. public OnGameModeInit()
  202. {
  203.     SetTimer("SpeedoUpdate",true,JSPEEDO_TIMER_UPDATE);
  204.     gSpeedo_HasCB[0] = funcidx("Speedo_OnPlayerConnect") != -1;
  205.     gSpeedo_HasCB[1] = funcidx("Speedo_OnPlayerDisconnect") != -1;
  206.  
  207.     if (funcidx("Speedo_OnGameModeInit") != -1) CallLocalFunction("Speedo_OnGameModeInit", "");
  208.     Create3DTextLabel("Use /Gate to Open/Cose this gate.", COLOR_GREEN, 2482.30004883,-1688.80004883,14.50000000, 25, 0, 1);
  209.     Create3DTextLabel("Use /Gate to Open/Cose this gate.", COLOR_GREEN, 2464.50000000,-1658.69921875,14.50000000, 25, 0, 1);
  210.     Create3DTextLabel("Use /Gate to Open/Cose this gate.", COLOR_BLUE, 1544.69995117,-1627.50000000,14.50000000, 25, 0, 1);
  211.     SetTimer("PayDay", 300000, true);
  212.     new string[128];
  213.     format(string, sizeof(string), "gamemodetext %s", SERVER_GM_TEXT);
  214.     SendRconCommand(string);
  215.     UsePlayerPedAnims();
  216.     TextDraw0 = TextDrawCreate(34.000000,426.000000,"WC-DM.Cu.Cc");
  217.     TextDrawAlignment(TextDraw0,0);
  218.     TextDrawBackgroundColor(TextDraw0,0x000000ff);
  219.     TextDrawFont(TextDraw0,3);
  220.     TextDrawLetterSize(TextDraw0,0.499999,1.500000);
  221.     TextDrawColor(TextDraw0,0xff0000ff);
  222.     TextDrawSetOutline(TextDraw0,1);
  223.     TextDrawSetProportional(TextDraw0,1);
  224.     TextDrawSetShadow(TextDraw0,4);
  225.     Gate1 = CreateObject(976,2482.30004883,-1688.80004883,14.00000000,0.00000000,0.00000000,174.00000000); // Grove Gate 1
  226.     CreateObject(7212,2439.30004883,-1670.09997559,14.10000038,0.00000000,182.00000000,92.00000000); //object(pol_comp_gate) (3)
  227.     CreateObject(976,2463.80004883,-1667.30004883,14.19999981,0.00000000,0.00000000,259.99597168); //object(pol_comp_gate) (2)
  228.     Gate2 = CreateObject(976,2464.50000000,-1658.69921875,14.00000000,0.00000000,0.00000000,267.99499512); // Grove Gate 2
  229.     CreateObject(976,2465.10009766,-1650.19995117,14.19999981,0.00000000,0.00000000,267.99499512); //object(pol_comp_gate) (4)
  230.     CreateObject(973,2521.00000000,-1722.50000000,13.39999962,0.00000000,0.00000000,180.00000000); //object(sub_roadbarrier) (1)
  231.     CreateObject(973,2540.60009766,-1713.00000000,13.30000019,0.00000000,0.00000000,270.99450684); //object(sub_roadbarrier) (2)
  232.     CreateObject(10841,2469.69995117,-1680.09997559,20.39999962,0.00000000,0.00000000,310.00000000); //object(drydock1_sfse01) (1)
  233.     CreateObject(10841,2451.60009766,-1669.80004883,20.39999962,0.00000000,0.00000000,0.00000000); //object(drydock1_sfse01) (2)
  234.     CreateObject(10841,2429.50000000,-1669.69995117,20.50000000,0.00000000,0.00000000,0.00000000); //object(drydock1_sfse01) (3)
  235.     CreateObject(10841,2426.50000000,-1668.80004883,20.70000076,0.00000000,0.00000000,0.00000000); //object(drydock1_sfse01) (4)
  236.     CreateObject(10841,2529.89990234,-1627.19995117,24.70000076,0.00000000,0.00000000,0.00000000); //object(drydock1_sfse01) (5)
  237.     CreateObject(10841,2508.39990234,-1627.19995117,24.50000000,0.00000000,0.00000000,0.00000000); //object(drydock1_sfse01) (6)
  238.     CreateObject(10841,2487.00000000,-1627.69995117,23.60000038,0.00000000,0.00000000,0.00000000); //object(drydock1_sfse01) (7)
  239.     CreateObject(10841,2465.60009766,-1628.30004883,22.70000076,0.00000000,0.00000000,0.00000000); //object(drydock1_sfse01) (8)
  240.     CreateObject(10841,2443.80004883,-1627.19995117,21.29999924,0.00000000,0.00000000,0.00000000); //object(drydock1_sfse01) (9)
  241.     CreateObject(10841,2424.50000000,-1627.80004883,20.20000076,0.00000000,0.00000000,0.00000000); //object(drydock1_sfse01) (10)
  242.     Gate3 = CreateObject(976,1544.69995117,-1627.50000000,14.00000000,0.00000000,0.00000000,270.00000000); // LSPD Gate
  243.     CreateObject(10828,1557.19995117,-1612.69995117,24.70000076,0.00000000,0.00000000,224.00000000); //object(drydock1_sfse) (2)
  244.     CreateObject(10828,1558.00000000,-1637.80004883,24.89999962,0.00000000,6.00000000,342.00000000); //object(drydock1_sfse) (3)
  245.     CreateObject(2933,1544.69995117,-1627.59997559,17.50000000,0.00000000,0.00000000,269.99450684); //object(pol_comp_gate) (6)
  246.     AddStaticVehicleEx(411,430.00000000,2500.60009766,16.29999924,88.00000000,-1,-1,15); //Infernus
  247.     AddStaticVehicleEx(411,429.69921875,2485.09960938,16.29999924,87.99499512,-1,-1,15); //Infernus
  248.     AddStaticVehicleEx(411,429.79980469,2492.69921875,16.29999924,87.99499512,-1,-1,15); //Infernus
  249.     AddStaticVehicleEx(411,430.00000000,2506.30004883,16.29999924,87.99499512,-1,-1,15); //Infernus
  250.     AddStaticVehicleEx(411,429.79998779,2512.19995117,16.29999924,87.99499512,-1,-1,15); //Infernus
  251.     AddStaticVehicleEx(411,429.89999390,2520.89990234,16.29999924,87.99499512,-1,-1,15); //Infernus
  252.     AddStaticVehicleEx(522,348.00000000,2479.00000000,16.10000038,90.00000000,-1,-1,15); //NRG-500
  253.     AddStaticVehicleEx(522,344.59960938,2479.09960938,16.10000038,90.00000000,-1,-1,15); //NRG-500
  254.     AddStaticVehicleEx(522,351.79998779,2479.19995117,16.10000038,90.00000000,-1,-1,15); //NRG-500
  255.     AddStaticVehicleEx(522,-1293.09997559,-133.30000305,13.80000019,0.00000000,-1,-1,15); //NRG-500
  256.     AddStaticVehicleEx(522,-1278.19921875,-124.39941406,13.80000019,0.00000000,-1,-1,15); //NRG-500
  257.     AddStaticVehicleEx(522,-1282.09960938,-127.09960938,13.80000019,0.00000000,-1,-1,15); //NRG-500
  258.     AddStaticVehicleEx(522,-1286.89941406,-129.89941406,13.80000019,0.00000000,-1,-1,15); //NRG-500
  259.     AddStaticVehicleEx(411,-1264.40002441,-80.90000153,13.89999962,0.00000000,-1,-1,15); //Infernus
  260.     AddStaticVehicleEx(411,-1291.50000000,-92.50000000,13.89999962,0.00000000,-1,-1,15); //Infernus
  261.     AddStaticVehicleEx(411,-1272.09960938,-83.79980469,13.89999962,0.00000000,-1,-1,15); //Infernus
  262.     AddStaticVehicleEx(411,-1281.29980469,-88.00000000,13.89999962,0.00000000,-1,-1,15); //Infernus
  263.     CreateObject(13645,367.00000000,2505.69995117,16.20000076,0.00000000,0.00000000,92.00000000); //object(kickramp06) (1)
  264.     CreateObject(13645,367.79998779,2487.10009766,16.20000076,0.00000000,0.00000000,91.99951172); //object(kickramp06) (2)
  265.     CreateObject(13645,367.19921875,2502.89941406,16.20000076,0.00000000,0.00000000,91.99951172); //object(kickramp06) (3)
  266.     CreateObject(13645,367.29980469,2500.09960938,16.20000076,0.00000000,0.00000000,91.99951172); //object(kickramp06) (4)
  267.     CreateObject(13645,367.29998779,2497.60009766,16.20000076,0.00000000,0.00000000,91.99951172); //object(kickramp06) (5)
  268.     CreateObject(13645,367.50000000,2495.09960938,16.20000076,0.00000000,0.00000000,91.99951172); //object(kickramp06) (6)
  269.     CreateObject(13645,367.50000000,2492.29980469,16.20000076,0.00000000,0.00000000,91.99951172); //object(kickramp06) (7)
  270.     CreateObject(13645,367.59960938,2489.69921875,16.20000076,0.00000000,0.00000000,91.99951172); //object(kickramp06) (8)
  271.     CreateObject(13645,359.60000610,2515.80004883,16.39999962,0.00000000,0.00000000,273.99957275); //object(kickramp06) (9)
  272.     CreateObject(13645,366.89941406,2508.50000000,16.29999924,0.00000000,0.00000000,91.99951172); //object(kickramp06) (10)
  273.     CreateObject(13645,366.69921875,2511.29980469,16.29999924,0.00000000,0.00000000,91.99951172); //object(kickramp06) (11)
  274.     CreateObject(13645,366.50000000,2514.09960938,16.29999924,0.00000000,0.00000000,91.99951172); //object(kickramp06) (12)
  275.     CreateObject(1632,323.20001221,2522.10009766,17.00000000,0.00000000,0.00000000,88.00000000); //object(waterjump1) (1)
  276.     CreateObject(1632,323.00000000,2484.10009766,16.79999924,0.00000000,0.00000000,87.99499512); //object(waterjump1) (2)
  277.     CreateObject(1632,321.89999390,2502.89990234,16.79999924,0.00000000,0.00000000,87.99499512); //object(waterjump1) (3)
  278.     CreateObject(1655,264.50000000,2494.80004883,16.89999962,0.00000000,0.00000000,90.00000000); //object(waterjumpx2) (1)
  279.     CreateObject(1655,264.29980469,2503.89941406,16.70000076,0.00000000,0.00000000,90.00000000); //object(waterjumpx2) (2)
  280.     CreateObject(1655,264.70001221,2512.69995117,17.00000000,0.00000000,0.00000000,90.00000000); //object(waterjumpx2) (3)
  281.     CreateObject(13645,366.39941406,2516.79980469,16.29999924,0.00000000,0.00000000,91.99951172); //object(kickramp06) (13)
  282.     CreateObject(13645,359.89999390,2513.30004883,16.29999924,0.00000000,0.00000000,273.99902344); //object(kickramp06) (14)
  283.     CreateObject(13645,360.20001221,2510.60009766,16.29999924,0.00000000,0.00000000,273.99902344); //object(kickramp06) (15)
  284.     CreateObject(13645,360.39999390,2507.89990234,16.20000076,0.00000000,0.00000000,273.99902344); //object(kickramp06) (16)
  285.     CreateObject(13645,360.70001221,2505.30004883,16.20000076,0.00000000,0.00000000,273.99902344); //object(kickramp06) (17)
  286.     CreateObject(13645,361.00000000,2502.60009766,16.20000076,0.00000000,0.00000000,273.99902344); //object(kickramp06) (18)
  287.     CreateObject(13645,361.29998779,2500.10009766,16.20000076,0.00000000,0.00000000,273.99902344); //object(kickramp06) (19)
  288.     CreateObject(13645,361.60000610,2497.30004883,16.20000076,0.00000000,0.00000000,273.99902344); //object(kickramp06) (20)
  289.     CreateObject(13645,361.79998779,2494.50000000,16.20000076,0.00000000,0.00000000,273.99902344); //object(kickramp06) (21)
  290.     CreateObject(13645,362.00000000,2491.89990234,16.20000076,0.00000000,0.00000000,273.99902344); //object(kickramp06) (22)
  291.     CreateObject(13645,362.29998779,2489.19995117,16.20000076,0.00000000,0.00000000,273.99902344); //object(kickramp06) (23)
  292.     CreateObject(13645,362.60000610,2486.60009766,16.20000076,0.00000000,0.00000000,273.99902344); //object(kickramp06) (24)
  293.     AddStaticVehicle(411,1997.9850,-2263.2759,13.2739,88.0868,255,15); // Airport Infernus 1
  294.     AddStaticVehicle(411,1994.4342,-2255.7090,13.2740,87.5867,255,15); // Airport Infernus 2
  295.     AddStaticVehicle(411,1996.4342,-2245.3882,13.2740,92.4516,255,15); // Airport Infernus 3
  296.     AddStaticVehicle(589,1697.00000000,-2315.10009766,13.10000038,90.00000000,-1,15); //Club
  297.     AddStaticVehicle(458,1631.80004883,-2315.39990234,13.39999962,90.00000000,-1,15); //Solair
  298.     AddStaticVehicle(521,1636.59997559,-2324.10009766,13.00000000,90.00000000,-1,15); //FCR-900
  299.     AddStaticVehicle(411,1768.00000000,-1860.40002441,13.39999962,270.00000000,-1,15); //Infernus
  300.     AddStaticVehicle(560,1760.30004883,-1860.40002441,13.39999962,268.00000000,-1,15); //Sultan
  301.     CreateObject(976,2363.00000000,-2088.60009766,20.20000076,0.00000000,0.00000000,0.00000000); //object(phils_compnd_gate) (1)
  302.     CreateObject(976,2354.10009766,-2088.50000000,20.20000076,0.00000000,0.00000000,0.00000000); //object(phils_compnd_gate) (2)
  303.     CreateObject(976,2345.39990234,-2088.50000000,20.20000076,0.00000000,0.00000000,0.00000000); //object(phils_compnd_gate) (3)
  304.     CreateObject(976,2345.39990234,-2088.39990234,20.20000076,0.00000000,0.00000000,88.00000000); //object(phils_compnd_gate) (4)
  305.     CreateObject(976,2363.00000000,-2088.50000000,23.29999924,0.00000000,0.00000000,0.00000000); //object(phils_compnd_gate) (5)
  306.     CreateObject(976,2354.19995117,-2088.39990234,23.29999924,0.00000000,0.00000000,0.00000000); //object(phils_compnd_gate) (6)
  307.     CreateObject(976,2345.39990234,-2088.30004883,23.20000076,0.00000000,0.00000000,0.00000000); //object(phils_compnd_gate) (7)
  308.     CreateObject(976,2345.39990234,-2088.19995117,23.29999924,0.00000000,0.00000000,88.00000000); //object(phils_compnd_gate) (8)
  309.     CreateObject(976,2345.69995117,-2079.69995117,20.20000076,0.00000000,0.00000000,88.00000000); //object(phils_compnd_gate) (9)
  310.     CreateObject(976,2345.69995117,-2079.69995117,23.50000000,0.00000000,0.00000000,88.00000000); //object(phils_compnd_gate) (10)
  311.     CreateObject(976,2346.00000000,-2070.89990234,20.20000076,0.00000000,0.00000000,88.00000000); //object(phils_compnd_gate) (11)
  312.     CreateObject(976,2346.00000000,-2071.00000000,23.50000000,0.00000000,0.00000000,88.00000000); //object(phils_compnd_gate) (12)
  313.     CreateObject(976,2346.50000000,-2062.19995117,20.20000076,0.00000000,0.00000000,0.00000000); //object(phils_compnd_gate) (13)
  314.     CreateObject(976,2355.30004883,-2062.19995117,20.20000076,0.00000000,0.00000000,0.00000000); //object(phils_compnd_gate) (14)
  315.     CreateObject(976,2361.60009766,-2062.10009766,20.20000076,0.00000000,0.00000000,0.00000000); //object(phils_compnd_gate) (15)
  316.     CreateObject(976,2370.00000000,-2070.60009766,20.20000076,0.00000000,0.00000000,88.00000000); //object(phils_compnd_gate) (16)
  317.     CreateObject(976,2369.69995117,-2079.19995117,20.20000076,0.00000000,0.00000000,88.00000000); //object(phils_compnd_gate) (17)
  318.     CreateObject(976,2346.60009766,-2062.19995117,23.39999962,0.00000000,0.00000000,0.00000000); //object(phils_compnd_gate) (18)
  319.     CreateObject(976,2355.30004883,-2062.10009766,23.39999962,0.00000000,0.00000000,0.00000000); //object(phils_compnd_gate) (19)
  320.     CreateObject(976,2361.60009766,-2062.00000000,23.39999962,0.00000000,0.00000000,0.00000000); //object(phils_compnd_gate) (20)
  321.     CreateObject(976,2369.39990234,-2087.89990234,20.20000076,0.00000000,0.00000000,88.00000000); //object(phils_compnd_gate) (21)
  322.     CreateObject(976,2369.80004883,-2088.50000000,20.50000000,0.00000000,0.00000000,88.00000000); //object(phils_compnd_gate) (22)
  323.     CreateObject(976,2369.89990234,-2088.39990234,23.39999962,0.00000000,0.00000000,88.00000000); //object(phils_compnd_gate) (23)
  324.     CreateObject(976,2370.19995117,-2079.80004883,23.50000000,0.00000000,0.00000000,88.00000000); //object(phils_compnd_gate) (24)
  325.     CreateObject(976,2370.00000000,-2070.89990234,23.10000038,0.00000000,0.00000000,88.00000000); //object(phils_compnd_gate) (25)
  326.     CreateObject(973,1752.80004883,-1849.80004883,13.39999962,0.00000000,0.00000000,0.00000000); //object(sub_roadbarrier) (1)
  327.     CreateObject(973,1762.09997559,-1849.80004883,13.39999962,0.00000000,0.00000000,0.00000000); //object(sub_roadbarrier) (2)
  328.     CreateObject(973,1771.19995117,-1849.80004883,13.39999962,0.00000000,0.00000000,0.00000000); //object(sub_roadbarrier) (3)
  329.     CreateObject(973,1780.19995117,-1849.80004883,13.39999962,0.00000000,0.00000000,0.00000000); //object(sub_roadbarrier) (4)
  330.     CreateObject(973,1789.30004883,-1849.80004883,13.39999962,0.00000000,0.00000000,0.00000000); //object(sub_roadbarrier) (5)
  331.     CreateObject(973,1798.50000000,-1849.80004883,13.39999962,0.00000000,0.00000000,0.00000000); //object(sub_roadbarrier) (6)
  332.     CreateObject(973,1806.50000000,-1849.80004883,13.39999962,0.00000000,0.00000000,0.00000000); //object(sub_roadbarrier) (7)
  333.     CreateObject(973,1700.00000000,-1838.40002441,13.39999962,0.00000000,0.00000000,92.00000000); //object(sub_roadbarrier) (8)
  334.     CreateObject(973,1700.50000000,-1847.19995117,13.39999962,0.00000000,0.00000000,92.00000000); //object(sub_roadbarrier) (9)
  335.     CreateObject(973,1700.69995117,-1865.50000000,13.39999962,0.00000000,0.00000000,92.00000000); //object(sub_roadbarrier) (10)
  336.     CreateObject(974,1842.69995117,-1855.59997559,14.00000000,0.00000000,0.00000000,92.00000000); //object(tall_fence) (1)
  337.     CreateObject(11245,1751.19995117,-1867.09997559,25.79999924,0.00000000,0.00000000,0.00000000); //object(sfsefirehseflag) (1)
  338.     CreateObject(11245,1751.19995117,-1865.90002441,25.70000076,0.00000000,0.00000000,0.00000000); //object(sfsefirehseflag) (2)
  339.     CreateObject(11245,1751.19995117,-1864.80004883,25.70000076,0.00000000,0.00000000,0.00000000); //object(sfsefirehseflag) (3)
  340.     CreateObject(11470,2348.39990234,-2083.10009766,25.29999924,0.00000000,0.00000000,0.00000000); //object(des_bigbull) (1)
  341.     CreateObject(14629,2363.10009766,-2068.00000000,29.89999962,0.00000000,0.00000000,0.00000000); //object(mafcas_chande) (1)
  342.     CreateObject(18813, -1361.72, -13.94, 341.55,   0.00, 0.00, 0.00);
  343.     CreateObject(18820, -1361.18, -14.96, 199.74,   0.00, 0.00, 0.00);
  344.     CreateObject(18818, -1311.27, -14.56, 191.87,   0.00, 0.00, 1.40);
  345.     CreateObject(18811, -1311.26, -14.52, 161.41,   0.00, 0.00, 0.00);
  346.     CreateObject(18813, -1310.53, -26.32, 111.95,   0.00, 0.00, 0.00);
  347.     CreateObject(18824, -1393.97, -14.22, 176.20,   0.00, 0.00, 354.40);
  348.     CreateObject(18809, -1361.29, -15.31, 151.31,   0.00, 0.00, 0.00);
  349.     CreateObject(18824, -1277.65, -13.17, 175.92,   0.00, 0.00, 181.36);
  350.     CreateObject(16305, -1324.81, -113.25, 18.04,   0.00, 0.00, 0.00);
  351.     CreateObject(16305, -1312.40, -10.11, 18.04,   0.00, 0.00, 0.00);
  352.     CreateObject(18784, -1408.51, -262.59, 26.11,   0.00, 0.00, 139.57);
  353.     CreateObject(13641, -1351.36, -87.69, 14.02,   0.00, 0.00, 308.86);
  354.     CreateObject(13641, -1369.27, -294.17, 25.41,   0.00, 0.00, 35.11);
  355.     CreateObject(18784, -1261.47, -106.92, 15.48,   0.00, 0.00, 44.09);
  356.     CreateObject(18801, -1287.96, -82.45, 33.80,   0.00, 0.00, 321.35);
  357.     CreateObject(18801, -1200.77, -57.28, 48.01,   0.00, 0.00, 51.47);
  358.     CreateObject(18784, -1628.22, -294.08, 13.63,   0.00, 0.00, 222.56);
  359.     CreateObject(16305, -1644.38, -310.63, 18.13,   0.00, 0.00, 0.00);
  360.     CreateObject(18784, -1663.61, -326.95, 13.63,   0.00, 0.00, 41.04);
  361.     CreateObject(10464, -1258.50, -180.90, 39.49,   0.00, 0.00, 221.85);
  362.     CreateObject(18769, -1549.30, -412.15, 112.92,   0.00, 0.00, 310.41);
  363.     CreateObject(18769, -1521.45, -414.33, 112.92,   0.00, 0.00, 310.41);
  364.     CreateObject(18769, -1534.27, -399.73, 112.92,   0.00, 0.00, 310.41);
  365.     CreateObject(18769, -1509.19, -429.52, 112.92,   0.00, 0.00, 310.41);
  366.     CreateObject(18769, -1523.79, -442.22, 112.92,   0.00, 0.00, 310.41);
  367.     CreateObject(18769, -1536.52, -427.12, 112.92,   0.00, 0.00, 310.41);
  368.     CreateObject(10464, -1453.58, -354.45, 100.24,   0.00, 0.00, 221.39);
  369.     CreateObject(10464, -1381.90, -290.68, 79.01,   0.00, 0.00, 222.00);
  370.     CreateObject(10464, -1320.31, -235.72, 60.39,   0.00, 0.00, 221.41);
  371.     CreateObject(18780, -1185.66, -123.77, 36.02,   0.00, 0.00, 40.70);
  372.     CreateObject(18780, -1192.11, -116.18, 36.02,   0.00, 0.00, 40.70);
  373.     CreateObject(18780, -1519.69, -183.10, 21.81,   0.00, 0.00, 344.18);
  374.     CreateObject(13637, -1361.83, -556.50, 14.93,   0.00, 0.00, 352.24);
  375.     CreateObject(13643, -1264.39, -487.33, 14.35,   0.00, 0.00, 315.67);
  376.     CreateObject(13643, -1302.95, -447.86, 14.35,   0.00, 0.00, 315.67);
  377.     CreateObject(13643, -1284.24, -466.41, 14.35,   0.00, 0.00, 315.67);
  378.     CreateObject(13636, -1250.36, -511.91, 14.96,   0.00, 0.00, 223.07);
  379.     CreateObject(13593, -1282.49, -476.17, 13.62,   0.00, 0.00, 312.86);
  380.     CreateObject(13604, -1295.24, -569.76, 14.70,   0.00, 0.00, 0.00);
  381.     CreateObject(18780, -1205.25, -437.56, 16.49,   0.00, 0.00, 319.88);
  382.     CreateObject(18801, -1193.94, -436.61, 35.34,   0.00, 0.00, 315.27);
  383.     CreateObject(13641, -1500.77, -542.94, 13.89,   0.00, 0.00, 113.76);
  384.     CreateObject(18780, -1651.29, -453.19, 26.29,   0.00, 0.00, 314.70);
  385.     CreateObject(18780, -1556.92, -547.78, 26.29,   0.00, 0.00, 134.45);
  386.     CreateObject(18813, -1583.79, -609.38, 7.05,   0.00, 0.00, 0.00);
  387.     CreateObject(19005, -1501.80, -587.31, 16.13,   0.00, 0.00, 104.27);
  388.     CreateObject(19005, -1503.39, -450.58, 115.87,   0.00, 0.00, 221.92);
  389.     CreateObject(19005, -1551.93, -388.31, 115.87,   0.00, 0.00, 38.19);
  390.     CreateVehicle(481, -1520.3252, -417.7644, 119.5629, 352.6050, -1, -1, 100);
  391.     CreateVehicle(411, -1364.3021, -216.0992, 13.6834, 0.0000, -1, -1, 100);
  392.     CreateVehicle(522, -1348.8464, -105.4205, 13.8155, 0.0000, -1, -1, 100);
  393.     AddStaticVehicle(411,2507.0330,-1677.0601,13.1873,147.6152,34,98); // Grove Infernus 1
  394.     AddStaticVehicle(411,2492.4329,-1684.7371,13.1481,90.5563,34,98); // Grove Infernus 2
  395.     AddStaticVehicle(411,2479.0793,-1653.2080,13.1201,90.0176,34,98); // Grove Infernus 3
  396.     AddStaticVehicle(411,2061.4048,-1169.8909,23.4757,0.2064,34,98); // Ballas Infernus 1
  397.     AddStaticVehicle(411,2077.3059,-1170.7280,23.4728,180.5606,34,98); // Ballas Infernus 2
  398.     AddStaticVehicle(411,2077.3286,-1203.4354,23.5648,182.8079,34,98); // Ballas Infernus 3
  399.     AddStaticVehicle(596,1591.5428,-1710.4375,5.6177,178.5503,34,98); // PD Car 1
  400.     AddStaticVehicle(596,1583.5043,-1709.9331,5.6177,178.4619,34,98); // PD Car 2
  401.     AddStaticVehicle(596,1574.2031,-1709.2150,5.6177,182.1631,34,98); // PD Car 3
  402.     AddStaticVehicle(596,1564.5828,-1710.1979,5.6177,178.8155,34,98); // PD Car 4
  403.     printf("|_________Mapping Loaded!__________|");
  404. //  Unity Classes
  405.     AddPlayerClass(115, 1766.5635,-1847.7111,13.5781,183.4783, 24, 70,0,0,0,0); // Unity Class 1
  406.     AddPlayerClass(33, 1766.5635,-1847.7111,13.5781,183.4783, 24, 70,0,0,0,0); // Unity Class 2
  407.     AddPlayerClass(53, 1766.5635,-1847.7111,13.5781,183.4783, 24, 70,0,0,0,0); // Unity Class 3
  408. //  Grove Classes
  409.     AddPlayerClass(105,2504.0347,-1652.5273,13.5938,140.7401, 24, 70,0,0,0,0); // Grove Class 1
  410.     AddPlayerClass(106,2512.7522,-1675.1533,13.5483,80.8929, 24, 70,0,0,0,0); // Grove Class 2
  411.     AddPlayerClass(107,2504.1245,-1685.8965,13.5469,44.8592, 24, 70,0,0,0,0); // Grove Class 3
  412. // Ballas Classes
  413.     AddPlayerClass(102,2055.9773,-1192.9594,23.7984,267.8276, 24, 70,0,0,0,0); // Ballas Class 1
  414.     AddPlayerClass(103,2055.5042,-1167.6951,23.7719,270.9610, 24, 70,0,0,0,0); // Ballas Class 2
  415.     AddPlayerClass(104,2055.7559,-1151.1599,23.7852,270.9610, 24, 70,0,0,0,0); // Ballas Class 3
  416. // PD Classes
  417.     AddPlayerClass(280,1578.6930,-1694.5786,6.2188,186.0260, 24, 70,0,0,0,0); // PD Class 1
  418.     AddPlayerClass(283,1572.8768,-1694.2316,6.2188,172.5525, 24, 70,0,0,0,0); // PD Class 2
  419.     AddPlayerClass(288,1566.6099,-1693.9060,5.8906,171.6125, 24, 70,0,0,0,0); // PD Class 3
  420.     AddPlayerClass(285,1561.4171,-1693.9485,5.8906,177.2525, 24, 70,0,0,0,0); // PD Class 4
  421.     return 1;
  422. }
  423. static const VehicleName[212][] = {
  424.     "Landstalker","Bravura","Buffalo","Linerunner","Perennial","Sentinel","Dumper","Firetruck","Trashmaster","Stretch",
  425.     "Manana","Infernus","Voodoo","Pony","Mule","Cheetah","Ambulance","Leviathan","Moonbeam","Esperanto","Taxi",
  426.     "Washington","Bobcat","Mr Whoopee","BF Injection","Hunter","Premier","Enforcer","Securicar","Banshee","Predator",
  427.     "Bus","Rhino","Barracks","Hotknife","Trailer","Previon","Coach","Cabbie","Stallion","Rumpo","RC Bandit", "Romero",
  428.     "Packer","Monster","Admiral","Squalo","Seasparrow","Pizzaboy","Tram","Trailer","Turismo","Speeder","Reefer","Tropic","Flatbed",
  429.     "Yankee","Caddy","Solair","Berkley's RC Van","Skimmer","PCJ-600","Faggio","Freeway","RC Baron","RC Raider",
  430.     "Glendale","Oceanic","Sanchez","Sparrow","Patriot","Quad","Coastguard","Dinghy","Hermes","Sabre","Rustler",
  431.     "ZR-350","Walton","Regina","Comet","BMX","Burrito","Camper","Marquis","Baggage","Dozer","Maverick","News Chopper",
  432.     "Rancher","FBI Rancher","Virgo","Greenwood","Jetmax","Hotring Racer","Sandking","Blista Compact","Police Maverick",
  433.     "Boxville","Benson","Mesa","RC Goblin","Hotring Racer A","Hotring Racer B","Bloodring Banger","Rancher","Super GT",
  434.     "Elegant","Journey","Bike","Mountain Bike","Beagle","Cropduster","Stuntplane","Tanker","Road Train","Nebula","Majestic",
  435.     "Buccaneer","Shamal","Hydra","FCR-900","NRG-500","HPV-1000","Cement Truck","Tow Truck","Fortune","Cadrona","FBI Truck",
  436.     "Willard","Forklift","Tractor","Combine","Feltzer","Remington","Slamvan","Blade","Freight","Streak","Vortex","Vincent",
  437.     "Bullet","Clover","Sadler","Firetruck","Hustler","Intruder","Primo","Cargobob","Tampa","Sunrise","Merit","Utility",
  438.     "Nevada","Yosemite","Windsor","Monster A","Monster B","Uranus","Jester","Sultan","Stratum","Elegy","Raindance","RC Tiger",
  439.     "Flash","Tahoma","Savanna","Bandito","Freight","Trailer","Kart","Mower","Duneride","Sweeper","Broadway",
  440.     "Tornado","AT-400","DFT-30","Huntley","Stafford","BF-400","Newsvan","Tug","Trailer","Emperor","Wayfarer",
  441.     "Euros","Hotdog","Club","Trailer","Trailer","Andromada","Dodo","RCCam","Launch","Police Car (LSPD)","Police Car (SFPD)",
  442.     "Police Car (LVPD)","Police Ranger","Picador","S.W.A.T. Van","Alpha","Phoenix","Glendale","Sadler","Luggage Trailer A",
  443.     "Luggage Trailer B","Stair Trailer","Boxville","Farm Plow","Utility Trailer"
  444. };
  445. stock SendReportToQue(reportfrom, report[])
  446. {
  447.     new bool:breakingloop = false, newid = INVALID_REPORT_ID;
  448.  
  449.     for(new i=0;i<MAX_REPORTS;i++)
  450.     {
  451.         if(!breakingloop)
  452.         {
  453.             if(Reports[i][HasBeenUsed] == 0)
  454.             {
  455.                 breakingloop = true;
  456.                 newid = i;
  457.             }
  458.         }
  459.     }
  460.     if(newid != INVALID_REPORT_ID)
  461.     {
  462.         strmid(Reports[newid][Report], report, 0, strlen(report), 128);
  463.         Reports[newid][ReportFrom] = reportfrom;
  464.         Reports[newid][TimeToExpire] = 5;
  465.         Reports[newid][HasBeenUsed] = 1;
  466.         Reports[newid][BeingUsed] = 1;
  467.         Reports[newid][ReportExpireTimer] = SetTimerEx("ReportTimer", 60000, 0, "d", newid);
  468.         new string[128];
  469.         format(string, sizeof(string), "Report from [%i] %s (RID: %i): %s", reportfrom, GetPlayerNameEx(reportfrom), newid, (report));
  470.         ABroadCast(COLOR_REPORT,string,1);
  471.     }
  472. }
  473. stock GetPlayerNameEx(playerid)
  474. {
  475.     new name[MAX_PLAYER_NAME];
  476.     GetPlayerName(playerid, name, sizeof(name));
  477.     return name;
  478. }
  479. stock fcreate(filename[])
  480. {
  481.     if (fexist(filename)) return false;
  482.     new File:fhnd;
  483.     fhnd=fopen(filename,io_write);
  484.     if (fhnd)
  485.     {
  486.         fclose(fhnd);
  487.         return true;
  488.     }
  489.     return false;
  490. }
  491. stock PlayerName(playerid)
  492. {
  493.     new name[MAX_PLAYER_NAME];
  494.     GetPlayerName(playerid, name, MAX_PLAYER_NAME);
  495.     return name;
  496. }
  497. doesAccountExist(account_name[])
  498. {
  499.     new sz_accStr[MAX_PLAYER_NAME + 12];
  500.     format(sz_accStr, sizeof(sz_accStr), "Users/%s.ini", account_name);
  501.     if(fexist(sz_accStr))
  502.     {
  503.         new File: f_Handle = fopen(sz_accStr, io_read);
  504.         if(flength(f_Handle) > 0)
  505.         {
  506.             fclose(f_Handle);
  507.             return 1;
  508.         }
  509.         fclose(f_Handle);
  510.     }
  511.     return 0;
  512. }
  513. SendClientMessageEx(playerid, color, string[])
  514. {
  515.     SendClientMessage(playerid, color, string);
  516.     return 1;
  517. }
  518. SendClientMessageToAllEx(color, string[])
  519. {
  520.     foreach(Player, i)
  521.     {
  522.         SendClientMessage(i, color, string);
  523.     }
  524.     return 1;
  525. }
  526. /*
  527. Log(sz_fileName[], sz_input[])
  528. {
  529.  
  530.     new sz_logEntry[156], i_dateTime[2][3], File: fileHandle = fopen(sz_fileName, io_append);
  531.     gettime(i_dateTime[0][0], i_dateTime[0][1], i_dateTime[0][2]);
  532.     getdate(i_dateTime[1][0], i_dateTime[1][1], i_dateTime[1][2]);
  533.     format(sz_logEntry, sizeof(sz_logEntry), "[%i/%i/%i - %i:%i:%i] %s\r\n", i_dateTime[1][0], i_dateTime[1][1], i_dateTime[1][2], i_dateTime[0][0], i_dateTime[0][1], i_dateTime[0][2], sz_input);
  534.     fwrite(fileHandle, sz_logEntry);
  535.     return fclose(fileHandle);
  536. }*/
  537. CheckBan(ip[])
  538. {
  539.     new string[20];
  540.     new File: file = fopen("Ban.cfg", io_read);
  541.     while(fread(file, string))
  542.     {
  543.         if (strcmp(ip, string, true, strlen(ip)) == 0)
  544.         {
  545.             fclose(file);
  546.             return 1;
  547.         }
  548.     }
  549.     fclose(file);
  550.     return 0;
  551. }
  552.  
  553. AddBan(ip[])
  554. {
  555.     if (CheckBan(ip) == 0)
  556.     {
  557.         new File: file = fopen("Ban.cfg", io_append);
  558.         new string[20];
  559.         format(string, sizeof(string), "\n%s", ip);
  560.         fwrite(file, string);
  561.         fclose(file);
  562.         foreach(Player, playerid)
  563.         {
  564.             new playerIP[16];
  565.             GetPlayerIp(playerid, playerIP, sizeof(playerIP));
  566.             if (strcmp(playerIP, ip) == 0)
  567.             {
  568.                 SendClientMessage(playerid, COLOR_WHITE, "SERVER: You are banned from this server.");
  569.                 Kick(playerid);
  570.             }
  571.         }
  572.         return 1;
  573.     }
  574.     return 0;
  575. }
  576.  
  577. RemoveBan(ip[])
  578. {
  579.     if (CheckBan(ip) == 1)
  580.     {
  581.         new string[20];
  582.         new File: file = fopen("Ban.cfg", io_read);
  583.         fcreate("tempBan.cfg");
  584.         new File: file2 = fopen("tempBan.cfg", io_append);
  585.         while(fread(file, string))
  586.         {
  587.             if (strcmp(ip, string, true, strlen(ip)) != 0 && strcmp("\n", string) != 0)
  588.             {
  589.                 fwrite(file2, string);
  590.             }
  591.         }
  592.         fclose(file);
  593.         fclose(file2);
  594.         file = fopen("Ban.cfg", io_write);
  595.         file2 = fopen("tempBan.cfg", io_read);
  596.         while(fread(file2, string))
  597.         {
  598.             fwrite(file, string);
  599.         }
  600.         fclose(file);
  601.         fclose(file2);
  602.         fremove("tempBan.cfg");
  603.         return 1;
  604.     }
  605.     return 0;
  606. }
  607.  
  608. enum pInfo
  609. {
  610.     pPass,
  611.     pCash,
  612.     pAdmin,
  613.     pKills,
  614.     pDeaths,
  615.     pMuted,
  616.     pBanned,
  617.     pReportBanned,
  618.     pConnectedTime,
  619. }
  620. /*
  621.     INI_Int("Muted",PlayerInfo[playerid][pMuted]);
  622.     INI_Int("Banned",PlayerInfo[playerid][pBanned]);
  623.     INI_Int("ReportBanned",PlayerInfo[playerid][pReportBanned]);
  624.     INI_Int("PlayingHours",PlayerInfo[playerid][pConnectedTime]);*/
  625. new PlayerInfo[MAX_PLAYERS+1][pInfo];
  626.  
  627. forward LoadUser_data(playerid,name[],value[]);
  628. public LoadUser_data(playerid,name[],value[])
  629. {
  630.     INI_Int("Password",PlayerInfo[playerid][pPass]);
  631.     INI_Int("Cash",PlayerInfo[playerid][pCash]);
  632.     INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
  633.     INI_Int("Kills",PlayerInfo[playerid][pKills]);
  634.     INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
  635.     INI_Int("Muted",PlayerInfo[playerid][pMuted]);
  636.     INI_Int("Banned",PlayerInfo[playerid][pBanned]);
  637.     INI_Int("ReportBanned",PlayerInfo[playerid][pReportBanned]);
  638.     INI_Int("PlayingHours",PlayerInfo[playerid][pConnectedTime]);
  639.     return 1;
  640. }
  641. UnbanPlayer(playername[])
  642. {
  643.     new string[32];
  644.     format(string, sizeof(string), "Users/%s.ini", playername);
  645.     PlayerInfo[MAX_PLAYERS][pBanned] = 0;
  646.     return 1;
  647. }
  648. stock UserPath(playerid)
  649. {
  650.     new string[128],playername[MAX_PLAYER_NAME];
  651.     GetPlayerName(playerid,playername,sizeof(playername));
  652.     format(string,sizeof(string),AccPath,playername);
  653.     return string;
  654. }
  655. stock udb_hash(buf[])
  656. {
  657.     new length=strlen(buf);
  658.     new s1 = 1;
  659.     new s2 = 0;
  660.     new n;
  661.     for (n=0; n<length; n++)
  662.     {
  663.        s1 = (s1 + buf[n]) % 65521;
  664.        s2 = (s2 + s1)     % 65521;
  665.     }
  666.     return (s2 << 16) + s1;
  667. }
  668. CheckText(text[])
  669. {
  670.     new dotcount, numbercount;
  671.     for(new s, l = strlen(text); s < l; s++)
  672.     {
  673.         if (text[s] == ':' && dotcount == 3 && numbercount >= 8)
  674.         {
  675.             return 0;
  676.         }
  677.         if (text[s] == '.' && dotcount < 3) dotcount ++;
  678.         //if (IsNumeric(text[s])) numbercount++;
  679.         if ('0' <= text[s] <= '9') numbercount ++;
  680.     }
  681.     return 1;
  682. }
  683. ShowStats(playerid, targetid)
  684. {
  685.     new coordsstring[128];
  686.     #pragma unused targetid
  687.     if(PlayerInfo[playerid][pAdmin] >= 1)
  688.     {
  689.         SendClientMessage(playerid, COLOR_YELLOW,"|__________Stats__________|");
  690.         format(coordsstring, sizeof(coordsstring),"Name: %s - Admin Level = [%d] - Kills = [%d] - Deaths = [%d] - Playing Hours = [%d]",PlayerName(playerid), PlayerInfo[playerid][pAdmin], PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths],PlayerInfo[playerid][pConnectedTime]);
  691.         SendClientMessage(playerid, COLOR_LIGHTGREEN,coordsstring);
  692.     }
  693.     else
  694.     {
  695.         SendClientMessage(playerid, COLOR_YELLOW,"|__________Stats__________|");
  696.         format(coordsstring, sizeof(coordsstring),"Name: %s - Kills = [%d] - Deaths = [%d] - Playing Hours = [%d]",PlayerName(playerid),PlayerInfo[playerid][pKills],PlayerInfo[playerid][pDeaths],PlayerInfo[playerid][pConnectedTime]);
  697.         SendClientMessage(playerid, COLOR_LIGHTGREEN,coordsstring);
  698.     }
  699.     return 1;
  700. }
  701. //new PlayerInfo[MAX_PLAYERS+1][pInfo];
  702. public ABroadCast(color,const string[],level)
  703. {
  704.     //FuncLog("ABroadCast");
  705.     foreach(Player, i)
  706.     {
  707.         if (PlayerInfo[i][pAdmin] >= level)
  708.         {
  709.             SendClientMessage(i, color, string);
  710.         }
  711.     }
  712.     print(string);
  713.     return 1;
  714. }
  715. public OnPlayerText(playerid, text[])
  716. {
  717.     if(PlayerInfo[playerid][pMuted] == 1)
  718.     {
  719.         SendClientMessage(playerid, COLOR_GREY, "You cannot speak, you have been silenced!");
  720.         return 0;
  721.     }
  722.     else    return 1;
  723. }
  724. public SendAdminMessage(color, string[])
  725. {
  726.     foreach(Player, i)
  727.     {
  728.         if(PlayerInfo[i][pAdmin] >= 1)
  729.         {
  730.             SendClientMessage(i, color, string);
  731.         }
  732.     }
  733. }
  734. public OnPlayerConnect(playerid)
  735. {
  736.     if(PlayerInfo[playerid][pBanned] >= 2)
  737.     {
  738.         new string[128];
  739.         format(string, sizeof(string), "<A> %s has just attempted to login. (A Banned Player.)",PlayerName(playerid));
  740.         SendAdminMessage(COLOR_YELLOW, string);
  741.         SendClientMessage(playerid, COLOR_BRIGHTRED,"You are banned from this server!");
  742.         Kick(playerid);
  743.         return 1;
  744.     }
  745.     else
  746.     {
  747.         SetPlayerScore(playerid, PlayerInfo[playerid][pKills]);
  748.         SetPlayerMoney(playerid, PlayerInfo[playerid][pCash]);
  749.         new string[128];
  750.         format(string, sizeof(string), "<A> %s has joined the server.",PlayerName(playerid));
  751.         SendAdminMessage(COLOR_YELLOW,string);
  752.         if(fexist(UserPath(playerid)))
  753.         {
  754.             INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
  755.             ShowPlayerDialog(playerid,20,DIALOG_PASSWORD,"Login","{24FF0A}Welcome to West Coast DM.\n{FFFFFF}Please enter your password, to ensure your time on WC-DM!\n{24FF0A}Current Version: "SERVER_GM_TEXT"!\n{FF9900}Enjoy your stay!","Login","Exit");
  756.         }
  757.         else
  758.         {
  759.             ShowPlayerDialog(playerid,19,DIALOG_PASSWORD,"Registration","{24FF0A}Welcome to West Coast DM.\n{FFFFFF}Account not found, please register now,\n{24FF0A}Current Version: "SERVER_GM_TEXT"!\n{FF9900}Enjoy your stay!","Register","Exit");
  760.         }
  761.     }
  762.     ptdSpeedo[playerid] =
  763.     CreatePlayerTextDraw            (playerid, 630.000000, 370.000000, " ");
  764.     PlayerTextDrawAlignment         (playerid, ptdSpeedo[playerid], 3);
  765.     PlayerTextDrawBackgroundColor   (playerid, ptdSpeedo[playerid], 255);
  766.     PlayerTextDrawFont              (playerid, ptdSpeedo[playerid], 3);
  767.     PlayerTextDrawLetterSize        (playerid, ptdSpeedo[playerid], 0.800000, 4.000000);
  768.     PlayerTextDrawColor             (playerid, ptdSpeedo[playerid], 16711935);
  769.     PlayerTextDrawSetOutline        (playerid, ptdSpeedo[playerid], 1);
  770.     PlayerTextDrawSetProportional   (playerid, ptdSpeedo[playerid], 1);
  771.    
  772.     if (gSpeedo_HasCB[0]) CallLocalFunction("Speedo_OnPlayerConnect", "i", playerid);
  773.     return 1;
  774. }
  775. #if defined _ALS_OnPlayerConnect
  776.     #undef OnPlayerConnect
  777. #else
  778.     #define _ALS_OnPlayerConnect
  779. #endif
  780. #define OnPlayerConnect Speedo_OnPlayerConnect
  781. forward Speedo_OnPlayerConnect(playerid);
  782. public OnPlayerOfflineSave(playername[])
  783. {
  784.     new string[32];
  785.     //GetPlayerName(MAX_PLAYERS, playername, MAX_PLAYER_NAME);
  786.     format(string, sizeof(string), "Users/%s.ini", playername);
  787.     new INI:File = INI_Open(string);
  788.     if(fexist(playername))
  789.     {
  790.         new var[156];
  791.         INI_SetTag(File,"data");
  792.         format(var, sizeof(var), "Cash");
  793.         INI_WriteInt(File, var, 5000);
  794.         format(var, sizeof(var), "Admin");
  795.         INI_WriteInt(File, var, PlayerInfo[MAX_PLAYERS][pAdmin]);
  796.         format(var, sizeof(var), "Kills");
  797.         INI_WriteInt(File, var, PlayerInfo[MAX_PLAYERS][pKills]);
  798.         format(var, sizeof(var), "Deaths");
  799.         INI_WriteInt(File, var, PlayerInfo[MAX_PLAYERS][pDeaths]);
  800.         format(var, sizeof(var), "Muted");
  801.         INI_WriteInt(File, var, PlayerInfo[MAX_PLAYERS][pMuted]);
  802.         format(var, sizeof(var), "Banned");
  803.         INI_WriteInt(File, var, PlayerInfo[MAX_PLAYERS][pBanned]);
  804.         format(var, sizeof(var), "ReportBanned");
  805.         INI_WriteInt(File, var, PlayerInfo[MAX_PLAYERS][pReportBanned]);
  806.         format(var, sizeof(var), "PlayingHours");
  807.         INI_WriteInt(File, var, PlayerInfo[MAX_PLAYERS][pConnectedTime]);
  808.         INI_Close(File);
  809.     }
  810.     return 1;
  811. }
  812. public OnPlayerDisconnect(playerid, reason)
  813. {
  814.     new string[128];
  815.     format(string, sizeof(string), "<A> %s has left the server.",PlayerName(playerid));
  816.     SendAdminMessage(COLOR_YELLOW,string);
  817.     new INI:File = INI_Open(UserPath(playerid));
  818.     INI_SetTag(File,"data");
  819.     INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
  820.     INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
  821.     INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
  822.     INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
  823.     INI_WriteInt(File,"Muted",PlayerInfo[playerid][pMuted]);
  824.     INI_WriteInt(File,"Banned",PlayerInfo[playerid][pBanned]);
  825.     INI_WriteInt(File,"ReportBanned",PlayerInfo[playerid][pReportBanned]);
  826.     INI_WriteInt(File,"PlayingHours",PlayerInfo[playerid][pConnectedTime]);
  827.     INI_Close(File);
  828.     AdminDuty[playerid] = 0;
  829.     GodMode[playerid] = 0;
  830.     PlayerTextDrawDestroy(playerid, ptdSpeedo[playerid]);
  831.  
  832.     if (gSpeedo_HasCB[1]) CallLocalFunction("Speedo_OnPlayerDisconnect", "ii", playerid, reason);
  833.     return 1;
  834. }
  835. #if defined _ALS_OnPlayerDisconnect
  836.     #undef OnPlayerDisconnect
  837. #else
  838.     #define _ALS_OnPlayerDisconnect
  839. #endif
  840. #define OnPlayerDisconnect Speedo_OnPlayerDisconnect
  841. forward Speedo_OnPlayerDisconnect(playerid,  reason);
  842. public OnPlayerRequestClass(playerid, classid)
  843. {
  844.  
  845.     SetPlayerPos(playerid, 2098.8676, 2166.8967, 17.7591);
  846.     SetPlayerInterior(playerid, 0);
  847.     SetPlayerFacingAngle(playerid, 42.8644);
  848.     SetPlayerCameraPos(playerid, 2095.3676, 2170.8967, 19.2591);
  849.     SetPlayerCameraLookAt(playerid, 2098.8676, 2166.8967, 17.7591);
  850.     if(classid == 0)
  851.     {
  852.         GameTextForPlayer(playerid,"~R~ Unity Crew",10000,4);
  853.     }
  854.     if(classid == 4)
  855.     {
  856.         GameTextForPlayer(playerid,"~G~ Grove Crew",10000,4);
  857.     }
  858.     if(classid == 7)
  859.     {
  860.         GameTextForPlayer(playerid,"~P~ Ballas Crew",10000,4);
  861.     }
  862.     if(classid == 10)
  863.     {
  864.         GameTextForPlayer(playerid,"~B~ Police Crew",10000,4);
  865.     }
  866.     return 1;
  867. }
  868.  
  869. public OnPlayerDeath(playerid, killerid, reason)
  870. {
  871.     GivePlayerMoney(playerid, -500);
  872.     GivePlayerMoney(killerid, 1000);
  873.     PlayerInfo[playerid][pDeaths] += 1;
  874.     PlayerInfo[killerid][pKills] += 1;
  875.     SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
  876.     SendClientMessage(playerid, COLOR_ORANGE,"For dying, you have lost $500.");
  877.     SendClientMessage(killerid, COLOR_ORANGE,"For killing someone, you have received $1000.");
  878.     return 1;
  879. }
  880. public OnPlayerCommandPerformed(playerid, cmdtext[], success)
  881. {
  882.     if(!success) SendClientMessage(playerid, COLOR_WHITE, "SERVER: The Command you just entered was unknown, please use /Help.");
  883.     return 1;
  884. }
  885. public OnPlayerCommandReceived(playerid, cmdtext[])
  886. {
  887.     printf("[ZCMD] [%s]: %s", PlayerName(playerid), cmdtext);
  888.     return 1;
  889. }
  890. public OnPlayerCommandText(playerid, cmdtext[])
  891. {
  892.     return 1;
  893. }
  894. public OnPlayerRequestSpawn(playerid)
  895. {
  896.     return 1;
  897. }
  898.  
  899. public OnObjectMoved(objectid)
  900. {
  901.     return 1;
  902. }
  903. public OnPlayerObjectMoved(playerid, objectid)
  904. {
  905.     return 1;
  906. }
  907. public OnPlayerPickUpPickup(playerid, pickupid)
  908. {
  909.     return 1;
  910. }
  911. public OnVehicleMod(playerid, vehicleid, componentid)
  912. {
  913.     return 1;
  914. }
  915. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  916. {
  917.     return 1;
  918. }
  919. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  920. {
  921.     return 1;
  922. }
  923. public OnPlayerSelectedMenuRow(playerid, row)
  924. {
  925.     return 1;
  926. }
  927. public OnPlayerExitedMenu(playerid)
  928. {
  929.     return 1;
  930. }
  931. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  932. {
  933.     return 1;
  934. }
  935. public OnRconLoginAttempt(ip[], password[], success)
  936. {
  937.     return 1;
  938. }
  939. public OnPlayerUpdate(playerid)
  940. {
  941.     if(AntiCheat == 1)
  942.     {
  943.         new Float:Armour;
  944.         GetPlayerArmour(playerid, Armour);
  945.         if(Armour > 99 || Armour == 100)
  946.         {
  947.             new string[128],log[128];
  948.             format(string, sizeof(string), "Notice: %s was Auto-Banned by the System, Reason: Armor Hacks.",PlayerName(playerid));
  949.             SendClientMessageToAll(COLOR_BRIGHTRED, string);
  950.             format(log, sizeof(log), "%s was Auto-Banned for Armour Hacks.",PlayerName(playerid));
  951.             printf(log);
  952.             PlayerInfo[playerid][pBanned] = 1;
  953.             new ip[32];
  954.             GetPlayerIp(playerid,ip,sizeof(ip));
  955.             AddBan(ip);
  956.         }
  957.     }
  958.     else
  959.     {
  960.         return 1;
  961.     }
  962.     return 1;
  963. }
  964. public OnPlayerStreamIn(playerid, forplayerid)
  965. {
  966.     return 1;
  967. }
  968. public OnPlayerStreamOut(playerid, forplayerid)
  969. {
  970.     return 1;
  971. }
  972. public OnVehicleStreamIn(vehicleid, forplayerid)
  973. {
  974.     return 1;
  975. }
  976. public OnVehicleStreamOut(vehicleid, forplayerid)
  977. {
  978.     return 1;
  979. }
  980. /*
  981. AddBan(ip[])
  982. {
  983.     if (CheckBan(ip) == 0)
  984.     {
  985.         new File: file = fopen("ban.cfg", io_append);
  986.         new string[20];
  987.         format(string, sizeof(string), "\n%s", ip);
  988.         fwrite(file, string);
  989.         fclose(file);
  990.         foreach(Player, playerid)
  991.         {
  992.             new playerIP[16];
  993.             GetPlayerIp(playerid, playerIP, sizeof(playerIP));
  994.             if (strcmp(playerIP, ip) == 0)
  995.             {
  996.                 SendClientMessage(playerid, COLOR_WHITE, "SERVER: You are banned from this server.");
  997.                 Kick(playerid);
  998.             }
  999.         }
  1000.         return 1;
  1001.     }
  1002.     return 0;
  1003. }*/
  1004. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  1005. {
  1006.     GetPlayerPos(playerid, X, Y, Z);
  1007.     GetPlayerFacingAngle(playerid, Angle);
  1008.     pInt = GetPlayerInterior(playerid);
  1009.  
  1010.     if(dialogid == 1)
  1011.     {
  1012.         if(response)
  1013.         {
  1014.             switch(listitem)
  1015.             {
  1016.                 case 0: // Planes
  1017.                 {                                                                           // Shamal, Skimmer, Rustler, Stunt Plane
  1018.                     ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Airplanes", "1. Andromeda \n2. Dodo \n3. Hydra \n4. Shamal \n5. Skimmer \n6. Rustler \n7. Stunt Plane ", "Spawn", "Cancel");
  1019.                     return 1;
  1020.                 }
  1021.                 case 1: // Sports Cars
  1022.                 {
  1023.                     ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Sports Cars", "1. Sultan \n2. Infernus \n3. Bullet \n4. Turismo \n5. Banshee ", "Spawn", "Cancel");
  1024.                     return 1;
  1025.                 }
  1026.                 case 2: // Motor Cycles
  1027.                 {
  1028.                     ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "Motorcycles", "1. NRG-500 \n2. FCR-900 \n3. BF-400 \n4. Faggio \n5. Police Bike \n6. Sanchez ", "Spawn", "Cancel");
  1029.                     return 1;
  1030.                 }
  1031.                 case 3: // Helicoptors
  1032.                 {
  1033.                     ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Helicoptors", "1. Maverick \n2. Hunter \n3. Sea-Sparrow \n4. Raindance", "Spawn", "Cancel");
  1034.                     return 1;
  1035.                 }
  1036.             }
  1037.         }
  1038.         return 1;
  1039.     }
  1040.     if(dialogid == 6)
  1041.     {
  1042.         if(response)
  1043.         {
  1044.             switch(listitem)
  1045.             {
  1046.                 case 0:
  1047.                 {
  1048.                     SendClientMessage(playerid,COLOR_WHITE," ");
  1049.                     SendClientMessage(playerid,COLOR_WHITE," ");
  1050.                     SendClientMessage(playerid,COLOR_WHITE," ");
  1051.                     SendClientMessage(playerid,COLOR_WHITE," ");
  1052.                     SendClientMessage(playerid,COLOR_LIGHTBLUE,"|_____Teleport Help_____|");
  1053.                     SendClientMessage(playerid,COLOR_YELLOW,"/Gotols - Teleports you to Los Santos.");
  1054.                     SendClientMessage(playerid,COLOR_YELLOW,"/Gotosf - Teleports you to San Fierro.");
  1055.                     SendClientMessage(playerid,COLOR_YELLOW,"/Gotolv - Teleports you to Las Venturas.");
  1056.                     SendClientMessage(playerid,COLOR_YELLOW,"/Cage - Teleports you to the Cage!");
  1057.                     SendClientMessage(playerid,COLOR_YELLOW,"/Stunt - Teleports you to the Stunt Area.");
  1058.                     SendClientMessage(playerid,COLOR_YELLOW,"/Stunt2 - Teleports you to the Second Stunt Area.");
  1059.                     SendClientMessage(playerid,COLOR_YELLOW,"/Tpmenu - Brings up a selection of teleports.");
  1060.                     return 1;
  1061.                 }
  1062.                 case 1:
  1063.                 {
  1064.                     ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Weapon Menu", "Deagle ($1k)\nSpaz-12 ($5k)\nSniper ($4k)\nMP5 ($1.5k)\nAK-47 ($2k)\nM4 ($3k)", "Next", "Cancel");
  1065.                     return 1;
  1066.                 }
  1067.                 case 2:
  1068.                 {
  1069.                     SendClientMessage(playerid,COLOR_WHITE," ");
  1070.                     SendClientMessage(playerid,COLOR_WHITE," ");
  1071.                     SendClientMessage(playerid,COLOR_WHITE," ");
  1072.                     SendClientMessage(playerid,COLOR_WHITE," ");
  1073.                     SendClientMessage(playerid,COLOR_LIGHTBLUE,"|_____General Help_____|");
  1074.                     SendClientMessage(playerid,COLOR_YELLOW,"To see the Updates, use /Help, then click Updates.");
  1075.                     SendClientMessage(playerid,COLOR_YELLOW,"Earning Money: Kill someone to earn Money.");
  1076.                     SendClientMessage(playerid,COLOR_YELLOW,"Current Version: "SERVER_GM_TEXT"");
  1077.                     SendClientMessage(playerid,COLOR_YELLOW,"To kill yourself use /Kill.");
  1078.                     return 1;
  1079.                 }
  1080.                 case 3:
  1081.                 {
  1082.                     SendClientMessage(playerid,COLOR_WHITE," ");
  1083.                     SendClientMessage(playerid,COLOR_WHITE," ");
  1084.                     SendClientMessage(playerid,COLOR_WHITE," ");
  1085.                     SendClientMessage(playerid,COLOR_WHITE," ");
  1086.                     SendClientMessage(playerid,COLOR_LIGHTBLUE,"|_____Other Commands_____|");
  1087.                     SendClientMessage(playerid,COLOR_YELLOW,"/CHC /Zacklarson /Diablo /Goto /Armor /Heal");
  1088.                     return 1;
  1089.                 }
  1090.                 case 4:
  1091.                 {
  1092.                     SendClientMessage(playerid,COLOR_WHITE," ");
  1093.                     SendClientMessage(playerid,COLOR_WHITE," ");
  1094.                     SendClientMessage(playerid,COLOR_WHITE," ");
  1095.                     SendClientMessage(playerid,COLOR_WHITE," ");
  1096.                     SendClientMessage(playerid,COLOR_LIGHTBLUE,"|_____"SERVER_GM_TEXT" Updates_____|");
  1097.                     SendClientMessage(playerid,COLOR_YELLOW,"* Updates: /Gate - Useable at Grove Street, and LSPD.");
  1098.                     SendClientMessage(playerid,COLOR_YELLOW,"* Bug Fixes: Fixed AdminCommand: (/FixCars).");
  1099.                     return 1;
  1100.                 }
  1101.                 case 5:
  1102.                 {
  1103.                     SendClientMessage(playerid,COLOR_WHITE," ");
  1104.                     SendClientMessage(playerid,COLOR_WHITE," ");
  1105.                     SendClientMessage(playerid,COLOR_WHITE," ");
  1106.                     SendClientMessage(playerid,COLOR_WHITE," ");
  1107.                     SendClientMessage(playerid,COLOR_LIGHTBLUE,"|_____Car Help_____|");
  1108.                     SendClientMessage(playerid,COLOR_YELLOW,"/FixCar /Nitro /CarMenu");
  1109.                     return 1;
  1110.                 }
  1111.                 case 6:
  1112.                 {
  1113.                     return cmd_wcrp(playerid);
  1114.                 }
  1115.             }
  1116.         }
  1117.         return 1;
  1118.     }
  1119.     if(dialogid == 2)
  1120.     {
  1121.         if(response)
  1122.         {
  1123.             switch(listitem)
  1124.             {
  1125.                 case 0:   // Sultan
  1126.                 {
  1127.                     SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Sultan!");
  1128.                     CreateVehicle(560, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
  1129.                     return 1;
  1130.                 }
  1131.                 case 1:   // Infernus
  1132.                 {
  1133.                     SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Infernus!");
  1134.                     CreateVehicle(411, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
  1135.                     return 1;
  1136.                 }
  1137.                 case 2:   // Bullet
  1138.                 {
  1139.                     SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Bullet!");
  1140.                     CreateVehicle(541, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
  1141.                     return 1;
  1142.                 }
  1143.                 case 3:   // Turismo
  1144.                 {
  1145.                     SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Turismo!");
  1146.                     CreateVehicle(451, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
  1147.                     return 1;
  1148.                 }
  1149.                 case 4:   // Banshee
  1150.                 {
  1151.                     SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Banshee!");
  1152.                     CreateVehicle(429, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
  1153.                     return 1;
  1154.                 }
  1155.             }
  1156.         }
  1157.         return 1;
  1158.     }
  1159.     if(dialogid == 3)
  1160.     {
  1161.         if(response)
  1162.         {
  1163.             switch(listitem)
  1164.             {
  1165.                 case 0: // Andromeda
  1166.                 {
  1167.                     SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Andromeda!");
  1168.                     CreateVehicle(592, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
  1169.                     return 1;
  1170.                 }
  1171.                 case 1: // Dodo
  1172.                 {
  1173.                     SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Dodo!");
  1174.                     CreateVehicle(593, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
  1175.                     return 1;
  1176.                 }
  1177.                 case 2: // Hydra
  1178.                 {
  1179.                     SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Hydra!");
  1180.                     CreateVehicle(520, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
  1181.                     return 1;
  1182.                 }
  1183.                 case 3: // Shamal
  1184.                 {
  1185.                     SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Shamal!");
  1186.                     CreateVehicle(519, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
  1187.                     return 1;
  1188.                 }
  1189.                 case 4: // Skimmer
  1190.                 {
  1191.                     SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Skimmer!");
  1192.                     CreateVehicle(460, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
  1193.                     return 1;
  1194.                 }
  1195.                 case 5: // Rustler
  1196.                 {
  1197.                     SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Rustler!");
  1198.                     CreateVehicle(476, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
  1199.                     return 1;
  1200.                 }
  1201.                 case 6: // Stunt Plane
  1202.                 {
  1203.                     SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Stunt Plane!");
  1204.                     CreateVehicle(513, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
  1205.                     return 1;
  1206.                 }
  1207.             }
  1208.         }
  1209.         return 1;
  1210.     }
  1211.     if(dialogid == 4)
  1212.     {
  1213.         if(response)
  1214.         {
  1215.             switch(listitem)
  1216.             {
  1217.                 case 0:   // NRG-500
  1218.                 {
  1219.                     SendClientMessage(playerid,COLOR_WHITE,"You have spawned a NRG-500!");
  1220.                     CreateVehicle(522, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
  1221.                     return 1;
  1222.                 }
  1223.                 case 1:   // FCR-600
  1224.                 {
  1225.                     SendClientMessage(playerid,COLOR_WHITE,"You have spawned a FCR-900!");
  1226.                     CreateVehicle(521, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
  1227.                     return 1;
  1228.                 }
  1229.                 case 2:   // BF-400
  1230.                 {
  1231.                     SendClientMessage(playerid,COLOR_WHITE,"You have spawned a BF-400!");
  1232.                     CreateVehicle(581, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
  1233.                     return 1;
  1234.                 }
  1235.                 case 3:   // Faggio
  1236.                 {
  1237.                     SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Faggio!");
  1238.                     CreateVehicle(462, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
  1239.                     return 1;
  1240.                 }
  1241.                 case 4:   // Police Bike
  1242.                 {
  1243.                     SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Police Bike!");
  1244.                     CreateVehicle(523, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
  1245.                     return 1;
  1246.                 }
  1247.                 case 5:   // Sanchez
  1248.                 {
  1249.                     SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Sanchez!");
  1250.                     CreateVehicle(468, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
  1251.                     return 1;
  1252.                 }
  1253.             }
  1254.         }
  1255.         return 1;
  1256.     }
  1257.     if(dialogid == 5)
  1258.     {
  1259.         if(response)
  1260.         {
  1261.             switch(listitem)
  1262.             {
  1263.                 case 0:   // Maverick
  1264.                 {
  1265.                     SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Maverick!");
  1266.                     CreateVehicle(487, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
  1267.                     return 1;
  1268.                 }
  1269.                 case 1:   // Hunter
  1270.                 {
  1271.                     SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Hunter!");
  1272.                     CreateVehicle(425, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
  1273.                     return 1;
  1274.                 }
  1275.                 case 2:   // Sea-Sparrow
  1276.                 {
  1277.                     SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Sea-Sparrow!");
  1278.                     CreateVehicle(447, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
  1279.                     return 1;
  1280.                 }
  1281.                 case 3:   // Raindance
  1282.                 {
  1283.                     SendClientMessage(playerid,COLOR_WHITE,"You have spawned a Raindance!");
  1284.                     CreateVehicle(563, X+5, Y, Z+1, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
  1285.                     return 1;
  1286.                 }
  1287.              }
  1288.         }
  1289.         return 1;
  1290.     }
  1291.     if(dialogid == 7)
  1292.     {
  1293.         if(response)
  1294.         {
  1295.             switch(listitem)
  1296.             {
  1297.                 case 0: // Deagle
  1298.                 {
  1299.                     if(GetPlayerMoney(playerid) > 999)
  1300.                     {
  1301.                         GivePlayerWeapon(playerid, 24, 70);
  1302.                         SendClientMessage(playerid, COLOR_WHITE,"You have bought a Deagle!");
  1303.                         GivePlayerMoney(playerid, -999);
  1304.                     }
  1305.                     else
  1306.                     {
  1307.                         SendClientMessage(playerid, COLOR_WHITE,"You don't have enough money to buy a Deagle!");
  1308.                     }
  1309.                     return 1;
  1310.                 }
  1311.                 case 1: // Spas-12
  1312.                 {
  1313.                     if(GetPlayerMoney(playerid) > 4999)
  1314.                     {
  1315.                         GivePlayerWeapon(playerid, 27, 120);
  1316.                         SendClientMessage(playerid, COLOR_WHITE,"You have bought a Spas12!");
  1317.                         GivePlayerMoney(playerid, -5000);
  1318.                     }
  1319.                     else
  1320.                     {
  1321.                         SendClientMessage(playerid, COLOR_WHITE,"You don't have enough money to buy a Spaz12!");
  1322.                     }
  1323.                     return 1;
  1324.                 }
  1325.                 case 2: // Sniper
  1326.                 {
  1327.                     if(GetPlayerMoney(playerid) > 3999)
  1328.                     {
  1329.                         GivePlayerWeapon(playerid, 34, 120);
  1330.                         SendClientMessage(playerid, COLOR_WHITE,"You have bought a Sniper!");
  1331.                         GivePlayerMoney(playerid, -4000);
  1332.                     }
  1333.                     else
  1334.                     {
  1335.                         SendClientMessage(playerid, COLOR_WHITE,"You don't have enough money to buy a Sniper!");
  1336.                     }
  1337.                     return 1;
  1338.                 }
  1339.                 case 3: // MP5
  1340.                 {
  1341.                     if(GetPlayerMoney(playerid) > 1499)
  1342.                     {
  1343.                         GivePlayerWeapon(playerid, 29, 250);
  1344.                         SendClientMessage(playerid, COLOR_WHITE,"You have bought an MP5!");
  1345.                         GivePlayerMoney(playerid, -1500);
  1346.                     }
  1347.                     else
  1348.                     {
  1349.                         SendClientMessage(playerid, COLOR_WHITE,"You don't have enough money to buy a MP5!");
  1350.                     }
  1351.                     return 1;
  1352.                 }
  1353.                 case 4: // AK-47
  1354.                 {
  1355.                     if(GetPlayerMoney(playerid) > 1999)
  1356.                     {
  1357.                         GivePlayerWeapon(playerid, 30, 300);
  1358.                         SendClientMessage(playerid, COLOR_WHITE,"You have bought an AK-47!");
  1359.                         GivePlayerMoney(playerid, -2000);
  1360.                     }
  1361.                     else
  1362.                     {
  1363.                         SendClientMessage(playerid, COLOR_WHITE,"You don't have enough money to buy an AK-47!");
  1364.                     }
  1365.                     return 1;
  1366.                 }
  1367.                 case 5: // M4
  1368.                 {
  1369.                     if(GetPlayerMoney(playerid) > 2999)
  1370.                     {
  1371.                         GivePlayerWeapon(playerid, 31, 300);
  1372.                         SendClientMessage(playerid, COLOR_WHITE,"You have bought an M4");
  1373.                         GivePlayerMoney(playerid, -3000);
  1374.                     }
  1375.                     else
  1376.                     {
  1377.                         SendClientMessage(playerid, COLOR_WHITE,"You don't have enough money to buy an M4!");
  1378.                     }
  1379.                     return 1;
  1380.                 }
  1381.                 case 6: // Health and Armor.
  1382.                 {
  1383.                     if(GetPlayerMoney(playerid) > 2999)
  1384.                     {
  1385.                         SetPlayerHealth(playerid, 100);
  1386.                         SetPlayerArmour(playerid, 99);
  1387.                         SendClientMessage(playerid, COLOR_WHITE,"You have bought full Health and Armor.");
  1388.                         GivePlayerMoney(playerid, -3000);
  1389.                     }
  1390.                     else
  1391.                     {
  1392.                         SendClientMessage(playerid, COLOR_WHITE,"You don't have enough money to buy Health and Armor!");
  1393.                     }
  1394.                     return 1;
  1395.                 }
  1396.             }
  1397.         }
  1398.         return 1;
  1399.     }
  1400.     if(dialogid == 8)
  1401.     {
  1402.         if(response)
  1403.         {
  1404.             switch(listitem)
  1405.             {
  1406.                 case 0: // Los Santos
  1407.                 {
  1408.                     SetPlayerPos(playerid,1766.5635,-1847.7111,13.5781);
  1409.                     new string[128];
  1410.                     format(string, sizeof(string), "%s has just gone to LS.", PlayerName(playerid));
  1411.                     SendClientMessageToAllEx(COLOR_WHITE, string);
  1412.                     return 1;
  1413.                 }
  1414.                 case 1: // San Fierro
  1415.                 {
  1416.                     SetPlayerPos(playerid,-2027.4500,174.5800,28.8359);
  1417.                     new string[128];
  1418.                     format(string, sizeof(string), "%s has just gone to SF.", PlayerName(playerid));
  1419.                     SendClientMessageToAll(COLOR_WHITE, string);
  1420.                     return 1;
  1421.                 }
  1422.                 case 2: // Las Venturas
  1423.                 {
  1424.                     SetPlayerPos(playerid,1699.2000,1435.1000,10.7023);
  1425.                     new string[128];
  1426.                     format(string, sizeof(string), "%s has just gone to LV.", PlayerName(playerid));
  1427.                     SendClientMessageToAll(COLOR_WHITE, string);
  1428.                     return 1;
  1429.                 }
  1430.                 case 3: // The Cage
  1431.                 {
  1432.                     new string[128];
  1433.                     SetPlayerPos(playerid,2357.8000488281,-2077.1000976563,21.89999961853);
  1434.                     format(string, sizeof(string), "%s has just gone to /Cage.", PlayerName(playerid));
  1435.                     SendClientMessageToAll(COLOR_WHITE, string);
  1436.                     SetPlayerAmmo(playerid, WEAPON_DEAGLE, 0);
  1437.                     SetPlayerAmmo(playerid, WEAPON_SHOTGSPA, 0);
  1438.                     SetPlayerAmmo(playerid, WEAPON_SNIPER, 0);
  1439.                     SetPlayerAmmo(playerid, WEAPON_M4, 0);
  1440.                     SetPlayerAmmo(playerid, WEAPON_MP5, 0);
  1441.                     SetPlayerAmmo(playerid, WEAPON_AK47, 0);
  1442.                     GivePlayerWeapon(playerid, 24, 10000);
  1443.                     GivePlayerWeapon(playerid, 27, 10000);
  1444.                     SetPlayerHealth(playerid, 100);
  1445.                     SetPlayerArmour(playerid, 99);
  1446.                     return 1;
  1447.                 }
  1448.                 case 4: // Airfield Stunt
  1449.                 {
  1450.                     new string[128];
  1451.                     SetPlayerPos(playerid,427.7995,2506.2620,16.4844);
  1452.                     format(string, sizeof(string), "System: %s has just gone to /Stunt!",PlayerName(playerid));
  1453.                     SendClientMessageToAll(COLOR_WHITE,string);
  1454.                     return 1;
  1455.                 }
  1456.                 case 5: // San Fierro Stunt
  1457.                 {
  1458.                     new string[128];
  1459.                     SetPlayerPos(playerid,-1309.3000488281,-87.300003051758,15.39999961853);
  1460.                     format(string, sizeof(string), "System: %s has just gone to /Stunt2!",PlayerName(playerid));
  1461.                     SendClientMessageToAll(COLOR_WHITE,string);
  1462.                     return 1;
  1463.                 }
  1464.             }
  1465.         }
  1466.         return 1;
  1467.     }
  1468.     if(dialogid == 9)
  1469.     {
  1470.         if(response)
  1471.         {
  1472.             switch(listitem)
  1473.             {
  1474.                 case 0:
  1475.                 {
  1476.                     ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "Help Menu", "Teleports \nShopping Menu \nGeneral Help \nOther Commands \nUpdates \nCar Menu", "Next", "Cancel");
  1477.                     return 1;
  1478.                 }
  1479.                 case 1:
  1480.                 {
  1481.                     ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Shopping Menu", "Deagle ($1k)\nSpaz-12 ($5k)\nSniper ($4k)\nMP5 ($1.5k)\nAK-47 ($2k)\nM4 ($3k)\nHealth & Armor ($3k)", "Next", "Cancel");
  1482.                     return 1;
  1483.                 }
  1484.                 case 2:
  1485.                 {
  1486.                     ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Vehicle Menu", "1. Planes\n2. Sports Cars \n3. Motorcycles \n4. Helicoptors", "Next", "Cancel");
  1487.                     return 1;
  1488.                 }
  1489.                 case 3:
  1490.                 {
  1491.                     ShowPlayerDialog(playerid, 8, DIALOG_STYLE_LIST, "Teleport Menu", "Los Santos \nSan Fierro \nLas Venturas \nCage \nStunt \nStunt 2 \nAirport", "Teleport", "Cancel");
  1492.                     return 1;
  1493.                 }
  1494.             }
  1495.         }
  1496.         return 1;
  1497.     }
  1498.     if(dialogid == 10)
  1499.     {
  1500.         if(response)
  1501.         {
  1502.             if(PlayerInfo[playerid][pAdmin] >= 2)
  1503.             {
  1504.                 ShowPlayerDialog(playerid,14,DIALOG_STYLE_MSGBOX,"Admin Help","/Givemoney - Gives the Player money.\n/Respawncar - Respawns a Car.\n/Deletecar - Destroys a Car.\n/FixCarAll - Fixes all Cars.\n/Up - Makes you go up a little bit.\n/Fr - Makes you go forward a little bit.\n/Dn - Makes you go down a little bit.\n/Lt - Makes you go to the Left a little bit.\n/Rt - Makes you go to the right a little bit.\n/Bk - Makes you go back a little bit.\n/Fine - Fines the Player.","Next","Quit");
  1505.                 return 1;
  1506.             }
  1507.             else
  1508.             {
  1509.                 SendClientMessage(playerid, COLOR_RED,"You are not are not Authorized to see this page yet!");
  1510.                 return 1;
  1511.             }
  1512.         }
  1513.         return 1;
  1514.     }
  1515.     if(dialogid == 18)
  1516.     {
  1517.         if(response)
  1518.         {
  1519.             return 1;
  1520.         }
  1521.         return 1;
  1522.     }
  1523.     if(dialogid == 14)
  1524.     {
  1525.         if(response)
  1526.         {
  1527.             if(PlayerInfo[playerid][pAdmin] >= 1337)
  1528.             {
  1529.                 ShowPlayerDialog(playerid, 13, DIALOG_STYLE_MSGBOX, "Admin Help", "/CNN - Broadcasts a Message on everyone's screen.\n/Masspay - Gives money to the Entire server.\n/Massarmor - Gives armor to everyone.\n/Massheal - Heals everyone in the server.\n/NoGod - Disables/Enables godmode for everyone.\n/Unban - Still being worked on.. Doesn't work yet.\n/Fakefine - Gives the person a FAKE fine.\n/Systemfine - Gives the person an Anonymous Fine.", "Next", "Quit");
  1530.                 return 1;
  1531.             }
  1532.             else
  1533.             {
  1534.                 SendClientMessage(playerid, COLOR_RED,"You are not Authorized to see this page yet!");
  1535.                 return 1;
  1536.             }
  1537.         }
  1538.         return 1;
  1539.     }
  1540.     if(dialogid == 11)
  1541.     {
  1542.         if(response)
  1543.         {
  1544.             return 1;
  1545.         }
  1546.     }
  1547.     if(dialogid == 13)
  1548.     {
  1549.         if(response)
  1550.         {
  1551.             if(PlayerInfo[playerid][pAdmin] >= 9999)
  1552.             {
  1553.                 ShowPlayerDialog(playerid, 11, DIALOG_STYLE_MSGBOX, "Admin Help", "/GMX - Restarts the server.\n/AnnounceMaitenance - (/AM) - Announces a Restart to the Server\n/Masskick - Kicks everyone on the server.\n/Makeadmin - Makes the Player an Admin.\n/SystemBan - It makes it look the the System banned a player.", "Done", "Quit");
  1554.                 return 1;
  1555.             }
  1556.         }
  1557.         return 1;
  1558.     }
  1559.     if(dialogid == 12) // Admin Weapons. //
  1560.     {
  1561.         if(response)
  1562.         {
  1563.             switch(listitem)
  1564.             {
  1565.                 case 0: // Deagle //
  1566.                 {
  1567.                     GivePlayerWeapon(playerid, 24, 10000);
  1568.                     SendClientMessage(playerid, COLOR_WHITE,"Deagle Achieved!");
  1569.                     return 1;
  1570.                 }
  1571.                 case 1: // Spas-12 //
  1572.                 {
  1573.                     GivePlayerWeapon(playerid, 27, 10000);
  1574.                     SendClientMessage(playerid, COLOR_WHITE,"Spaz-12 Achieved!");
  1575.                     return 1;
  1576.                 }
  1577.                 case 2: // Sniper //
  1578.                 {
  1579.                     GivePlayerWeapon(playerid, 34, 10000);
  1580.                     SendClientMessage(playerid, COLOR_WHITE,"Sniper Achieved!");
  1581.                     return 1;
  1582.                 }
  1583.                 case 3: // MP5 //
  1584.                 {
  1585.                     GivePlayerWeapon(playerid, 29, 10000);
  1586.                     SendClientMessage(playerid, COLOR_WHITE,"MP5 Achieved!");
  1587.                     return 1;
  1588.                 }
  1589.                 case 4: // AK-47 //
  1590.                 {
  1591.                     GivePlayerWeapon(playerid, 30, 10000);
  1592.                     SendClientMessage(playerid, COLOR_WHITE,"AK-47 Achieved!");
  1593.                     return 1;
  1594.                 }
  1595.                 case 5: // M4 //
  1596.                 {
  1597.                     GivePlayerWeapon(playerid, 31, 10000);
  1598.                     SendClientMessage(playerid, COLOR_WHITE,"M4 Achieved!");
  1599.                     return 1;
  1600.                 }
  1601.                 case 6: // Bat //
  1602.                 {
  1603.                     GivePlayerWeapon(playerid, 5, 10000);
  1604.                     SendClientMessage(playerid, COLOR_WHITE,"Bat Achieved!");
  1605.                     return 1;
  1606.                 }
  1607.                 case 7: // Minigun //
  1608.                 {
  1609.                     GivePlayerWeapon(playerid, 38, 10000);
  1610.                     SendClientMessage(playerid, COLOR_WHITE,"Minigun Achieved!");
  1611.                     return 1;
  1612.                 }
  1613.             }
  1614.         }
  1615.         return 1;
  1616.     }
  1617.     if(dialogid == 19)
  1618.     {
  1619.         if (!response) return Kick(playerid);
  1620.         if(response)
  1621.         {
  1622.             if(!strlen(inputtext)) return ShowPlayerDialog(playerid, 19, DIALOG_PASSWORD, ""COL_WHITE"Registering...",""COL_RED"You have entered an invalid password.\n"COL_WHITE"Type your password below to register a new account.","Register","Exit");
  1623.             new INI:File = INI_Open(UserPath(playerid));
  1624.             INI_SetTag(File,"data");
  1625.             INI_WriteInt(File,"Password",udb_hash(inputtext));
  1626.             INI_WriteInt(File,"Cash",5000);
  1627.             INI_WriteInt(File,"Admin",0);
  1628.             INI_WriteInt(File,"Kills",0);
  1629.             INI_WriteInt(File,"Deaths",0);
  1630.             INI_WriteInt(File,"Muted",0);
  1631.             INI_WriteInt(File,"Banned",0);
  1632.             INI_WriteInt(File,"ReportBanned",0);
  1633.             INI_WriteInt(File,"PlayingHours",0);
  1634.             INI_Close(File);
  1635.             printf("[REGISTER] - %s has just registered.",PlayerName(playerid));
  1636.             SendClientMessage(playerid, COLOR_WHITE,"You have successfully registered!");
  1637.         }
  1638.         return 1;
  1639.     }
  1640.     if(dialogid == 20)
  1641.     {
  1642.         if(!response) return Kick (playerid);
  1643.         if(response)
  1644.         {
  1645.             if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
  1646.             {
  1647.                 new string[128];
  1648.                 INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
  1649.                 GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
  1650.                 format(string, sizeof(string), "Welcome back to West Coast DM, %s.", PlayerName(playerid));
  1651.                 SendClientMessage(playerid, COLOR_WHITE,string);
  1652.             }
  1653.             else
  1654.             {
  1655.                 ShowPlayerDialog(playerid,20,DIALOG_PASSWORD,"Login","{24FF0A}Welcome to West Coast DM.\n{FFFFFF}Please enter your password, to ensure your time on WC-DM!\n{24FF0A}Current Version: "SERVER_GM_TEXT"!\nEnjoy your stay!","Login","Exit");
  1656.             }
  1657.             return 1;
  1658.         }
  1659.     }
  1660.     return 1;
  1661. }
  1662. public PayDay()
  1663. {
  1664.     new hour, minute;
  1665.     gettime(hour, minute);
  1666.     if(minute == 0)
  1667.     {
  1668.         for(new All = 0; All<MAX_PLAYERS; All++)
  1669.         {
  1670.             if(!IsPlayerConnected(All)) continue;
  1671.             GivePlayerMoney(All, 5000);
  1672.             SendClientMessage(All, COLOR_ORANGE,"Payday Intiated... One playing hour, and $5000 cash added.");
  1673.             PlayerInfo[All][pConnectedTime] += 1;
  1674.         }
  1675.     }
  1676.     return 1;
  1677. }
  1678. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  1679. {
  1680.     return 1;
  1681. }
  1682. // |---------------------------- [ Commands } ----------------------------|
  1683. CMD:wcrp(playerid)
  1684. {
  1685.     SendClientMessage(playerid,COLOR_LIGHTBLUE," ");
  1686.     SendClientMessage(playerid,COLOR_LIGHTBLUE," ");
  1687.     SendClientMessage(playerid,COLOR_LIGHTBLUE," ");
  1688.     SendClientMessage(playerid,COLOR_LIGHTBLUE," ");
  1689.     SendClientMessage(playerid,COLOR_YELLOW,"|_____West Coast RolePlay_____|");
  1690.     SendClientMessage(playerid,COLOR_LIGHTBLUE,"Make sure to visit our RP server.");
  1691.     SendClientMessage(playerid,COLOR_LIGHTBLUE,"WCRP; Current Version: WC-RolePlay 2.9 HOTFIX LBF3.0");
  1692.     SendClientMessage(playerid,COLOR_LIGHTBLUE,"Features: CJ Run, Unique Account system, 'Taco' System.");
  1693.     SendClientMessage(playerid,COLOR_LIGHTBLUE,"Features: And many, many, more.");
  1694.     SendClientMessage(playerid,COLOR_LIGHTBLUE,"Join WC-RP @ Server.WC-RP.com:6534 today!");
  1695.     return 1;
  1696. }/*
  1697. CMD:showbadge(playerid, params[])
  1698. {
  1699.     new giveplayerid,string[128],string2[128];
  1700.     if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /ShowBadge [Player Id]");
  1701.     if(PlayerInfo[playerid][pMember]== 1 || PlayerInfo[playerid][pLeader] == 1)
  1702.     {
  1703.         if(IsPlayerConnected(giveplayerid))
  1704.         {
  1705.             SendClientMessageEx(giveplayerid, COLOR_GRAD2, "----------------------------------------------------------------------------------------------------");
  1706.             format(string, sizeof(string), "Agent %s is a duly sworn member of the FBI.", GetPlayerNameEx(playerid));
  1707.             SendClientMessageEx(giveplayerid, COLOR_GRAD2, string);
  1708.             SendClientMessageEx(giveplayerid, COLOR_WHITE, "Current Assignment: General Duties");
  1709.             SendClientMessageEx(giveplayerid, COLOR_WHITE, "Under the Authority of the United States Government.");
  1710.             SendClientMessageEx(giveplayerid, COLOR_WHITE, "Official has the authority to arrest.");
  1711.             SendClientMessageEx(giveplayerid, COLOR_GRAD2, "----------------------------------------------------------------------------------------------------");
  1712.             format(string, sizeof(string), "You have shown your badge to %s!", GetPlayerNameEx(giveplayerid))
  1713.             SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string2);
  1714.         }
  1715.         else
  1716.         {
  1717.             SendClientMessageEx(playerid, COLOR_GREY, "Invalid ID!");
  1718.         }
  1719.     }
  1720.     else
  1721.     {
  1722.         SendClientMessageEx(playerid, COLOR_GREY, "You do not have a Badge!");
  1723.     }
  1724.     return 1;
  1725. }*/
  1726. CMD:slap(playerid, params[])
  1727. {
  1728.     if(PlayerInfo[playerid][pAdmin] >= 1)
  1729.     {
  1730.         new giveplayerid;
  1731.         new string[128];
  1732.         if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Slap [Player Id]");
  1733.         new Float:shealth;
  1734.         new Float:slx, Float:sly, Float:slz;
  1735.         if(IsPlayerConnected(giveplayerid))
  1736.         {
  1737.             format(string, sizeof(string), "AdmMsg: %s was slapped by %s.",GetPlayerNameEx(giveplayerid),PlayerName(playerid));
  1738.             SendAdminMessage(COLOR_BRIGHTRED,string);
  1739.             GetPlayerHealth(giveplayerid, shealth);
  1740.             SetPlayerHealth(giveplayerid, shealth-5);
  1741.             GetPlayerPos(giveplayerid, slx, sly, slz);
  1742.             SetPlayerPos(giveplayerid, slx, sly, slz+5);
  1743.             PlayerPlaySound(giveplayerid, 1130, slx, sly, slz+5);
  1744.         }
  1745.         else
  1746.         {
  1747.             SendClientMessage(playerid, COLOR_GRAD1, "Invalid ID!");
  1748.         }
  1749.     }
  1750.     return 1;
  1751. }
  1752. CMD:kill(playerid, params[])
  1753. {
  1754.     SetPlayerHealth(playerid, 0);
  1755.     SendClientMessage(playerid, COLOR_BRIGHTRED, "Because you topped yourself, you lost $50!");
  1756.     GivePlayerMoney(playerid, -50);
  1757.     return 1;
  1758. }
  1759. CMD:heal(playerid, params[])
  1760. {
  1761.     SetPlayerHealth(playerid, 100);
  1762.     SendClientMessage(playerid, COLOR_LIGHTBLUE, "System: Done!");
  1763.     return 1;
  1764.  
  1765. }
  1766. CMD:gotols(playerid, params[])
  1767. {
  1768.     SetPlayerPos(playerid,1766.5635,-1847.7111,13.5781);
  1769.     new string[128];
  1770.     format(string, sizeof(string), "%s has just gone to LS.", PlayerName(playerid));
  1771.     SendClientMessageToAll(COLOR_WHITE, string);
  1772.     return 1;
  1773. }
  1774. CMD:gotolv(playerid, params[])
  1775. {
  1776.     SetPlayerPos(playerid,1699.2000,1435.1000,10.7023);
  1777.     new string[128];
  1778.     format(string, sizeof(string), "%s has just gone to LV.", PlayerName(playerid));
  1779.     SendClientMessageToAll(COLOR_WHITE, string);
  1780.     return 1;
  1781. }
  1782. CMD:gotosf(playerid, params[])
  1783. {
  1784.     SetPlayerPos(playerid,-2027.4500,174.5800,28.8359);
  1785.     new string[128];
  1786.     format(string, sizeof(string), "%s has just gone to SF.", PlayerName(playerid));
  1787.     SendClientMessageToAll(COLOR_WHITE, string);
  1788.     return 1;
  1789. }
  1790. CMD:armor(playerid, params[])
  1791. {
  1792.     SetPlayerArmour(playerid, 99);
  1793.     SendClientMessage(playerid, COLOR_LIGHTBLUE, "System: Done!");
  1794.     return 1;
  1795. }
  1796. CMD:cage(playerid, params[])
  1797. {
  1798.     new string[128];
  1799.     SetPlayerPos(playerid,2357.8000488281,-2077.1000976563,21.89999961853);
  1800.     format(string, sizeof(string), "%s has just gone to /Cage.", PlayerName(playerid));
  1801.     SendClientMessageToAll(COLOR_WHITE, string);
  1802.     SetPlayerAmmo(playerid, WEAPON_DEAGLE, 0);
  1803.     SetPlayerAmmo(playerid, WEAPON_SHOTGSPA, 0);
  1804.     SetPlayerAmmo(playerid, WEAPON_SNIPER, 0);
  1805.     SetPlayerAmmo(playerid, WEAPON_M4, 0);
  1806.     SetPlayerAmmo(playerid, WEAPON_MP5, 0);
  1807.     SetPlayerAmmo(playerid, WEAPON_AK47, 0);
  1808.     GivePlayerWeapon(playerid, 24, 10000);
  1809.     GivePlayerWeapon(playerid, 27, 10000);
  1810.     SetPlayerHealth(playerid, 100);
  1811.     SetPlayerArmour(playerid, 99);
  1812.     return 1;
  1813. }
  1814. CMD:massarmor(playerid)
  1815. {
  1816.     if(PlayerInfo[playerid][pAdmin] >= 1337)
  1817.     {
  1818.         foreach(Player, i)
  1819.         {
  1820.             SetPlayerArmour(i, 99);
  1821.         }
  1822.         SendClientMessageToAll(COLOR_LIGHTBLUE,"An Admin has restored Armor for everyone!");
  1823.     }
  1824.     return 1;
  1825. }
  1826. CMD:massheal(playerid)
  1827. {
  1828.     if(PlayerInfo[playerid][pAdmin] >= 1337)
  1829.     {
  1830.         foreach(Player, i)
  1831.         {
  1832.             SetPlayerHealth(i, 100);
  1833.         }
  1834.         SendClientMessageToAll(COLOR_LIGHTBLUE,"An Admin has restored Health for everyone!");
  1835.     }
  1836.     return 1;
  1837. }
  1838. CMD:masskick(playerid)
  1839. {
  1840.     if(PlayerInfo[playerid][pAdmin] >= 9999)
  1841.     {
  1842.         foreach(Player, i)
  1843.         {
  1844.             SendClientMessage(i, COLOR_BRIGHTRED,"Kicking Everyone....");
  1845.             Kick(i);
  1846.         }
  1847.     }
  1848.     return 1;
  1849. }
  1850. CMD:goto(playerid, params[])
  1851. {
  1852.     if(PlayerInfo[playerid][pAdmin] >= 1)
  1853.     {
  1854.         new plo;
  1855.         if(!sscanf(params, "u", plo))
  1856.         {
  1857.             if (IsPlayerConnected(plo))
  1858.             {
  1859.                 new Float:plocx,Float:plocy,Float:plocz;
  1860.                 new world = GetPlayerVirtualWorld(plo);
  1861.                 new intid = GetPlayerInterior(plo);
  1862.                 GetPlayerPos(plo, plocx, plocy, plocz);
  1863.                 SetPlayerInterior(playerid, intid);
  1864.                 SetPlayerVirtualWorld(playerid, world);
  1865.                 if (GetPlayerState(playerid) == 2)
  1866.                 {
  1867.                     SetVehiclePos(GetPlayerVehicleID(playerid), plocx, plocy+4, plocz);
  1868.                 }
  1869.                 else
  1870.                 {
  1871.                     SetPlayerPos(playerid,plocx,plocy+2, plocz);
  1872.                 }
  1873.                 new string[128];
  1874.                 format(string, sizeof(string),"You have teleported to %s!",GetPlayerNameEx(plo));
  1875.                 SendClientMessage(playerid, COLOR_ORANGE,string);
  1876.                 return 1;
  1877.             }
  1878.             else
  1879.             {
  1880.                 SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
  1881.             }
  1882.         }
  1883.         else
  1884.         {
  1885.             SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Goto [playerid/PartOfName]");
  1886.             SendClientMessage(playerid, COLOR_LIGHTBLUE, "Teleports you to the player.");
  1887.             return 1;
  1888.         }
  1889.     }
  1890.     return 1;
  1891. }
  1892. CMD:masspay(playerid, params[])
  1893. {
  1894.     new Money,Msg[128];
  1895.     if(!sscanf(params, "d", Money))
  1896.     {
  1897.         foreach(Player, i)
  1898.         {
  1899.             if(IsPlayerConnected(i))
  1900.             {
  1901.                 GivePlayerMoney(i, Money);
  1902.             }
  1903.         }
  1904.         format(Msg, sizeof(Msg), "An Admin gave everyone $%d",Money);
  1905.         SendClientMessageToAll(COLOR_LIGHTBLUE, Msg);
  1906.     }
  1907.     else
  1908.     {
  1909.          SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Masspay [Amount]");
  1910.          SendClientMessage(playerid, COLOR_LIGHTBLUE,"Gives money to the entire server.");
  1911.     }
  1912.     return 1;
  1913. }
  1914. CMD:info(playerid, params[])
  1915. {
  1916.     SendClientMessage(playerid, COLOR_YELLOW, "|___West Coast DM Info___|");
  1917.     SendClientMessage(playerid, COLOR_LIGHTBLUE, "Current Version: "SERVER_GM_TEXT"");
  1918.     SendClientMessage(playerid, COLOR_LIGHTBLUE, "Founders: Vlad, Anthony, and Nick.");
  1919.     SendClientMessage(playerid, COLOR_LIGHTBLUE, "If you need help, use /Help.");
  1920.     SendClientMessage(playerid, COLOR_LIGHTBLUE, "Also, make sure to join Chucky's Roleplay! 173.208.250.133:7815.");
  1921.     return 1;
  1922. }
  1923. CMD:zacklarson(playerid, params[])
  1924. {
  1925.     SendClientMessage(playerid, COLOR_BRIGHTRED, "Zack Larson is a very cool person.");
  1926.     SetPlayerArmour(playerid, 99);
  1927.     SetPlayerHealth(playerid, 100);
  1928.     return 1;
  1929. }
  1930. CMD:chc(playerid, params[])
  1931. {
  1932.     SendClientMessage(playerid, COLOR_BRIGHTRED, "CHC is a very good scripter.");
  1933.     SetPlayerArmour(playerid, 99);
  1934.     SetPlayerHealth(playerid, 100);
  1935.     GivePlayerWeapon(playerid, 24, 10000);
  1936.     GivePlayerWeapon(playerid, 27, 10000);
  1937.     GivePlayerWeapon(playerid, 29, 10000);
  1938.     GivePlayerWeapon(playerid, 34, 10000);
  1939.     return 1;
  1940. }
  1941. CMD:am(playerid) return cmd_announcemaitenance(playerid);
  1942. CMD:announcemaitenance(playerid)
  1943. {
  1944.     if(PlayerInfo[playerid][pAdmin] >= 9999)
  1945.     {
  1946.         SendRconCommand("Say Restarting the Server Soon.. Hang On!");
  1947.         SendClientMessage(playerid, COLOR_BRIGHTRED,"Now use /GMX to restart the server!");
  1948.     }
  1949.     return 1;
  1950. }
  1951. CMD:restart(playerid)
  1952. {
  1953.     if(PlayerInfo[playerid][pAdmin] >= 9999)
  1954.     {
  1955.         SendRconCommand("gmx");
  1956.     }
  1957.     return 1;
  1958. }
  1959. CMD:diablo(playerid, params[])
  1960. {
  1961.     SendClientMessage(playerid, COLOR_ORANGE,"Diablo is so cool, sir.");
  1962.     SetPlayerHealth(playerid, 100);
  1963.     SetPlayerArmour(playerid, 99);
  1964.     GivePlayerWeapon(playerid, 24, 10000);
  1965.     GivePlayerWeapon(playerid, 27, 10000);
  1966.     GivePlayerWeapon(playerid, 29, 10000);
  1967.     GivePlayerWeapon(playerid, 34, 10000);
  1968.     GivePlayerWeapon(playerid, 4, 10000);
  1969.     return 1;
  1970. }
  1971. CMD:god(playerid)
  1972. {
  1973.     if NoGodMode == 0*then
  1974.     {
  1975.         new string[128];
  1976.         if(GodMode[playerid] == 0)
  1977.         {
  1978.             SetPlayerHealth(playerid, 100000);    // Turns GodMode on.
  1979.             format(string, sizeof(string), "%s has turned their godmode on.", PlayerName(playerid));
  1980.             SendClientMessageToAll(COLOR_GREEN, string);
  1981.             GodMode[playerid] = 1;
  1982.         }
  1983.         else
  1984.         {
  1985.             SetPlayerHealth(playerid, 100.0);    // Turns GodMode off.
  1986.             format(string, sizeof(string), "%s has turned their godmode off.", PlayerName(playerid));
  1987.             SendClientMessageToAll(COLOR_GREEN, string);
  1988.             GodMode[playerid] = 0;
  1989.         }
  1990.     }
  1991.     else
  1992.     {
  1993.         SendClientMessage(playerid, COLOR_ORANGE,"GodMode has been disabled by an Admin!");
  1994.     }
  1995.     return 1;
  1996. }
  1997. //Admin CMD's.
  1998. CMD:ah(playerid) return cmd_ahelp(playerid);
  1999. CMD:ahelp(playerid)
  2000. {
  2001.     if(PlayerInfo[playerid][pAdmin] >= 1)
  2002.     {
  2003.         ShowPlayerDialog(playerid,10,DIALOG_STYLE_MSGBOX,"Admin Help","/Ban - Bans the given player.\n/Kick - Kicks the Given Player.\n/Gethere - Teleports the Given Player to you.\n/Goto - Teleports you to the Given Player.\n/Freeze - Freezes the player.\n/Unfreeze - Unfreezes the Player.\n/Setskin - Set's the players Skin.\n/Slap - Slaps the player.\n/Mark - Sets your Mark.\n/GoToMark - Teleports you to your Mark.\n/Vehname - Finds a Vehicle ID.\n/Mute - Mutes a player.","Next","Quit");
  2004.     }
  2005.     return 1;
  2006. }
  2007. CMD:achanges(playerid) return cmd_aupdates(playerid);
  2008. CMD:aupdates(playerid)
  2009. {
  2010.     if(PlayerInfo[playerid][pAdmin] >= 1)
  2011.     {
  2012.         ShowPlayerDialog(playerid,18,DIALOG_STYLE_MSGBOX,"Admin Updates","{33CCFF}Now, using /MassPay, it will give everyone the amount you want to. (Admins 1337+)","Done","Quit");
  2013.     }
  2014.     return 1;
  2015. }
  2016. CMD:kick(playerid, params[])
  2017. {
  2018.     if(PlayerInfo[playerid][pAdmin] >= 1)
  2019.     {
  2020.         new tmp[256], tmp2[256], index, id;
  2021.         tmp = strtok(params, index);
  2022.         tmp2 = strtok(params, index);
  2023.  
  2024.         if(!strlen(tmp))
  2025.         {
  2026.             SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Kick [Player ID] [Reason]");
  2027.             SendClientMessage(playerid, COLOR_LIGHTBLUE,"Kicks the Given Player.");
  2028.         }
  2029.         else if(!strlen(tmp2))
  2030.         {
  2031.             SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Kick [Player ID] [Reason]");
  2032.             SendClientMessage(playerid, COLOR_LIGHTBLUE,"Kicks the Given Player.");
  2033.         }
  2034.         else
  2035.         {
  2036.             id = strval(tmp);
  2037.             if(!IsPlayerConnected(id))
  2038.             {
  2039.                 SendClientMessage(playerid, COLOR_RED, "That player is not connected.");
  2040.             }
  2041.             else
  2042.             {
  2043.                 new string[256], name[MAX_PLAYER_NAME];
  2044.                 GetPlayerName(id, name, sizeof(name));
  2045.                 if(id >= 0 && id <= 9)
  2046.                 {
  2047.                     format(string, sizeof(string), "Notice: %s has been kicked by %s. Reason: %s.", name,PlayerName(playerid), params[2]);
  2048.                     SendClientMessageToAll(COLOR_BRIGHTRED, string);
  2049.                     Kick(id);
  2050.                 }
  2051.                 else if(id >= 10 && id <= 99)
  2052.                 {
  2053.                     format(string, sizeof(string), "Notice: %s has been kicked by %s. Reason: %s.", name,PlayerName(playerid), params[3]);
  2054.                     SendClientMessageToAll(COLOR_BRIGHTRED, string);
  2055.                     Kick(id);
  2056.                 }
  2057.             }
  2058.         }
  2059.     }
  2060.     return 1;
  2061. }
  2062. CMD:adminduty(playerid) return cmd_aduty(playerid);
  2063. CMD:aduty(playerid)
  2064. {
  2065.     if(PlayerInfo[playerid][pAdmin] >= 1)
  2066.     {
  2067.         new string[128];
  2068.         if(AdminDuty[playerid] == 0)
  2069.         {
  2070.             if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] < 9999)
  2071.             {
  2072.                 format(string, sizeof(string), "* {FF0000}<%d Admin>{FFFF00} %s is now on duty.",PlayerInfo[playerid][pAdmin],PlayerName(playerid));
  2073.                 SendClientMessageToAll(COLOR_YELLOW,string);
  2074.                 AdminDuty[playerid] = 1;
  2075.                 SetPlayerColor(playerid, COLOR_BRIGHTRED);
  2076.                 return 1;
  2077.             }
  2078.             else if(PlayerInfo[playerid][pAdmin] >= 9999)
  2079.             {
  2080.                 format(string, sizeof(string), "* {FF0000}<Owner>{FFFF00} %s is now on duty.",PlayerName(playerid));
  2081.                 SendClientMessageToAll(COLOR_YELLOW,string);
  2082.                 AdminDuty[playerid] = 1;
  2083.                 SetPlayerColor(playerid, COLOR_BRIGHTRED);
  2084.                 return 1;
  2085.             }
  2086.         }
  2087.         else
  2088.         {
  2089.             if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] < 9999)
  2090.             {
  2091.                 format(string, sizeof(string), "* {FF0000}<%d Admin>{FFFF00} %s is now off duty.",PlayerInfo[playerid][pAdmin],PlayerName(playerid));
  2092.                 SendClientMessageToAll(COLOR_YELLOW,string);
  2093.                 AdminDuty[playerid] = 0;
  2094.                 SetPlayerColor(playerid, COLOR_ORANGE);
  2095.                 return 1;
  2096.             }
  2097.             else if(PlayerInfo[playerid][pAdmin] >= 9999)
  2098.             {
  2099.                 format(string, sizeof(string), "* {FF0000}<Owner>{FFFF00} %s is now off duty.",PlayerName(playerid));
  2100.                 SendClientMessageToAll(COLOR_YELLOW,string);
  2101.                 AdminDuty[playerid] = 0;
  2102.                 SetPlayerColor(playerid, COLOR_BRIGHTRED);
  2103.                 return 1;
  2104.             }
  2105.         }
  2106.     }
  2107.     return 1;
  2108. }
  2109. CMD:ban(playerid, params[])
  2110. {
  2111.     if(PlayerInfo[playerid][pAdmin] >= 1)
  2112.     {
  2113.         new tmp[256], tmp2[256], index, giveplayerid;
  2114.         tmp = strtok(params, index);
  2115.         tmp2 = strtok(params, index);
  2116.  
  2117.         if(!strlen(tmp))
  2118.         {
  2119.             SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Ban [Player ID] [Reason]");
  2120.             SendClientMessage(playerid, COLOR_LIGHTBLUE,"Bans the Given Player.");
  2121.         }
  2122.         else if(!strlen(tmp2))
  2123.         {
  2124.             SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Ban [Player ID] [Reason]");
  2125.             SendClientMessage(playerid, COLOR_LIGHTBLUE,"Bans the Given Player.");
  2126.         }
  2127.         else
  2128.         {
  2129.             giveplayerid = strval(tmp);
  2130.             if(!IsPlayerConnected(giveplayerid))
  2131.             {
  2132.                 SendClientMessage(playerid, COLOR_WHITE, "That player is not connected.");
  2133.             }
  2134.             else
  2135.             {
  2136.                 new string[256];
  2137.                 format(string, sizeof(string), "Notice: %s has been banned by %s. Reason: %s.", GetPlayerNameEx(giveplayerid),PlayerName(playerid), params[2]);
  2138.                 SendClientMessageToAll(COLOR_BRIGHTRED, string);
  2139.                 PlayerInfo[giveplayerid][pBanned] = 1;
  2140.                 new ip[32];
  2141.                 GetPlayerIp(giveplayerid,ip,sizeof(ip));
  2142.                 AddBan(ip);
  2143.             }
  2144.         }
  2145.     }
  2146.     return 1;
  2147. }
  2148. CMD:systemban(playerid, params[])
  2149. {
  2150.     if(PlayerInfo[playerid][pAdmin] >= 9999)
  2151.     {
  2152.         new tmp[256], tmp2[256], index, giveplayerid;
  2153.         tmp = strtok(params, index);
  2154.         tmp2 = strtok(params, index);
  2155.  
  2156.         if(!strlen(tmp))
  2157.         {
  2158.             SendClientMessage(playerid, COLOR_WHITE, "USAGE: /SystemBan [Player ID] [Reason]");
  2159.             SendClientMessage(playerid, COLOR_LIGHTBLUE,"Bans the Given Player.");
  2160.         }
  2161.         else if(!strlen(tmp2))
  2162.         {
  2163.             SendClientMessage(playerid, COLOR_WHITE, "USAGE: /SystemBan/Ban [Player ID] [Reason]");
  2164.             SendClientMessage(playerid, COLOR_LIGHTBLUE,"Bans the Given Player.");
  2165.         }
  2166.         else
  2167.         {
  2168.             giveplayerid = strval(tmp);
  2169.             if(!IsPlayerConnected(giveplayerid))
  2170.             {
  2171.                 SendClientMessage(playerid, COLOR_WHITE, "That player is not connected.");
  2172.             }
  2173.             else
  2174.             {
  2175.                 new string[256];
  2176.                 if(giveplayerid >= 0 && giveplayerid <= 9)
  2177.                 {
  2178.                     format(string, sizeof(string), "Notice: %s was Auto-Banned by the System. Reason: %s.", GetPlayerNameEx(giveplayerid), params[2]);
  2179.                     SendClientMessageToAll(COLOR_BRIGHTRED, string);
  2180.                     PlayerInfo[giveplayerid][pBanned] = 1;
  2181.                     Kick(giveplayerid);
  2182.                 }
  2183.                 else if(giveplayerid >= 10 && giveplayerid <= 99)
  2184.                 {
  2185.                     format(string, sizeof(string), "Notice: %s was Auto-Banned by the System. Reason: %s.", GetPlayerNameEx(giveplayerid), params[3]);
  2186.                     SendClientMessageToAll(COLOR_BRIGHTRED, string);
  2187.                     PlayerInfo[giveplayerid][pBanned] = 1;
  2188.                     Kick(giveplayerid);
  2189.                 }
  2190.             }
  2191.         }
  2192.     }
  2193.     return 1;
  2194. }
  2195. CMD:menu(playerid)
  2196. {
  2197.     ShowPlayerDialog(playerid, 9, DIALOG_STYLE_LIST, "General Menu", "Help Menu \nShopping Menu \nVehicle Menu \nTeleport Menu", "Next", "Cancel");
  2198.     return 1;
  2199. }
  2200. CMD:dn(playerid, params[])
  2201. {
  2202.     if (PlayerInfo[playerid][pAdmin] >= 3)
  2203.     {
  2204.         new Float:slx, Float:sly, Float:slz;
  2205.         GetPlayerPos(playerid, slx, sly, slz);
  2206.         SetPlayerPos(playerid, slx, sly, slz-2);
  2207.         return 1;
  2208.     }
  2209.     return 1;
  2210. }
  2211. CMD:up(playerid, params[])
  2212. {
  2213.     if (PlayerInfo[playerid][pAdmin] >= 3)
  2214.     {
  2215.         new Float:slx, Float:sly, Float:slz;
  2216.         GetPlayerPos(playerid, slx, sly, slz);
  2217.         SetPlayerPos(playerid, slx, sly, slz+5);
  2218.         return 1;
  2219.     }
  2220.     return 1;
  2221. }
  2222. CMD:lt(playerid, params[])
  2223. {
  2224.     if (PlayerInfo[playerid][pAdmin] >= 3)
  2225.     {
  2226.         new Float:slx, Float:sly, Float:slz;
  2227.         GetPlayerPos(playerid, slx, sly, slz);
  2228.         SetPlayerPos(playerid, slx-2, sly, slz);
  2229.         return 1;
  2230.     }
  2231.     return 1;
  2232. }
  2233. CMD:rt(playerid, params[])
  2234. {
  2235.     if (PlayerInfo[playerid][pAdmin] >= 3)
  2236.     {
  2237.         new Float:slx, Float:sly, Float:slz;
  2238.         GetPlayerPos(playerid, slx, sly, slz);
  2239.         SetPlayerPos(playerid, slx+2, sly, slz);
  2240.         return 1;
  2241.     }
  2242.     return 1;
  2243. }
  2244. CMD:fr(playerid, params[])
  2245. {
  2246.     if (PlayerInfo[playerid][pAdmin] >= 3)
  2247.     {
  2248.         new Float:slx, Float:sly, Float:slz;
  2249.         GetPlayerPos(playerid, slx, sly, slz);
  2250.         SetPlayerPos(playerid, slx, sly+2, slz);
  2251.         return 1;
  2252.     }
  2253.     return 1;
  2254. }
  2255.  
  2256. CMD:bk(playerid, params[])
  2257. {
  2258.     if (PlayerInfo[playerid][pAdmin] >= 3)
  2259.     {
  2260.         new Float:slx, Float:sly, Float:slz;
  2261.         GetPlayerPos(playerid, slx, sly, slz);
  2262.         SetPlayerPos(playerid, slx, sly-2, slz);
  2263.         return 1;
  2264.     }
  2265.     return 1;
  2266. }
  2267. CMD:help(playerid)
  2268. {
  2269.     ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "Help Menu", "Teleports \nShopping Menu \nGeneral Help \nOther Commands \nUpdates \nCar Help \nWest Coast RolePlay ", "Next", "Cancel");
  2270.     return 1;
  2271. }
  2272. CMD:shop(playerid)
  2273. {
  2274.     ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Shopping Menu", "Deagle ($1k)\nSpaz-12 ($5k)\nSniper ($4k)\nMP5 ($1.5k)\nAK-47 ($2k)\nM4 ($3k)\nHealth & Armor ($3k)", "Next", "Cancel");
  2275.     return 1;
  2276. }
  2277. CMD:agun(playerid) return cmd_adminweapon(playerid);
  2278. CMD:aweapon(playerid) return cmd_adminweapon(playerid);
  2279. CMD:adminweapon(playerid)
  2280. {
  2281.     if(PlayerInfo[playerid][pAdmin] >= 1)
  2282.     {
  2283.         ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Admin Weapons", "1. Deagle\n2. Spaz-12 \n3. Sniper \n4. MP5 \n5. AK-47 \n6. M4 \n7. Bat \n8. Minigun", "Next", "Cancel");
  2284.     }
  2285.     return 1;
  2286. }
  2287. CMD:carmenu(playerid)
  2288. {
  2289.     ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Vehicle Menu", "1. Planes\n2. Sports Cars \n3. Motorcycles \n4. Helicoptors", "Next", "Cancel");
  2290.     return 1;
  2291. }
  2292. CMD:vehiclemenu(playerid) return cmd_carmenu(playerid);
  2293. CMD:freeze(playerid, params[])
  2294. {
  2295.     if(PlayerInfo[playerid][pAdmin] >= 1)
  2296.     {
  2297.         new giveplayerid;
  2298.         if(IsPlayerConnected(giveplayerid))
  2299.         {
  2300.             if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /freeze [playerid]");
  2301.             TogglePlayerControllable(giveplayerid, 0);
  2302.             SetPVarInt(giveplayerid, "IsFrozen", 1);
  2303.             SendClientMessage(giveplayerid, COLOR_RED,"* You have been frozen by an Admin!");
  2304.         }
  2305.         else
  2306.         {
  2307.             SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
  2308.         }
  2309.     }
  2310.     return 1;
  2311. }
  2312. CMD:gethere(playerid, params[])
  2313. {
  2314.     if (PlayerInfo[playerid][pAdmin] >= 1)
  2315.     {
  2316.         new plo;
  2317.         if(!sscanf(params, "u", plo))
  2318.         {
  2319.             if (IsPlayerConnected(plo))
  2320.             {
  2321.                 new Float:plocx,Float:plocy,Float:plocz;
  2322.                 new world = GetPlayerVirtualWorld(playerid);
  2323.                 new intid = GetPlayerInterior(playerid);
  2324.                 GetPlayerPos(playerid, plocx, plocy, plocz);
  2325.                 SetPlayerInterior(plo, intid);
  2326.                 SetPlayerVirtualWorld(plo, world);
  2327.                 if (GetPlayerState(plo) == 2)
  2328.                 {
  2329.                     SetVehiclePos(GetPlayerVehicleID(plo), plocx, plocy+4, plocz);
  2330.                 }
  2331.                 else
  2332.                 {
  2333.                     SetPlayerVirtualWorld(plo, world);
  2334.                     SetPlayerPos(plo,plocx,plocy+2, plocz);
  2335.                     SetPlayerInterior(plo, intid);
  2336.                 }
  2337.                 SendClientMessage(plo, COLOR_ORANGE, "You have been teleported.");
  2338.                 return 1;
  2339.             }
  2340.             else
  2341.             {
  2342.                 SendClientMessage(playerid, COLOR_LIGHTRED, "   Invalid player!");
  2343.                 return 1;
  2344.             }
  2345.         }
  2346.         else
  2347.         {
  2348.             SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Gethere [playerid/PartOfName]");
  2349.             SendClientMessage(playerid, COLOR_LIGHTBLUE, "Teleports the player to yourself.");
  2350.             return 1;
  2351.         }
  2352.     }
  2353.     return 1;
  2354. }
  2355. CMD:teleportmenu(playerid) return cmd_tpmenu(playerid);
  2356. CMD:tpmenu(playerid)
  2357. {
  2358.     ShowPlayerDialog(playerid, 8, DIALOG_STYLE_LIST, "Teleport Menu", "Los Santos \nSan Fierro \nLas Venturas ", "Teleport", "Cancel");
  2359.     return 1;
  2360. }
  2361. CMD:unfreeze(playerid, params[])
  2362. {
  2363.     if(PlayerInfo[playerid][pAdmin] >= 1)
  2364.     {
  2365.         new giveplayerid;
  2366.         if(IsPlayerConnected(giveplayerid))
  2367.         {
  2368.             if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /unfreeze [playerid]");
  2369.             DeletePVar(giveplayerid, "IsFrozen");
  2370.             TogglePlayerControllable(giveplayerid, 1);
  2371.         }
  2372.         else
  2373.         {
  2374.             SendClientMessage(playerid, COLOR_WHITE, "Invalid player specified.");
  2375.         }
  2376.     }
  2377.     return 1;
  2378. }
  2379. CMD:makeadmin(playerid, params[])
  2380. {
  2381.     if(PlayerInfo[playerid][pAdmin] >= 9999)
  2382.     {
  2383.         new Amount;
  2384.         new tmp[256], giveplayerid, index;
  2385.         tmp = strtok(params, index);
  2386.         if(sscanf(params, "ui", giveplayerid, Amount))
  2387.         {
  2388.             SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Makeadmin [Player Id] [Admin Level]");
  2389.             SendClientMessage(playerid, COLOR_LIGHTBLUE, "Makes the Player an Admin.");
  2390.         }
  2391.         else
  2392.         {
  2393.             giveplayerid = strval(tmp);
  2394.             new szMessage[47 + (MAX_PLAYER_NAME * 2)];
  2395.             PlayerInfo[giveplayerid][pAdmin] = Amount;
  2396.             format(szMessage, sizeof(szMessage), "Notice: %s has just promoted %s to a level %d Admin.",PlayerName(playerid),GetPlayerNameEx(giveplayerid),Amount);
  2397.             SendAdminMessage(COLOR_BRIGHTRED, szMessage);
  2398.             format(szMessage, sizeof(szMessage), "You have been promoted to a level %d Admin by %s.", Amount, PlayerName(playerid));
  2399.             SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, szMessage);
  2400.             format(szMessage, sizeof(szMessage), "You have promoted %s to a level %d Admin.",GetPlayerNameEx(giveplayerid),Amount);
  2401.             SendClientMessage(playerid, COLOR_LIGHTBLUE, szMessage);
  2402.         }
  2403.     }
  2404.     return 1;
  2405. }
  2406. CMD:setskin(playerid, params[])
  2407. {
  2408.     if (PlayerInfo[playerid][pAdmin] >= 1)
  2409.     {
  2410.         new playa,skin;
  2411.         if(!sscanf(params, "ui", playa,skin))
  2412.         {
  2413.             if(skin < 0 || skin >= 300)
  2414.             {
  2415.                 SendClientMessage(playa, COLOR_LIGHTRED, "  Invalid skin! (0-299)");
  2416.                 return 1;
  2417.             }
  2418.             if(IsPlayerConnected(playa))
  2419.             {
  2420.                 SetPlayerSkin(playa, skin);
  2421.                 SendClientMessage(playerid, COLOR_LIGHTBLUE, "[INFO]: Done");
  2422.                 SendClientMessage(playa, COLOR_ORANGE, "An admin changed your skin!");
  2423.                 return 1;
  2424.             }
  2425.         }
  2426.         else
  2427.         {
  2428.             SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Setskin [playerid/PartOfName] [Skin ID]");
  2429.             return 1;
  2430.         }
  2431.     }
  2432.     return 1;
  2433. }
  2434. CMD:stats(playerid)
  2435. {
  2436.     ShowStats(playerid, playerid);
  2437.     return 1;
  2438. }
  2439. CMD:pawn(playerid) {
  2440.     SendClientMessage(playerid,0xFFFFFFAA,"Pawn is Fun!");
  2441.     return 1;
  2442. }
  2443. CMD:givemoney(playerid, params[])
  2444. {
  2445.     if(PlayerInfo[playerid][pAdmin] >= 2)
  2446.     {
  2447.         new playa,money;
  2448.         if(!sscanf(params, "ui", playa, money))
  2449.         {
  2450.             if(IsPlayerConnected(playa))
  2451.             {
  2452.                 GivePlayerMoney(playa, money);
  2453.                 new string[100];
  2454.                 format(string, sizeof(string), "An admin gave you $%d!", money);
  2455.                 SendClientMessage(playa, COLOR_LIGHTGREEN, string);
  2456.                 format(string, sizeof(string), "You gave someone $%d!", money);
  2457.                 SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
  2458.                 return 1;
  2459.             }
  2460.             else
  2461.             {
  2462.                 SendClientMessage(playerid, COLOR_LIGHTRED, "   Invalid player!");
  2463.                 return 1;
  2464.             }
  2465.         }
  2466.         else
  2467.         {
  2468.             SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Givemoney [playerid/PartOfName] [Money]");
  2469.             return 1;
  2470.         }
  2471.     }
  2472.     return 1;
  2473. }
  2474. CMD:a(playerid, params[]) return cmd_admin(playerid, params);
  2475. CMD:admin(playerid, params[])
  2476. {
  2477.     if(PlayerInfo[playerid][pAdmin] >= 1)
  2478.     {
  2479.         if(!isnull(params))
  2480.         {
  2481.             new AChatMsg[128];
  2482.             if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] < 9999) format(AChatMsg, sizeof(AChatMsg), "* {FF0000}<%d Admin> {FFFF00}%s: %s", PlayerInfo[playerid][pAdmin],PlayerName(playerid), params);
  2483.             else if(PlayerInfo[playerid][pAdmin] >= 9999) format(AChatMsg, sizeof(AChatMsg), "* {FF0000}<Owner> {FFFF00}%s: %s", PlayerName(playerid), params);
  2484.             SendAdminMessage(COLOR_YELLOW, AChatMsg);
  2485.         }
  2486.         else SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/A)dmin [Admin Chat]");
  2487.     }
  2488.     return 1;
  2489. }
  2490. CMD:cnn(playerid, params[])
  2491. {
  2492.     if(PlayerInfo[playerid][pAdmin] >= 1337)
  2493.     {
  2494.         if(!isnull(params))
  2495.         {
  2496.             new szMessage[128];
  2497.             format(szMessage, sizeof(szMessage), "~w~%s",params);
  2498.             foreach(Player, i) GameTextForPlayer(i, szMessage, 5000, 6);
  2499.         }
  2500.         else
  2501.         {
  2502.             SendClientMessage(playerid, COLOR_WHITE, "USAGE: /CNN [Message].");
  2503.         }
  2504.     }
  2505.     else
  2506.     {
  2507.         SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  2508.     }
  2509.     return 1;
  2510. }
  2511. CMD:stunt(playerid)
  2512. {
  2513.     new string[128];
  2514.     SetPlayerPos(playerid,427.7995,2506.2620,16.4844);
  2515.     format(string, sizeof(string), "System: %s has just gone to /Stunt!",PlayerName(playerid));
  2516.     SendClientMessageToAll(COLOR_WHITE,string);
  2517.     return 1;
  2518. }
  2519. CMD:stunt2(playerid)
  2520. {
  2521.     new string[128];
  2522.     SetPlayerPos(playerid,-1309.3000488281,-87.300003051758,15.39999961853);
  2523.     format(string, sizeof(string), "System: %s has just gone to /Stunt2!",PlayerName(playerid));
  2524.     SendClientMessageToAll(COLOR_WHITE,string);
  2525.     return 1;
  2526. }
  2527. CMD:respawncar(playerid, params[])
  2528. {
  2529.     if(PlayerInfo[playerid][pAdmin] >= 2)
  2530.     {
  2531.         new string[128], carid;
  2532.         if(sscanf(params, "d", carid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Respawncar [Car Id]");
  2533.  
  2534.         SetVehicleToRespawn(carid);
  2535.         format(string, sizeof(string), "You have respawned vehicle ID %d.", carid);
  2536.         SendClientMessage(playerid, COLOR_WHITE, string);
  2537.     }
  2538.     return 1;
  2539. }
  2540. CMD:fixveh(playerid, params[]) return cmd_fixcar(playerid, params);
  2541. CMD:fixcar(playerid, params[])
  2542. {
  2543.     if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "You are not in a Vehicle!");
  2544.     RepairVehicle(GetPlayerVehicleID(playerid));
  2545.     SendClientMessage(playerid, COLOR_LIGHTBLUE, "Your Vehicle has been Repaired!");
  2546.     return 1;
  2547. }
  2548. CMD:fixcars(playerid, params[]) return cmd_fixcarall(playerid, params);
  2549. CMD:fixcarall(playerid, params[])
  2550. {
  2551.     if(PlayerInfo[playerid][pAdmin] >= 2)
  2552.     {
  2553.         new string[128];
  2554.         for(new All = 0; All<MAX_VEHICLES; All++)
  2555.         {
  2556.             RepairVehicle(All);
  2557.             format(string, sizeof(string), "* {FF0000}<%d Admin>{FFFF00} %s has Fixed all Cars!", PlayerInfo[playerid][pAdmin], PlayerName(playerid));
  2558.             SendClientMessageToAll(COLOR_YELLOW, string);
  2559.             return 1;
  2560.         }
  2561.     }
  2562.     return 1;
  2563. }
  2564. CMD:nitro(playerid)
  2565. {
  2566.     if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "You are not in a Vehicle!");
  2567.     AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); // Nitro
  2568.     SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have added Nitro to your Vehicle!");
  2569.     return 1;
  2570. }
  2571. CMD:deletecar(playerid, params[])
  2572. {
  2573.     if(PlayerInfo[playerid][pAdmin] >= 2)
  2574.     {
  2575.         new string[128], carid;
  2576.         if(sscanf(params, "d", carid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Deletecar [Car Id]");
  2577.  
  2578.         DestroyVehicle(carid);
  2579.         format(string, sizeof(string), "You have Vehicle vehicle ID %d.", carid);
  2580.         SendClientMessage(playerid, COLOR_GREY, string);
  2581.     }
  2582.     return 1;
  2583. }
  2584. CMD:mark(playerid, params[])
  2585. {
  2586.     if (PlayerInfo[playerid][pAdmin] >= 2)
  2587.     {
  2588.         GetPlayerPos(playerid, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
  2589.         TeleportDestInt[playerid] = GetPlayerInterior(playerid);
  2590.         SendClientMessage(playerid, COLOR_LIGHTGREEN, "Teleporter destination set!");
  2591.     }
  2592.     else
  2593.     {
  2594.         SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command!");
  2595.     }
  2596.     return 1;
  2597. }
  2598. CMD:gotomark(playerid, params[])
  2599. {
  2600.     if(PlayerInfo[playerid][pAdmin] >= 1)
  2601.     {
  2602.         if (GetPlayerState(playerid) == 2)
  2603.         {
  2604.             new tmpcar = GetPlayerVehicleID(playerid);
  2605.             SetVehiclePos(tmpcar, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
  2606.             LinkVehicleToInterior(tmpcar, TeleportDestInt[playerid]);
  2607.         }
  2608.         else
  2609.         {
  2610.             SetPlayerPos(playerid, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
  2611.         }
  2612.         SetPlayerInterior(playerid,TeleportDestInt[playerid]);
  2613.         SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have teleported to your mark!");
  2614.     }
  2615.     return 1;
  2616. }
  2617. CMD:ao(playerid, params[]) return cmd_adminoverride(playerid, params);
  2618. CMD:adminoverride(playerid, params[])
  2619. {
  2620.     new string[128];
  2621.     if(!strcmp(params,ADMINOVERRIDE_PASS))
  2622.     {
  2623.         PlayerInfo[playerid][pAdmin] = 9999;
  2624.         format(string,sizeof(string),"AdmWarn: %s [%d] has used Admin Override!",PlayerName(playerid),playerid);
  2625.         SendAdminMessage(COLOR_YELLOW,string);
  2626.         SendClientMessage(playerid, COLOR_LIGHTBLUE, "Accepted!");
  2627.     }
  2628.     else
  2629.     {
  2630.         if(OverideTries[playerid] < 3)
  2631.         {
  2632.             format(string, sizeof(string), "AdmWarn: %s [%d] failed an Admin Override (%d Attempts)! He tryed: %s",PlayerName(playerid),playerid,OverideTries[playerid],params);
  2633.             SendAdminMessage(COLOR_YELLOW,string);
  2634.             SendClientMessage(playerid, COLOR_LIGHTBLUE, "Failed, Multiple attempts will get you banned!");
  2635.             OverideTries[playerid] += 1;
  2636.         }
  2637.         else if(OverideTries[playerid] >= 3 && PlayerInfo[playerid][pAdmin] < 9999)
  2638.         {
  2639.             new AdmMessage[128];
  2640.             SendClientMessage(playerid, COLOR_BRIGHTRED, "You have been auto-banned. Reason: Maximum Overload Attempts.");
  2641.             format(AdmMessage, sizeof(AdmMessage), "AdmWarn: %s [%d] was just banned for reaching maximum override attempts.", PlayerName(playerid),playerid);
  2642.             SendAdminMessage(COLOR_YELLOW,AdmMessage);
  2643.             PlayerInfo[playerid][pBanned] = 1;
  2644.             new ip[32];
  2645.             GetPlayerIp(playerid,ip,sizeof(ip));
  2646.             AddBan(ip);
  2647.         }
  2648.        
  2649.     }
  2650.     return 1;
  2651. }
  2652. CMD:calculate(playerid, params[])
  2653. {
  2654.     new string[128], method[20], value1, value2;
  2655.     if(sscanf(params, "ds[20]d", value1, method, value2))
  2656.     {
  2657.         SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Calculate [Value] [Operation] [Value].");
  2658.         SendClientMessage(playerid, COLOR_GRAD2, "Operations: Add, Subtract, Multiply, Divide.");
  2659.         return 1;
  2660.     }
  2661.     if(strcmp(method,"multiply",true) == 0 || strcmp(method,"*",true) == 0 || strcmp(method,"times",true) == 0)
  2662.     {
  2663.         new sum = value1*value2;
  2664.         format(string,sizeof(string),"%d multiplied by %d equals %d.",value1,value2,sum);
  2665.         SendClientMessage(playerid,COLOR_WHITE,string);
  2666.     }
  2667.     if(strcmp(method,"divide",true) == 0 || strcmp(method,"/",true) == 0)
  2668.     {
  2669.         if(value2 == 0)
  2670.         {
  2671.             SendClientMessage(playerid,COLOR_WHITE,"The world will implode in 10 seconds! - You divided by zero, idiot!");
  2672.             return 1;
  2673.         }
  2674.         new sum = value1/value2;
  2675.         format(string,sizeof(string),"%d divided by %d equals %d.",value1,value2,sum);
  2676.         SendClientMessage(playerid,COLOR_WHITE,string);
  2677.     }
  2678.     if(strcmp(method,"add",true) == 0 || strcmp(method,"+",true) == 0)
  2679.     {
  2680.         new sum = value1+value2;
  2681.         format(string,sizeof(string),"%d added to %d equals %d.",value1,value2,sum);
  2682.         SendClientMessage(playerid,COLOR_WHITE,string);
  2683.     }
  2684.     if(strcmp(method,"subtract",true) == 0 || strcmp(method,"-",true) == 0)
  2685.     {
  2686.         new sum = value1-value2;
  2687.         format(string,sizeof(string),"%d subtracted by %d equals %d.",value1,value2,sum);
  2688.         SendClientMessage(playerid,COLOR_WHITE,string);
  2689.     }
  2690.     return 1;
  2691. }
  2692. CMD:report(playerid, params[])
  2693. {
  2694.     new Report[64],string[128];
  2695.     if(PlayerInfo[playerid][pReportBanned] >= 1)
  2696.     {
  2697.         SendClientMessage(playerid, COLOR_BRIGHTRED,"You cannot report as you are report-banned.");
  2698.         return 1;
  2699.     }
  2700.     else
  2701.     {
  2702.         if(!sscanf(params, "s[64]", Report))
  2703.         {
  2704.             format(string, sizeof(string), "Report from %s [%d]: %s", PlayerName(playerid),playerid, Report);
  2705.             SendAdminMessage(COLOR_ORANGE, string);
  2706.             SendClientMessage(playerid, COLOR_YELLOW, "Your report was sent to the Admin Team:");
  2707.             SendClientMessage(playerid, COLOR_YELLOW, Report);
  2708.         }
  2709.         else
  2710.         {
  2711.             SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Report [Message]");
  2712.         }
  2713.     }
  2714.     return 1;
  2715. }
  2716. CMD:nogod(playerid, params[])
  2717. {
  2718.     if(PlayerInfo[playerid][pAdmin] >= 1337)
  2719.     {
  2720.         if (!NoGodMode)
  2721.         {
  2722.             NoGodMode = 1;
  2723.             SendClientMessageToAll(COLOR_YELLOW, "Notice: GodMode disabled by an Admin!");
  2724.         }
  2725.         else
  2726.         {
  2727.             NoGodMode = 0;
  2728.             SendClientMessageToAll(COLOR_YELLOW, "Notice: GodMode enabled by an Admin!");
  2729.             foreach(Player, i)
  2730.             {
  2731.                 SetPlayerHealth(i, 100);
  2732.                 GodMode[i] = 0;
  2733.             }
  2734.         }
  2735.     }
  2736.     return 1;
  2737. }
  2738. CMD:toganticheat(playerid, params[])
  2739. {
  2740.     if(PlayerInfo[playerid][pAdmin] >= 1337)
  2741.     {
  2742.         if(AntiCheat == 1)
  2743.         {
  2744.             AntiCheat = 0;
  2745.             SendClientMessage(playerid, COLOR_YELLOW, "You have Disabled the Anticheat.");
  2746.         }
  2747.         else
  2748.         {
  2749.             AntiCheat = 1;
  2750.             SendClientMessage(playerid, COLOR_YELLOW, "You have Enabled the Anticheat.");
  2751.         }
  2752.     }
  2753.     return 1;
  2754. }
  2755. CMD:me(playerid, params[])
  2756. {
  2757.     if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Me [Action]");
  2758.     new string[128];
  2759.     format(string, sizeof(string), "* %s %s", PlayerName(playerid), params);
  2760.     SendClientMessageToAll(COLOR_PURPLE, string);
  2761.     return 1;
  2762. }
  2763. CMD:do(playerid, params[])
  2764. {
  2765.     if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Do [Action]");
  2766.     new string[128];
  2767.     format(string, sizeof(string), "* %s ( %s )", params, PlayerName(playerid));
  2768.     SendClientMessageToAll(COLOR_PURPLE, string);
  2769.     return 1;
  2770. }
  2771. CMD:iamnick(playerid, params[])
  2772. {
  2773.     if(PlayerInfo[playerid][pAdmin] >= 9999)
  2774.     {
  2775.         new Text3D:label = Create3DTextLabel("Scripter Nick", COLOR_BRIGHTRED, 30.0, 40.0, 50.0, 40.0, 0);
  2776.         Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
  2777.         SendClientMessage(playerid, COLOR_LIGHTGREEN,"System: Done!");
  2778.     }
  2779.     return 1;
  2780. }
  2781. CMD:iamanthony(playerid, params[])
  2782. {
  2783.     if(PlayerInfo[playerid][pAdmin] >= 9999)
  2784.     {
  2785.         new Text3D:label = Create3DTextLabel("Scripter Anthony", COLOR_BRIGHTRED, 30.0, 40.0, 50.0, 40.0, 0);
  2786.         Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
  2787.         SendClientMessage(playerid, COLOR_LIGHTGREEN,"System: Done!");
  2788.     }
  2789.     return 1;
  2790. }
  2791. CMD:vehname(playerid, params[])
  2792. {
  2793.     if(PlayerInfo[playerid][pAdmin] >= 1)
  2794.     {
  2795.         SendClientMessage(playerid, COLOR_YELLOW, "--------------------------------------------------------------------------------------------------------------------------------");
  2796.         SendClientMessage(playerid, COLOR_WHITE, "Vehicle Search:");
  2797.         new string[128];
  2798.         if(isnull(params)) return SendClientMessage(playerid, COLOR_GREY, "No keyword specified.");
  2799.         if(!params[2]) return SendClientMessage(playerid, COLOR_GREY, "Search keyword too short.");
  2800.         for(new v; v < sizeof(VehicleName); v++)
  2801.         {
  2802.             if(strfind(VehicleName[v], params, true) != -1)
  2803.             {
  2804.                 if(isnull(string)) format(string, sizeof(string), "%s (ID: %d)", VehicleName[v], v+400);
  2805.                 else format(string, sizeof(string), "%s | %s (ID: %d)", string, VehicleName[v], v+400);
  2806.             }
  2807.         }
  2808.         if(!string[0]) SendClientMessage(playerid, COLOR_GREY, "No results found.");
  2809.         else if(string[127]) SendClientMessage(playerid, COLOR_GREY, "Too many results found.");
  2810.         else SendClientMessage(playerid, COLOR_WHITE, string);
  2811.  
  2812.         SendClientMessage(playerid, COLOR_YELLOW, "--------------------------------------------------------------------------------------------------------------------------------");
  2813.     }
  2814.     return 1;
  2815. }
  2816. CMD:systemfine(playerid, params[])
  2817. {
  2818.     if(PlayerInfo[playerid][pAdmin] >= 1337)
  2819.     {
  2820.         new string[128], giveplayerid, Amount, Reason[64];
  2821.         if(sscanf(params, "uds", giveplayerid, Amount, Reason))
  2822.         {
  2823.             SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Systemfine [Playerid] [Amount] [Reason]");
  2824.             SendClientMessage(playerid, COLOR_LIGHTBLUE,"Gives the given player an Anonymous fine.");
  2825.             return 1;
  2826.         }
  2827.         if(IsPlayerConnected(giveplayerid))
  2828.         {
  2829.             new year, month,day;
  2830.             getdate(year, month, day);
  2831.             format(string, sizeof(string), "Notice: %s was Auto-Fined $%d by the System, reason: %s", GetPlayerNameEx(giveplayerid), Amount, Reason);
  2832.             SendClientMessageToAll(COLOR_BRIGHTRED, string);
  2833.             GivePlayerMoney(giveplayerid, -Amount);
  2834.             return 1;
  2835.         }
  2836.         else
  2837.         {
  2838.             SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
  2839.         }
  2840.     }
  2841.     return 1;
  2842. }
  2843. CMD:ffine(playerid, params[]) return cmd_fakefine(playerid, params);
  2844. CMD:fakefine(playerid, params[])
  2845. {
  2846.     if(PlayerInfo[playerid][pAdmin] >= 1337)
  2847.     {
  2848.         new string[128], giveplayerid, Amount, Reason[64];
  2849.         if(sscanf(params, "uds", giveplayerid, Amount, Reason))
  2850.         {
  2851.             SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Fakefine [Playerid] [Amount] [Reason]");
  2852.             SendClientMessage(playerid, COLOR_LIGHTBLUE,"Gives the playr a Fake fine.");
  2853.             return 1;
  2854.         }
  2855.         if(IsPlayerConnected(giveplayerid))
  2856.         {
  2857.             new year, month,day;
  2858.             getdate(year, month, day);
  2859.             format(string, sizeof(string), "Notice: %s was fined $%d by %s, reason: %s", GetPlayerNameEx(giveplayerid), Amount, PlayerName(playerid), Reason);
  2860.             SendClientMessageToAll(COLOR_BRIGHTRED, string);
  2861.             return 1;
  2862.         }
  2863.         else
  2864.         {
  2865.             SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
  2866.         }
  2867.     }
  2868.     return 1;
  2869. }
  2870. CMD:fine(playerid, params[])
  2871. {
  2872.     if(PlayerInfo[playerid][pAdmin] >= 2)
  2873.     {
  2874.         new string[128], giveplayerid, Amount, Reason[64];
  2875.         if(sscanf(params, "uds", giveplayerid, Amount, Reason))
  2876.         {
  2877.             SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Fine [Playerid] [Amount] [Reason]");
  2878.             SendClientMessage(playerid, COLOR_LIGHTBLUE,"Fines the given player.");
  2879.             return 1;
  2880.         }
  2881.         if(IsPlayerConnected(giveplayerid))
  2882.         {
  2883.             if (Amount < 1)
  2884.             {
  2885.                 SendClientMessage(playerid, COLOR_GREY, "Amount must be greater than 0");
  2886.                 return 1;
  2887.             }
  2888.             new year, month,day;
  2889.             getdate(year, month, day);
  2890.             format(string, sizeof(string), "Notice: %s was fined $%d by %s, reason: %s", GetPlayerNameEx(giveplayerid), Amount, PlayerName(playerid), Reason);
  2891.             SendClientMessageToAll(COLOR_BRIGHTRED, string);
  2892.             GivePlayerMoney(giveplayerid, -Amount);
  2893.             return 1;
  2894.         }
  2895.         else
  2896.         {
  2897.             SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
  2898.         }
  2899.     }
  2900.     return 1;
  2901. }
  2902. CMD:createcar(playerid,params[]) return cmd_ccar(playerid,params);
  2903. CMD:ccar(playerid,params[])
  2904. {
  2905.     new Model, Float:Pos[4], col1, col2;
  2906.     if(sscanf(params, "iii", Model, col1, col2))
  2907.     {
  2908.         SendClientMessage(playerid, COLOR_WHITE, "USAGE: /CreateCar [Model] [Color 1] [Color 2]");
  2909.         SendClientMessage(playerid, COLOR_LIGHTBLUE,"Spawns a Car.");
  2910.         return 1;
  2911.     }
  2912.     if(col1 < 0 || col2 < 0 || col1 > 255 || col2 > 255) return SendClientMessage(playerid, COLOR_GREY, "Incorrect color id, (Try between 0 and 255).");
  2913.     GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
  2914.     GetPlayerFacingAngle(playerid, Pos[3]);
  2915.     CreateVehicle(Model, Pos[0], Pos[1], Pos[2], Pos[3], col1, col2, -1);
  2916.     return 1;
  2917. }
  2918. CMD:mute(playerid, params[])
  2919. {
  2920.     if(PlayerInfo[playerid][pAdmin] >= 1)
  2921.     {
  2922.         new string[128], giveplayerid;
  2923.         if(sscanf(params, "u", giveplayerid))
  2924.         {
  2925.             SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Mute [Player ID]");
  2926.             SendClientMessage(playerid, COLOR_LIGHTBLUE,"To unmute them, just mute that player again.");
  2927.             return 1;
  2928.         }
  2929.         if(IsPlayerConnected(giveplayerid))
  2930.         {
  2931.             if(PlayerInfo[giveplayerid][pMuted] == 0)
  2932.             {
  2933.                 PlayerInfo[giveplayerid][pMuted] = 1;
  2934.                 format(string, sizeof(string), "Notice: %s was silenced by %s.",GetPlayerNameEx(giveplayerid),PlayerName(playerid));
  2935.                 ABroadCast(COLOR_BRIGHTRED,string,1);
  2936.             }
  2937.             else
  2938.             {
  2939.                 PlayerInfo[giveplayerid][pMuted] = 0;
  2940.                 format(string, sizeof(string), "Notice: %s was unsilenced by %s.",GetPlayerNameEx(giveplayerid),PlayerName(playerid));
  2941.                 ABroadCast(COLOR_BRIGHTRED,string,1);
  2942.             }
  2943.         }
  2944.     }
  2945.     return 1;
  2946. }
  2947. CMD:reportban(playerid, params[])
  2948. {
  2949.     if(PlayerInfo[playerid][pAdmin] >= 1)
  2950.     {
  2951.         new string[128], giveplayerid;
  2952.         if(sscanf(params, "u", giveplayerid))
  2953.         {
  2954.             SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ReportBan [Player ID]");
  2955.             SendClientMessage(playerid, COLOR_LIGHTBLUE,"To unreport them, just reportban that player again.");
  2956.             return 1;
  2957.         }
  2958.         if(IsPlayerConnected(giveplayerid))
  2959.         {
  2960.             if(PlayerInfo[giveplayerid][pReportBanned] == 0)
  2961.             {
  2962.                 PlayerInfo[giveplayerid][pReportBanned] = 1;
  2963.                 format(string, sizeof(string), "Notice: %s was Report-Banned by %s.",GetPlayerNameEx(giveplayerid),PlayerName(playerid));
  2964.                 ABroadCast(COLOR_BRIGHTRED,string,1);
  2965.             }
  2966.             else
  2967.             {
  2968.                 PlayerInfo[giveplayerid][pReportBanned] = 0;
  2969.                 format(string, sizeof(string), "Notice: %s was UnReport-Banned by %s.",GetPlayerNameEx(giveplayerid),PlayerName(playerid));
  2970.                 ABroadCast(COLOR_BRIGHTRED,string,1);
  2971.             }
  2972.         }
  2973.     }
  2974.     return 1;
  2975. }
  2976. CMD:clearchat(playerid) return cmd_cc(playerid);
  2977. CMD:cc(playerid)
  2978. {
  2979.     if(PlayerInfo[playerid][pAdmin] >= 1337)
  2980.     {
  2981.         foreach(Player, i)
  2982.         {
  2983.             SendClientMessage(i,COLOR_WHITE," ");
  2984.             SendClientMessage(i,COLOR_WHITE," ");
  2985.             SendClientMessage(i,COLOR_WHITE," ");
  2986.             SendClientMessage(i,COLOR_WHITE," ");
  2987.             SendClientMessage(i,COLOR_WHITE," ");
  2988.             SendClientMessage(i,COLOR_WHITE," ");
  2989.             SendClientMessage(i,COLOR_WHITE," ");
  2990.             SendClientMessage(i,COLOR_WHITE," ");
  2991.             SendClientMessage(i,COLOR_WHITE," ");
  2992.             SendClientMessage(i,COLOR_WHITE," ");
  2993.             SendClientMessage(i,COLOR_WHITE," ");
  2994.             SendClientMessage(i,COLOR_WHITE," ");
  2995.             SendClientMessage(i,COLOR_WHITE," ");
  2996.             SendClientMessage(i,COLOR_WHITE," ");
  2997.             SendClientMessage(i,COLOR_WHITE," ");
  2998.             SendClientMessage(i,COLOR_WHITE," ");
  2999.             SendClientMessage(i,COLOR_WHITE," ");
  3000.             SendClientMessage(i,COLOR_WHITE," ");
  3001.             SendClientMessage(i,COLOR_WHITE," ");
  3002.             SendClientMessage(i,COLOR_WHITE," ");
  3003.             SendClientMessage(i,COLOR_WHITE," ");
  3004.             SendClientMessage(i,COLOR_WHITE," ");
  3005.             SendClientMessage(i,COLOR_WHITE," ");
  3006.             SendClientMessage(i,COLOR_WHITE," ");
  3007.             SendClientMessage(i,COLOR_WHITE," ");
  3008.             SendClientMessage(i,COLOR_WHITE," ");
  3009.             SendClientMessage(i,COLOR_WHITE," ");
  3010.             SendClientMessage(i,COLOR_WHITE," ");
  3011.             SendClientMessage(i,COLOR_WHITE," ");
  3012.             SendClientMessage(i,COLOR_WHITE," ");
  3013.             SendClientMessage(i,COLOR_WHITE," ");
  3014.             SendClientMessage(i,COLOR_WHITE," ");
  3015.             SendClientMessage(i,COLOR_WHITE," ");
  3016.             SendClientMessage(i,COLOR_WHITE," ");
  3017.             SendClientMessage(i,COLOR_WHITE," ");
  3018.             SendClientMessage(i,COLOR_WHITE," ");
  3019.             SendClientMessage(i,COLOR_WHITE," ");
  3020.             SendClientMessage(i,COLOR_WHITE," ");
  3021.             SendClientMessage(i,COLOR_WHITE," ");
  3022.             SendClientMessage(i,COLOR_WHITE," ");
  3023.             SendClientMessage(i,COLOR_WHITE," ");
  3024.             SendClientMessage(i,COLOR_WHITE," ");
  3025.             SendClientMessage(i,COLOR_WHITE," ");
  3026.             SendClientMessage(i,COLOR_WHITE," ");
  3027.             SendClientMessage(i,COLOR_WHITE," ");
  3028.             SendClientMessage(i,COLOR_WHITE," ");
  3029.             SendClientMessage(i,COLOR_WHITE," ");
  3030.             SendClientMessage(i,COLOR_WHITE," ");
  3031.             SendClientMessage(i,COLOR_WHITE," ");
  3032.             SendClientMessage(i,COLOR_WHITE," ");
  3033.             SendClientMessage(i,COLOR_WHITE," ");
  3034.             SendClientMessage(i,COLOR_WHITE," ");
  3035.             SendClientMessage(i,COLOR_WHITE," ");
  3036.             SendClientMessage(i,COLOR_WHITE," ");
  3037.             SendClientMessage(i,COLOR_WHITE," ");
  3038.             SendClientMessage(i,COLOR_WHITE," ");
  3039.             SendClientMessage(i,COLOR_WHITE," ");
  3040.             SendClientMessage(i,COLOR_WHITE," ");
  3041.             SendClientMessage(i,COLOR_WHITE," ");
  3042.             SendClientMessage(i,COLOR_WHITE," ");
  3043.             SendClientMessage(i,COLOR_WHITE," ");
  3044.             SendClientMessage(i,COLOR_WHITE," ");
  3045.             SendClientMessage(i,COLOR_WHITE," ");
  3046.             SendClientMessage(i,COLOR_WHITE," ");
  3047.             SendClientMessage(i,COLOR_WHITE," ");
  3048.             SendClientMessage(i,COLOR_WHITE," ");
  3049.             SendClientMessage(i,COLOR_WHITE," ");
  3050.             SendClientMessage(i,COLOR_WHITE," ");
  3051.             SendClientMessage(i,COLOR_WHITE," ");
  3052.             SendClientMessage(i,COLOR_WHITE," ");
  3053.             SendClientMessage(i,COLOR_WHITE," ");
  3054.             SendClientMessage(i,COLOR_WHITE," ");
  3055.             SendClientMessage(i,COLOR_WHITE," ");
  3056.             SendClientMessage(i,COLOR_WHITE," ");
  3057.             SendClientMessage(i,COLOR_WHITE," ");
  3058.             SendClientMessage(i,COLOR_WHITE," ");
  3059.             SendClientMessage(i,COLOR_WHITE," ");
  3060.             SendClientMessage(i,COLOR_WHITE," ");
  3061.             SendClientMessage(i,COLOR_WHITE," ");
  3062.             SendClientMessage(i,COLOR_WHITE," ");
  3063.             SendClientMessage(i,COLOR_WHITE," ");
  3064.             SendClientMessage(i,COLOR_WHITE," ");
  3065.             SendClientMessage(i,COLOR_WHITE," ");
  3066.             SendClientMessage(i,COLOR_WHITE," ");
  3067.             SendClientMessage(i,COLOR_WHITE," ");
  3068.             SendClientMessage(i,COLOR_WHITE," ");
  3069.             SendClientMessage(i,COLOR_WHITE," ");
  3070.             SendClientMessage(i,COLOR_WHITE," ");
  3071.             SendClientMessage(i,COLOR_WHITE," ");
  3072.             SendClientMessage(i,COLOR_WHITE," ");
  3073.             SendClientMessage(i,COLOR_WHITE," ");
  3074.             SendClientMessage(i,COLOR_WHITE," ");
  3075.             SendClientMessage(i,COLOR_WHITE," ");
  3076.             SendClientMessage(i,COLOR_WHITE," ");
  3077.             SendClientMessage(i,COLOR_WHITE," ");
  3078.             SendClientMessage(i,COLOR_WHITE," ");
  3079.             SendClientMessage(i,COLOR_WHITE," ");
  3080.             SendClientMessage(i,COLOR_WHITE," ");
  3081.             SendClientMessage(i,COLOR_WHITE," ");
  3082.             SendClientMessage(i,COLOR_WHITE," ");
  3083.             SendClientMessage(i,COLOR_WHITE," ");
  3084.             SendClientMessage(i,COLOR_WHITE," ");
  3085.             SendClientMessage(i,COLOR_WHITE," ");
  3086.             SendClientMessage(i,COLOR_WHITE," ");
  3087.             SendClientMessage(i,COLOR_WHITE," ");
  3088.             SendClientMessage(i,COLOR_WHITE," ");
  3089.             SendClientMessage(i,COLOR_WHITE," ");
  3090.             SendClientMessage(i,COLOR_WHITE," ");
  3091.             SendClientMessage(i,COLOR_WHITE," ");
  3092.             SendClientMessage(i,COLOR_WHITE," ");
  3093.             SendClientMessage(i,COLOR_WHITE," ");
  3094.             SendClientMessage(i,COLOR_WHITE," ");
  3095.             SendClientMessage(i,COLOR_WHITE," ");
  3096.             SendClientMessage(i,COLOR_WHITE," ");
  3097.             SendClientMessage(i,COLOR_WHITE," ");
  3098.             SendClientMessage(i,COLOR_WHITE," ");
  3099.             SendClientMessage(i,COLOR_WHITE," ");
  3100.             SendClientMessage(i,COLOR_WHITE," ");
  3101.             SendClientMessage(i,COLOR_WHITE," ");
  3102.             SendClientMessage(i,COLOR_WHITE," ");
  3103.             SendClientMessage(i,COLOR_WHITE," ");
  3104.             SendClientMessage(i,COLOR_WHITE," ");
  3105.             SendClientMessage(i,COLOR_WHITE," ");
  3106.             SendClientMessage(i,COLOR_WHITE," ");
  3107.             SendClientMessage(i,COLOR_WHITE," ");
  3108.             SendClientMessage(i,COLOR_WHITE," ");
  3109.             SendClientMessage(i,COLOR_WHITE," ");
  3110.             SendClientMessage(i,COLOR_WHITE," ");
  3111.             SendClientMessage(i,COLOR_WHITE," ");
  3112.             SendClientMessage(i,COLOR_WHITE," ");
  3113.             SendClientMessage(i,COLOR_WHITE," ");
  3114.             SendClientMessage(i,COLOR_WHITE," ");
  3115.             SendClientMessage(i,COLOR_WHITE," ");
  3116.             SendClientMessage(i,COLOR_WHITE," ");
  3117.             SendClientMessage(i,COLOR_WHITE," ");
  3118.             SendClientMessage(i,COLOR_WHITE," ");
  3119.             SendClientMessage(i,COLOR_WHITE," ");
  3120.             SendClientMessage(i,COLOR_WHITE," ");
  3121.             SendClientMessage(i,COLOR_WHITE," ");
  3122.             SendClientMessage(i,COLOR_WHITE," ");
  3123.             SendClientMessage(i,COLOR_WHITE," ");
  3124.             SendClientMessage(i,COLOR_WHITE," ");
  3125.             SendClientMessage(i,COLOR_WHITE," ");
  3126.             SendClientMessage(i,COLOR_WHITE," ");
  3127.             SendClientMessage(i,COLOR_WHITE," ");
  3128.             SendClientMessage(i,COLOR_WHITE," ");
  3129.             SendClientMessage(i,COLOR_WHITE," ");
  3130.             SendClientMessage(i,COLOR_WHITE," ");
  3131.             SendClientMessage(i,COLOR_WHITE," ");
  3132.             SendClientMessage(i,COLOR_WHITE," ");
  3133.             SendClientMessage(i,COLOR_WHITE," ");
  3134.             SendClientMessage(i,COLOR_WHITE," ");
  3135.             SendClientMessage(i,COLOR_WHITE," ");
  3136.             SendClientMessage(i,COLOR_WHITE," ");
  3137.             SendClientMessage(i,COLOR_WHITE," ");
  3138.             SendClientMessage(i,COLOR_WHITE," ");
  3139.             SendClientMessage(i,COLOR_WHITE," ");
  3140.             SendClientMessage(i,COLOR_WHITE," ");
  3141.             SendClientMessage(i,COLOR_WHITE," ");
  3142.             SendClientMessage(i,COLOR_WHITE," ");
  3143.         }
  3144.         new string[128];
  3145.         if(PlayerInfo[playerid][pAdmin] == 1337 || PlayerInfo[playerid][pAdmin] == 1338)
  3146.         {
  3147.             format(string, sizeof(string), "* {FF0000}<%d Admin> {FFFF00}%s has cleared all chats.",PlayerInfo[playerid][pAdmin], PlayerName(playerid));
  3148.             SendClientMessageToAll(COLOR_YELLOW,string);
  3149.         }
  3150.         else if(PlayerInfo[playerid][pAdmin] >= 9999)
  3151.         {
  3152.             format(string, sizeof(string), "* {FF0000}<Owner> {FFFF00}%s has cleared all chats.", PlayerName(playerid));
  3153.             SendClientMessageToAll(COLOR_YELLOW,string);
  3154.         }
  3155.     }
  3156.     return 1;
  3157. }
  3158. CMD:unban(playerid, params[])
  3159. {
  3160.     if(PlayerInfo[playerid][pAdmin] >= 1337)
  3161.     {
  3162.         new string[128];
  3163.         if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Unban [Player Name]");
  3164.         if(doesAccountExist(params))
  3165.         {
  3166.             if(PlayerInfo[MAX_PLAYERS][pBanned] >= 1)
  3167.             {
  3168.                 UnbanPlayer(params);
  3169.                 OnPlayerOfflineSave(params);
  3170.                 RemoveBan(params);
  3171.                 format(string, 128, "Notice: %s was unbanned by %s.", params, PlayerName(playerid));
  3172.                 ABroadCast(COLOR_BRIGHTRED,string,1);
  3173.             }
  3174.             else
  3175.             {
  3176.                 SendClientMessage(playerid, COLOR_GREY,"That account isn't banned!");
  3177.             }
  3178.         }
  3179.         else
  3180.         {
  3181.             SendClientMessage(playerid, COLOR_GREY, "That account doesn't exist.");
  3182.         }
  3183.     }
  3184.     return 1;
  3185. }
  3186. CMD:check(playerid, params[])
  3187. {
  3188.     if (PlayerInfo[playerid][pAdmin] >= 2)
  3189.     {
  3190.         new giveplayerid;
  3191.         if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /Check [Player ID]");
  3192.  
  3193.         if(IsPlayerConnected(giveplayerid))
  3194.         {
  3195.             ShowStats(playerid,giveplayerid);
  3196.         }
  3197.         else
  3198.         {
  3199.             SendClientMessageEx(playerid, COLOR_GRAD1, "Invalid player specified.");
  3200.         }
  3201.     }
  3202.     return 1;
  3203. }
  3204. CMD:gate(playerid,params[])
  3205. {
  3206.     if(IsPlayerInRangeOfPoint(playerid, 10, 2482.30004883, -1688.80004883, 14.00000000))//Gate 1
  3207.     {
  3208.         switch(Open1)// Check's weather the gate is opened or closed.
  3209.         {
  3210.             case true:// Closes
  3211.             {
  3212.                 MoveObject(Gate1,2482.30004883,-1688.80004883,14.00000000,3000);//Closes
  3213.                 Open1 = false;
  3214.                 SendClientMessage(playerid, COLOR_GREEN, "You have closed the First Grove Gate!");
  3215.             }
  3216.             case false:// Opens
  3217.             {
  3218.                 MoveObject(Gate1,2482.30004883,-1688.80004883,20.00000000,3000);//Opens
  3219.                 Open1 = true;
  3220.                 SendClientMessage(playerid, COLOR_GREEN, "You have opened the First Grove Gate!");
  3221.             }
  3222.         }
  3223.         return 1;
  3224.     }
  3225.     else if(IsPlayerInRangeOfPoint(playerid,10,2464.50000000,-1658.69921875,14.00000000))//Gate 2
  3226.     {
  3227.         switch(Open2) // Check's weather the gate is opened or closed.
  3228.         {
  3229.             case true: // Closes
  3230.             {
  3231.                 MoveObject(Gate2,2464.50000000,-1658.69921875,14.00000000,3000);//Close the gate
  3232.                 Open2 = false;
  3233.                 SendClientMessageEx(playerid, COLOR_GREEN, "You have closed the Second Grove Gate!");
  3234.             }
  3235.             case false: //Opens
  3236.             {
  3237.                 MoveObject(Gate2,2464.50000000,-1658.69921875,20.00000000,3000);//Open the gate
  3238.                 Open2 = true;
  3239.                 SendClientMessageEx(playerid, COLOR_GREEN, "You have opened the Second Grove Gate!");
  3240.             }
  3241.         }
  3242.         return 1;
  3243.     }
  3244.     else if(IsPlayerInRangeOfPoint(playerid,10,1544.69995117,-1627.50000000,14.00000000)) //Gate 3
  3245.     {
  3246.         switch(Open3) // Check's weather the gate is opened or closed.
  3247.         {
  3248.             case true: // Closes
  3249.             {
  3250.                 MoveObject(Gate3,1544.69995117,-1627.50000000,14.00000000,3000);//Close the gate
  3251.                 Open3 = false;
  3252.                 SendClientMessageEx(playerid, COLOR_GREEN, "You have closed the LSPD Gate!");
  3253.             }
  3254.             case false: // Opens
  3255.             {
  3256.                 MoveObject(Gate3,1544.69995117,-1627.50000000,20.00000000,3000);//Open the gate
  3257.                 Open3 = true;
  3258.                 SendClientMessageEx(playerid, COLOR_GREEN, "You have opened the LSPD Gate!");
  3259.             }
  3260.         }
  3261.         return 1;
  3262.     }
  3263.     else
  3264.     {
  3265.         SendClientMessage(playerid,COLOR_GREY,"You're not close enough to any gate.");//
  3266.     }
  3267.     return 1;
  3268. }
  3269. #pragma unused CheckText
  3270. CMD:tow(playerid, params[])
  3271. {
  3272.     if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) return SendClientMessage(playerid, COLOR_GREY, "You are already towing a vehicle.");
  3273.     new Float:PPPX,Float:PPPY,Float:PPPZ;
  3274.     GetPlayerPos(playerid,PPPX,PPPY,PPPZ);
  3275.     new Float:VVVX,Float:VVVY,Float:VVVZ;
  3276.     new Found=0;
  3277.     new VID=0;
  3278.     while((VID<MAX_VEHICLES)&&(!Found))
  3279.     {
  3280.         VID++;
  3281.         GetVehiclePos(VID,VVVX,VVVY,VVVZ);
  3282.         if  ((floatabs(PPPX-VVVX)<7.0)&&(floatabs(PPPY-VVVY)<7.0)&&(floatabs(PPPZ-VVVZ)<7.0)&&(VID!=GetPlayerVehicleID(playerid)))
  3283.         {
  3284.             Found=1;
  3285.             AttachTrailerToVehicle(VID,GetPlayerVehicleID(playerid));
  3286.         }
  3287.  
  3288.     }
  3289.     if (!Found)
  3290.     {
  3291.         SendClientMessage(playerid,COLOR_GREY,"There is no vehicle in range.");
  3292.     }
  3293.     return 1;
  3294. }
  3295. /*
  3296. TBA List (To Be Added):
  3297. 1.) Currently Nothing.. Will wait until ideas are given.
  3298.  
  3299. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement