Share Pastebin
Guest
Public paste!

Stunt

By: a guest | Mar 21st, 2010 | Syntax: None | Size: 199.79 KB | Hits: 97 | Expires: Never
Copy text to clipboard
  1. //---INCLUDES---//
  2. #include <a_samp>
  3. #include <dutils>
  4. //---TABSIZE---//
  5. #pragma tabsize 0
  6. //---UNUSED---//
  7. #pragma unused ret_memcpy
  8. #pragma unused bombicon
  9. #pragma unused Bomb
  10. #pragma unused CP
  11. #pragma unused CP2
  12. #pragma unused CP3
  13. #pragma unused CPR1
  14. #pragma unused CPR2
  15. #pragma unused CountD
  16. #pragma unused CountText
  17. #pragma unused cpc
  18. #pragma unused cpc2
  19. #pragma unused cpc3
  20. #pragma unused cpcr1
  21. #pragma unused cpcr2
  22. //---/VIEW--//
  23. #define SPEC_TYPE_NONE 0
  24. #define SPEC_TYPE_PLAYER 1
  25. #define PLAYER_VIEW 0xC0C0C0FF
  26. //---COLORS--//
  27. #define COLOR_VIOLET 0x9955DEEE
  28. #define COLOR_ZIELONY 0x00FF00FF
  29. #define COLOR_LIGHTRED 0xFF99AADD
  30. #define COLOR_SEAGREEN 0x00EEADDF
  31. #define COLOR_GRAYWHITE 0xEEEEFFC4
  32. #define COLOR_LIGHTNEUTRALBLUE 0xabcdef66
  33. #define COLOR_GREENISHGOLD 0xDEAD4370
  34. #define COLOR_LIGHTBLUEGREEN 0x0FFDD349
  35. #define COLOR_NEUTRALBLUE 0xABCDEF01{
  36. #define COLOR_LIGHTCYAN 0xAAFFCC33
  37. #define COLOR_LEMON 0xDDDD2357
  38. #define COLOR_MEDIUMBLUE 0x63AFF00A
  39. #define COLOR_NEUTRAL 0xABCDEF97
  40. #define COLOR_BLACK 0x00000000
  41. #define COLOR_NEUTRALGREEN 0x81CFAB00
  42. #define COLOR_DARKGREEN 0x12900BBF
  43. #define COLOR_LIGHTGREEN 0x24FF0AB9
  44. #define COLOR_DARKBLUE 0x300FFAAB
  45. #define COLOR_BLUEGREEN 0x46BBAA00
  46. #define COLOR_PINK 0xFF66FFAA
  47. #define COLOR_BLUE 0x0000BBAA
  48. #define COLOR_LIGHTBLUE 0x33CCFFAA
  49. #define COLOR_DARKRED 0x660000AA
  50. #define COLOR_ORANGE 0xFF9900AA
  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_ADMIN 0xFF0000AA
  57. #define CZERWONY 0xAA3333AA
  58. #define kolor1 0x00FF00FF
  59. #define POMARANCZOWY 0xFF661CFF
  60.  
  61. ///////////////////////
  62. #define GREEN 0x21DD00FF
  63. #define RED 0xE60000FF
  64. #define ADMIN_RED 0xFB0000FF
  65. #define YELLOW 0xFFFF00FF
  66. #define ORANGE 0xF97804FF
  67. #define LIGHTRED 0xFF8080FF
  68. #define LIGHTBLUE 0x00C2ECFF
  69. #define PURPLE 0xB360FDFF
  70. #define PLAYER_COLOR 0xFFFFFFFF
  71. #define BLUE 0x1229FAFF
  72. #define LIGHTGREEN 0x38FF06FF
  73. #define DARKPINK 0xE100E1FF
  74. #define DARKGREEN 0x008040FF
  75. #define ANNOUNCEMENT 0x00CACAFB
  76. #define AFK 0x6AF7E1FF
  77. //---MISC--//
  78. #define SLOTS MAX_PLAYERS
  79. #define COLOR_SYSTEM 0xEFEFF7AA
  80. #define SPEC_TYPE_NONE 0
  81. #define SPEC_TYPE_PLAYER 1
  82. #define SPEC_TYPE_VEHICLE 2
  83.  
  84. enum pInfo
  85. {
  86.         pAdminLevel,
  87.         pKey[128],
  88.         pCash,
  89.         pWarns,
  90. };
  91.  
  92. new PlayerInfo[MAX_PLAYERS][pInfo];
  93. new playername[MAX_PLAYER_NAME];
  94. new Peds[217][1] = {
  95. {264},
  96. {288},
  97. {286},{287},{228},{113},{120},{147},{294},{227},{61},{171},
  98. {247},
  99. {248},{100},{256},{263},{262},{261},{260},{259},{258},{257},{256},{255},
  100. {253},{252},{251},{249},{246},{245},{244},{243},{242},{241},{240},{239},
  101. {238},{237},{236},{235},{234},{233},{232},{231},{230},{229},
  102. {226},{225},{173},{174},{175},{224},{223},{222},{221},{220},{219},{218},
  103. {217},{216},{215},{214},{213},{212},{211},{210},{209},
  104. {207},{206},{205},{204},{203},{202},{201},{200},{199},{198},{197},{196},
  105. {195},{194},{193},{192},{191},{190},{189},{185},{184},{183},
  106. {182},{181},{180},{179},{178},{176},{172},{170},{168},{167},{162},
  107. {161},{160},{159},{158},{157},{156},{155},{154},{153},{152},{151},
  108. {146},{145},{144},{143},{142},{141},{140},{139},{138},{137},{136},{135},
  109. {134},{133},{132},{131},{130},{129},{128},{254},{99},{97},{96},{95},{94},
  110. {92},{90},{89},{88},{87},{85},{84},{83},{82},{81},{80},{79},{78},{77},{76},
  111. {75},{73},{72},{69},{68},{67},{66},{64},{63},{62},{58},{57},{56},{55},
  112. {54},{53},{52},{51},{50},{49},{45},{44},{43},{41},{39},{38},{37},{36},{35},
  113. {34},{33},{32},{31},{30},{29},{28},{27},{26},{25},{24},{23},{22},{21},{20},
  114. {19},{18},{17},{16},{15},{14},{13},{12},{11},{10},{1},{2},
  115. {290},
  116. {291},
  117. {292},
  118. {293},
  119. {187},
  120. {296},
  121. {297},
  122. {298},
  123. {299}
  124. };
  125. new player[MAX_PLAYER_NAME];
  126. new giveplayer[MAX_PLAYER_NAME];
  127. new CountDelay[MAX_PLAYERS];
  128. new Drift1Race[MAX_PLAYERS];
  129. new Drift2Race[MAX_PLAYERS];
  130. new Drift3Race[MAX_PLAYERS];
  131. new Race1Arena[MAX_PLAYERS];
  132. new Race2Arena[MAX_PLAYERS];
  133. new DMArena[MAX_PLAYERS];
  134. new deagle;
  135. new shotgun;
  136. new sawnoff;
  137. new spaz;
  138. new uzi;
  139. new mp5;
  140. new ak;
  141. new m4;
  142. new tec9;
  143. new pistol;
  144. new sniper1;
  145. new sniper2;
  146. new rocketlaunch;
  147. new armor;
  148. new DMexitICON;
  149. new knife;
  150. new barrelplayer,barrelplayer2,barrelplayer3;
  151. //--Drift1--//
  152. const cpa=28; ///total number of CheckPoints Allocated
  153. new cpc=0; // sets the CheckPointCounter to zero
  154. new Float:CP[cpa][28] =
  155. {
  156. {-302.255035, 1505.969238, 74.411736}, // x,y,z coordinates of the 1st CheckPoint
  157. {-441.163452, 1448.191895, 32.653084},
  158. {-394.743042, 1758.622070, 42.693645},
  159. {-400.210571, 1914.289307, 57.094341},
  160. {-438.057556, 1761.635742, 71.032410},
  161. {-435.510254, 2001.613647, 73.374550},
  162. {-385.328156, 2076.848877, 59.959751},
  163. {-552.458923, 2007.411377, 59.382813},
  164. {-883.589722, 1974.647339, 59.181732},
  165. {-933.603333, 1798.130859, 59.263165},
  166. {-1193.072998, 1798.982544, 40.252300},
  167. {-1506.610229, 1843.736206, 29.534857},
  168. {-1734.920532, 1822.965698, 22.676218},
  169. {-1812.130127, 2109.986084, 7.296963},
  170. {-1990.656372, 2263.711182, 16.179716},
  171. {-1915.336304, 2507.300537, 42.769444},
  172. {-1739.025757, 2728.958008, 59.358620},
  173. {-1317.115723, 2651.428711, 48.921650},
  174. {-1172.758423, 2691.815186, 44.867188},
  175. {-795.664185, 2729.944092, 44.339096},
  176. {-769.773560, 2693.295654, 46.184345},
  177. {-702.479370, 2679.611572, 56.226120},
  178. {-659.634583, 2492.241943, 74.390343},
  179. {-469.553284, 2442.402100, 48.676949},
  180. {-360.234619, 2497.114746, 36.368027},
  181. {-353.467896, 2529.799805, 35.023438},
  182. {-408.920227, 2591.400391, 42.016609},
  183. {-504.122131, 2592.951172, 52.459160}  // NOTICE THERE IS NO COMMA AFTER THE FINAL CHECKPOINT!
  184. };
  185. //--Drift2--//
  186. const cpa2=7;
  187. new cpc2=0;
  188. new Float:CP2[cpa2][3] =
  189. {
  190. {2310.124756, 1508.776001, 41.820313},
  191. {2293.793457, 1394.738037, 35.421875},
  192. {2319.171875, 1509.581909, 29.023438},
  193. {2295.045898, 1395.905884, 22.625000},
  194. {2320.484863, 1510.013794, 16.218750},
  195. {2293.777344, 1397.717651, 9.820313},
  196. {2297.440674, 1508.764771, 9.820313}
  197. };
  198. //--Drift3--//
  199. const cpa3=8;
  200. new cpc3=0;
  201. new Float:CP3[cpa3][3] =
  202. {
  203. {-2487.255127, -480.539825, 96.198448},
  204. {-2626.784912, -499.828400, 69.545448},
  205. {-2508.800781, -453.006287, 72.860794},
  206. {-2331.215820, -461.678925, 79.022957},
  207. {-2433.086426, -368.178772, 70.533913},
  208. {-2673.066162, -417.812042, 31.164684},
  209. {-2683.080322, -525.564026, 15.495153},
  210. {-2783.909912, -489.760376, 6.187500}
  211. };
  212. //--RaceArena1--//
  213. const cpar1=15;
  214. new cpcr1=0;
  215. new Float:CPR1[cpar1][3] =
  216. {
  217. {-2681.047363, 1353.523315, 54.812500},
  218. {-2682.027832, 2156.840332, 54.812500},
  219. {-2743.640625, 2405.250732, 72.704224},
  220. {-2284.801514, 2639.530762, 54.429688},
  221. {-1937.340942, 2460.344727, 53.284943},
  222. {-1773.345825, 2183.294922, 15.133579},
  223. {-1640.453979, 1859.591187, 14.034841},
  224. {-1253.381348, 1674.314575, 8.364441},
  225. {-1053.491089, 1309.548828, 31.337543},
  226. {-889.524048, 852.368530, 18.453125},
  227. {-360.655212, 552.266296, 15.405418},
  228. {98.642044, 669.318481, 4.592655},
  229. {532.032776, 725.988892, 9.983565},
  230. {585.552063, 796.823792, -31.270123},
  231. {721.813416, 911.793579, -20.443537}
  232. };
  233. //--RaceArena2--//
  234. const cpar2=15;
  235. new cpcr2=0;
  236. new Float:CPR2[cpar2][3] =
  237. {
  238. {-726.713074, 2306.874756, 127.169479},
  239. {-860.788208, 2308.576172, 157.561020},
  240. {-1066.842529, 2297.384277, 87.257813},
  241. {-1097.099365, 2336.041504, 85.150032},
  242. {-1119.647461, 2365.057861, 83.932152},
  243. {-1149.389648, 2266.738525, 95.739021},
  244. {-1296.808228, 2222.078369, 98.278290},
  245. {-1347.353760, 2322.457275, 94.001648},
  246. {-1369.077393, 2349.464355, 91.868408},
  247. {-1448.492188, 2367.059814, 52.018394},
  248. {-1511.233643, 2368.057373, 47.838337},
  249. {-1526.258667, 2342.234131, 45.524185},
  250. {-1529.338257, 2191.704102, 49.082947},
  251. {-1479.970093, 2075.074951, 45.225498},
  252. {-1507.862427, 1973.954468, 47.417137}
  253. };
  254. new DM;
  255. new Text:dms;
  256. new Text:dmk;
  257. new Text:dmh;
  258. new Text:dmr[MAX_PLAYERS];
  259. new Text:dmrh[MAX_PLAYERS];
  260. new Stats[MAX_PLAYERS];
  261. new DMs;
  262. new Ramp[MAX_PLAYERS];
  263. new ramp;
  264. new ramp2;
  265. new nb1,nb2,nb3,nb4,nb5,nb6,nb7,nb8,nb9,nb10,nb11,nb12,nb13,nb14,nb15,nb16;
  266. new Mute[MAX_PLAYERS];
  267. new level;
  268. new IsLogged[MAX_PLAYERS];
  269. new BoughtVeh[MAX_PLAYERS];
  270. new CCIsLogged[MAX_PLAYERS];
  271. new CCm4;
  272. new CCak47;
  273. new CCsniper;
  274. new CCAC;
  275. new SpectateID[MAX_PLAYERS];
  276. new SpectateType[MAX_PLAYERS];
  277. new View[MAX_PLAYERS];
  278. new CC;
  279. new AttachP;
  280. new Connected[MAX_PLAYERS];
  281. new CarLock;
  282. new KillScore[MAX_PLAYERS];
  283. new DeathScore[MAX_PLAYERS];
  284. new WebAn,An1,An2,An3,An4,An5,An6;
  285. new BombInstalled[MAX_VEHICLES];
  286. new bombicon;
  287. new SuperPunch[MAX_PLAYERS];
  288. new Count[MAX_PLAYERS];
  289. new Bomb;
  290. new ViewCmds[MAX_PLAYERS];
  291. new afk[MAX_PLAYERS];
  292. new CountText[5][30] ={
  293. "~p~~h~countdown~n~~r~~h~1",
  294. "~p~~h~countdown~n~~r~2",
  295. "~p~~h~countdown~n~~y~3",
  296. "~p~~h~countdown~n~~b~4",
  297. "~p~~h~countdown~n~~b~~h~5"
  298. };
  299. new CountD = 5;
  300. new WeapKillString[256];
  301. new VehSuperPunch[MAX_PLAYERS];
  302. new BCountText[5][30] ={
  303. "~r~~h~1",
  304. "~r~2",
  305. "~y~3",
  306. "~b~4",
  307. "~b~~h~~h~5"
  308. };
  309.  
  310. forward CountDown();
  311. forward CountDown2();
  312. forward CountDown3();
  313. forward IsPlayerInArea(playerid,Float:max_x,Float:min_x,Float:max_y,Float:min_y);
  314. forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
  315. forward ScoreCheck(killerid);
  316. forward DMStatsCheck(playerid);
  317. forward ObjectAttachedToPlayer();
  318. forward WeaponsNames(playerid, killerid);
  319. forward NuclearBombs();
  320. forward NuclearBombsSuccess();
  321. forward VehRepair();
  322. forward OnPlayerLogin(playerid,password[]);
  323. forward OnPlayerRegister(playerid, password[]);
  324. forward OnPlayerUpdate(playerid);
  325. forward SendClientMessageToAdmins(color,const string[],alevel);
  326. forward PingCheck(playerid);
  327. forward VehicleSpawn(playerid, vehicleid);
  328. forward BanLog(string[]);
  329. forward KickLog(string[]);
  330. forward VehicleLog(string[]);
  331. forward SendClientMessageToCC(color,const string[]);
  332. forward CCAreaCheck();
  333. forward AttachPlayer( Float:X, Float:Y, Float:Z);
  334. forward VehLock();
  335. forward WebSite();
  336. forward VehFullRepair();
  337. forward Announcement1();
  338. forward Announcement2();
  339. forward Announcement3();
  340. forward Announcement4();
  341. forward Announcement5();
  342. forward Announcement6();
  343. forward ReplaceVehicle(vehicleid, Float:X, Float:Y, Float:Z, Float:Ang);
  344. forward BombCar(vehicleid);
  345. forward BombCountDown(playerid);
  346. forward BombPickup(playerid);
  347.  
  348. main()
  349. {
  350. print("|--------------------------------|");
  351. print("  Stunt By Tomo");
  352. print("|--------------------------------|");
  353. }
  354.  
  355. stock IsNumeric(const string[])
  356. {
  357.         for (new i = 0, j = strlen(string); i < j; i++)
  358.         if (string[i] > '9' || string[i] < '0')
  359.     return 0;
  360.         return 1;
  361. }
  362.  
  363. ReturnUser(text[], playerid = INVALID_PLAYER_ID)
  364. {
  365.         new pos = 0;
  366.         while (text[pos] < 0x21)
  367.         {
  368.         if (text[pos] == 0) return INVALID_PLAYER_ID;
  369.         pos++;
  370.         }
  371.         new userid = INVALID_PLAYER_ID;
  372.         if (IsNumeric(text[pos]))
  373.         {
  374.         userid = strval(text[pos]);
  375.         if (userid >=0 && userid < MAX_PLAYERS)
  376.         {
  377.         if(!IsPlayerConnected(userid))
  378.         {
  379.         userid = INVALID_PLAYER_ID;
  380.         }
  381.         else
  382.         {
  383.         return userid;
  384.         }
  385.         }
  386.         }
  387.         new len = strlen(text[pos]);
  388.         new count = 0;
  389.         new pname[MAX_PLAYER_NAME];
  390.         for (new i = 0; i < MAX_PLAYERS; i++)
  391.         {
  392.         if (IsPlayerConnected(i))
  393.         {
  394.         GetPlayerName(i, pname, sizeof (pname));
  395.         if (strcmp(pname, text[pos], true, len) == 0)
  396.         {
  397.         if (len == strlen(pname))
  398.         {
  399.         return i;
  400.         }
  401.         else
  402.         {
  403.         count++;
  404.         userid = i;
  405.         }
  406.         }
  407.         }
  408.         }
  409.         if (count != 1)
  410.         {
  411.         if (playerid != INVALID_PLAYER_ID)
  412.         {
  413.         if (count)
  414.         {
  415.         SendClientMessage(playerid, COLOR_SYSTEM, "There are multiple users, enter full playername.");
  416.         }
  417.         else
  418.         {
  419.         SendClientMessage(playerid, COLOR_SYSTEM, "Playername not found.");
  420.         }
  421.         }
  422.         userid = INVALID_PLAYER_ID;
  423.         }
  424.         return userid;
  425. }
  426.  
  427. SendToDriver(vehicleid, const str[])
  428. {
  429.         for(new i=0; i<MAX_PLAYERS; i++)
  430.         {
  431.             if(IsPlayerConnected(i))
  432.             {
  433.                 if(IsPlayerInVehicle(i, vehicleid))
  434.                 {
  435.                     if(GetPlayerState(i) == 2)
  436.                     {
  437.                         SendClientMessage(i, GREEN, str);
  438.                         return i;
  439.                                 }
  440.                         }
  441.                 }
  442.         }
  443.         return 1;
  444. }
  445.  
  446. stock ini_GetKey( line[] )
  447. {
  448.         new keyRes[256];
  449.         keyRes[0] = 0;
  450.     if ( strfind( line , "=" , true ) == -1 ) return keyRes;
  451.     strmid( keyRes , line , 0 , strfind( line , "=" , true ) , sizeof( keyRes) );
  452.     return keyRes;
  453. }
  454.  
  455. stock ini_GetValue( line[] )
  456. {
  457.         new valRes[256];
  458.         valRes[0]=0;
  459.         if ( strfind( line , "=" , true ) == -1 ) return valRes;
  460.         strmid( valRes , line , strfind( line , "=" , true )+1 , strlen( line ) , sizeof( valRes ) );
  461.         return valRes;
  462. }
  463.  
  464. public VehicleLog(string[])
  465. {
  466.         new entry[256];
  467.         format(entry, sizeof(entry), "%s\n",string);
  468.         new File:hFile;
  469.         hFile = fopen("vehiclespawn.log", io_append);
  470.         fwrite(hFile, entry);
  471.         fclose(hFile);
  472. }
  473.  
  474. public KickLog(string[])
  475. {
  476.         new entry[256];
  477.         format(entry, sizeof(entry), "%s\n",string);
  478.         new File:hFile;
  479.         hFile = fopen("kick.log", io_append);
  480.         fwrite(hFile, entry);
  481.         fclose(hFile);
  482. }
  483.  
  484. public BanLog(string[])
  485. {
  486.         new entry[256];
  487.         format(entry, sizeof(entry), "%s\n",string);
  488.         new File:hFile;
  489.         hFile = fopen("ban.log", io_append);
  490.         fwrite(hFile, entry);
  491.         fclose(hFile);
  492. }
  493.  
  494. public SendClientMessageToAdmins(color,const string[],alevel)
  495. {
  496.         for(new i = 0; i < MAX_PLAYERS; i++)
  497.         {
  498.                 if(IsPlayerConnected(i))
  499.                 {
  500.                         if (PlayerInfo[i][pAdminLevel] >= alevel)
  501.                         {
  502.                                 SendClientMessage(i, color, string);
  503.                                 printf("%s", string);
  504.                         }
  505.                 }
  506.         }
  507.         return 1;
  508. }
  509.  
  510. public SendClientMessageToCC(color,const string[])
  511. {
  512.         for(new i = 0; i < MAX_PLAYERS; i++)
  513.         {
  514.                 if(IsPlayerConnected(i))
  515.                 {
  516.                         if (CCIsLogged[i] == 1)
  517.                         {
  518.                                 SendClientMessage(i, color, string);
  519.                                 printf("%s", string);
  520.                         }
  521.                 }
  522.         }
  523.         return 1;
  524. }
  525.  
  526. public OnPlayerRegister(playerid, password[])
  527. {
  528.         if(IsPlayerConnected(playerid))
  529.         {
  530.                         new string3[32];
  531.                         new playername3[MAX_PLAYER_NAME];
  532.                         GetPlayerName(playerid, playername3, sizeof(playername3));
  533.                         format(string3, sizeof(string3), "%s.ini", playername3);
  534.                         new File: hFile = fopen(string3, io_write);
  535.                         if (hFile)
  536.                         {
  537.                             strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
  538.                             new var[32];
  539.                             PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
  540.                                 format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
  541.                                 format(var, 32, "Cash=%s\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
  542.                                 format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdminLevel]);fwrite(hFile, var);
  543.                                 format(var, 32, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
  544.                                 format(var, 32, "Kills=%d\n",KillScore[playerid]);fwrite(hFile, var);
  545.                                 format(var, 32, "Death=%d\n",DeathScore[playerid]);fwrite(hFile, var);
  546.                                 fclose(hFile);
  547.                                 SendClientMessage(playerid, GREEN, "Account successfully registered. You can now login(/login [password]).");
  548.                                 }
  549.         }
  550.         return 1;
  551. }
  552.  
  553. public OnPlayerUpdate(playerid)
  554. {
  555.         if(IsPlayerConnected(playerid))
  556.         {
  557.                 if(IsLogged[playerid] == 1)
  558.                 {
  559.                         new string3[32];
  560.                         new playername3[MAX_PLAYER_NAME];
  561.                         GetPlayerName(playerid, playername3, sizeof(playername3));
  562.                         format(string3, sizeof(string3), "%s.ini", playername3);
  563.                         new File: hFile = fopen(string3, io_write);
  564.                         if (hFile)
  565.                         {
  566.                             PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
  567.                                 new var[32];
  568.                                 format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
  569.                                 format(var, 32, "Cash=%d\n", PlayerInfo[playerid][pCash]);fwrite(hFile, var);
  570.                                 format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdminLevel]);fwrite(hFile, var);
  571.                                 format(var, 32, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
  572.                                 format(var, 32, "Kills=%d\n",KillScore[playerid]);fwrite(hFile, var);
  573.                                 format(var, 32, "Death=%d\n",DeathScore[playerid]);fwrite(hFile, var);
  574.                                 fclose(hFile);
  575.                         }
  576.                 }
  577.         }
  578.         return 1;
  579. }
  580.  
  581. public OnPlayerLogin(playerid,password[])
  582. {
  583. //      new tmp2[256];
  584.     new string2[64];
  585.         new playername2[MAX_PLAYER_NAME];
  586.     GetPlayerName(playerid, playername2, sizeof(playername2));
  587.         format(string2, sizeof(string2), "%s.ini", playername2);
  588.         new File: UserFile = fopen(string2, io_read);
  589.         if ( UserFile )
  590.         {
  591.             new PassData[256];
  592.             new keytmp[256], valtmp[256];
  593.             fread( UserFile , PassData , sizeof( PassData ) );
  594.             keytmp = ini_GetKey( PassData );
  595.             if( strcmp( keytmp , "Key" , true ) == 0 )
  596.                 {
  597.                         valtmp = ini_GetValue( PassData );
  598.                         strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255);
  599.                 }
  600.                 if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0 )
  601.                 {
  602.                             new key[ 256 ] , val[ 256 ];
  603.                             new Data[ 256 ];
  604.                             while ( fread( UserFile , Data , sizeof( Data ) ) )
  605.                                 {
  606.                                         key = ini_GetKey( Data );
  607.                                         if( strcmp( key , "AdminLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdminLevel] = strval( val ); }
  608.                                         if( strcmp( key , "Cash" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strval( val ); }
  609.                                         if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strval( val ); }
  610.                                         if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); KillScore[playerid] = strval( val ); }
  611.                                         if( strcmp( key , "Death" , true ) == 0 ) { val = ini_GetValue( Data ); DeathScore[playerid] = strval( val ); }
  612.                 }//end while
  613.                 fclose(UserFile);//close the file after everything has been read in the while
  614.                 IsLogged[playerid] = 1;
  615.                 }
  616.                 else
  617.                 {
  618.                         SendClientMessage(playerid, RED, "Incorrect Password.");
  619.                 fclose(UserFile);
  620.                 return 1;
  621.                 }
  622.                 format(string2, sizeof(string2), "You have successfully logged in as %s.",playername2);
  623.                 SendClientMessage(playerid, GREEN,string2);
  624.                 printf("%s has logged in.",playername2);
  625.                 if (PlayerInfo[playerid][pAdminLevel] >= 1)
  626.                 {
  627.         format(string2, sizeof(string2), "You are now logged in as a Level %d Admin.",PlayerInfo[playerid][pAdminLevel]);
  628.                 SendClientMessage(playerid, GREEN,string2);
  629.                 }
  630.                 GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
  631.         }
  632.         return 1;
  633. }
  634.  
  635. public OnGameModeInit()
  636. {
  637. WebAn = SetTimer("WebSite", 450000, 1);
  638. EnableStuntBonusForAll(0);
  639. SetTimer("CMCheck",500,1);
  640. UsePlayerPedAnims();
  641. //SetDisabledWeapons(43,44,45);
  642. SetGameModeText("Stunt By Tomo");
  643. /*--------------------------Objects [ 145 ] --------------------------*/
  644. //DeathMatch Arena//
  645. CreateObject(1225, 1394.421143, 2801.646973, 10.226068, 0, 0, 0);
  646. CreateObject(1225, 1394.421143, 2801.646973, 10.226068, 0, 0, 0);
  647. CreateObject(1225, 1382.974365, 2779.775146, 10.374505, 0, 0, 0);
  648. CreateObject(1225, 1379.300537, 2820.208008, 10.226068, 0, 0, 0);
  649. CreateObject(1225, 1359.069336, 2835.471436, 10.226068, 0, 0, 0);
  650. CreateObject(1225, 1341.266602, 2807.391602, 10.226068, 0, 0, 0);
  651. CreateObject(1225, 1333.386597, 2838.064697, 10.226068, 0, 0, 0);
  652. CreateObject(1225, 1316.230713, 2819.156250, 10.226068, 0, 0, 0);
  653. CreateObject(1225, 1306.382324, 2841.635498, 10.226068, 0, 0, 0);
  654. CreateObject(1225, 1274.138794, 2817.096680, 10.226068, 0, 0, 0);
  655. CreateObject(1225, 1309.834595, 2770.504150, 10.226068, 0, 0, 0);
  656. CreateObject(1225, 1259.328857, 2786.661133, 10.226068, 0, 0, 0);
  657. CreateObject(1225, 1261.476440, 2757.732666, 10.226068, 0, 0, 0);
  658. CreateObject(1225, 1236.798218, 2820.575439, 10.226068, 0, 0, 0);
  659. CreateObject(1225, 1212.357300, 2810.865479, 10.226068, 0, 0, 0);
  660. CreateObject(1225, 1232.160889, 2773.733887, 10.226068, 0, 0, 0);
  661. CreateObject(1225, 1204.170654, 2741.543701, 10.233880, 0, 0, 0);
  662. CreateObject(1225, 1188.199097, 2764.743652, 10.226068, 0, 0, 0);
  663. CreateObject(1225, 1173.148926, 2792.352539, 10.226068, 0, 0, 0);
  664. CreateObject(1225, 1152.216187, 2775.703613, 10.226068, 0, 0, 0);
  665. CreateObject(1225, 1163.331299, 2836.286377, 10.226068, 0, 0, 0);
  666. CreateObject(1225, 1201.100220, 2852.451904, 10.226068, 0, 0, 0);
  667. CreateObject(1225, 1137.832275, 2804.354004, 10.374505, 0, 0, 0);
  668. CreateObject(1225, 1125.284546, 2763.734619, 9.697108, 0, 0, 0);
  669. CreateObject(1225, 1126.142700, 2763.629395, 9.669478, 0, 0, 0);
  670. CreateObject(1225, 1126.700562, 2762.705566, 9.565567, 0, 0, 0);
  671. CreateObject(1225, 1126.184814, 2761.928711, 9.534018, 0, 0, 0);
  672. CreateObject(1225, 1125.394775, 2761.738281, 9.610239, 0, 0, 0);
  673. CreateObject(1225, 1124.428345, 2762.278564, 9.656989, 0, 0, 0);
  674. CreateObject(1225, 1374.238281, 2738.846436, 10.226068, 0, 0, 0);
  675. CreateObject(1225, 1410.170044, 2745.029053, 10.226068, 0, 0, 0);
  676. CreateObject(1225, 1409.693604, 2745.737061, 10.226068, 0, 0, 0);
  677. CreateObject(1225, 1410.321655, 2746.420410, 10.226068, 0, 0, 0);
  678. CreateObject(1225, 1411.273315, 2744.817139, 10.226068, 0, 0, 0);
  679. CreateObject(1225, 1411.375488, 2746.298828, 10.226068, 0, 0, 0);
  680. CreateObject(3279, 1367.569092, 2854.406006, 9.895929, 0, 0, 258.75);
  681. CreateObject(3279, 1170.504150, 2770.411865, 10.426961, 0, 0, 11.25);
  682. CreateObject(16641, 1171.471680, 2750.984863, 11.582980, 0, 0, 0);
  683. CreateObject(16641, 1159.371704, 2800.570068, 11.575168, 0, 0, 270);
  684. CreateObject(16641, 1218.682007, 2837.512695, 11.340486, 0, 0, 0);
  685. CreateObject(16641, 1294.750488, 2833.845703, 11.575168, 0, 0, 0);
  686. CreateObject(16641, 1303.165161, 2756.475586, 11.575168, 0, 0, 0);
  687. CreateObject(16641, 1356.359741, 2799.102539, 11.122785, 0, 0, 0);
  688. CreateObject(16641, 1361.933350, 2760.661377, 11.057704, 0, 0, 0);
  689. CreateObject(3374, 1323.385498, 2753.027588, 11.314289, 0, 0, 0);
  690. CreateObject(3374, 1352.437988, 2736.644287, 11.314289, 0, 0, 0);
  691. CreateObject(3374, 1361.510498, 2783.245605, 11.306578, 0, 0, 0);
  692. CreateObject(3374, 1329.457275, 2808.185791, 11.314289, 0, 0, 0);
  693. CreateObject(3374, 1350.745850, 2819.493164, 11.314289, 0, 0, 0);
  694. CreateObject(3374, 1381.715576, 2815.797607, 11.314289, 0, 0, 0);
  695. CreateObject(3374, 1404.882813, 2788.174561, 11.314289, 0, 0, 0);
  696. CreateObject(3374, 1395.840332, 2761.134033, 11.314289, 0, 0, 0);
  697. CreateObject(3374, 1255.182861, 2840.455566, 11.314289, 0, 0, 0);
  698. CreateObject(3374, 1180.170654, 2784.366455, 11.314289, 0, 0, 0);
  699. CreateObject(3374, 1202.893799, 2776.871826, 11.783143, 0, 0, 0);
  700. CreateObject(3374, 1197.304565, 2816.789307, 11.314289, 0, 0, 0);
  701. CreateObject(3374, 1139.212769, 2759.207275, 11.314289, 0, 0, 0);
  702. CreateObject(3267, 1170.062134, 2770.009277, 26.065529, 0, 0, 0);
  703. CreateObject(3267, 1367.281250, 2854.297852, 25.534498, 0, 0, 0);
  704. CreateObject(1676, 1362.489136, 2825.782227, 11.401179, 0, 0, 0);
  705. CreateObject(1676, 1297.444336, 2810.228516, 11.549617, 0, 0, 0);
  706. CreateObject(4811, 1364.545654, 2868.894531, 21.551491, 0, 0, 66.4859);
  707. CreateObject(4811, 1265.006226, 2865.138428, 20.723425, 0, 0, 65.6265);
  708. CreateObject(4812, 1181.717773, 2876.913574, 20.780191, 0, 0, 98.6717);
  709. CreateObject(4812, 1099.657104, 2807.638428, 21.188910, 0, 0, 185.0794);
  710. CreateObject(4811, 1156.019531, 2725.143066, 20.634317, 0, 0, 243.2028);
  711. CreateObject(4811, 1221.966431, 2718.852539, 20.751495, 0, 0, 251.0151);
  712. CreateObject(4811, 1315.453735, 2723.069824, 20.712118, 0, 0, 245.7811);
  713. CreateObject(4811, 1376.420532, 2723.234375, 20.803871, 0, 0, 247.5);
  714. CreateObject(987, 1427.196533, 2728.195801, 9.820313, 0, 0, 91.6415);
  715. CreateObject(987, 1418.045410, 2811.082520, 9.824651, 0, 0, 90);
  716. CreateObject(986, 1420.075684, 2807.672852, 11.535318, 0, 0, 123.7499);
  717. CreateObject(987, 1417.714233, 2858.898438, 9.770313, 0, 0, 94.3745);
  718. CreateObject(987, 1417.201904, 2858.638672, 9.824650, 0, 0, 270);
  719. CreateObject(987, 1416.880615, 2846.676758, 9.820313, 0, 0, 270);
  720. CreateObject(987, 1416.816895, 2834.728516, 9.820313, 0, 0, 270);
  721. CreateObject(987, 1118.174194, 2731.062500, 9.732239, 0, 0, 105.5471);
  722. CreateObject(967, 1247.997925, 2778.881836, 9.820313, 0, 0, 0);
  723. CreateObject(967, 1270.463745, 2812.674316, 10.310163, 0, 0, 0);
  724. CreateObject(967, 1287.631104, 2776.083252, 9.820313, 0, 0, 0);
  725. CreateObject(967, 1230.198242, 2810.858887, 9.820309, 0, 0, 0);
  726. CreateObject(967, 1325.816772, 2851.327881, 10.202387, 0, 0, 258.75);
  727. CreateObject(967, 1335.731689, 2792.430176, 9.820313, 0, 0, 348.75);
  728. CreateObject(967, 1339.117676, 2757.069092, 8.825546, 0, 0, 0);
  729. CreateObject(5837, 1158.857300, 2836.626953, 11.537807, 0, 0, 258.75);
  730. CreateObject(5837, 1410.495972, 2822.632568, 11.537807, 0, 0, 90);
  731. CreateObject(971, 1427.333008, 2741.441895, 15.565273, 0, 0, 0);
  732. CreateObject(971, 1426.133057, 2802.419189, 16.065266, 0, 0, 333.3575);
  733. CreateObject(972, 1413.454956, 2825.735352, 2.710287, 87.6625, 0, 34.4548);
  734. CreateObject(986, 1433.862549, 2810.784180, 17.611643, 0, 0, 0);
  735. CreateObject(986, 1437.726685, 2813.354004, 15.941191, 0, 38.6747, 89.0632);
  736. CreateObject(986, 1441.507935, 2815.814453, 14.248710, 0, 0, 0);
  737. CreateObject(985, 1449.451538, 2815.796631, 14.260550, 0, 0, 0);
  738. CreateObject(980, 1457.772339, 2809.617188, 15.414513, 0, 0, 90);
  739. CreateObject(971, 1453.763550, 2815.362793, 16.101299, 0, 0, 0);
  740. CreateObject(980, 1457.717407, 2798.072510, 15.443264, 0, 0, 90);
  741. CreateObject(980, 1457.756714, 2786.542236, 15.422686, 0, 0, 90);
  742. CreateObject(980, 1457.691040, 2775.065186, 15.457050, 0, 0, 90);
  743. CreateObject(980, 1457.737427, 2763.560547, 15.432798, 0, 0, 90);
  744. CreateObject(980, 1457.681030, 2752.095947, 15.462240, 0, 0, 90);
  745. CreateObject(980, 1457.718750, 2740.607910, 15.442511, 0, 0, 90);
  746. CreateObject(980, 1451.967285, 2731.772705, 15.315205, 0, 0, 0);
  747. CreateObject(980, 1443.126465, 2731.962891, 15.442654, 0, 0, 0);
  748. CreateObject(971, 1437.652344, 2733.520752, 17.747494, 0, 32.6586, 269.0632);
  749. CreateObject(971, 1433.451172, 2737.007813, 19.269344, 0, 0, 0);
  750. CreateObject(1225, 1260.257324, 2804.757813, 14.378963, 0, 0, 0);
  751. CreateObject(1225, 1255.277710, 2804.867676, 14.359201, 0, 0, 0);
  752. CreateObject(1225, 1262.293579, 2793.773438, 14.530579, 0, 0, 0);
  753. CreateObject(1225, 1254.716553, 2793.174316, 14.422736, 0, 0, 0);
  754. CreateObject(11446, 1230.040771, 2746.384521, 10.003029, 0, 0, 191.25);
  755. CreateObject(11446, 1275.472168, 2752.257813, 9.995216, 0, 0, 258.75);
  756. CreateObject(11446, 1193.948486, 2792.116455, 9.987423, 0, 0, 101.25);
  757. CreateObject(11446, 1267.886841, 2842.820557, 9.987425, 0, 0, 11.25);
  758. CreateObject(11446, 1177.591553, 2841.525879, 9.995216, 0, 0, 90);
  759. CreateObject(11442, 1408.403320, 2860.745850, 9.994064, 0, 0, 270);
  760. CreateObject(1428, 1406.435547, 2861.713135, 13.180086, 336.7952, 3.4377, 94.2972);
  761. CreateObject(1428, 1408.133301, 2861.673096, 11.035156, 336.7952, 3.4377, 94.2972);
  762. CreateObject(1209, 1404.833984, 2860.707764, 14.651329, 91.9597, 0, 180.8594);
  763. CreateObject(14409, 1124.451538, 2821.911377, 12.987204, 0, 0, 0);
  764. CreateObject(14409, 1133.530029, 2819.432861, 19.191597, 0, 0, 89.0632);
  765. CreateObject(14409, 1136.479614, 2810.435547, 25.445990, 0, 0, 3.515);
  766. CreateObject(14409, 1144.968628, 2807.541504, 31.800381, 0, 0, 90.7821);
  767. CreateObject(1437, 1147.651123, 2804.999512, 35.900089, 332.498, 1.7189, 183.4378);
  768. CreateObject(3277, 1147.690186, 2798.914307, 40.439747, 0, 0, 345.3896);
  769. CreateObject(969, 1457.347900, 2734.993652, 9.390577, 1.7189, 270.6186, 92.5783);
  770. CreateObject(3359, 1262.328247, 2735.483643, 9.281633, 0, 0, 168.75);
  771. CreateObject(11292, 1237.817627, 2853.018555, 11.284345, 0, 0, 0);
  772. barrelplayer = CreateObject(1225,2000,2000,2000,0,0,0);
  773. barrelplayer2 = CreateObject(1225,2000,2000,2000,0,0,0);
  774. barrelplayer3 = CreateObject(1225,2000,2000,2000,0,0,0);
  775. CreateObject(1225,1260.3066,2735.6462,10.3923,0,0,0); // explosive barrel
  776. //> Nuclear Bombs <//
  777. nb1 = CreateObject(3786, 1411.922119, 2805.617920, 82.026489, 0, 318.747, 0);
  778. nb2 = CreateObject(3786, 1410.384888, 2816.555176, 82.051491, 0, 318.747, 0);
  779. nb3 = CreateObject(3786, 1387.416748, 2801.345703, 85.159370, 0, 318.747, 0);
  780. nb4 = CreateObject(3786, 1417.482666, 2767.255615, 87.051491, 0, 318.747, 0);
  781. nb5 = CreateObject(3786, 1416.013794, 2785.427734, 90.301491, 0, 318.747, 0);
  782. nb6 = CreateObject(3786, 1397.005127, 2775.036865, 91.949928, 0, 318.747, 348.75);
  783. nb7 = CreateObject(3786, 1374.013306, 2799.821045, 93.629433, 0, 318.747, 0);
  784. nb8 = CreateObject(3786, 1374.415039, 2781.507568, 93.958092, 0, 318.747, 0);
  785. nb9 = CreateObject(3786, 1374.492432, 2823.022461, 91.076492, 0, 318.747, 0);
  786. nb10 = CreateObject(3786, 1361.251709, 2808.976318, 101.551491, 0, 318.747, 0);
  787. nb11 = CreateObject(3786, 1338.346802, 2786.706299, 90.801491, 0, 318.747, 0);
  788. nb12 = CreateObject(3790, 1214.732300, 2824.856689, 57.448601, 357.6293, 272.3375, 6.8755);
  789. nb13 = CreateObject(3790, 1174.542603, 2775.916504, 52.075165, 357.6293, 272.3375, 6.8755);
  790. nb14 = CreateObject(3790, 1140.503540, 2795.846436, 59.025101, 357.6293, 272.3375, 6.8755);
  791. nb15 = CreateObject(3790, 1191.946533, 2838.445801, 58.025162, 357.6293, 272.3375, 6.8755);
  792. nb16 = CreateObject(3790, 1170.051514, 2746.266357, 52.782974, 357.6293, 272.3375, 6.8755);
  793. /*----------------------Vehicles [ 116 ] |-| Models [ 47 ]-------------------------*/
  794. //Cars in Drifting Zones//
  795. AddStaticVehicle(480,2301.5095,1405.1792,42.5501,270.0606,-1,-1); // lv driftlot
  796. AddStaticVehicle(560,2301.6406,1408.4753,42.5501,269.9618,-1,-1); //lv driftlot
  797. AddStaticVehicle(558,2302.4795,1412.1815,42.5501,270.7119,-1,-1); //lv driftlot
  798. AddStaticVehicle(603,2302.1626,1415.8214,42.5500,269.6354,-1,-1); //lv driftlot
  799. AddStaticVehicle(451,2301.9263,1419.2104,42.5501,271.0471,-1,-1); //lv driftlot
  800. AddStaticVehicle(506,2300.7449,1422.8412,42.5498,269.0851,-1,-1); //lv driftlot
  801. AddStaticVehicle(550,2301.1982,1426.4480,42.5500,268.7574,-1,-1); //lv driftlot
  802. AddStaticVehicle(477,2301.6213,1430.1429,42.5500,270.4868,-1,-1); //lv driftlot
  803. AddStaticVehicle(411,2302.1357,1433.7285,42.5500,268.8563,-1,-1); //lv driftlot
  804. AddStaticVehicle(559,2301.8879,1437.3514,42.5499,269.7635,-1,-1); //lv driftlot
  805. AddStaticVehicle(562,2301.8054,1440.4999,42.5499,269.7474,-1,-1); //lv driftlot
  806. AddStaticVehicle(429,2301.6523,1444.4962,42.5499,267.5894,-1,-1); //lv driftlot
  807. AddStaticVehicle(568,2302.5938,1447.8400,42.5500,269.9099,-1,-1); //lv driftlot
  808. AddStaticVehicle(587,2301.4534,1451.7228,42.5499,267.3141,-1,-1); //lv driftlot
  809. AddStaticVehicle(522,2352.9937,1444.3778,42.5454,90.7260,-1,-1); //lv driftlot
  810. AddStaticVehicle(522,2353.2419,1447.9402,42.5454,90.2651,-1,-1); //lv driftlot
  811. AddStaticVehicle(522,2353.2422,1451.7985,42.5454,90.8421,-1,-1); ///lv driftlot
  812. AddStaticVehicle(602,-2502.0293,-600.3530,132.1321,178.3081,-1,-1); // driftzones
  813. AddStaticVehicle(560,-2505.5940,-600.6416,132.1321,180.2393,-1,-1); // driftzones
  814. AddStaticVehicle(558,-2509.4561,-602.0853,132.1328,180.1262,-1,-1); // driftzones
  815. AddStaticVehicle(562,-2513.2363,-602.8759,132.1327,179.8866,-1,-1); // driftzones
  816. AddStaticVehicle(541,-2516.9885,-601.9250,132.1326,180.3385,-1,-1); // driftzones
  817. AddStaticVehicle(451,-2520.4460,-603.0859,132.1293,180.6989,-1,-1); // driftzones
  818. AddStaticVehicle(560,-317.9033,1514.2576,74.9291,358.5075,-1,-1); // driftzones
  819. AddStaticVehicle(550,-324.1991,1515.8608,74.9325,357.5335,-1,-1); // driftzones
  820. AddStaticVehicle(558,-330.5212,1515.3676,74.9301,359.9252,-1,-1); // driftzones
  821. AddStaticVehicle(559,-336.6664,1515.0902,74.9301,359.1841,-1,-1); // driftzones
  822. AddStaticVehicle(411,-342.7112,1515.8678,74.9275,357.8769,-1,-1); //driftzones
  823. AddStaticVehicle(522,-346.1451,1516.0438,74.9314,359.2783,-1,-1); // driftzones
  824. AddStaticVehicle(522,-314.8004,1514.8811,74.9278,359.7531,-1,-1); // driftzones
  825. //Cars in Car Gallery//
  826. AddStaticVehicle(536,-2092.4338,-220.0101,35.0500,269.3897,-1,-1); // CarGallery
  827. AddStaticVehicle(536,-2092.4338,-215.0101,35.0114,269.3897,-1,-1); // CarGallery
  828. AddStaticVehicle(402,-2092.4338,-210.0101,35.0324,269.3897,-1,-1); // CarGallery
  829. AddStaticVehicle(402,-2092.4338,-205.0101,35.0546,269.3897,-1,-1); // CarGallery
  830. AddStaticVehicle(415,-2092.4338,-200.0101,35.0430,269.3897,-1,-1); // CarGallery
  831. AddStaticVehicle(415,-2092.4338,-195.0101,35.0313,269.3897,-1,-1); // CarGallery
  832. AddStaticVehicle(558,-2092.4338,-190.0101,35.0178,269.3897,-1,-1); // CarGallery
  833. AddStaticVehicle(558,-2092.4338,-185.0101,35.0359,269.3897,-1,-1); // CarGallery
  834. AddStaticVehicle(480,-2092.4338,-180.0101,35.0182,269.3897,-1,-1); // CarGallery
  835. AddStaticVehicle(480,-2092.4338,-175.0101,35.0598,269.3897,-1,-1); // CarGallery
  836. AddStaticVehicle(562,-2092.4338,-170.0101,35.0234,269.3897,-1,-1); // CarGallery
  837. AddStaticVehicle(562,-2092.4338,-165.0101,35.0481,269.3897,-1,-1); // CarGallery
  838. AddStaticVehicle(587,-2092.4338,-160.0101,35.0467,269.3897,-1,-1); // CarGallery
  839. AddStaticVehicle(587,-2092.4338,-155.0101,35.0332,269.3897,-1,-1); // CarGallery
  840. AddStaticVehicle(565,-2092.4338,-150.0101,35.0488,269.3897,-1,-1); // CarGallery
  841. AddStaticVehicle(407,-2092.4338,-145.0101,35.0348,269.3897,-1,-1); // CarGallery
  842. AddStaticVehicle(457,-2015.0078,-209.8852,35.0519,90.0784,-1,-1); // CarGallery
  843. AddStaticVehicle(431,-2018.0494,-204.3858,35.4219,93.1552,-1,-1); // CarGallery
  844. AddStaticVehicle(437,-2017.8690,-199.9139,35.4230,89.7317,-1,-1); // CarGallery
  845. AddStaticVehicle(541,-2015.0083,-194.8847,35.0166,90.0792,-1,-1); // CarGallery
  846. AddStaticVehicle(434,-2015.0072,-189.8838,35.0374,90.0803,-1,-1); // CarGallery
  847. AddStaticVehicle(502,-2015.0076,-184.8849,35.0231,90.0791,-1,-1); // CarGallery
  848. AddStaticVehicle(503,-2015.0076,-179.8847,35.0508,90.0793,-1,-1); // CarGallery
  849. AddStaticVehicle(494,-2015.0076,-174.8847,35.0358,90.0793,-1,-1); // CarGallery
  850. AddStaticVehicle(571,-2015.0076,-169.8847,35.0478,90.0793,-1,-1); // CarGallery
  851. AddStaticVehicle(411,-2015.0076,-164.8847,35.0317,90.0793,-1,-1); // CarGallery
  852. AddStaticVehicle(411,-2015.0076,-159.8847,35.0160,90.0793,-1,-1); // CarGallery
  853. AddStaticVehicle(603,-2015.0076,-154.8847,35.0310,90.0793,-1,-1); // CarGallery
  854. AddStaticVehicle(560,-2015.0076,-149.8847,35.0141,90.0793,-1,-1); // CarGallery
  855. AddStaticVehicle(559,-2015.0076,-144.8847,35.0205,90.0793,-1,-1); // CarGallery
  856. AddStaticVehicle(559,-2015.0076,-139.8829,35.0168,90.0816,-1,-1); // CarGallery
  857. AddStaticVehicle(451,-2015.0118,-134.8868,35.0339,90.0789,-1,-1); // CarGallery
  858. AddStaticVehicle(423,2460.2656,1351.0656,10.8466,89.5078,1,17); // mr whoop
  859. // Caddies at DM //
  860. AddStaticVehicle(457,1417.1730,2782.5876,10.4471,90.8030,-1,-1); // Caddy(DM)
  861. AddStaticVehicle(457,1417.1730,2787.5876,10.4426,90.8030,-1,-1); // Caddy(DM)
  862. AddStaticVehicle(457,1417.1730,2792.5876,10.4222,90.8030,-1,-1); // Caddy(DM)
  863. AddStaticVehicle(457,1417.1730,2797.5876,10.4189,90.8030,-1,-1); // Caddy(DM)
  864. AddStaticVehicle(457,1417.1675,2802.5876,10.4178,90.8030,-1,-1); // Caddy(DM)
  865. AddStaticVehicle(457,1417.1675,2807.5876,10.4142,90.8030,-1,-1); // Caddy(DM)
  866. // Bus/Limo/Boats/Skimmer at CC HQ //
  867. AddStaticVehicle(431,-705.2119,889.9861,13.0689,357.6492,-1,-1); // bus
  868. AddStaticVehicle(409,-687.2167,885.0521,12.1287,357.0225,-1,-1); // limo
  869. AddStaticVehicle(454,-649.0146,864.2814,-0.5210,226.6510,-1,-1); // boat1
  870. AddStaticVehicle(472,-641.2980,874.8063,-0.5257,232.6277,-1,-1); // boat2
  871. AddStaticVehicle(460,-636.2281,895.8533,-0.5530,230.4343,-1,-1); // skimmer(plane)
  872. // NRGs at bowl //
  873. AddStaticVehicle(522,-1713.4126,22.8707,3.5591,223.3551,-1,-1);
  874. AddStaticVehicle(522,-1711.1594,20.4313,3.5597,222.7285,-1,-1);
  875. AddStaticVehicle(522,-1708.6716,17.7381,3.5604,222.7285,-1,-1);
  876. AddStaticVehicle(522,-1706.1910,15.0526,3.5547,222.7285,-1,-1);
  877. AddStaticVehicle(522,-1704.3542,13.0644,3.5547,222.7285,-1,-1);
  878. AddStaticVehicle(522,-1702.0424,10.5617,3.5547,222.7285,-1,-1);
  879. AddStaticVehicle(522,-1699.7125,8.0401,3.5547,222.7285,-1,-1);
  880. AddStaticVehicle(522,-1696.9886,5.0914,3.5547,222.7285,-1,-1);
  881. AddStaticVehicle(522,-1701.9304,0.7756,3.5547,36.6067,-1,-1);
  882. AddStaticVehicle(522,-1704.3665,3.5476,3.5489,41.3068,-1,-1);
  883. AddStaticVehicle(522,-1706.3422,5.7958,3.5489,41.3068,-1,-1);
  884. AddStaticVehicle(522,-1708.7332,8.5170,3.5547,41.3068,-1,-1);
  885. AddStaticVehicle(522,-1710.9520,11.0424,3.6179,41.3068,-1,-1);
  886. AddStaticVehicle(522,-1713.1969,13.5972,3.6165,41.3068,-1,-1);
  887. AddStaticVehicle(522,-1715.2222,15.9021,3.6152,41.3068,-1,-1);
  888. AddStaticVehicle(522,-1717.7064,18.7292,3.5711,41.3068,-1,-1);
  889. // MISC //
  890. AddStaticVehicle(489,-312.1029,1538.8868,75.7059,207.2247,14,123); // rancher
  891. AddStaticVehicle(592,1579.9185,1189.4121,12.0067,359.5938,1,1); // Andro Spawn
  892. AddStaticVehicle(519,405.4481,2454.6226,16.2054,359.5859,1,1); // Shamal
  893. AddStaticVehicle(487,365.3615,2536.8416,16.3908,180.1030,1,1); // Maverick Spawn
  894. // Cars at Spawn //
  895. AddStaticVehicle(560,-2252.0000,2285.0776,4.5179,90.6312,-1,-1); // car1
  896. AddStaticVehicle(602,-2252.0000,2290.0776,4.5062,90.6312,-1,-1); // car1
  897. AddStaticVehicle(560,-2252.0002,2295.0776,4.5050,90.6312,-1,-1); // car1
  898. AddStaticVehicle(424,-2252.0002,2300.0776,4.4971,90.6312,-1,-1); // car1
  899. AddStaticVehicle(496,-2252.0002,2305.0776,4.4680,90.6312,-1,-1); // car1
  900. AddStaticVehicle(402,-2252.0002,2310.0776,4.4790,90.6312,-1,-1); // car1
  901. AddStaticVehicle(415,-2252.0002,2315.0776,4.5046,90.6312,-1,-1); // car1
  902. AddStaticVehicle(562,-2272.0857,2285.4219,4.5254,269.3978,-1,-1); // car2
  903. AddStaticVehicle(496,-2272.0862,2290.4221,4.5326,269.4012,-1,-1); // car2
  904. AddStaticVehicle(587,-2272.0862,2295.4221,4.4823,269.4012,-1,-1); // car2
  905. AddStaticVehicle(411,-2272.0862,2300.4221,4.4762,269.4012,-1,-1); // car2
  906. AddStaticVehicle(603,-2272.0862,2305.4221,4.4888,269.4012,-1,-1); // car2
  907. AddStaticVehicle(534,-2272.0862,2310.4221,4.4623,269.4012,-1,-1); // car2
  908. AddStaticVehicle(496,-2272.0862,2315.4221,4.4818,269.4012,-1,-1); // car2
  909. AddStaticVehicle(558,-2272.0862,2320.4221,4.5184,269.4012,-1,-1); // car2
  910. // Monsters/Dozers/Dumpers at Monster Mash //
  911. AddStaticVehicle(444,-274.7941,2138.9438,113.0641,25.5044,-1,-1); // monster1
  912. AddStaticVehicle(444,-298.4164,2148.1555,113.1263,282.4304,-1,-1); // monster3
  913. AddStaticVehicle(444,-291.7956,2174.6814,113.2243,201.4752,-1,-1); // monster2
  914. AddStaticVehicle(486,-287.3319,2140.6433,112.8599,334.6284,1,-1); // dozer1
  915. AddStaticVehicle(486,-263.8086,2160.3496,112.1897,52.4927,-1,-1); // dozer2
  916. AddStaticVehicle(486,-283.6064,2181.1519,112.8996,208.6125,-1,-1); // dozer3
  917. AddStaticVehicle(406,-240.0325,2396.1719,110.4247,161.0496,-1,-1); // Dumper1
  918. AddStaticVehicle(406,-229.5655,2368.1807,111.5793,84.3164,-1,-1); // dumper2
  919. AddStaticVehicle(406,-285.5070,2317.1252,111.6743,305.4738,-1,-1); // dumper3
  920. // Chilliad Bike Track Sanchez' //
  921. AddStaticVehicle(468,-2429.7744,-1925.0419,304.6708,181.5643,-1,-1); // Sanchez1
  922. AddStaticVehicle(468,-2433.0747,-1925.4066,304.5310,176.3943,-1,-1); // Sanchez1
  923. AddStaticVehicle(468,-2437.5393,-1925.5098,304.3488,173.9683,-1,-1); // Sanchez1
  924. AddStaticVehicle(468,-2424.2400,-1945.4500,303.3397,356.4753,-1,-1); // Sanchez2
  925. AddStaticVehicle(468,-2428.9177,-1944.0791,303.2513,352.2600,-1,-1); // Sanchez2
  926. AddStaticVehicle(468,-2417.9175,-1945.2158,303.3479,359.8495,-1,-1); // Sanchez2
  927.  
  928. //---------DeathMatch Pickups---------//
  929. deagle = CreatePickup(348,23,1233.9321,2853.1243,11.0783);
  930. shotgun = CreatePickup(349,23,1236.2939,2853.3032,11.0783);
  931. sawnoff = CreatePickup(350,23,1237.7905,2853.3423,11.0783);
  932. spaz = CreatePickup(351,23,1239.1871,2853.3784,11.0783);
  933. uzi = CreatePickup(352,23,1240.5386,2853.4141,11.0783);
  934. mp5 = CreatePickup(353,23,1241.7808,2853.4778,11.0783);
  935. ak = CreatePickup(355,23,1267.0879,2737.4995,10.1228);
  936. m4 = CreatePickup(356,23,1266.0609,2732.8618,10.8203);
  937. tec9 = CreatePickup(372,23,1262.1416,2731.9580,10.8203);
  938. knife = CreatePickup(335,23,1257.7263,2733.2354,10.7284); // knife
  939. pistol = CreatePickup(346,23,1257.8317,2739.6201,10.9355);
  940. sniper1 = CreatePickup(358,19,1369.3722,2855.2625,26.9741);
  941. sniper2 = CreatePickup(358,19,1169.0966,2771.9470,27.5051);
  942. rocketlaunch = CreatePickup(359,19,1149.6584,2798.1980,41.9397);
  943. armor = CreatePickup(373,2,1145.1918,2799.5039,41.9321);
  944. CreatePickup(1240,2,1410.9412,2745.6846,10.8203);// health
  945. CreatePickup(1240,2,1125.4552,2762.5769,10.1958);// health
  946. DMexitICON = CreatePickup(1254,23,1422.3750,2773.7910,10.8203);
  947. CCm4 = CreatePickup(356,2,-682.8098,942.6342,16.8281);
  948. CCak47 = CreatePickup(355,2,-693.6034,942.9219,16.8281);
  949. CCsniper = CreatePickup(358,2,-688.0168,931.2958,23.5059);
  950. //---------MISC Pickups---------//
  951. bombicon = CreatePickup(1210,23,2505.5649,-1693.8972,13.5582); // bomb icon
  952.  
  953. //---------* MISC *---------//
  954. SetTimer("NuclearBombs",1800000,1);
  955. CC = GangZoneCreate(-724.0283, 887.5186, -630.6053, 992.6194);
  956. //---------Player Skins---------//
  957.         for(new i = 0; i <= sizeof(Peds); i++)
  958.         {
  959.                 AddPlayerClass(Peds[i][0],-2261.0283,2278.6033,4.9886,0.0,0,0,0,0,0,0);
  960.         }
  961. //=-GameModeInit~END-=//
  962. return 1;
  963. }
  964.  
  965. public OnGameModeExit()
  966. {
  967.         return 1;
  968. }
  969.  
  970. public OnPlayerRequestClass(playerid, classid)
  971. {
  972.                     SetPlayerInterior(playerid,10);
  973.                         SetPlayerPos(playerid,375.6171,-65.8491,1001.5078);
  974.                         SetPlayerFacingAngle(playerid,180);
  975.                    SetPlayerCameraPos(playerid, 377.4231,-68.8445,1001.7078);
  976.                    SetPlayerCameraLookAt(playerid,376.5215,-67.4382,1001.5078);
  977.                    PlayerPlaySound(playerid, 1185, 0.0, 0.0, 0.0);
  978.                     return 1;
  979. }
  980.  
  981. public OnPlayerRequestSpawn(playerid)
  982. {
  983.     SetPlayerInterior(playerid,17);
  984.         return 1;
  985. }
  986.  
  987. public OnPlayerConnect(playerid)
  988. {
  989.     CCIsLogged[playerid] = 0;
  990.     SetPlayerColor(playerid,BLUE);
  991.     PlayerInfo[playerid][pWarns] = 0;
  992.     new plname[MAX_PLAYER_NAME];
  993.     new string[256];
  994.         SetPlayerMapIcon(playerid,1,-2068.5393,-150.7940,35.3203,55,0xF5F5F5F5); // CARGAL
  995.         SetPlayerMapIcon(playerid,2,1260.7228,2737.6238,10.6730,18,0xF5F5F5F5); // DM ZONE WEP1
  996.         SetPlayerMapIcon(playerid,3,1235.7006,2851.3086,10.8203,18,0xF5F5F5F5); // DM ZONE WEP2
  997.     SendDeathMessage(INVALID_PLAYER_ID, playerid, 200);
  998.     GameTextForPlayer(playerid,"~w~HwDp 4 LiFe~r~ By ToMo",5000,6);
  999.     CountDelay[playerid] = 0;
  1000.     Drift1Race[playerid] = 0;
  1001.         Drift2Race[playerid] = 0;
  1002.         Drift3Race[playerid] = 0;
  1003.         Race1Arena[playerid] = 0;
  1004.         Race2Arena[playerid] = 0;
  1005.     DMArena[playerid] = 0;
  1006.     //=-DM Stats TextDraw-=//
  1007.     dms = TextDrawCreate(252.000000,390.000000,"Stats");
  1008.         TextDrawUseBox(dms,1);
  1009.         TextDrawBoxColor(dms,0xffffff33);
  1010.         TextDrawTextSize(dms,355.000000,78.000000);
  1011.         TextDrawAlignment(dms,0);
  1012.         TextDrawBackgroundColor(dms,0x0000ff99);
  1013.         TextDrawFont(dms,3);
  1014.         TextDrawLetterSize(dms,1.000000,2.000000);
  1015.         TextDrawColor(dms,0x00ffffcc);
  1016.         TextDrawSetOutline(dms,1);
  1017.         TextDrawSetProportional(dms,1);
  1018.         TextDrawSetShadow(dms,1);
  1019.  
  1020.         dmk = TextDrawCreate(196.000000,411.000000,"Kills:");
  1021.         TextDrawTextSize(dmk,408.000000,78.000000);
  1022.         TextDrawAlignment(dmk,0);
  1023.         TextDrawBackgroundColor(dmk,0x00000099);
  1024.         TextDrawFont(dmk,1);
  1025.         TextDrawLetterSize(dmk,1.000000,2.000000);
  1026.         TextDrawColor(dmk,0xff0000cc);
  1027.         TextDrawSetOutline(dmk,1);
  1028.         TextDrawSetProportional(dmk,1);
  1029.         TextDrawSetShadow(dmk,1);
  1030.  
  1031.         dmh = TextDrawCreate(196.000000,426.000000,"Death:");
  1032.         TextDrawBoxColor(dmh,0x00ffff00);
  1033.         TextDrawTextSize(dmh,310.000000,2.000000);
  1034.         TextDrawAlignment(dmh,0);
  1035.         TextDrawBackgroundColor(dmh,0x000000ff);
  1036.         TextDrawFont(dmh,1);
  1037.         TextDrawLetterSize(dmh,1.000000,2.000000);
  1038.         TextDrawColor(dmh,0xff00ff99);
  1039.         TextDrawSetOutline(dmh,1);
  1040.         TextDrawSetProportional(dmh,1);
  1041.         TextDrawSetShadow(dmh,1);
  1042.  
  1043.         dmr[playerid] = TextDrawCreate(331.000000,411.000000,"0");
  1044.     dmrh[playerid] = TextDrawCreate(331.000000,426.000000,"0");
  1045.         TextDrawBackgroundColor(dmr[playerid],0xffff00ff);
  1046.         TextDrawFont(dmr[playerid],2);
  1047.         TextDrawLetterSize(dmr[playerid],1.000000,2.000000);
  1048.         TextDrawColor(dmr[playerid],0x00ff0099);
  1049.         TextDrawSetOutline(dmr[playerid],1);
  1050.         TextDrawSetProportional(dmr[playerid],1);
  1051.         TextDrawSetShadow(dmr[playerid],1);
  1052.         TextDrawBackgroundColor(dmrh[playerid],0xffff00ff);
  1053.         TextDrawFont(dmrh[playerid],2);
  1054.         TextDrawLetterSize(dmrh[playerid],1.000000,2.000000);
  1055.         TextDrawColor(dmrh[playerid],0x00ff0099);
  1056.         TextDrawSetOutline(dmrh[playerid],1);
  1057.         TextDrawSetProportional(dmrh[playerid],1);
  1058.         TextDrawSetShadow(dmrh[playerid],1);
  1059.  
  1060.         Stats[playerid] = 0;
  1061.         Ramp[playerid] = 0;
  1062.         Mute[playerid] = 0;
  1063.         IsLogged[playerid] = 0;
  1064.         PlayerInfo[playerid][pAdminLevel] = 0;
  1065.         GetPlayerName(playerid, plname, sizeof(plname));
  1066.         format(string, sizeof(string), "%s.ini", plname);
  1067.         if(fexist(string))
  1068.         {
  1069.                 SendClientMessage(playerid, PURPLE, ">That account is registered.");
  1070.                 SendClientMessage(playerid, PURPLE, ">You can now login( /login [password] )");
  1071.         }
  1072.         else
  1073.         {
  1074.         SendClientMessage(playerid,PURPLE,"Your account isn't registered. If you wish to register, type '/register [password]'");
  1075.         }
  1076.         BoughtVeh[playerid] = 0;
  1077.         Connected[playerid] = 1;
  1078.         Bomb = SetTimerEx("BombPickup",500,1,"d",playerid);
  1079.         SuperPunch[playerid] = 0;
  1080.         ViewCmds[playerid] = 0;
  1081.         Stats[playerid] = 0;
  1082.         DMArena[playerid] = 0;
  1083.         KillScore[playerid] = 0;
  1084.         DeathScore[playerid] = 0;
  1085.         VehSuperPunch[playerid] = 0;
  1086.         return 1;
  1087. }
  1088.  
  1089. public OnPlayerDisconnect(playerid, reason)
  1090. {
  1091.     SendDeathMessage(INVALID_PLAYER_ID, playerid, 201);
  1092.     DMArena[playerid] = 0;
  1093.         Ramp[playerid] = 0;
  1094.         Drift1Race[playerid] = 0;
  1095.         Drift2Race[playerid] = 0;
  1096.         Drift3Race[playerid] = 0;
  1097.         Race1Arena[playerid] = 0;
  1098.         Race2Arena[playerid] = 0;
  1099.         Mute[playerid] = 0;
  1100.         OnPlayerUpdate(playerid);
  1101.         return 1;
  1102. }
  1103.  
  1104. public OnPlayerSpawn(playerid)
  1105. {
  1106.         PlayerPlaySound(playerid, 1185+1, 0.0, 0.0, 0.0);
  1107.         SetPlayerColor(playerid,PLAYER_COLOR);
  1108.         GangZoneShowForPlayer(playerid, CC, 0x00FF005F);
  1109.         ShowNameTags(1);
  1110.         ShowPlayerMarkers(1);
  1111.         if (CCIsLogged[playerid] == 1)
  1112.         {
  1113.             SetPlayerPos(playerid,-688.0696,942.0925,16.8293);
  1114.         SetPlayerInterior(playerid,0);
  1115.         SetCameraBehindPlayer(playerid);
  1116.         SetPlayerFacingAngle(playerid,178);
  1117.         SetPlayerColor(playerid,LIGHTGREEN);
  1118.         }
  1119.         else if (Connected[playerid] == 1)
  1120.         {
  1121.             Connected[playerid] = 0;
  1122.             SetPlayerInterior(playerid,0);
  1123.             SendClientMessage(playerid,GREEN,"Welcome to HwDp 4 Life By Tomo !");
  1124.             SendClientMessage(playerid,GREEN,"Would be much appreciated if you read the rules ( /rules ) and view all our commands for you ( /commands )!");
  1125.             SendClientMessage(playerid,GREEN,"If you need any help, ask an admin. Report a cheater/rule breaker if due to an admin. And have fun!");
  1126.             GameTextForPlayer(playerid,"~r~~h~/commands~n~~g~/rules",5000,6);
  1127.         }
  1128.         else
  1129.         {
  1130.                 SetPlayerInterior(playerid,0);
  1131.         }
  1132.         return 1;
  1133. }
  1134.  
  1135. public OnPlayerDeath(playerid, killerid, reason)
  1136. {
  1137.     new string[256];
  1138.     new killer[MAX_PLAYER_NAME];
  1139.         GetPlayerName(killerid, killer, sizeof(killer));
  1140.         GetPlayerName(playerid, player, sizeof(player));
  1141.     SetPlayerWorldBounds(playerid, 20000.0000,-20000.0000,20000.0000,-20000.0000); // Bounderies Off
  1142.     DMArena[playerid] = 0;
  1143.         KillTimer(DMs);
  1144.         TextDrawHideForPlayer(playerid,dms);
  1145.         TextDrawHideForPlayer(playerid,dmh);
  1146.         TextDrawHideForPlayer(playerid,dmk);
  1147.         TextDrawHideForPlayer(playerid,dmr[playerid]);
  1148.         TextDrawHideForPlayer(playerid,dmrh[playerid]);
  1149.         Stats[playerid] = 0;
  1150.         AttachObjectToPlayer(barrelplayer,playerid,0,0,2000,0,0,0);
  1151.         AttachObjectToPlayer(barrelplayer2,playerid,0,0,2000,0,0,0);
  1152.         AttachObjectToPlayer(barrelplayer3,playerid,0,0,2000,0,0,0);
  1153.     if (DMArena[killerid] == 1)
  1154.     {
  1155.                 if (GetPlayerWeapon(killerid) == 0){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Fist )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1156.                 if (GetPlayerWeapon(killerid) == 1){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Brass Knucles )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1157.                 if (GetPlayerWeapon(killerid) == 2){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Gold Club )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1158.                 if (GetPlayerWeapon(killerid) == 3){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Night Stick )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1159.                 if (GetPlayerWeapon(killerid) == 4){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Knife )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1160.                 if (GetPlayerWeapon(killerid) == 5){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Baseball Bat )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1161.                 if (GetPlayerWeapon(killerid) == 6){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Shovel )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1162.                 if (GetPlayerWeapon(killerid) == 7){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Pool Clue )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1163.                 if (GetPlayerWeapon(killerid) == 8){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Katana )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1164.                 if (GetPlayerWeapon(killerid) == 9){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Chainsaw )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1165.                 if (GetPlayerWeapon(killerid) == 10){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Purple Dildo )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1166.                 if (GetPlayerWeapon(killerid) == 11){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( White Vibrator )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1167.                 if (GetPlayerWeapon(killerid) == 12){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Medium White Vibrator )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1168.                 if (GetPlayerWeapon(killerid) == 13){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Small White Vibrator )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1169.                 if (GetPlayerWeapon(killerid) == 14){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Flowers )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1170.                 if (GetPlayerWeapon(killerid) == 15){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Cane )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1171.                 if (GetPlayerWeapon(killerid) == 16){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Grenade )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1172.                 if (GetPlayerWeapon(killerid) == 17){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Teargas )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1173.                 if (GetPlayerWeapon(killerid) == 18){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Motolov )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1174.                 if (GetPlayerWeapon(killerid) == 19){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Unknown )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1175.                 if (GetPlayerWeapon(killerid) == 20){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Unknown )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1176.                 if (GetPlayerWeapon(killerid) == 21){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Unknown )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1177.                 if (GetPlayerWeapon(killerid) == 22){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Colt 45 )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1178.                 if (GetPlayerWeapon(killerid) == 23){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Silenced 9mm )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1179.                 if (GetPlayerWeapon(killerid) == 24){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Desert Eagle )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1180.                 if (GetPlayerWeapon(killerid) == 25){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Shotgun )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1181.                 if (GetPlayerWeapon(killerid) == 26){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Sawnoff Shotgun )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1182.                 if (GetPlayerWeapon(killerid) == 27){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Combat Shotgun )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1183.                 if (GetPlayerWeapon(killerid) == 28){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Macro Uzi )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1184.                 if (GetPlayerWeapon(killerid) == 29){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( MP5 )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1185.                 if (GetPlayerWeapon(killerid) == 30){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( AK47 )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1186.                 if (GetPlayerWeapon(killerid) == 31){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( M4 )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1187.                 if (GetPlayerWeapon(killerid) == 32){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Tec9 )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1188.                 if (GetPlayerWeapon(killerid) == 33){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Country Rifle )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1189.                 if (GetPlayerWeapon(killerid) == 34){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Sniper Rifle )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1190.                 if (GetPlayerWeapon(killerid) == 35){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Rocket Launcher )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1191.                 if (GetPlayerWeapon(killerid) == 36){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Heat-Seaking Rocket Launcher )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1192.                 if (GetPlayerWeapon(killerid) == 37){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Flamethrower )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1193.                 if (GetPlayerWeapon(killerid) == 38){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Volcano Minigun )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1194.                 if (GetPlayerWeapon(killerid) == 39){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Satchel Charge )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1195.                 if (GetPlayerWeapon(killerid) == 40){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Detonator )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1196.                 if (GetPlayerWeapon(killerid) == 41){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Spray Can )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1197.                 if (GetPlayerWeapon(killerid) == 42){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Fire Extinguisher )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1198.                 if (GetPlayerWeapon(killerid) == 43){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Digital Camera )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1199.                 if (GetPlayerWeapon(killerid) == 44){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Night Vision Goggles )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1200.                 if (GetPlayerWeapon(killerid) == 45){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Infrared Vision Goggles )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1201.                 if (GetPlayerWeapon(killerid) == 46){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Parachute )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1202.                 if (GetPlayerWeapon(killerid) == 47){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Fake Pistol )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
  1203.                 SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
  1204.                 GivePlayerMoney(killerid,2000);
  1205.                 KillScore[killerid] +=1;
  1206.                 DeathScore[playerid] +=1;
  1207.         }
  1208.         else if (DMArena[playerid] == 1)
  1209.         {format(string, sizeof(string), "[DM NEWS]: %s died.", player);SendClientMessageToAll(YELLOW,string);}
  1210.         else if (Drift1Race[playerid] == 1 || Drift2Race[playerid] || Drift3Race[playerid] || Race1Arena[playerid] == 1 || Race2Arena[playerid] == 1)
  1211.         {
  1212.         format(string, sizeof(string), "[RACE NEWS]: %s died during a race!", player);
  1213.     SendClientMessageToAll(YELLOW,string);
  1214.         }
  1215.         else if (DMArena[playerid] != 1)
  1216.         {
  1217.             format(string, sizeof(string), "[DEATH]: %s died.", player);
  1218.             SendClientMessageToAll(YELLOW,string);
  1219.         }
  1220.         new sstring[128];
  1221.         format(string, sizeof(string), "%d",KillScore[killerid]);
  1222.         TextDrawSetString(dmr[killerid], string);
  1223.         format(sstring, sizeof(sstring), "%d",DeathScore[playerid]);
  1224.         TextDrawSetString(dmrh[playerid], sstring);
  1225.         DisablePlayerCheckpoint(playerid);
  1226.         Drift1Race[playerid] = 0;
  1227.         Drift2Race[playerid] = 0;
  1228.         Drift3Race[playerid] = 0;
  1229.         Race1Arena[playerid] = 0;
  1230.         Race2Arena[playerid] = 0;
  1231. /*      cpc = 0;
  1232.     cpc2 = 0;
  1233.     cpc3 = 0;
  1234.     cpcr1 = 0;
  1235.     cpcr2 = 0;*/
  1236.         return 1;
  1237. }
  1238.  
  1239. public OnVehicleSpawn(vehicleid)
  1240. {
  1241.     for(new i = 0; i < MAX_PLAYERS; i++)
  1242.         {
  1243.                 SetVehicleParamsForPlayer(vehicleid, i, 0, 0);
  1244.         }
  1245.         return 1;
  1246. }
  1247.  
  1248. public OnVehicleDeath(vehicleid, killerid)
  1249. {
  1250.         return 1;
  1251. }
  1252.  
  1253. public OnPlayerText(playerid, text[])
  1254. {
  1255.         if (Mute[playerid] == 1)
  1256.         {
  1257.             SendClientMessage(playerid, RED, "You are muted! You cannot talk.");
  1258.         }
  1259.         else
  1260.         {
  1261.                 new string[256];
  1262.                 GetPlayerName(playerid, playername, sizeof(playername));
  1263.                 format(string, sizeof(string), "[%i] %s: %s", playerid, playername, text);
  1264.                 SendClientMessageToAll(GetPlayerColor(playerid),string);
  1265.         }
  1266.         return 0;
  1267. }
  1268.  
  1269. public OnPlayerPrivmsg(playerid, recieverid, text[])
  1270. {
  1271.         new receiver[MAX_PLAYER_NAME];
  1272.         new string[256];
  1273.         GetPlayerName(playerid, player, sizeof(player));
  1274.         GetPlayerName(recieverid, receiver, sizeof(receiver));
  1275.         format(string, sizeof(string), "PM from [%i]%s to [%i]%s: %s",playerid,player,recieverid,receiver,text);
  1276.         SendClientMessageToAdmins(LIGHTBLUE,string,1);
  1277.         PlayerPlaySound(playerid, 1083, 0.0, 0.0, 0.0);
  1278.     SendClientMessage(playerid, GREEN, "Private Message Sent!");
  1279.         return 1;
  1280. }
  1281.  
  1282. public OnPlayerCommandText(playerid, cmdtext[])
  1283. {
  1284. new giveplayerid, idx;
  1285. new sendername[MAX_PLAYER_NAME];
  1286. new tmp[256];
  1287. new cmd[256];
  1288. cmd = strtok(cmdtext, idx);
  1289.  
  1290.  
  1291.  
  1292.  
  1293.  
  1294. if (strcmp("/cmd", cmdtext, true, 10) == 0)
  1295. {
  1296.     SendClientMessage(playerid, PURPLE, "         |-Stunt By Tomo -|");
  1297.     SendClientMessage(playerid, RED, "IMPORTANT: /rules /help /credits /ah (admins only) /admins");
  1298.     SendClientMessage(playerid, ORANGE, "TELEPORTS: /tele");
  1299.     SendClientMessage(playerid, ORANGE, "RACES: /count");
  1300.     SendClientMessage(playerid, ORANGE, "DM: /dm /exitdm /dmstats /dmstatsoff /bomb");
  1301.     SendClientMessage(playerid, ORANGE, "VEHICLE: /fullrepair /repair /flip");
  1302.     SendClientMessage(playerid, ORANGE, "STUNTS: /ramp /rampoff /ramp2 /ramp2off");
  1303.     SendClientMessage(playerid, ORANGE, "MISC: /heal /int /view /viewoff /cash /lock /unlock /kill /report /me /unattach");
  1304.     SendClientMessage(playerid, ORANGE, "ACCOUNT: /register /login /stats /id /afk /back");
  1305.     SendClientMessage(playerid, ORANGE, "CRUCIOS: /attach /cclogin /cclogout /cc /// <text>");
  1306.     return 1;
  1307. }
  1308. if (strcmp("/tele", cmdtext, true, 10) == 0)
  1309. {
  1310.     SendClientMessage(playerid, PURPLE, "         |-Stunt By Tomo -|");
  1311.     SendClientMessage(playerid, ORANGE, "RACE: /drift1 /drift2 /drift3 /goldbridge /bigjump /drag /mountrace");
  1312.     SendClientMessage(playerid, ORANGE, "GARAGE: /trans /arch /loco /garage");
  1313.     SendClientMessage(playerid, ORANGE, "AIRPORTS: /ap1 /ap2 /ap3 /verdant");
  1314.     SendClientMessage(playerid, ORANGE, "STUNTS: /stunt1-11  >Example: /stunt5");
  1315.     SendClientMessage(playerid, ORANGE, "OTHERS: /chilliad /cargal /room /underwater /bowl /derby /pk /skatepark");
  1316.     SendClientMessage(playerid, ORANGE, "OTHERS: /army /area69 /grove /dive /dam /monster /spawn");
  1317.     SendClientMessage(playerid, ORANGE, "DEBUG: /carint /camback");
  1318.     SendClientMessage(playerid, ORANGE, "More teleports are to be added!");
  1319.     return 1;
  1320. }
  1321. if (strcmp("/rules", cmdtext, true, 10) == 0)
  1322. {
  1323.     SendClientMessage(playerid, PURPLE, "         |- Stunt By Tomo -|");
  1324.         SendClientMessage(playerid, YELLOW, "Warn-able: -Player/Admin disrespect -DeathMatching outside /dm -Several Carjacking(Do NOT carjack except in /dm!)");
  1325.         SendClientMessage(playerid, YELLOW, "Warn-able: -BEGGING to be an admin(Do NOT beg to be an admin!) -Using Map Mods(DON'T!) -Spawnkilling(anyhow)");
  1326.         SendClientMessage(playerid, ORANGE, "Mute-able: -Excessive swearing -Talking in another language than english(DON'T).");
  1327.         SendClientMessage(playerid, LIGHTRED, "Kick-able: -Ignoring the rules -Admin Disrespect -Begging to be an admin -Ignoring an admin's order -Being a complete retard");
  1328.         SendClientMessage(playerid, RED, "BAN-ABLE: -Any sort of cheats/hackers -Kicked 3 times for almost the same reason -Trying to access/crack RCON");
  1329.         SendClientMessage(playerid, RED, "BAN-ABLE: -Advertising another server -Bug Exploiting(Several times) -Racism(Race/Religion)");
  1330.         SendClientMessage(playerid, GREEN, "Follow these rules and you shall be safe.");
  1331.     return 1;
  1332. }
  1333. if (strcmp("/help", cmdtext, true, 10) == 0)
  1334. {
  1335.     SendClientMessage(playerid, PURPLE, "         |- Stunt By Tomo Server Help Guide -|");
  1336.         SendClientMessage(playerid, ORANGE, "This server is about Stunts, drifts, races and DeathMatching but only in its arena( /dm ).");
  1337.         SendClientMessage(playerid, ORANGE, "If you need to earn money, type /cash to receive $10 000.");
  1338.         SendClientMessage(playerid, ORANGE, "If you need any help with the commands, type /commands for a full available list of commands.");
  1339.         SendClientMessage(playerid, ORANGE, "If you trespass the Crucio Clan turf(house), they will have the right to kill you.");
  1340.         SendClientMessage(playerid, ORANGE, "They're disallowing you from entering their house unless you're a VIP, titled by a high member of CC.");
  1341.         SendClientMessage(playerid, ORANGE, "Make sure to read the /rules and have fun !");
  1342.     return 1;
  1343. }
  1344. /*------------------------------------------------/Teleports\------------------------------------------------*/
  1345. new string[256];
  1346. GetPlayerName(playerid, player, sizeof(player));
  1347.                         // Cash
  1348.         if (strcmp("/cash", cmdtext, true, 10) == 0)
  1349.         {
  1350.             GivePlayerMoney(playerid, 10000);
  1351.             for(new a = 0; a < MAX_PLAYERS; a++)
  1352.                 {
  1353.                         if(IsPlayerConnected(a))
  1354.                         {
  1355.                                 if (PlayerInfo[a][pAdminLevel] >= 1)
  1356.                                 {
  1357.                                         if (ViewCmds[a] == 1)
  1358.                                         {
  1359.                                                 GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  1360.                                                 format(string, sizeof(string), "[%i]%s: /cash",playerid,player);
  1361.                                                 SendClientMessageToAdmins(LIGHTBLUE,string,1);
  1362.                                         }
  1363.                                 }
  1364.                         }
  1365.                 }
  1366.                 return 1;
  1367.         }
  1368.                         //Big ear drifting zone
  1369.         if (strcmp("/drift1", cmdtext, true, 10) == 0)
  1370.         {
  1371.             if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  1372.         new car = GetPlayerVehicleID(playerid);
  1373.         new State = GetPlayerState(playerid);
  1374.         SetPlayerInterior(playerid,0);
  1375.                 format(string, sizeof(string), "%s warped to Big Ear's Drifting Zone ! ( /drift1 )", player);
  1376.                 SendClientMessageToAll(YELLOW, string);
  1377.         GameTextForPlayer(playerid, "~y~Welcome to Big Ear !", 3000,6);
  1378.         //SendClientMessage(playerid, GREEN, "[RACE]: You can now type '/drift1race [playerid]' to race a player!");
  1379.         if(State!=PLAYER_STATE_DRIVER)
  1380.         {
  1381.         SetPlayerPos(playerid,-308.1003,1538.7532,75.5625);
  1382.         SetPlayerInterior(playerid,0);
  1383.         SetCameraBehindPlayer(playerid);
  1384.         SetPlayerFacingAngle(playerid,127);
  1385.         }
  1386.         else if(State==PLAYER_STATE_DRIVER)
  1387.         {
  1388.         LinkVehicleToInterior(car,0);
  1389.         SetVehiclePos(car,-369.9355,1578.9448,75.7916);
  1390.         SetVehicleZAngle(car,138);
  1391.         }
  1392.         else
  1393.         {
  1394.         SetPlayerPos(playerid,-308.1003,1538.7532,75.5625);
  1395.         SetPlayerInterior(playerid,0);
  1396.         SetCameraBehindPlayer(playerid);
  1397.         SetPlayerFacingAngle(playerid,127);
  1398.         }
  1399.         return 1;
  1400.         }
  1401.  
  1402.                 //Teleport Spawn point
  1403.                 if (strcmp(cmdtext, "/spawn", true)==0)
  1404.         {
  1405.         if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  1406.                 new cartype = GetPlayerVehicleID(playerid);
  1407.                 new State=GetPlayerState(playerid);
  1408.                 SetPlayerInterior(playerid,0);
  1409.                 format(string, sizeof(string), "%s warped to the spawn point ! ( /spawn )", player);
  1410.                 SendClientMessageToAll(YELLOW, string);
  1411.                 if(State!=PLAYER_STATE_DRIVER)
  1412.                 {SetPlayerPos(playerid,-2261.0283,2278.6033,4.9886);}
  1413.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  1414.                 {
  1415.                 SetVehiclePos(cartype,-2261.0283,2278.6033,4.9886);
  1416.                 }
  1417.                 else
  1418.                 {SetPlayerPos(playerid,-2261.0283,2278.6033,4.9886);}
  1419.                 return 1;}
  1420.  
  1421.                 //Teleport Transfender
  1422.                 if (strcmp(cmdtext, "/trans", true)==0)
  1423.         {
  1424.         if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  1425.                 new cartype = GetPlayerVehicleID(playerid);
  1426.                 new State=GetPlayerState(playerid);
  1427.                 SetPlayerInterior(playerid,0);
  1428.                 if(State!=PLAYER_STATE_DRIVER)
  1429.                 {SendClientMessage(playerid, RED, "You are not in a vehicle");}
  1430.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  1431.                 {SetVehiclePos(cartype,1041.6660,-1021.4000,32.1075);
  1432.                 SetVehicleZAngle(cartype,186);}
  1433.                 else
  1434.                 {SendClientMessage(playerid, RED, "You are not in a vehicle");}
  1435.                 return 1;}
  1436.  
  1437.                 //Teleport ArchAngels
  1438.                 if (strcmp(cmdtext, "/arch", true)==0)
  1439.         {
  1440.         if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  1441.                 new cartype = GetPlayerVehicleID(playerid);
  1442.                 new State=GetPlayerState(playerid);
  1443.                 SetPlayerInterior(playerid,0);
  1444.                 if(State!=PLAYER_STATE_DRIVER)
  1445.                 {SendClientMessage(playerid, RED, "You are not in a vehicle");}
  1446.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  1447.                 {SetVehiclePos(cartype,-2721.6619,217.9559,4.2147);
  1448.                 SetVehicleZAngle(cartype,90);}
  1449.                 else
  1450.                 {SendClientMessage(playerid, RED, "You are not in a vehicle");}
  1451.                 return 1;}
  1452.  
  1453.                 //Teleport LocoLow
  1454.                 if (strcmp(cmdtext, "/loco", true)==0)
  1455.         {
  1456.         if(DMArena[playerid] == 1) return SendClientMessage(playerid, 0xE60000FF, "You are not allowed to teleport while DeathMatching!");
  1457.                 new cartype = GetPlayerVehicleID(playerid);
  1458.                 new State=GetPlayerState(playerid);
  1459.                 SetPlayerInterior(playerid,0);
  1460.                 if(State!=PLAYER_STATE_DRIVER)
  1461.                 {SendClientMessage(playerid, 0xE60000FF, "You are not in a vehicle");}
  1462.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  1463.                 {SetVehiclePos(cartype,2644.9258,-2042.1495,13.6004);
  1464.                 SetVehicleZAngle(cartype,180);}
  1465.                 else
  1466.                 {SendClientMessage(playerid, 0xE60000FF, "You are not in a vehicle");}
  1467.                 return 1;}
  1468. /////////////////////////////////////////////////
  1469. if(strcmp(cmdtext, "/lv", true) == 0) {
  1470. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
  1471. SetVehiclePos(GetPlayerVehicleID(playerid),2155.8928,1006.5565,10.8203);
  1472. SetVehicleZAngle(GetPlayerVehicleID(playerid),20);
  1473. SendClientMessage(playerid, COLOR_GREEN,"Welcome In Las Venturas");
  1474. }else{
  1475. SetPlayerFacingAngle(playerid,20);
  1476. SetPlayerInterior(playerid, 0);
  1477. SetPlayerPos(playerid,2155.8928,1006.5565,10.8203);
  1478. }return 1;}
  1479.  
  1480. if(strcmp(cmdtext, "/ls", true) == 0) {
  1481. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
  1482. SetVehiclePos(GetPlayerVehicleID(playerid),2501.8411,-1680.2839,13.3768);
  1483. SetVehicleZAngle(GetPlayerVehicleID(playerid),20);
  1484. SendClientMessage(playerid, COLOR_GREEN,"Welcome In Los Santos");
  1485. }else{
  1486. SetPlayerFacingAngle(playerid,20);
  1487. SetPlayerInterior(playerid, 0);
  1488. SetPlayerPos(playerid,2501.8411,-1680.2839,13.3768);
  1489. }return 1;}
  1490.  
  1491. if(strcmp(cmdtext, "/sf", true) == 0) {
  1492. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
  1493. SetVehiclePos(GetPlayerVehicleID(playerid),-2041.2288,136.2675,28.8359);
  1494. SetVehicleZAngle(GetPlayerVehicleID(playerid),20);
  1495. SendClientMessage(playerid, COLOR_GREEN,"Welcome In San Fierro");
  1496. }else{
  1497.  
  1498. SetPlayerFacingAngle(playerid,20);
  1499. SetPlayerInterior(playerid, 0);
  1500. SetPlayerPos(playerid,-2041.2288,136.2675,28.8359);
  1501. }return 1;}
  1502. //////////////////////////////////////////
  1503. if (strcmp(cmdtext, "/flip", true)==0)
  1504. {
  1505.         new VehicleID, Float:X, Float:Y, Float:Z;
  1506.         GetPlayerPos(playerid, X, Y, Z);
  1507.   VehicleID = GetPlayerVehicleID(playerid);
  1508.   SetVehiclePos(VehicleID, X, Y, Z);
  1509.   SetVehicleZAngle(VehicleID, 0);
  1510.   SendClientMessage(playerid, COLOR_GREEN,"You Fliped Your Car");
  1511.     return 1;
  1512. }
  1513.  
  1514.  
  1515. if(strcmp(cmdtext, "/brb", true) == 0){
  1516. new name[MAX_PLAYER_NAME];
  1517. GetPlayerName(playerid,name, sizeof(name));
  1518. format(string, sizeof(string), "Player %s will come shortly   ",name);
  1519. SendClientMessageToAll(0xFFFFFF00,string);
  1520. GameTextForAll(string, 3000, 5);
  1521.                                 return 1;
  1522.                         }
  1523.  
  1524. if(strcmp(cmdtext, "/back", true) == 0){
  1525. new name[MAX_PLAYER_NAME];
  1526. GetPlayerName(playerid,name, sizeof(name));
  1527. format(string, sizeof(string), "Player %s Is Back",name);
  1528. SendClientMessageToAll(0xFFFFFF00,string);
  1529. GameTextForAll(string, 3000, 5);
  1530.                                 return 1;
  1531.                         }
  1532. if(strcmp(cmdtext, "/cya", true) == 0){
  1533. new name[MAX_PLAYER_NAME];
  1534. GetPlayerName(playerid,name, sizeof(name));
  1535. format(string, sizeof(string), "Player %s Is Leaving From The Best Server",name);
  1536. SendClientMessageToAll(0xFFFFFF00,string);
  1537. GameTextForAll(string, 3000, 5);
  1538.                                 return 1;
  1539.                         }
  1540.  
  1541.                         if(strcmp(cmdtext, "/yo", true) == 0)   {
  1542. new name[MAX_PLAYER_NAME];
  1543. GetPlayerName(playerid,name, sizeof(name));
  1544. format(string, sizeof(string), "player %s says Ello All",name);
  1545. SendClientMessageToAll(0xFF0000FF,string);
  1546. GameTextForAll(string, 3000, 5);
  1547.                                 return 1;
  1548.                         }
  1549. if(strcmp(cmdtext, "/lot-dezert", true) == 0) {
  1550. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
  1551. SetVehiclePos(GetPlayerVehicleID(playerid),348.5558,2539.2578,16.7468);
  1552. SetVehicleZAngle(GetPlayerVehicleID(playerid),20);
  1553. SendClientMessage(playerid, COLOR_GREEN,"You teleported to Airport at dezert");
  1554. }else{
  1555. SetPlayerFacingAngle(playerid,20);
  1556. SetPlayerInterior(playerid, 0);
  1557. SetPlayerPos(playerid,348.5558,2539.2578,16.7468);
  1558. }return 1;}
  1559.  
  1560.  
  1561.  
  1562.  
  1563.     if(strcmp(cmdtext,"/redbull",  true) == 0)
  1564.         {
  1565.                 //new string[256];
  1566.                 new jabol[MAX_PLAYER_NAME];
  1567.  
  1568.                 GetPlayerName(playerid, jabol, sizeof(jabol));
  1569.                 format(string, sizeof(string), "%s He Drinked RedBull He Got Wings Now",jabol);
  1570.             SendClientMessageToAll(COLOR_ORANGE, string);
  1571.                 return 1;
  1572.         }
  1573.  
  1574.         if(strcmp(cmdtext,"/needtaxi",  true) == 0)
  1575.         {
  1576.                 //new string[256];
  1577.                 new jabol[MAX_PLAYER_NAME];
  1578.  
  1579.                 GetPlayerName(playerid, jabol, sizeof(jabol));
  1580.                 format(string, sizeof(string), "%s Order The Fastest Taxi",jabol);
  1581.             SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  1582.                 return 1;
  1583.         }
  1584.  
  1585.         if(strcmp(cmdtext,"/stoptaxi",  true) == 0)
  1586.         {
  1587.                 //new string[256];
  1588.                 new jabol[MAX_PLAYER_NAME];
  1589.  
  1590.                 GetPlayerName(playerid, jabol, sizeof(jabol));
  1591.                 format(string, sizeof(string), "%s He Dosen't Want The Taxi",jabol);
  1592.             SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  1593.                 return 1;
  1594.         }
  1595.  
  1596.         if(strcmp(cmdtext,"/Beer",  true) == 0)
  1597.         {
  1598.                 //new string[256];
  1599.                 new jabol[MAX_PLAYER_NAME];
  1600.  
  1601.                 GetPlayerName(playerid, jabol, sizeof(jabol));
  1602.                 format(string, sizeof(string), "%s He Bought A Beer",jabol);
  1603.             SendClientMessageToAll(COLOR_ORANGE, string);
  1604.                 return 1;
  1605.         }
  1606.     if(strcmp(cmdtext,"/dick",  true) == 0)
  1607.         {
  1608.                 //new string[256];
  1609.                 new jabol[MAX_PLAYER_NAME];
  1610.  
  1611.                 GetPlayerName(playerid, jabol, sizeof(jabol));
  1612.                 format(string, sizeof(string), "%s Loves To Suck Admins Dick Adminowi",jabol);
  1613.             SendClientMessageToAll(COLOR_ORANGE, string);
  1614.                 return 1;
  1615.         }
  1616.     if(strcmp(cmdtext,"/cool",  true) == 0)
  1617.         {
  1618.                 //new string[256];
  1619.                 new jabol[MAX_PLAYER_NAME];
  1620.  
  1621.                 GetPlayerName(playerid, jabol, sizeof(jabol));
  1622.                 format(string, sizeof(string), "%s He Likes The Server",jabol);
  1623.             SendClientMessageToAll(COLOR_ORANGE, string);
  1624.                 return 1;
  1625.         }
  1626.  
  1627.  
  1628.  //animacje
  1629.         if (strcmp("/animacje", cmdtext, true) == 0)
  1630.         {
  1631.             SendClientMessage(playerid, COLOR_RED, "** Animacje **");
  1632.                 SendClientMessage(playerid, COLOR_LIGHTBLUE, "/poddajsie /wypity /bomba /aresztuj /lol /patrz /kradnij /wal");
  1633.         SendClientMessage(playerid, COLOR_RED, "/aresztuj2 /zjeb /aresztowany /kaleka /slap /pal2 /psy /lez ");
  1634.         SendClientMessage(playerid, COLOR_ORANGE, "/kryc /rzygaj /jedz /machaj /klaps /smierc /deal /caluj /drag /lej ");
  1635.         SendClientMessage(playerid, COLOR_GREY, "/smoke /usiadz /walsie /klub /gadugadu /dance 1-4");
  1636.         SendClientMessage(playerid, COLOR_YELLOW, "Aby Zatrzmaæ jakomÅ“ animacje wpisz /astop");
  1637.         return 1;
  1638.         }
  1639.  
  1640.         if(strcmp(cmdtext, "/poddajsie", true) == 0) {
  1641.                 if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
  1642.                   SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
  1643.           return 1;
  1644.      }
  1645.         }
  1646.  
  1647.     if(strcmp(cmdtext, "/wypity", true) == 0) {
  1648.         if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  1649.      {
  1650.           ApplyAnimation(playerid,"PED", "WALK_DRUNK",4.0,1,1,0,0,0);
  1651.           return 1;
  1652.      }
  1653.     }
  1654.  
  1655.     if (strcmp("/aresztuj", cmdtext, true, 7) == 0) {
  1656.               ApplyAnimation( playerid,"ped", "ARRESTgun", 4.0, 0, 0, 0, 0, 0);
  1657.                   return 1;
  1658.     }
  1659.  
  1660.     if (strcmp("/lol", cmdtext, true) == 0) {
  1661.           ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 1, 0, 0, 0, 0);
  1662.                   return 1;
  1663.         }
  1664.  
  1665.     if (strcmp("/patrz", cmdtext, true) == 0) {
  1666.           ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 1, 0, 0, 0, 0);
  1667.                   return 1;
  1668.         }
  1669.  
  1670.     if (strcmp("/kradnij", cmdtext, true) == 0) {
  1671.           ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0);
  1672.                   return 1;
  1673.         }
  1674.  
  1675.     if (strcmp("/wal", cmdtext, true) == 0) {
  1676.           ApplyAnimation(playerid, "PAULNMAC", "wank_loop", 4.0, 1, 0, 0, 0, 0);
  1677.                   return 1;
  1678.         }
  1679.  
  1680.     if (strcmp("/aresztuj2", cmdtext, true) == 0) {
  1681.               ApplyAnimation(playerid, "POLICE", "plc_drgbst_01", 4.0, 0, 0, 0, 0, 0);
  1682.                   return 1;
  1683.         }
  1684.  
  1685.     if (strcmp("/zjeb", cmdtext, true) == 0) {
  1686.           ApplyAnimation(playerid, "PAULNMAC", "wank_out", 4.0, 0, 0, 0, 0, 0);
  1687.                   return 1;
  1688.         }
  1689.  
  1690.     if (strcmp("/aresztowany", cmdtext, true) == 0) {
  1691.           ApplyAnimation(playerid, "POLICE", "crm_drgbst_01", 4.0, 0, 0, 0, 0, 0);
  1692.                   return 1;
  1693.         }
  1694.  
  1695.     if (strcmp("/kaleka", cmdtext, true) == 0) {
  1696.           ApplyAnimation(playerid, "SWEET", "Sweet_injuredloop", 4.0, 1, 0, 0, 0, 0);
  1697.                   return 1;
  1698.         }
  1699.  
  1700.     if (strcmp("/slap", cmdtext, true) == 0) {
  1701.           ApplyAnimation(playerid, "SWEET", "ho_ass_slapped", 4.0, 0, 0, 0, 0, 0);
  1702.                   return 1;
  1703.         }
  1704.  
  1705.     if (strcmp("/pal2", cmdtext, true) == 0) {
  1706.           ApplyAnimation(playerid, "SMOKING", "F_smklean_loop", 4.0, 0, 0, 0, 0, 0);
  1707.                   return 1;
  1708.         }
  1709.  
  1710.     if (strcmp("/psy", cmdtext, true) == 0) {
  1711.           ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 1, 0, 0, 0, 0);
  1712.                   return 1;
  1713.         }
  1714.  
  1715.     if (strcmp("/lez", cmdtext, true, 6) == 0) {
  1716.           ApplyAnimation(playerid,"BEACH", "bather", 4.0, 0, 0, 0, 1, 0);
  1717.                   return 1;
  1718.     }
  1719.  
  1720.     if (strcmp("/kryc", cmdtext, true, 3) == 0) {
  1721.           ApplyAnimation(playerid, "ped", "cower", 3.0, 0, 0, 0, 0, 0);
  1722.                   return 1;
  1723.         }
  1724.  
  1725.     if (strcmp("/rzygaj", cmdtext, true) == 0) {
  1726.               ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0);
  1727.                   return 1;
  1728.         }
  1729.  
  1730.     if (strcmp("/jedz", cmdtext, true) == 0) {
  1731.               ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.00, 1, 0, 0, 0, 0);
  1732.                   return 1;
  1733.         }
  1734.  
  1735.     if (strcmp("/machaj", cmdtext, true) == 0) {
  1736.               ApplyAnimation(playerid, "KISSING", "BD_GF_Wave", 3.0, 0, 0, 0, 0, 0);
  1737.                   return 1;
  1738.         }
  1739.  
  1740.     if (strcmp("/klaps", cmdtext, true) == 0) {
  1741.           ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0);
  1742.                   return 1;
  1743.         }
  1744.  
  1745.     if (strcmp("/smierc", cmdtext, true) == 0) {
  1746.           ApplyAnimation(playerid, "WUZI", "CS_Dead_Guy", 4.0, 0, 0, 0, 0, 0);
  1747.                   return 1;
  1748.     }
  1749.  
  1750.     if (strcmp("/deal", cmdtext, true) == 0) {
  1751.           ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
  1752.                   return 1;
  1753.         }
  1754.  
  1755.     if (strcmp("/caluj", cmdtext, true, 5) == 0) {
  1756.           ApplyAnimation(playerid, "KISSING", "Playa_Kiss_02", 3.0, 0, 0, 0, 0, 0);
  1757.                   return 1;
  1758.         }
  1759.  
  1760.     if (strcmp("/drag", cmdtext, true, 6) == 0) {
  1761.           ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 0, 0, 0, 0, 0);
  1762.                   return 1;
  1763.         }
  1764.  
  1765.     if (strcmp("/lej", cmdtext, true, 8) == 0) {
  1766.           ApplyAnimation(playerid, "PAULNMAC", "Piss_in", 3.0, 0, 0, 0, 0, 0);
  1767.                   return 1;
  1768.         }
  1769.  
  1770.     if (strcmp("/smoke", cmdtext, true, 4) == 0) {
  1771.           ApplyAnimation(playerid,"SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
  1772.                   return 1;
  1773.         }
  1774.  
  1775.     if (strcmp("/usiadz", cmdtext, true, 4) == 0) {
  1776.           ApplyAnimation(playerid,"BEACH", "ParkSit_M_loop", 4.0, 0, 0, 0, 1, 0);
  1777.                   return 1;
  1778.     }
  1779.  
  1780.     if (strcmp("/walsie", cmdtext, true, 2) == 0) {
  1781.               ApplyAnimation( playerid,"ped", "fucku", 4.1, 0, 1, 1, 1, 1 );
  1782.                   return 1;
  1783.     }
  1784.  
  1785.     if (strcmp("/klub", cmdtext, true, 6) == 0)
  1786.     {
  1787.     switch (cmdtext[6])
  1788.     {
  1789.         case 'a', 'A':{ ApplyAnimation( playerid,"STRIP", "strip_A", 4.1, 1, 1, 1, 1, 1 ); return 1; }
  1790.         case 'b', 'B':{ ApplyAnimation( playerid,"STRIP", "strip_B", 4.1, 1, 1, 1, 1, 1 ); return 1; }
  1791.         case 'c', 'C':{ ApplyAnimation( playerid,"STRIP", "strip_C", 4.1, 1, 1, 1, 1, 1 ); return 1; }
  1792.         case 'd', 'D':{ ApplyAnimation( playerid,"STRIP", "strip_D", 4.1, 1, 1, 1, 1, 1 ); return 1; }
  1793.         case 'e', 'E':{ ApplyAnimation( playerid,"STRIP", "strip_E", 4.1, 1, 1, 1, 1, 1 ); return 1; }
  1794.         case 'f', 'F':{ ApplyAnimation( playerid,"STRIP", "strip_F", 4.1, 1, 1, 1, 1, 1 ); return 1; }
  1795.         case 'g', 'G':{ ApplyAnimation( playerid,"STRIP", "strip_G", 4.1, 1, 1, 1, 1, 1 ); return 1; }
  1796.     }
  1797.     return 1;
  1798.     }
  1799.  
  1800.  
  1801.  
  1802.  
  1803.  
  1804.  
  1805. if(strcmp(cmdtext, "/astop", true) == 0)
  1806. {
  1807. ClearAnimations(playerid);
  1808. return true;
  1809. }
  1810.  
  1811.  
  1812.         /*if(strcmp(cmd, "/dance", true) == 0) {
  1813.                   //  new tmp[256];
  1814.  
  1815.  
  1816.                 tmp = strtok(cmdtext, idx);
  1817.                         if(!strlen(tmp)) {
  1818.                                 SendClientMessage(playerid,0xFF0000FF,"/dance [dziki styl 1-4]");
  1819.                                 return 1;
  1820.                         }
  1821.  
  1822.                         dancestyle = strval(tmp);
  1823.                         if(dancestyle < 1 || dancestyle > 4) {
  1824.                             SendClientMessage(playerid,0xFF0000FF,"/dance [dziki styl 1-4]");
  1825.                             return 1;
  1826.                         }
  1827.  
  1828.                         if(dancestyle == 1) {
  1829.                             SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
  1830.                         } else if(dancestyle == 2) {
  1831.                             SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);
  1832.                         } else if(dancestyle == 3) {
  1833.                             SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);
  1834.                         } else if(dancestyle == 4) {
  1835.                             SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4);
  1836.                         }
  1837.                         return 1;
  1838.         }
  1839.         */
  1840.  
  1841.  
  1842.         //Teleport Chilliad
  1843.                 if (strcmp(cmdtext, "/chilliad", true)==0)
  1844.         {
  1845.         if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  1846.                 new cartype = GetPlayerVehicleID(playerid);
  1847.                 new State=GetPlayerState(playerid);
  1848.                 SetPlayerInterior(playerid,0);
  1849.                 format(string, sizeof(string), "%s warped to San Andreas' biggest mountain; Chilliad ! ( /chilliad )", player);
  1850.                 SendClientMessageToAll(YELLOW, string);
  1851.         GameTextForPlayer(playerid, "~y~Welcome to Chilliad !", 3000,6);
  1852.                 if(State!=PLAYER_STATE_DRIVER)
  1853.                 {SetPlayerPos(playerid,-2319.6096,-1644.9589,483.3630);SetPlayerFacingAngle(playerid,221);}
  1854.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  1855.                 {SetVehiclePos(cartype,-2319.6096,-1644.9589,483.3630);
  1856.                 SetVehicleZAngle(cartype,78.1831);}
  1857.                 else
  1858.                 {SetPlayerPos(playerid,-2319.6096,-1644.9589,483.3630);SetPlayerFacingAngle(playerid,221);}
  1859.                 return 1;}
  1860.  
  1861.                 //Teleport AirPort3
  1862.                 if (strcmp(cmdtext, "/ap3", true)==0)
  1863.         {
  1864.         if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  1865.                 new cartype = GetPlayerVehicleID(playerid);
  1866.                 new State=GetPlayerState(playerid);
  1867.                 SetPlayerInterior(playerid,0);
  1868.                 format(string, sizeof(string), "%s warped to San Fierro's Airport ! ( /ap3 )", player);
  1869.                 SendClientMessageToAll(YELLOW, string);
  1870.         GameTextForPlayer(playerid, "~y~Welcome to the 3rd Airport !", 3000,6);
  1871.                 if(State!=PLAYER_STATE_DRIVER)
  1872.                 {SetPlayerPos(playerid,-1526.2240,-226.3657,13.3631);SetPlayerFacingAngle(playerid,69);}
  1873.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  1874.                 {SetVehiclePos(cartype,-1526.2240,-226.3657,13.3631);
  1875.                 SetVehicleZAngle(cartype,78.1831);}
  1876.                 else
  1877.                 {SetPlayerPos(playerid,-1526.2240,-226.3657,13.3631);SetPlayerFacingAngle(playerid,69);}
  1878.                 return 1;}
  1879.  
  1880.                 //Teleport AirPort2
  1881.                 if (strcmp(cmdtext, "/ap2", true)==0)
  1882.         {
  1883.         if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  1884.                 new cartype = GetPlayerVehicleID(playerid);
  1885.                 new State=GetPlayerState(playerid);
  1886.                 SetPlayerInterior(playerid,0);
  1887.                 format(string, sizeof(string), "%s warped to Los Santos' Airport ! ( /ap2 )", player);
  1888.                 SendClientMessageToAll(YELLOW, string);
  1889.         GameTextForPlayer(playerid, "~y~Welcome to the 2nd Airport !", 3000,6);
  1890.                 if(State!=PLAYER_STATE_DRIVER)
  1891.                 {SetPlayerPos(playerid,1398.4218,-2420.0742,13.2148);SetPlayerFacingAngle(playerid,263);}
  1892.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  1893.                 {SetVehiclePos(cartype,1398.4218,-2420.0742,13.2148);
  1894.                 SetVehicleZAngle(cartype,78.1831);}
  1895.                 else
  1896.                 {SetPlayerPos(playerid,1398.4218,-2420.0742,13.2148);SetPlayerFacingAngle(playerid,263);}
  1897.                 return 1;}
  1898.  
  1899.                 //Teleport AirPort1
  1900.                 if (strcmp(cmdtext, "/ap1", true)==0)
  1901.         {
  1902.         if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  1903.                 new cartype = GetPlayerVehicleID(playerid);
  1904.                 new State=GetPlayerState(playerid);
  1905.                 SetPlayerInterior(playerid,0);
  1906.                 format(string, sizeof(string), "%s warped to Las Venturas' Airport ! ( /ap1 )", player);
  1907.                 SendClientMessageToAll(YELLOW, string);
  1908.         GameTextForPlayer(playerid, "~y~Welcome to 1st Airport !", 3000,6);
  1909.                 if(State!=PLAYER_STATE_DRIVER)
  1910.                 {SetPlayerPos(playerid,1326.3910,1300.7324,10.4790);SetPlayerFacingAngle(playerid,355);}
  1911.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  1912.                 {SetVehiclePos(cartype,1326.3910,1300.7324,10.4790);
  1913.                 SetVehicleZAngle(cartype,78.1831);}
  1914.                 else
  1915.                 {SetPlayerPos(playerid,1326.3910,1300.7324,10.4790);SetPlayerFacingAngle(playerid,355);}
  1916.                 return 1;}
  1917.  
  1918.                 //Teleport Abandoned AirPort
  1919.                 if (strcmp(cmdtext, "/verdant", true)==0)
  1920.         {
  1921.         if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  1922.                 new cartype = GetPlayerVehicleID(playerid);
  1923.                 new State=GetPlayerState(playerid);
  1924.                 SetPlayerInterior(playerid,0);
  1925.                 format(string, sizeof(string), "%s warped to Verdant Meadows, the abandoned airport ! ( /verdant )", player);
  1926.                 SendClientMessageToAll(YELLOW, string);
  1927.         GameTextForPlayer(playerid, "~y~Welcome to verdant meadows !", 3000,6);
  1928.                 if(State!=PLAYER_STATE_DRIVER)
  1929.                 {SetPlayerPos(playerid,411.2608,2533.2820,19.1484);SetPlayerFacingAngle(playerid,358);}
  1930.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  1931.                 {SetVehiclePos(cartype,390.4062,2536.6438,16.2679);
  1932.                 SetVehicleZAngle(cartype,180);}
  1933.                 else
  1934.                 {SetPlayerPos(playerid,411.2608,2533.2820,19.1484);SetPlayerFacingAngle(playerid,358);}
  1935.                 return 1;}
  1936.  
  1937.                                 //Teleport Drift2
  1938.                 if (strcmp(cmdtext, "/drift2", true)==0)
  1939.         {
  1940.         if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  1941.                 new cartype = GetPlayerVehicleID(playerid);
  1942.                 new State=GetPlayerState(playerid);
  1943.                 SetPlayerInterior(playerid,0);
  1944.                 format(string, sizeof(string), "%s warped to Las Venturas' Drifting Lot ! ( /drift2 )", player);
  1945.                 SendClientMessageToAll(YELLOW, string);
  1946.         GameTextForPlayer(playerid, "~y~Welcome to the Drifting Lot!", 3000,6);
  1947.         //SendClientMessage(playerid, GREEN, "[RACE]: You can now type '/drift2race [playerid]' to race a player!");
  1948.                 if(State!=PLAYER_STATE_DRIVER)
  1949.                 {SetPlayerPos(playerid,2269.0488,1398.2474,42.4808);SetPlayerFacingAngle(playerid,268);}
  1950.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  1951.                 {SetVehiclePos(cartype,2269.0488,1398.2474,42.8203);
  1952.                 SetVehicleZAngle(cartype,269);}
  1953.                 else
  1954.                 {SetPlayerPos(playerid,2269.0488,1398.2474,42.4808);SetPlayerFacingAngle(playerid,268);}
  1955.                 return 1;}
  1956.  
  1957.                                 //Teleport Drift3
  1958.                 if (strcmp(cmdtext, "/drift3", true)==0)
  1959.         {
  1960.         if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  1961.                 new cartype = GetPlayerVehicleID(playerid);
  1962.                 new State=GetPlayerState(playerid);
  1963.                 SetPlayerInterior(playerid,0);
  1964.                 format(string, sizeof(string), "%s warped to the Missionary Hill ! ( /drift3 )", player);
  1965.                 SendClientMessageToAll(YELLOW, string);
  1966.         GameTextForPlayer(playerid, "~y~Welcome to Missionary Hill !", 3000,6);
  1967.         //SendClientMessage(playerid, GREEN, "[RACE]: You can now type '/drift3race [playerid]' to race a player!");
  1968.                 if(State!=PLAYER_STATE_DRIVER)
  1969.                 {SetPlayerPos(playerid,-2521.2998,-624.5188,132.7820);SetPlayerFacingAngle(playerid,0);}
  1970.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  1971.                 {SetVehiclePos(cartype,-2491.6145,-617.9402,132.5648);
  1972.                 SetVehicleZAngle(cartype,269);}
  1973.                 else
  1974.                 {SetPlayerPos(playerid,-2521.2998,-624.5188,132.7820);SetPlayerFacingAngle(playerid,0);}
  1975.                 return 1;}
  1976.  
  1977.                                                 //Teleport Sanchez track
  1978.                 if (strcmp(cmdtext, "/mountrace", true)==0)
  1979.         {
  1980.         if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  1981.                 new cartype = GetPlayerVehicleID(playerid);
  1982.                 new State=GetPlayerState(playerid);
  1983.                 SetPlayerInterior(playerid,0);
  1984.                 format(string, sizeof(string), "%s warped to the chilliad's Bike Racing track ! ( /mountrace )", player);
  1985.                 SendClientMessageToAll(YELLOW, string);
  1986.         GameTextForPlayer(playerid, "~y~Welcome to the bike track !", 3000,6);
  1987.                 if(State!=PLAYER_STATE_DRIVER)
  1988.                 {SetPlayerPos(playerid,-2432.6587,-1938.1885,302.6290);SetPlayerFacingAngle(playerid,271);}
  1989.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  1990.                 {SetVehiclePos(cartype,-2432.6587,-1938.1885,302.6290);
  1991.                 SetVehicleZAngle(cartype,271);}
  1992.                 else
  1993.                 {SetPlayerPos(playerid,-2432.6587,-1938.1885,302.6290);SetPlayerFacingAngle(playerid,271);}
  1994.                 return 1;}
  1995.  
  1996.                                 //Teleport CarGallery
  1997.                 if (strcmp(cmdtext, "/cargal", true)==0)
  1998.         {
  1999.         if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  2000.                 new cartype = GetPlayerVehicleID(playerid);
  2001.                 new State=GetPlayerState(playerid);
  2002.                 SetPlayerInterior(playerid,0);
  2003.                 format(string, sizeof(string), "%s warped to the Car Gallery arena ! ( /cargal )", player);
  2004.                 SendClientMessageToAll(YELLOW, string);
  2005.         GameTextForPlayer(playerid, "~y~Welcome to the Car Gallery !", 3000,6);
  2006.                 if(State!=PLAYER_STATE_DRIVER)
  2007.                 {SetPlayerPos(playerid,-2057.0549,-183.4372,35.3203);SetPlayerFacingAngle(playerid,0);}
  2008.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  2009.                 {SetVehiclePos(cartype,-2057.0549,-183.4372,35.3203);
  2010.                 SetVehicleZAngle(cartype,45);}
  2011.                 else
  2012.                 {SetPlayerPos(playerid,-2057.0549,-183.4372,35.3203);SetPlayerFacingAngle(playerid,0);}
  2013.                 return 1;}
  2014.  
  2015.                         // Race1 Arena //
  2016.                 if (strcmp(cmdtext, "/goldbridge", true)==0)
  2017.         {
  2018.         if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  2019.                 new cartype = GetPlayerVehicleID(playerid);
  2020.                 new State=GetPlayerState(playerid);
  2021.                 SetPlayerInterior(playerid,0);
  2022.                 format(string, sizeof(string), "%s warped to San Fierro's Golden Bridge ! ( /goldbridge )", player);
  2023.                 SendClientMessageToAll(YELLOW, string);
  2024.         GameTextForPlayer(playerid, "~y~Welcome to the Golden Bridge !", 3000,6);
  2025.         //SendClientMessage(playerid, GREEN, "[RACE]: You can now type '/race1 [playerid]' to race a player!");
  2026.                 if(State!=PLAYER_STATE_DRIVER)
  2027.                 {SetPlayerPos(playerid,-2676.7385,1271.4111,55.4297);SetPlayerFacingAngle(playerid,357);}
  2028.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  2029.                 {SetVehiclePos(cartype,-2676.7385,1271.4111,55.4297);
  2030.                 SetVehicleZAngle(cartype,357);}
  2031.                 else
  2032.                 {SetPlayerPos(playerid,-2676.7385,1271.4111,55.4297);SetPlayerFacingAngle(playerid,357);}
  2033.                 return 1;}
  2034.  
  2035.                     // Race2 Arena //
  2036.                 if (strcmp(cmdtext, "/bigjump", true)==0)
  2037.         {
  2038.         if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  2039.                 new cartype = GetPlayerVehicleID(playerid);
  2040.                 new State=GetPlayerState(playerid);
  2041.                 SetPlayerInterior(playerid,0);
  2042.                 format(string, sizeof(string), "%s warped to the huge jumpy hill ! ( /bigjump )", player);
  2043.                 SendClientMessageToAll(YELLOW, string);
  2044.         GameTextForPlayer(playerid, "~y~Welcome to the huge jump hill", 3000,6);
  2045.         //SendClientMessage(playerid, GREEN, "[RACE]: You can now type '/race2 [playerid]' to race a player!");
  2046.                 if(State!=PLAYER_STATE_DRIVER)
  2047.                 {SetPlayerPos(playerid,-658.9869,2325.0029,138.6067);SetPlayerFacingAngle(playerid,78);}
  2048.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  2049.                 {SetVehiclePos(cartype,-658.9869,2325.0029,138.6067);
  2050.                 SetVehicleZAngle(cartype,78);}
  2051.                 else
  2052.                 {SetPlayerPos(playerid,-658.9869,2325.0029,138.6067);SetPlayerFacingAngle(playerid,78);}
  2053.                 return 1;}
  2054.  
  2055.                 if(strcmp(cmdtext, "/underwater", true) == 0)
  2056.         {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  2057.                  new cartype = GetPlayerVehicleID(playerid);
  2058.                 new State=GetPlayerState(playerid);
  2059.                 SetPlayerInterior(playerid,0);
  2060.                 format(string, sizeof(string), "%s warped underwater! ! ( /underwater )", player);
  2061.                 SendClientMessageToAll(YELLOW, string);
  2062.                 {if(State!=PLAYER_STATE_DRIVER)
  2063.                 {SetPlayerPos(playerid,-653.8839,2192.7200,-33.6347);}
  2064.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  2065.                 {SetVehiclePos(cartype,-653.8839,2192.7200,-33.6347);
  2066.                 SetVehicleZAngle(cartype,261.9530);}
  2067.                 else
  2068.                 {SetPlayerPos(playerid,-653.8839,2192.7200,-33.6347);}
  2069.                 GameTextForPlayer(playerid,"WELCOME UNDERWATER",2500,3);}
  2070.         return 1;}
  2071.  
  2072.         if(strcmp(cmdtext, "/room", true) == 0)
  2073.         {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  2074.                 new State=GetPlayerState(playerid);
  2075.                 SetPlayerInterior(playerid,6);
  2076.                 format(string, sizeof(string), "%s warped inside a mysterious house... ( /room )", player);
  2077.                 SendClientMessageToAll(YELLOW, string);
  2078.                 {if(State!=PLAYER_STATE_DRIVER)
  2079.                 {SetPlayerPos(playerid,349.899993,303.361275,1000.130493);}
  2080.                 else if(GetPlayerState(playerid) == 2)
  2081.                 {SendClientMessage(playerid, RED, "Nuh uh, no cars allowed inside that house, buddy.");}
  2082.                 else
  2083.                 {SetPlayerPos(playerid,349.899993,303.361275,1000.130493);}
  2084.                 GameTextForPlayer(playerid,"Welcome home...",2500,3);}
  2085.         return 1;}
  2086.  
  2087.         if(strcmp(cmdtext, "/pk", true) == 0)
  2088.                 {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  2089.                 new cartype = GetPlayerVehicleID(playerid);
  2090.                 new State=GetPlayerState(playerid);
  2091.                 SetPlayerInterior(playerid,0);
  2092.                 format(string, sizeof(string), "%s warped to a parkour area ! ( /pk )", player);
  2093.                 SendClientMessageToAll(YELLOW, string);
  2094.                 {if(State!=PLAYER_STATE_DRIVER)
  2095.                 {SetPlayerPos(playerid,1920.4679,-1558.4470,28.2217);}
  2096.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  2097.                 {SetVehiclePos(cartype,1920.4679,-1558.4470,28.2217);
  2098.                 SetVehicleZAngle(cartype,287.015);}
  2099.                 else
  2100.                 {SetPlayerPos(playerid,1920.4679,-1558.4470,28.2217);}
  2101.                 GameTextForPlayer(playerid,"~g~Welcome To Pakour Place",2500,3);}
  2102.                 return 1;}
  2103.  
  2104.                 if(strcmp(cmdtext, "/bowl", true) == 0)
  2105.         {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  2106.                  new cartype = GetPlayerVehicleID(playerid);
  2107.                 new State=GetPlayerState(playerid);
  2108.                 SetPlayerInterior(playerid,0);
  2109.                 format(string, sizeof(string), "%s warped to the bowl-iest bowl... ( /bowl )", player);
  2110.                 SendClientMessageToAll(YELLOW, string);
  2111.                 {if(State!=PLAYER_STATE_DRIVER)
  2112.                 {SetPlayerPos(playerid,-1697.5399,21.7378,3.5547);}
  2113.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  2114.                 {SetVehiclePos(cartype,-1611.2828,164.6952,3.5547);
  2115.                 SetVehicleZAngle(cartype,152.0583);}
  2116.                 else
  2117.                 {SetPlayerPos(playerid,-1697.5399,21.7378,3.5547);}
  2118.                 GameTextForPlayer(playerid,"big bowl!!",2500,3);}
  2119.         return 1;}
  2120.  
  2121.                         // SKATE PARK
  2122.         if(strcmp(cmdtext, "/skatepark", true) == 0)
  2123.         {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  2124.                  new cartype = GetPlayerVehicleID(playerid);
  2125.                 new State=GetPlayerState(playerid);
  2126.                 SetPlayerInterior(playerid,0);
  2127.                 format(string, sizeof(string), "%s warped to the skatepark! ( /skatepark )", player);
  2128.                 SendClientMessageToAll(YELLOW, string);
  2129.                 {if(State!=PLAYER_STATE_DRIVER)
  2130.                 {SetPlayerPos(playerid,1880.9452,-1394.7611,13.1246);}
  2131.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  2132.                 {SetVehiclePos(cartype,1880.9452,-1394.7611,13.1246);
  2133.                 SetVehicleZAngle(cartype,304.2583);}
  2134.                 else
  2135.  
  2136.                 {SetPlayerPos(playerid,1880.9452,-1394.7611,13.1246);}
  2137.                 GameTextForPlayer(playerid,"Skatepark!",2500,3);}
  2138.         return 1;}
  2139.  
  2140.         // DERBY
  2141.         if(strcmp(cmdtext, "/derby", true) == 0)
  2142.         {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  2143.                  new cartype = GetPlayerVehicleID(playerid);
  2144.                 new State=GetPlayerState(playerid);
  2145.                 SetPlayerInterior(playerid,0);
  2146.                 format(string, sizeof(string), "%s warped to the car smashing derby! ! ( /derby )", player);
  2147.                 SendClientMessageToAll(YELLOW, string);
  2148.                 {if(State!=PLAYER_STATE_DRIVER)
  2149.                 {SetPlayerPos(playerid,1383.4088,2184.9304,11.0234);}
  2150.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  2151.                 {SetVehiclePos(cartype,1383.4088,2184.9304,11.0234);
  2152.                 SetVehicleZAngle(cartype,132.3792);}
  2153.                 else
  2154.                 {SetPlayerPos(playerid,1383.4088,2184.9304,11.0234);}
  2155.                 GameTextForPlayer(playerid,"demolition derby!",2500,3);}
  2156.         return 1;}
  2157.  
  2158.                         //-----------------military
  2159.         if(strcmp(cmdtext, "/army", true) == 0)
  2160.         {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  2161.                  new cartype = GetPlayerVehicleID(playerid);
  2162.                 new State=GetPlayerState(playerid);
  2163.                 SetPlayerInterior(playerid,0);
  2164.                 format(string, sizeof(string), "%s warped to the military base ! ( /army )", player);
  2165.                 SendClientMessageToAll(YELLOW, string);
  2166.                 {if(State!=PLAYER_STATE_DRIVER)
  2167.                 {SetPlayerPos(playerid,2743.7339,-2405.9058,13.4507);}
  2168.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  2169.                 {SetVehiclePos(cartype,2743.7339,-2405.9058,13.4507);
  2170.                 SetVehicleZAngle(cartype,87.4943);}
  2171.                 else
  2172.                 {SetPlayerPos(playerid,2743.7339,-2405.9058,13.4507);}
  2173.                 GameTextForPlayer(playerid,"welcome home soldier",2500,3);}
  2174.         return 1;}
  2175.  
  2176.         if(strcmp(cmdtext, "/area69", true) == 0)
  2177.         {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  2178.                  new cartype = GetPlayerVehicleID(playerid);
  2179.                 new State=GetPlayerState(playerid);
  2180.                 SetPlayerInterior(playerid,0);
  2181.                 format(string, sizeof(string), "%s warped to the most dangerous area in the desert... ( /area69 )", player);
  2182.                 SendClientMessageToAll(YELLOW, string);
  2183.                 {if(State!=PLAYER_STATE_DRIVER)
  2184.                 {SetPlayerPos(playerid,216.0368,1911.4246,17.6406);}
  2185.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  2186.                 {SetVehiclePos(cartype,216.0368,1911.4246,17.6406);
  2187.                 SetVehicleZAngle(cartype,90);}
  2188.                 else
  2189.                 {SetPlayerPos(playerid,216.0368,1911.4246,17.6406);}
  2190.                 GameTextForPlayer(playerid,"Welcome to Area69",2500,3);}
  2191.         return 1;}
  2192.  
  2193.         if (strcmp(cmdtext, "/grove", true)==0)
  2194.         {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  2195.                 new cartype = GetPlayerVehicleID(playerid);
  2196.                 new State=GetPlayerState(playerid);
  2197.                 SetPlayerInterior(playerid,0);
  2198.                 format(string, sizeof(string), "%s warped to CJ's hood ! ( /grove )", player);
  2199.                 SendClientMessageToAll(YELLOW, string);
  2200.                 {if(State!=PLAYER_STATE_DRIVER)
  2201.                 {SetPlayerPos(playerid,2500.9519,-1668.9618,13.3554);}
  2202.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  2203.                 {SetVehiclePos(cartype,2500.9519,-1668.9618,13.3554);
  2204.                 SetVehicleZAngle(cartype,78.1831);}
  2205.                 else
  2206.                 {SetPlayerPos(playerid,2500.9519,-1668.9618,13.3554);}
  2207.                 GameTextForPlayer(playerid,"Welcome Grove St",2500,4);}
  2208.                 return 1;}
  2209.  
  2210.                 if(strcmp(cmdtext, "/dive", true) == 0){
  2211.                 if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to Sky Dive while DeathMatching!");
  2212.                 new Float:x;
  2213.                 new Float:y;
  2214.                 new Float:z;
  2215.                 GivePlayerWeapon(playerid,46,1);
  2216.                 GetPlayerPos(playerid,x,y,z);
  2217.                 SetPlayerPos(playerid,x,y,z+1000);
  2218.                 GameTextForPlayer(playerid,"~n~~g~YEAH BABY!! SKY DIVE!!",5000,5);
  2219.                 return 1;}
  2220.  
  2221.                                         // Dam
  2222.                 if(strcmp(cmdtext, "/dam", true) == 0)
  2223.         {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  2224.                  new cartype = GetPlayerVehicleID(playerid);
  2225.                 new State=GetPlayerState(playerid);
  2226.                 SetPlayerInterior(playerid,0);
  2227.                 format(string, sizeof(string), "%s warped San Andreas' Dam ! ( /dam )", player);
  2228.                 SendClientMessageToAll(YELLOW, string);
  2229.                 {if(State!=PLAYER_STATE_DRIVER)
  2230.                 {SetPlayerPos(playerid,-585.8121,2029.9879,60.3828);}
  2231.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  2232.                 {SetVehiclePos(cartype,-585.8121,2029.9879,60.3828);
  2233.                 SetVehicleZAngle(cartype,59);}
  2234.                 else
  2235.                 {SetPlayerPos(playerid,-585.8121,2029.9879,60.3828);}
  2236.                 GameTextForPlayer(playerid,"welcome to dam",5000,3);}
  2237.         return 1;}
  2238.  
  2239.                 // Monster mash
  2240.         if(strcmp(cmdtext, "/monster", true) == 0)
  2241.         {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  2242.                 SetPlayerInterior(playerid,0);
  2243.                 format(string, sizeof(string), "%s warped to the Monster Smashing arena ! ( /monster )", player);
  2244.                 SendClientMessageToAll(YELLOW, string);
  2245.                 SetPlayerPos(playerid,-284.2166,2164.1335,112.8475);
  2246.                 GameTextForPlayer(playerid,"welcome to monster mash",5000,3);
  2247.         return 1;}
  2248.  
  2249.         //////// Stuntz /////////
  2250.          if(strcmp(cmdtext, "/stunt1", true) == 0)
  2251.          {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  2252.                  new cartype = GetPlayerVehicleID(playerid);
  2253.                 new State=GetPlayerState(playerid);
  2254.                 SetPlayerInterior(playerid,0);
  2255.                 {if(State!=PLAYER_STATE_DRIVER)
  2256.                 {SetPlayerPos(playerid,2038.8019,906.6232,7.7135);}
  2257.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  2258.                 {SetVehiclePos(cartype,2038.8019,906.6232,7.7135);
  2259.                 SetVehicleZAngle(cartype,261.9530);}
  2260.                 else
  2261.                 {SetPlayerPos(playerid,2038.8019,906.6232,7.7135);}
  2262.                 GameTextForPlayer(playerid,"~w~ Welcome ~G~ To ~r~ stunt1",5000,6);}
  2263.                         return 1;}
  2264.  
  2265.  
  2266.                 if(strcmp(cmdtext, "/stunt2", true) == 0)
  2267.                 {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  2268.                 new cartype = GetPlayerVehicleID(playerid);
  2269.                 new State=GetPlayerState(playerid);
  2270.                 SetPlayerInterior(playerid,0);
  2271.                 {if(State!=PLAYER_STATE_DRIVER)
  2272.                 {SetPlayerPos(playerid,1343.3560,-2554.3459,12.9459);}
  2273.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  2274.                 {SetVehiclePos(cartype,1343.3560,-2554.3459,12.9459);
  2275.                 SetVehicleZAngle(cartype,261.9530);}
  2276.                 else
  2277.                 {SetPlayerPos(playerid,1343.3560,-2554.3459,12.9459);}
  2278.                 GameTextForPlayer(playerid,"~w~ Welcome ~G~ To ~r~ stunt2",5000,6);}
  2279.                         return 1;}
  2280.  
  2281.  
  2282.  
  2283.                     if(strcmp(cmdtext, "/stunt3", true) == 0)
  2284.                     {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  2285.                                          new cartype = GetPlayerVehicleID(playerid);
  2286.                 new State=GetPlayerState(playerid);
  2287.                 SetPlayerInterior(playerid,0);
  2288.                 {if(State!=PLAYER_STATE_DRIVER)
  2289.                 {SetPlayerPos(playerid,2452.1460,1369.4950,10.2366);}
  2290.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  2291.                 {SetVehiclePos(cartype,2452.1460,1369.4950,10.2366);
  2292.                 SetVehicleZAngle(cartype,261.9530);}
  2293.                 else
  2294.                 {SetPlayerPos(playerid,2452.1460,1369.4950,10.2366);}
  2295.                 GameTextForPlayer(playerid,"~w~ Welcome ~G~ To ~r~ stunt3",5000,6);}
  2296.                         return 1;}
  2297.  
  2298.  
  2299.                     if(strcmp(cmdtext, "/stunt4", true) == 0)
  2300.                     {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  2301.                                          new cartype = GetPlayerVehicleID(playerid);
  2302.                 new State=GetPlayerState(playerid);
  2303.                 SetPlayerInterior(playerid,0);
  2304.                 {if(State!=PLAYER_STATE_DRIVER)
  2305.                 {SetPlayerPos(playerid,2013.7771,892.5258,10.3846);}
  2306.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  2307.                 {SetVehiclePos(cartype,2013.7771,892.5258,10.3846);
  2308.                 SetVehicleZAngle(cartype,261.9530);}
  2309.                 else
  2310.                 {SetPlayerPos(playerid,2013.7771,892.5258,10.3846);}
  2311.                 GameTextForPlayer(playerid,"~w~ Welcome ~G~ To ~r~ stunt4",5000,6);}
  2312.                         return 1;}
  2313.  
  2314.  
  2315.                     if(strcmp(cmdtext, "/stunt5", true) == 0)
  2316.                     {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  2317.                                          new cartype = GetPlayerVehicleID(playerid);
  2318.                 new State=GetPlayerState(playerid);
  2319.                 SetPlayerInterior(playerid,0);
  2320.                 {if(State!=PLAYER_STATE_DRIVER)
  2321.                 {SetPlayerPos(playerid,2040.8900,2449.8357,10.2425);}
  2322.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  2323.                 {SetVehiclePos(cartype,2040.8900,2449.8357,10.2425);
  2324.                 SetVehicleZAngle(cartype,261.9530);}
  2325.                 else
  2326.                 {SetPlayerPos(playerid,2040.8900,2449.8357,10.2425);}
  2327.                 GameTextForPlayer(playerid,"~w~ Welcome ~G~ To ~r~ stunt5",5000,6);}
  2328.                         return 1;}
  2329.  
  2330.  
  2331.                     if(strcmp(cmdtext, "/stunt6", true) == 0)
  2332.                     {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  2333.                                          new cartype = GetPlayerVehicleID(playerid);
  2334.                 new State=GetPlayerState(playerid);
  2335.                 SetPlayerInterior(playerid,0);
  2336.                 {if(State!=PLAYER_STATE_DRIVER)
  2337.                 {SetPlayerPos(playerid,2277.3958,2240.0574,10.3906);}
  2338.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  2339.                 {SetVehiclePos(cartype,2277.3958,2240.0574,10.3906);
  2340.                 SetVehicleZAngle(cartype,261.9530);}
  2341.                 else
  2342.                 {SetPlayerPos(playerid,2277.3958,2240.0574,10.3906);}
  2343.                 GameTextForPlayer(playerid,"~w~ Welcome ~G~ To ~r~ stunt6",5000,6);}
  2344.                         return 1;}
  2345.  
  2346.  
  2347.                     if(strcmp(cmdtext, "/stunt7", true) == 0)
  2348.                     {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  2349.                                          new cartype = GetPlayerVehicleID(playerid);
  2350.                 new State=GetPlayerState(playerid);
  2351.                 SetPlayerInterior(playerid,0);
  2352.                 {if(State!=PLAYER_STATE_DRIVER)
  2353.                 {SetPlayerPos(playerid,1722.9973,1452.0178,10.3385);}
  2354.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  2355.                 {SetVehiclePos(cartype,1722.9973,1452.0178,10.3385);
  2356.                 SetVehicleZAngle(cartype,261.9530);}
  2357.                 else
  2358.                 {SetPlayerPos(playerid,1722.9973,1452.0178,10.3385);}
  2359.                 GameTextForPlayer(playerid,"~w~ Welcome ~G~ To ~r~ stunt7",5000,6);}
  2360.                         return 1;}
  2361.  
  2362.  
  2363.                     if(strcmp(cmdtext, "/stunt8", true) == 0)
  2364.                     {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  2365.                                          new cartype = GetPlayerVehicleID(playerid);
  2366.                 new State=GetPlayerState(playerid);
  2367.                 SetPlayerInterior(playerid,0);
  2368.                 {if(State!=PLAYER_STATE_DRIVER)
  2369.                 {SetPlayerPos(playerid,2438.7036,840.1744,6.2989);}
  2370.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  2371.                 {SetVehiclePos(cartype,2438.7036,840.1744,6.2989);
  2372.                 SetVehicleZAngle(cartype,261.9530);}
  2373.                 else
  2374.                 {SetPlayerPos(playerid,2438.7036,840.1744,6.2989);}
  2375.                 GameTextForPlayer(playerid,"~w~ Welcome ~G~ To ~r~ stunt8",5000,6);}
  2376.                         return 1;}
  2377.  
  2378.  
  2379.                     if(strcmp(cmdtext, "/stunt9", true) == 0)
  2380.                     {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  2381.                                          new cartype = GetPlayerVehicleID(playerid);
  2382.                 new State=GetPlayerState(playerid);
  2383.                 SetPlayerInterior(playerid,0);
  2384.                 {if(State!=PLAYER_STATE_DRIVER)
  2385.                 {SetPlayerPos(playerid,2598.8696,1006.5419,10.3915);}
  2386.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  2387.                 {SetVehiclePos(cartype,2598.8696,1006.5419,10.3915);
  2388.                 SetVehicleZAngle(cartype,261.9530);}
  2389.                 else
  2390.                 {SetPlayerPos(playerid,2598.8696,1006.5419,10.3915);}
  2391.                 GameTextForPlayer(playerid,"~w~ Welcome ~G~ To ~r~ stunt9",5000,6);}
  2392.                         return 1;}
  2393.  
  2394.  
  2395.                     if(strcmp(cmdtext, "/stunt10", true) == 0)
  2396.                     {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  2397.                                          new cartype = GetPlayerVehicleID(playerid);
  2398.                 new State=GetPlayerState(playerid);
  2399.                 SetPlayerInterior(playerid,0);
  2400.                 {if(State!=PLAYER_STATE_DRIVER)
  2401.                 {SetPlayerPos(playerid,-803.7369,1808.4460,6.5739);}
  2402.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  2403.                 {SetVehiclePos(cartype,-803.7369,1808.4460,6.5739);
  2404.                 SetVehicleZAngle(cartype,261.9530);}
  2405.                 else
  2406.                 {SetPlayerPos(playerid,-803.7369,1808.4460,6.5739);}
  2407.                 GameTextForPlayer(playerid,"~w~ Welcome ~G~ To ~r~ stunt10",5000,6);}
  2408.                         return 1;}
  2409.  
  2410.                 if(strcmp(cmdtext, "/stunt11", true) == 0)
  2411.                 {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  2412.                    new cartype = GetPlayerVehicleID(playerid);
  2413.                 new State=GetPlayerState(playerid);
  2414.                 SetPlayerInterior(playerid,0);
  2415.                 {if(State!=PLAYER_STATE_DRIVER)
  2416.                 {SetPlayerPos(playerid,2298.9021,1526.3867,10.3642);}
  2417.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  2418.                 {SetVehiclePos(cartype,2298.9021,1526.3867,10.3642);
  2419.                 SetVehicleZAngle(cartype,261.9530);}
  2420.                 else
  2421.                 {SetPlayerPos(playerid,2298.9021,1526.3867,10.3642);}
  2422.                 GameTextForPlayer(playerid,"~w~ Welcome ~G~ To ~r~ stunt11",5000,6);}
  2423.                         return 1;}
  2424.  
  2425.                         // drag
  2426.         if(strcmp(cmdtext, "/drag", true) == 0)
  2427.         {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  2428.                 new cartype = GetPlayerVehicleID(playerid);
  2429.                 new State=GetPlayerState(playerid);
  2430.                 SetPlayerInterior(playerid,0);
  2431.                 {if(State!=PLAYER_STATE_DRIVER)
  2432.                 {SetPlayerPos(playerid,528.4996,-138.4489,37.6058);}
  2433.                 else if(IsPlayerInVehicle(playerid, cartype) == 1)
  2434.                 {SetVehiclePos(cartype,528.4996,-138.4489,37.6058);
  2435.                 SetVehicleZAngle(cartype,261.9530);}
  2436.                 else
  2437.                 {SetPlayerPos(playerid,528.4996,-138.4489,37.6058);}
  2438.                 GameTextForPlayer(playerid,"~w~ Welcome ~G~ To ~r~ Drag",5000,6);
  2439.                 format(string, sizeof(string), "%s warped to a drag area ! ( /drag )", player);
  2440.                 SendClientMessageToAll(YELLOW, string);}
  2441.                         return 1;}
  2442.  
  2443.                                         // CC HQ
  2444.         if (strcmp("/cc", cmdtext, true, 10) == 0)
  2445.         {
  2446.             if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  2447.             if(CCIsLogged[playerid] == 0) return SendClientMessage(playerid, RED, "You are not logged in as a Crucio member! ( /cclogin )");
  2448.         new car = GetPlayerVehicleID(playerid);
  2449.         new State = GetPlayerState(playerid);
  2450.         SetPlayerInterior(playerid,0);
  2451.                 format(string, sizeof(string), "%s warped to Crucio Clan's HeadQuarter!", player);
  2452.                 SendClientMessageToAll(YELLOW, string);
  2453.         GameTextForPlayer(playerid, "~g~Welcome home", 3000,6);
  2454.         if(State!=PLAYER_STATE_DRIVER)
  2455.         {
  2456.         SetPlayerPos(playerid,-688.0696,942.0925,16.8293);
  2457.         SetPlayerInterior(playerid,0);
  2458.         SetCameraBehindPlayer(playerid);
  2459.         SetPlayerFacingAngle(playerid,178);
  2460.         }
  2461.         else if(State==PLAYER_STATE_DRIVER)
  2462.         {
  2463.         LinkVehicleToInterior(car,0);
  2464.         SetVehiclePos(car,-682.4996,966.2908,12.1328);
  2465.         SetVehicleZAngle(car,91);
  2466.         }
  2467.         else
  2468.         {
  2469.         SetPlayerPos(playerid,-688.0696,942.0925,16.8293);
  2470.         SetPlayerInterior(playerid,0);
  2471.         SetCameraBehindPlayer(playerid);
  2472.         SetPlayerFacingAngle(playerid,178);
  2473.         }
  2474.         return 1;
  2475.         }
  2476.  
  2477.                 if (strcmp(cmdtext, "/int",true)==0)
  2478.                 {
  2479.                         SetPlayerInterior(playerid,GetPlayerInterior(playerid));
  2480.                         SendClientMessage(playerid, GREEN, "Your interior is now clear.");
  2481.                         return 1;
  2482.                 }
  2483. if (strcmp("/dm", cmdtext, true, 10) == 0)
  2484.         {
  2485.         if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
  2486.         if(DMArena[playerid] == 3) return SendClientMessage(playerid, RED, "The DeathMatching arena is currently closed.");
  2487.         SetPlayerInterior(playerid,0);
  2488.         DMArena[playerid] = 1;
  2489.         SetPlayerPos(playerid,1422.3750,2773.7910,10.8203);
  2490.         SetPlayerFacingAngle(playerid,90);
  2491.         ResetPlayerWeapons(playerid);
  2492.         format(string, sizeof(string), "%s warped to the deadly DeathMatching arena ! ( /dm )", player);
  2493.         SendClientMessageToAll(YELLOW, string);
  2494.         SendClientMessage(playerid, RED, "Vehicles/Weapons Disabled.");
  2495.         SendClientMessage(playerid, GREEN, "You have teleported to the Deadly Arena!");
  2496.         SendClientMessage(playerid, GREEN, "Pick up some weapons and kill your enemies before they kill you!");
  2497.         SendClientMessage(playerid, ORANGE, "To exit the arena, go to the icon at the arena spawn and type /exitdm.");
  2498.         SendClientMessage(playerid, GREEN, "!! You can now view your DeathMatching's stats ( /dmstats ) !!");
  2499.         SetPlayerWorldBounds(playerid, 1439.348, 1091.817, 2861.89, 2711.035);
  2500.         DM = SetTimerEx("ScoreCheck",1000,1,"d",playerid);
  2501.         return 1;
  2502.         }
  2503. if (strcmp("/exitdm", cmdtext, true, 10) == 0)
  2504. {
  2505. new Float:X,Float:Y,Float:Z;
  2506.  
  2507.             GetPlayerPos(playerid, X, Y, Z);
  2508.             if (PlayerToPoint(3.0, playerid, 1422.3750,2773.7910,10.8203))
  2509.             {
  2510.                         DMArena[playerid] = 0;
  2511.                         SetPlayerPos(playerid,1456.4766,2773.2573,10.8203);
  2512.                         SetPlayerFacingAngle(playerid,280);
  2513.                         ResetPlayerWeapons(playerid);
  2514.                         SendClientMessage(playerid, GREEN, "You have left the Deadly Arena.");
  2515.                         SetPlayerWorldBounds(playerid, 20000.0000,-20000.0000,20000.0000,-20000.0000); // Bounderies Off
  2516.                         KillTimer(DMs);
  2517.                         TextDrawHideForPlayer(playerid,dms);
  2518.                         TextDrawHideForPlayer(playerid,dmh);
  2519.                         TextDrawHideForPlayer(playerid,dmk);
  2520.                         TextDrawHideForPlayer(playerid,dmr[playerid]);
  2521.                         TextDrawHideForPlayer(playerid,dmrh[playerid]);
  2522.                         Stats[playerid] = 0;
  2523.                         SetPlayerArmour(playerid,0.0);
  2524.                 }
  2525.                 else
  2526.             {
  2527.                         SendClientMessage(playerid, RED, "You're not at the exit icon or not DeathMatching !");
  2528.                 }
  2529. return 1;
  2530. }
  2531.  
  2532.         /*------------------------------------------------/Races\------------------------------------------------*/
  2533. if(strcmp(cmd, "/count", true) == 0)
  2534. {
  2535.     /*for(new i = 0; i < MAX_PLAYERS; i++)
  2536.         {
  2537.         if(CountDelay[i] == 1) return SendClientMessage(playerid, RED, "Countdown is already in progress.");
  2538.         }*/
  2539.         if(CountD >= 5)
  2540.         {
  2541.                 SendClientMessageToAll(LIGHTGREEN, "..::~A CountDown has started~::..");
  2542.                 CountDown();
  2543.         }
  2544.         else
  2545.         {
  2546.                 SendClientMessage(playerid, RED, "Countdown is already in progress.");
  2547.         }
  2548.         for(new a = 0; a < MAX_PLAYERS; a++)
  2549.         {
  2550.                 if(IsPlayerConnected(a))
  2551.                 {
  2552.                         if (PlayerInfo[a][pAdminLevel] >= 1)
  2553.                         {
  2554.                                 if (ViewCmds[a] == 1)
  2555.                                 {
  2556.                                         GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  2557.                                         format(string, sizeof(string), "[%i]%s: /count",playerid,player);
  2558.                                         SendClientMessageToAdmins(LIGHTBLUE,string,1);
  2559.                                 }
  2560.                         }
  2561.                 }
  2562.         }
  2563.         return 1;
  2564. }
  2565. /*------------------------------------------------/Other Player Commands\------------------------------------------------*/
  2566. if(strcmp(cmd, "/view", true) == 0)
  2567. {
  2568.         if(DMArena[playerid] == 1) return SendClientMessage(playerid, 0xE60000FF, "You are not allowed to spectate someone in the DeathMatch arena.");
  2569.                 tmp = strtok(cmdtext, idx);
  2570.  
  2571.                 if(!strlen(tmp))
  2572.                 {
  2573.                     SendClientMessage(playerid, ORANGE, "|__________________________________|");
  2574.                         SendClientMessage(playerid, ORANGE, "USAGE: /view [playerid]");
  2575.                         SendClientMessage(playerid, ORANGE, "FUNCTION: Will spectate a player.");
  2576.                         SendClientMessage(playerid, ORANGE, "HELP: /viewoff to stop spectating");
  2577.                         SendClientMessage(playerid, ORANGE, "|__________________________________|");
  2578.                         return 1;
  2579.                 }
  2580.                 giveplayerid = ReturnUser(tmp);
  2581.                 if (giveplayerid != INVALID_PLAYER_ID)
  2582.                 {
  2583.                     View[playerid] = 1;
  2584.                         TogglePlayerSpectating(playerid, 1);
  2585.                         PlayerSpectatePlayer(playerid, giveplayerid);
  2586.                         SetPlayerInterior(playerid,GetPlayerInterior(giveplayerid));
  2587.                         SetPlayerColor(playerid,PLAYER_VIEW);
  2588.                         SendClientMessage(playerid, ORANGE, "HELP: /viewoff to stop spectating");
  2589.                 }
  2590.                 else
  2591.                 {
  2592.         format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  2593.                 SendClientMessage(playerid, RED, string);
  2594.                 }
  2595. return 1;
  2596. }
  2597. //-----|Spec-Off|-----//
  2598. if(strcmp(cmd, "/viewoff", true) == 0)
  2599. {
  2600. TogglePlayerSpectating(playerid, 0);
  2601. SetPlayerColor(playerid,PLAYER_COLOR);
  2602. SpectateID[playerid] = INVALID_PLAYER_ID;
  2603. SpectateType[playerid] = SPEC_TYPE_NONE;
  2604. return 1;
  2605. }
  2606. if (strcmp("/heal", cmdtext, true, 10) == 0)
  2607.         {
  2608.         if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You can't heal yourself in DeathMatch! Find the health icon.");
  2609.         SetPlayerHealth(playerid,100);
  2610.         return 1;
  2611.         }
  2612.         if (strcmp("/repair", cmdtext, true, 10) == 0)
  2613.         {
  2614.         if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You can't repair your vehicle in the DeathMatching arena!");
  2615.         else if (GetPlayerState(playerid) == 2)
  2616.         {
  2617.             TogglePlayerControllable(playerid,0);
  2618.                 SetTimerEx("VehRepair",5000,0,"d",playerid);
  2619.                 GameTextForPlayer(playerid, "~g~Repairing...",5000,6);
  2620.         }
  2621.         else if (IsPlayerInArea(playerid, 1376.871, 1232.391, 2200.451, 2057.332))
  2622.         {
  2623.                 SendClientMessage(playerid, RED, "You can't repair your vehicle in the derby field!");
  2624.         }
  2625.         else return SendClientMessage(playerid, RED, "You're not driving a vehicle.");
  2626.         return 1;
  2627.         }
  2628.         if(strcmp(cmdtext, "/fullrepair", true) == 0)
  2629.         {
  2630.             if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You can't repair your vehicle in the DeathMatching arena!");
  2631.             if(GetPlayerState(playerid) == 2)
  2632.             {
  2633.                         new vehicleid = GetPlayerVehicleID(playerid);
  2634.                         new Float:X, Float:Y, Float:Z, Float:Angle;
  2635.                         GetVehiclePos(vehicleid, X, Y, Z);
  2636.                         GetVehicleZAngle(vehicleid, Angle);
  2637.                         SetVehiclePos(vehicleid, 2067.7327,-1831.5408,13.2523);
  2638.                         SetCameraBehindPlayer(playerid);
  2639.                         SetVehicleZAngle(vehicleid, 185.7243);
  2640.                         GameTextForPlayer(playerid, "~g~~h~~h~Repairing...", 3500, 5);
  2641.                         SetTimerEx("ReplaceVehicle", 3000, 0, "iffff", vehicleid, X, Y, Z, Angle);
  2642.                 }
  2643.                 else return SendClientMessage(playerid, RED, "You're not in a vehicle.");
  2644.                 return 1;
  2645.         }
  2646.         if (strcmp("/flip", cmdtext, true, 10) == 0)
  2647.         {
  2648.             if (GetPlayerState(playerid) == 2)
  2649.                 {
  2650.                     SetVehicleZAngle(GetPlayerVehicleID(playerid),0.0);
  2651.                 }
  2652.                 return 1;
  2653.         }
  2654.         if(strcmp(cmd, "/id", true) == 0)
  2655.         {
  2656.             if(IsPlayerConnected(playerid))
  2657.             {
  2658.                         tmp = strtok(cmdtext, idx);
  2659.                         if(!strlen(tmp))
  2660.                         {
  2661.                                 SendClientMessage(playerid, ORANGE, "USAGE: /id [playerid/name]");
  2662.                                 return 1;
  2663.                         }
  2664.                         giveplayerid = ReturnUser(tmp);
  2665.                         if(IsPlayerConnected(giveplayerid))
  2666.                         {
  2667.                             if(giveplayerid != INVALID_PLAYER_ID)
  2668.                             {
  2669.                                         GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  2670.                                         SendClientMessage(playerid, ADMIN_RED, "______________________________________");
  2671.                                         format(string, sizeof(string), "Player Info: [%d]%s", giveplayerid,giveplayer);
  2672.                                         SendClientMessage(playerid, LIGHTGREEN, string);
  2673.                                         format(string, sizeof(string), "    -DeathMatching Kills: %d", KillScore[giveplayerid]);
  2674.                                         SendClientMessage(playerid, LIGHTGREEN, string);
  2675.                                         format(string, sizeof(string), "    -DeathMatching Deaths: %d", DeathScore[giveplayerid]);
  2676.                                         SendClientMessage(playerid, LIGHTGREEN, string);
  2677.                                         format(string, sizeof(string), "    -Warnings: %d", PlayerInfo[giveplayerid][pWarns]);
  2678.                                         SendClientMessage(playerid, LIGHTGREEN, string);
  2679.                                         SendClientMessage(playerid, ADMIN_RED, "______________________________________");
  2680.                                 }
  2681.                         }
  2682.                 }
  2683.                 return 1;
  2684.         }
  2685. if (strcmp("/dmstats", cmdtext, true, 10) == 0)
  2686. {
  2687.         if(DMArena[playerid] == 1)
  2688.         {
  2689.                 if (Stats[playerid] == 1)
  2690.                 {
  2691.                    SendClientMessage(playerid, RED, "Your stats are already shown!");
  2692.                 }
  2693.                 else
  2694.                 {
  2695.                 TextDrawShowForPlayer(playerid,dms);
  2696.                 TextDrawShowForPlayer(playerid,dmk);
  2697.                 TextDrawShowForPlayer(playerid,dmh);
  2698.                 TextDrawShowForPlayer(playerid,dmr[playerid]);
  2699.                 TextDrawShowForPlayer(playerid,dmrh[playerid]);
  2700.                 //DMs = SetTimerEx("DMStatsCheck",500,1,"d",playerid);
  2701.                 Stats[playerid] = 1;
  2702.                 }
  2703.         }
  2704.         else
  2705.         {
  2706.                 SendClientMessage(playerid, RED, "You are not DeathMatching !");
  2707.         }
  2708. return 1;
  2709. }
  2710. if (strcmp("/dmstatsoff", cmdtext, true, 10) == 0)
  2711. {
  2712.         if(DMArena[playerid] == 1 && Stats[playerid] == 1)
  2713.         {
  2714.             KillTimer(DMs);
  2715.             Stats[playerid] = 0;
  2716.                 SendClientMessage(playerid, GREEN, "Your DM stats are now Invisible.");
  2717.                 TextDrawHideForPlayer(playerid,dms);
  2718.                 TextDrawHideForPlayer(playerid,dmk);
  2719.                 TextDrawHideForPlayer(playerid,dmh);
  2720.                 TextDrawHideForPlayer(playerid,dmr[playerid]);
  2721.                 TextDrawHideForPlayer(playerid,dmrh[playerid]);
  2722.                 AttachObjectToPlayer(barrelplayer,playerid,0,0,2000,0,0,0);
  2723.                 AttachObjectToPlayer(barrelplayer2,playerid,0,0,2000,0,0,0);
  2724.                 AttachObjectToPlayer(barrelplayer3,playerid,0,0,2000,0,0,0);
  2725.         }
  2726.         else if (DMArena[playerid] == 0)
  2727.         {
  2728.         SendClientMessage(playerid, RED, "You are not DeathMatching !");
  2729.         }
  2730.         else if (Stats[playerid] == 0)
  2731.         {
  2732.         SendClientMessage(playerid, RED, "Your stats aren't even shown up.");
  2733.         }
  2734. return 1;
  2735. }
  2736. if (strcmp("/stats", cmdtext, true, 10) == 0)
  2737. {
  2738.         if (IsLogged[playerid] == 1)
  2739.         {
  2740.     SendClientMessage(playerid, PURPLE, "|___________Account-Stats___________|");
  2741.     format(string, sizeof(string), "[KILLS]:    %d", KillScore[playerid]);
  2742.     SendClientMessage(playerid, LIGHTGREEN, string);
  2743.     format(string, sizeof(string), "[DEATHS]:    %d", DeathScore[playerid]);
  2744.     SendClientMessage(playerid, RED, string);
  2745.     format(string, sizeof(string), "[WARNINGS]:    %d", PlayerInfo[playerid][pWarns]);
  2746.     SendClientMessage(playerid, ADMIN_RED, string);
  2747.     if (CCIsLogged[playerid] == 1) { format(string, sizeof(string), "[CC]:    Yes"); } else { format(string, sizeof(string), "[CC]:    No"); }
  2748.     SendClientMessage(playerid, GREEN, string);
  2749.     if (PlayerInfo[playerid][pAdminLevel] >= 1) {format(string, sizeof(string), "[Admin]:    Level %d",PlayerInfo[playerid][pAdminLevel]);} else {format(string, sizeof(string), "[Admin]:    No");}
  2750.         SendClientMessage(playerid, LIGHTBLUE, string);
  2751.         SendClientMessage(playerid, PURPLE, "|___________________________________|");
  2752.         }
  2753.         else return SendClientMessage(playerid, RED, "You must be logged in to view your stats.");
  2754.         return 1;
  2755. }
  2756. if (strcmp("/ramp", cmdtext, true, 10) == 0)
  2757. {
  2758. if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to create a ramp while DeathMatching !");
  2759.         if (Ramp[playerid] == 1)
  2760.         {
  2761.             SendClientMessage(playerid, RED, "You already spawned a ramp! Type /rampoff to remove your previous ramp.");
  2762.         }
  2763.         else
  2764.         {
  2765.                 new Float:X,Float:Y,Float:Z;
  2766.                 new Float:angle;
  2767.                 GetPlayerPos(playerid,X,Y,Z);
  2768.                 GetPlayerFacingAngle(playerid,angle);
  2769.                 ramp = CreatePlayerObject(playerid,13593,X,Y+10,Z,0,0,0);
  2770.                 SendClientMessage(playerid, GREEN, "Ramp created. Type /rampoff to remove it.");
  2771.                 Ramp[playerid] = 1;
  2772.         }
  2773. return 1;
  2774. }
  2775. if (strcmp("/rampoff", cmdtext, true, 10) == 0)
  2776. {
  2777.         if (Ramp[playerid] == 0)
  2778.         {
  2779.             SendClientMessage(playerid, RED, "You don't have a ramp.");
  2780.         }
  2781.         else
  2782.         {
  2783.                 DestroyPlayerObject(playerid,ramp);
  2784.                 SendClientMessage(playerid, GREEN, "Ramp deleted.");
  2785.                 Ramp[playerid] = 0;
  2786.         }
  2787. return 1;
  2788. }
  2789.  
  2790. if (strcmp("/lock", cmdtext, true, 10) == 0)
  2791. {
  2792.         if (GetPlayerState(playerid) == 2)
  2793.         {
  2794.                 for(new i = 0; i < MAX_PLAYERS; i++)
  2795.                 {
  2796.                 SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), i, 0, 1);
  2797.                 }
  2798.                 SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), playerid, 0, 0);
  2799.                 PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
  2800. //              CarLock = SetTimerEx("VehLock",500,1,"d",playerid);
  2801.                 SendClientMessage(playerid, GREEN, "Vehicle Locked.");
  2802.         }
  2803.         else
  2804.         {
  2805.         SendClientMessage(playerid, RED, "You are not driving a vehicle.");
  2806.         }
  2807.         return 1;
  2808. }
  2809. if (strcmp("/unlock", cmdtext, true, 10) == 0)
  2810. {
  2811.         if (GetPlayerState(playerid) == 2)
  2812.         {
  2813.                 for(new i = 0; i < MAX_PLAYERS; i++)
  2814.                 {
  2815.                 SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), i, 0, 0);
  2816.                 }
  2817. //              KillTimer(CarLock);
  2818.                 PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
  2819.                 SendClientMessage(playerid, GREEN, "Vehicle Unlocked.");
  2820.         }
  2821.         else
  2822.         {
  2823.         SendClientMessage(playerid, RED, "You are not driving a vehicle.");
  2824.         }
  2825.         return 1;
  2826. }
  2827. if (strcmp("/ramp2", cmdtext, true, 10) == 0)
  2828. {
  2829. if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to create a ramp while DeathMatching !");
  2830.         if (Ramp[playerid] == 1)
  2831.         {
  2832.             SendClientMessage(playerid, RED, "You already spawned a ramp! Type /ramp2off to remove your previous ramp.");
  2833.         }
  2834.         else
  2835.         {
  2836.                 new Float:X,Float:Y,Float:Z;
  2837.                 new Float:ang;
  2838.                 GetPlayerPos(playerid,X,Y,Z);
  2839.                 GetPlayerFacingAngle(playerid,ang);
  2840.                 ramp2 = CreatePlayerObject(playerid,1697,X,Y+10,Z,0,0,0);
  2841.                 SendClientMessage(playerid, GREEN, "Ramp created. Type /ramp2off to remove it.");
  2842.                 Ramp[playerid] = 1;
  2843.         }
  2844. return 1;
  2845. }
  2846. if (strcmp("/ramp2off", cmdtext, true, 10) == 0)
  2847. {
  2848.         if (Ramp[playerid] == 0)
  2849.         {
  2850.             SendClientMessage(playerid, RED, "You don't have a ramp.");
  2851.         }
  2852.         else
  2853.         {
  2854.                 DestroyPlayerObject(playerid,ramp2);
  2855.                 SendClientMessage(playerid, GREEN, "Ramp deleted.");
  2856.                 Ramp[playerid] = 0;
  2857.         }
  2858. return 1;
  2859. }
  2860. if(strcmp(cmd, "/report", true) == 0)
  2861. {
  2862. new reason[64];
  2863.         tmp = strtok(cmdtext, idx);
  2864.                 if(!strlen(tmp))
  2865.                 {
  2866.                         SendClientMessage(playerid, ORANGE, "USAGE: /report [playerid] [reason]");
  2867.                         SendClientMessage(playerid, ORANGE, "FUNCTION: Will report the specified player to the administrators. **PLEASE ENTER THE ID ONLY!**");
  2868.                         return 1;
  2869.                 }
  2870.  
  2871.                 giveplayerid = ReturnUser(tmp);
  2872.  
  2873.                 if(giveplayerid != INVALID_PLAYER_ID)
  2874.                 {
  2875.                     GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  2876.                         GetPlayerName(playerid, sendername, sizeof(sendername));
  2877.                         new length = strlen(cmdtext);
  2878.                         while ((idx < length) && (cmdtext[idx] <= ' '))
  2879.                         {
  2880.                                 idx++;
  2881.                         }
  2882.                         new offset = idx;
  2883.                         while ((idx < length) && ((idx - offset) < (sizeof(reason) - 1)))
  2884.                         {
  2885.                                 reason[idx - offset] = cmdtext[idx];
  2886.                                 idx++;
  2887.                         }
  2888.                         reason[idx - offset] = EOS;
  2889.                         if(!strlen(reason))
  2890.                                 {
  2891.                                         SendClientMessage(playerid, ORANGE, "USAGE: /report [playerid] [reason]");
  2892.                                         return 1;
  2893.                                 }
  2894.                         format(string, sizeof(string), "[REPORT]: %s reported %s for: %s", sendername,giveplayer,reason);
  2895.                         SendClientMessageToAdmins(ADMIN_RED, string,1);
  2896.                         format(string, sizeof(string), "Your report on '%s' has been sent to the current online admins.", giveplayer);
  2897.                         SendClientMessage(playerid, GREEN, string);
  2898.                 }
  2899.  
  2900.                 else if(giveplayerid == INVALID_PLAYER_ID)
  2901.                 {
  2902.                         format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  2903.                         SendClientMessage(playerid, RED, string);
  2904.                 }
  2905.         return 1;
  2906. }
  2907.         if(strcmp(cmd, "/me", true) == 0)
  2908.         {
  2909.                 if(IsLogged[playerid] == 0)
  2910.                 {
  2911.                     SendClientMessage(playerid, RED, "You must be logged in to use /me.");
  2912.                     return 1;
  2913.                 }
  2914.                         GetPlayerName(playerid, player, sizeof(player));
  2915.                         new length = strlen(cmdtext);
  2916.                         while ((idx < length) && (cmdtext[idx] <= ' '))
  2917.                         {
  2918.                                 idx++;
  2919.                         }
  2920.                         new offset = idx;
  2921.                         new result[64];
  2922.                         while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  2923.                         {
  2924.                                 result[idx - offset] = cmdtext[idx];
  2925.                                 idx++;
  2926.                         }
  2927.                         result[idx - offset] = EOS;
  2928.                         if(!strlen(result))
  2929.                         {
  2930.                                 SendClientMessage(playerid, ORANGE, "USAGE: /me [action]");
  2931.                                 return 1;
  2932.                         }
  2933.                         format(string, sizeof(string), "* %s %s *", player, result);
  2934.                         SendClientMessageToAll(BLUE, string);
  2935.                         printf("%s", string);
  2936.                 return 1;
  2937.         }
  2938.         if (strcmp(cmd, "/admins", true) == 0)
  2939.         {
  2940.                 SendClientMessage(playerid, GREEN, "|---------------Online Admins---------------|");
  2941.                 for(new i = 0; i < MAX_PLAYERS; i++)
  2942.                 {
  2943.                     if (IsPlayerConnected(i))
  2944.                         {
  2945.                                 if(PlayerInfo[i][pAdminLevel] >= 1 && PlayerInfo[i][pAdminLevel] <= 5)
  2946.                                 {
  2947.                                                 GetPlayerName(i, player, sizeof(player));
  2948.                                                 format(string, 256, "Level %d [%i]%s", PlayerInfo[i][pAdminLevel],i,player);
  2949.                                                 SendClientMessage(playerid, LIGHTGREEN, string);
  2950.                                         }
  2951.                         }
  2952.                 }
  2953.                 SendClientMessage(playerid, GREEN, "|--------------------------------------------------|");
  2954.                 return 1;
  2955.         }
  2956. if (strcmp(cmd, "/bomb", true) == 0)
  2957. {
  2958.         new vehicleid = GetPlayerVehicleID(playerid);
  2959.         if (PlayerToPoint(4.0, playerid, 2505.5649,-1693.8972,13.5582))
  2960.         {
  2961.             if (GetPlayerState(playerid) == 2)
  2962.             {
  2963.                 if (GetPlayerMoney(playerid) >=50000)
  2964.                         {
  2965.                                 BombInstalled[vehicleid] = 1;
  2966.                                 GivePlayerMoney(playerid,-50000);
  2967.                                 SendClientMessage(playerid, GREEN, "Bomb Installed for $50 000. You may press the FIRE button to proceed.");
  2968.                         }
  2969.                         else
  2970.                         {
  2971.                             SendClientMessage(playerid, RED, "You don't have enough cash($50 000).");
  2972.                         }
  2973.                 }
  2974.                 else return SendClientMessage(playerid, RED, "You're not in a vehicle.");
  2975.         }
  2976.         else return SendClientMessage(playerid, RED, "You're not at CJ's Grove house's garage.");
  2977. return 1;
  2978. }
  2979.         if (strcmp(cmd, "/afk", true) == 0)
  2980.         {
  2981.             if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You can't activate this command in the DeathMatching arena.");
  2982.                 else if(afk[playerid] == 1) return SendClientMessage(playerid, RED, "You are already 'AFK' ");
  2983.             else
  2984.             {
  2985.                 afk[playerid] = 1;
  2986.                 SetPlayerColor(playerid,AFK);
  2987.                         TogglePlayerControllable(playerid,0);
  2988.                         GetPlayerName(playerid, playername, sizeof(playername));
  2989.                         format(string, sizeof(string), "[NEWS]: %s is now Away From Keyboard[AFK]. ( /afk )", player);
  2990.                         SendClientMessageToAll(YELLOW, string);
  2991.                         SendClientMessage(playerid, GREEN, "Your status is now 'AFK'");
  2992.                 }
  2993.                 return 1;
  2994.         }
  2995.         if (strcmp(cmd, "/back", true) == 0)
  2996.         {
  2997.                 if(afk[playerid] ==0) return SendClientMessage(playerid, RED, "You're not 'AFK'");
  2998.             else
  2999.             {
  3000.                 afk[playerid] = 0;
  3001.                 if(CCIsLogged[playerid]==1) { SetPlayerColor(playerid,LIGHTGREEN);} else { SetPlayerColor(playerid,PLAYER_COLOR);}
  3002.                 TogglePlayerControllable(playerid,1);
  3003.                         GetPlayerName(playerid, playername, sizeof(playername));
  3004.                         format(string, sizeof(string), "[NEWS]: %s is back from being A.F.K. ( /back )", player);
  3005.                         SendClientMessageToAll(YELLOW, string);
  3006.                         SendClientMessage(playerid, GREEN, "You are back.");
  3007.                 }
  3008.                 return 1;
  3009.         }
  3010. /*------------------------------------------------/CC Commands\------------------------------------------------*/
  3011. if(strcmp(cmd, "/attach", true) == 0)
  3012. {
  3013. if(CCIsLogged[playerid] == 1)
  3014.         {
  3015.             tmp = strtok(cmdtext, idx);
  3016.                 if(!strlen(tmp))
  3017.                 {
  3018.                         SendClientMessage(playerid, ORANGE, "USAGE: /attach [playerid]");
  3019.                         SendClientMessage(playerid, ORANGE, "FUNCTION: Will attach the player to your boat.");
  3020.                         return 1;
  3021.                 }
  3022.                 giveplayerid = ReturnUser(tmp);
  3023.                 if (giveplayerid != INVALID_PLAYER_ID)
  3024.                 {
  3025.                         new Float:X,Float:Y,Float:Z;
  3026.                         GetPlayerPos(playerid,X,Y,Z);
  3027.                         if (IsPlayerInVehicle(playerid,72))
  3028.                         {
  3029.                             if (PlayerToPoint(5.0,giveplayerid,X,Y,Z))
  3030.                             {
  3031.                                 SetPlayerPos(giveplayerid,X,Y,Z+2);
  3032.                                 AttachP = SetTimerEx("AttachPlayer", 500, 1, "ifff", giveplayerid, X, Y, Z+2);
  3033.                                 SendClientMessage(playerid, GREEN, "Success");
  3034.                             }
  3035.                             else
  3036.                             {
  3037.                                 SendClientMessage(playerid, RED, "The player isn't near you.");
  3038.                             }
  3039.                         }
  3040.                         else
  3041.                         {
  3042.                             SendClientMessage(playerid, RED, "You're not in a boat");
  3043.                         }
  3044.                 }
  3045.                 else
  3046.                 {
  3047.                     SendClientMessage(playerid, RED, "Player is not active.");
  3048.                 }
  3049.         }
  3050.         else
  3051.         {
  3052.                 SendClientMessage(playerid, RED, "You are not logged in as a Crucio Clan member.");
  3053.         }
  3054.         return 1;
  3055. }
  3056. if(strcmp(cmd, "/unattach", true) == 0)
  3057. {
  3058.         KillTimer(AttachP);
  3059.         SendClientMessage(playerid, GREEN, "You have been unattached.");
  3060.         return 1;
  3061. }
  3062. if(strcmp(cmd, "///", true) == 0)
  3063. {
  3064. if(CCIsLogged[playerid] == 1)
  3065.         {
  3066.         GetPlayerName(playerid, playername, sizeof(playername));
  3067.                 new length = strlen(cmdtext);
  3068.                 while ((idx < length) && (cmdtext[idx] <= ' '))
  3069.                 {
  3070.                         idx++;
  3071.                 }
  3072.                 new offset = idx;
  3073.                 new result[256];
  3074.                 while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  3075.                 {
  3076.                         result[idx - offset] = cmdtext[idx];
  3077.                         idx++;
  3078.                 }
  3079.                 result[idx - offset] = EOS;
  3080.                 if(!strlen(result))
  3081.                 {
  3082.                         SendClientMessage(playerid, ORANGE, "USAGE: /// <text>");
  3083.                 }
  3084.                 else
  3085.                 {
  3086.                         format(string, sizeof(string), "CC [%i]%s: %s", playerid,playername, result);
  3087.                         SendClientMessageToCC(DARKGREEN,string);
  3088.                 }
  3089.         }
  3090.         else
  3091.         {
  3092.                 SendClientMessage(playerid, RED, "You must be logged in as a Crucio Clan member to chat with the other CC members!");
  3093.         }
  3094.         return 1;
  3095. }
  3096. /*------------------------------------------------/Admin Commands\------------------------------------------------*/
  3097. if(strcmp(cmd, "/ah", true) == 0)
  3098. {
  3099. if (PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid))
  3100.         {
  3101.             SendClientMessage(playerid, PURPLE, "         |- Stunts'n'Drifts'n'Racez'n'Pwn Server Admin Commands -|");
  3102.             SendClientMessage(playerid, ORANGE, "LEAD(5): /gmx /makeadmin /kickall /an");
  3103.             SendClientMessage(playerid, ORANGE, "LEVEL 1+: /freeze /unfreeze // /score /angle /kick /setname /kill /goto /arules /ip");
  3104.             SendClientMessage(playerid, ORANGE, "LEVEL 2+: /mute /unmute  /nuclearbomb /givecash /get /pstats /warn /viewcmds");
  3105.             SendClientMessage(playerid, ORANGE, "LEVEL 3+: /nuke /ban /disarm /say /veh /giveweapon /dmon /dmoff");
  3106.             SendClientMessage(playerid, ORANGE, "LEVEL 4+: /slap /bslap /fuck /bc /setwarn");
  3107.             SendClientMessage(playerid, ORANGE, "HELP: // is admin chat. Example: // Hi");
  3108.             SendClientMessage(playerid, PURPLE, "Level 1: Newbie. Level 2: New Admin. Level 3: Admin. Level 4: Advanced Admin. Level 5: Lead Admin.");
  3109.         }
  3110.         else
  3111.         {
  3112.         SendClientMessage(playerid, RED, "You are not an admin!");
  3113.         }
  3114. return 1;
  3115. }
  3116. if(strcmp(cmd, "/arules", true) == 0)
  3117. {
  3118. if (PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid))
  3119.         {
  3120.             SendClientMessage(playerid, PURPLE, "         |- Stunts'n'Drifts'n'Racez'n'Pwn Server Admin Rules -|");
  3121.             SendClientMessage(playerid, LIGHTRED, "The following rules are the ones you shouldn't execute following by it's consequence.");
  3122.             SendClientMessage(playerid, RED, "Abusing = -2 levels.");
  3123.             SendClientMessage(playerid, RED, "Not doing the admin work = Instant demote - You are simply too retarded to obtain your position.");
  3124.             SendClientMessage(playerid, RED, "Spawning too many vehicles = Instant level 2.");
  3125.             SendClientMessage(playerid, RED, "Disrespecting a public rule = Instant demote or -1/2 level(s).");
  3126.         }
  3127.         else
  3128.         {
  3129.         SendClientMessage(playerid, RED, "You are not an admin!");
  3130.         }
  3131. return 1;
  3132. }
  3133. if(strcmp(cmd, "/makeadmin", true) == 0)
  3134. {
  3135. if (PlayerInfo[playerid][pAdminLevel] == 5 || IsPlayerAdmin(playerid))
  3136.         {
  3137.         tmp = strtok(cmdtext, idx);
  3138.                 if(!strlen(tmp))
  3139.                 {
  3140.                         SendClientMessage(playerid, ORANGE, "USAGE: /makeadmin [playerid] [level 1-5]");
  3141.                         SendClientMessage(playerid, ORANGE, "FUNCTION: Player will be an admin. **PLEASE ENTER THE ID ONLY!**");
  3142.                         return 1;
  3143.                 }
  3144.                 giveplayerid = ReturnUser(tmp);
  3145.                 tmp = strtok(cmdtext, idx);
  3146.                 level = strval(tmp);
  3147.                 if(giveplayerid != INVALID_PLAYER_ID)
  3148.                 {
  3149.                                 GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  3150.                                 GetPlayerName(playerid, sendername, sizeof(sendername));
  3151.                                 PlayerInfo[giveplayerid][pAdminLevel] = level;
  3152.                                 printf("[ADMIN NEWS]: %s made %s a level %d admin.", sendername, giveplayer, level);
  3153.                                 format(string, sizeof(string), "You are now an administrator level %d thanks to %s.", level, sendername);
  3154.                                 SendClientMessage(giveplayerid, LIGHTBLUE, string);
  3155.                                 format(string, sizeof(string), "You have given %s level %d admin.", giveplayer,PlayerInfo[giveplayerid][pAdminLevel]);
  3156.                                 SendClientMessage(playerid, LIGHTBLUE, string);
  3157.                 }
  3158.                 else if(giveplayerid != INVALID_PLAYER_ID)
  3159.                 {
  3160.                         format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  3161.                         SendClientMessage(playerid, RED, string);
  3162.                 }
  3163.         }
  3164.         else
  3165.         {
  3166.         SendClientMessage(playerid, RED, "You are not a lead admin!");
  3167.         }
  3168. return 1;
  3169. }
  3170. if(strcmp(cmd, "/gmx", true) == 0)
  3171. {
  3172. if (PlayerInfo[playerid][pAdminLevel] >= 5 || IsPlayerAdmin(playerid))
  3173.         {
  3174.             GameModeExit();
  3175.         }
  3176.         else
  3177.         {
  3178.         SendClientMessage(playerid, RED, "You are not a lead admin!");
  3179.         }
  3180. return 1;
  3181. }
  3182. if(strcmp(cmd, "/kickall", true) == 0)
  3183. {
  3184. new reason[64];
  3185. if (PlayerInfo[playerid][pAdminLevel] == 5 || IsPlayerAdmin(playerid))
  3186.         {
  3187.                 tmp = strtok(cmdtext, idx);
  3188.                 if(!strlen(tmp))
  3189.                 {
  3190.                         SendClientMessage(playerid, ORANGE, "USAGE: /kickall [reason]");
  3191.                         SendClientMessage(playerid, ORANGE, "FUNCTION: Will kick all the players.");
  3192.                         return 1;
  3193.                 }
  3194.                         GetPlayerName(playerid, sendername, sizeof(sendername));
  3195.                         new length = strlen(cmdtext);
  3196.                         while ((idx < length) && (cmdtext[idx] <= ' '))
  3197.                         {
  3198.                                 idx++;
  3199.                         }
  3200.                         new offset = idx;
  3201.                         while ((idx < length) && ((idx - offset) < (sizeof(reason) - 1)))
  3202.                         {
  3203.                                 reason[idx - offset] = cmdtext[idx];
  3204.                                 idx++;
  3205.                         }
  3206.                         reason[idx - offset] = EOS;
  3207.                 printf("[ADMIN NEWS]: Admin %s kicked everyone. Reason: %s", sendername, reason);
  3208.                 format(string, sizeof(string), "-| Administrator %s kicked everyone. [Reason: %s ]|-", sendername,reason);
  3209.                 SendClientMessageToAll(ADMIN_RED, string);
  3210.                 for(new i = 0; i < MAX_PLAYERS; i++)
  3211.                 {
  3212.                         Kick(i);
  3213.                         KickLog(string);
  3214.                 }
  3215.         }
  3216.         else
  3217.         {
  3218.         SendClientMessage(playerid, RED, "You are not a lead admin!");
  3219.         }
  3220.         return 1;
  3221. }
  3222. if(strcmp(cmd, "/nuke", true) == 0)
  3223. {
  3224.  if (PlayerInfo[playerid][pAdminLevel] >= 3)
  3225.         {
  3226.                 tmp = strtok(cmdtext, idx);
  3227.                 if(!strlen(tmp))
  3228.                         {
  3229.                                 SendClientMessage(playerid, ORANGE, "USAGE: /nuke [playerid]");
  3230.                                 SendClientMessage(playerid, ORANGE, "FUNCTION: Player will explode.");
  3231.                                 return 1;
  3232.                         }
  3233.                         new Float:X,Float:Y,Float:Z;
  3234.                         giveplayerid = ReturnUser(tmp);
  3235.                             if(IsPlayerConnected(giveplayerid))
  3236.                             {
  3237.                                         GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  3238.                                         GetPlayerName(playerid, player, sizeof(player));
  3239.                                                 GetPlayerPos(giveplayerid, X,Y,Z);
  3240.                                     CreateExplosion(X,Y,Z,2,7.0);
  3241.                                                 SetPlayerHealth(giveplayerid, 0.0);
  3242.                                                 format(string, sizeof(string), "-| Administrator %s nuked %s |-",player,giveplayer);
  3243.                                                 SendClientMessageToAdmins(ADMIN_RED, string,1);
  3244.                                 }
  3245.                                 else if (!IsPlayerConnected(giveplayerid))
  3246.                                 {
  3247.                                         format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  3248.                                         SendClientMessage(playerid, RED, string);
  3249.                                 }
  3250.    }
  3251.         else
  3252.         {
  3253.         SendClientMessage(playerid, RED, "You're not an admin with the required level.");
  3254.         }
  3255. return 1;
  3256. }
  3257. if(strcmp(cmd, "/score", true) == 0)
  3258. {
  3259. new score;
  3260. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  3261.         if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] >= 1)
  3262.         {
  3263.                 tmp = strtok(cmdtext, idx);
  3264.                 if(!strlen(tmp))
  3265.                         {
  3266.                                 SendClientMessage(playerid, ORANGE, "USAGE: /score [playerid] [score]");
  3267.                                 SendClientMessage(playerid, ORANGE, "FUNCTION: Will set a specified player's score");
  3268.                                 return 1;
  3269.                         }
  3270.                         giveplayerid = ReturnUser(tmp);
  3271.                         tmp = strtok(cmdtext, idx);
  3272.                         if(!strlen(tmp))
  3273.                         {
  3274.                                 SendClientMessage(playerid, ORANGE, "USAGE: /score [playerid] [score]");
  3275.                                 SendClientMessage(playerid, ORANGE, "FUNCTION: Will set a specified player's score");
  3276.                                 return 1;
  3277.                         }
  3278.                         score = strval(tmp);
  3279.                             if(IsPlayerConnected(giveplayerid))
  3280.                             {
  3281.                                                 GetPlayerScore(giveplayerid);
  3282.                                                 SetPlayerScore(giveplayerid, score);
  3283.                                                 format(string, sizeof(string), "You have changed %s's score number.",giveplayer);
  3284.                                                 SendClientMessage(playerid, GREEN, string);
  3285.                                 }
  3286.                                 else if (!IsPlayerConnected(giveplayerid))
  3287.                                 {
  3288.                                         format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  3289.                                         SendClientMessage(playerid, RED, string);
  3290.                                 }
  3291.    }
  3292.         else
  3293.         {
  3294.         SendClientMessage(playerid, RED, "You're not an admin with the required level.");
  3295.         }
  3296. return 1;
  3297. }
  3298. if(strcmp(cmd, "/angle", true) == 0)
  3299. {
  3300.         if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] >= 1)
  3301.         {
  3302.         new Float:angle;
  3303.                 tmp = strtok(cmdtext, idx);
  3304.                 if(!strlen(tmp))
  3305.                 {
  3306.                         SendClientMessage(playerid, ORANGE, "USAGE: /angle [angle degree]");
  3307.                         SendClientMessage(playerid, ORANGE, "FUNCTION: Will change your current angle.");
  3308.                         GetPlayerFacingAngle(playerid,angle);
  3309.                         format(string, sizeof(string), "HELP: Your current angle is %f **NOTE**: Bugged a little.",angle);
  3310.                         SendClientMessage(playerid, ORANGE, string);
  3311.                         return 1;
  3312.                 }
  3313.                 angle = strval(tmp);
  3314.                         if (GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
  3315.                         {
  3316.                                 SetVehicleZAngle(GetPlayerVehicleID(playerid),angle);
  3317.                                 format(string, sizeof(string), "You have changed your angle degree to %f",angle);
  3318.                                 SendClientMessage(playerid, GREEN, string);
  3319.                         }
  3320.                         else
  3321.                         {
  3322.                                 SetPlayerFacingAngle(playerid,angle);
  3323.                                 format(string, sizeof(string), "You have changed your angle degree to %f",angle);
  3324.                                 SendClientMessage(playerid, GREEN, string);
  3325.                         }
  3326.                 }
  3327.                 else
  3328.                 {SendClientMessage(playerid, RED, "You're not an admin with the required level.");}
  3329.         return 1;
  3330.  }
  3331. if(strcmp(cmd, "/ban", true) == 0)
  3332. {
  3333. new reason[256];
  3334. if (PlayerInfo[playerid][pAdminLevel] >= 3 || IsPlayerAdmin(playerid))
  3335.         {
  3336.         tmp = strtok(cmdtext, idx);
  3337.                 if(!strlen(tmp))
  3338.                 {
  3339.                         SendClientMessage(playerid, ORANGE, "USAGE: /ban [playerid] [reason]");
  3340.                         SendClientMessage(playerid, ORANGE, "FUNCTION: Will BAN the specified player. **PLEASE ENTER THE ID ONLY!**");
  3341.                         return 1;
  3342.   }
  3343.  
  3344.                 giveplayerid = ReturnUser(tmp);
  3345.                 if(giveplayerid != INVALID_PLAYER_ID)
  3346.                 {
  3347.                     GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  3348.                         GetPlayerName(playerid, sendername, sizeof(sendername));
  3349.                         new length = strlen(cmdtext);
  3350.                         while ((idx < length) && (cmdtext[idx] <= ' '))
  3351.                         {
  3352.                                 idx++;
  3353.                         }
  3354.                         new offset = idx;
  3355.                         while ((idx < length) && ((idx - offset) < (sizeof(reason) - 1)))
  3356.                         {
  3357.                                 reason[idx - offset] = cmdtext[idx];
  3358.                                 idx++;
  3359.                         }
  3360.                         reason[idx - offset] = EOS;
  3361.                         if(!strlen(reason))
  3362.                                 {
  3363.                                         SendClientMessage(playerid, ORANGE, "USAGE: /ban [playerid] [reason]");
  3364.                                         return 1;
  3365.                                 }
  3366.                         else
  3367.                         {
  3368.                         new sstring[256];
  3369.                         new ip[128];
  3370.                         printf("[ADMIN NEWS]: Admin %s banned %s. Reason: %s", sendername, giveplayer, reason);
  3371.                         format(string, sizeof(string), "-| Administrator %s banned %s. [Reason: %s ]|-", sendername,giveplayer,reason);
  3372.                         SendClientMessageToAll(ADMIN_RED, string);
  3373.                         GetPlayerIp(giveplayerid,ip,128);
  3374.                         format(sstring, sizeof(sstring), "-| Banned Player's IP: %s |-", ip);
  3375.                         SendClientMessageToAdmins(ADMIN_RED, sstring,1);
  3376.                         Ban(giveplayerid);
  3377.                         BanLog(string);
  3378.                         }
  3379.                 }
  3380.                 else if(giveplayerid == INVALID_PLAYER_ID)
  3381.                 {
  3382.                         format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  3383.                         SendClientMessage(playerid, RED, string);
  3384.                 }
  3385.                 else if (PlayerInfo[giveplayerid][pAdminLevel] == 5)
  3386.                 {
  3387.                     format(string, sizeof(string), "-| [%i]%s tried to ban you! |-",playerid,player);
  3388.                         SendClientMessageToAdmins(ADMIN_RED,string,5);
  3389.                 }
  3390.         }
  3391.         else
  3392.         {
  3393.         SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  3394.         }
  3395. return 1;
  3396. }
  3397. if(strcmp(cmd, "/ip", true) == 0)
  3398. {
  3399. if (PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid))
  3400.         {
  3401.         tmp = strtok(cmdtext, idx);
  3402.                 if(!strlen(tmp))
  3403.                 {
  3404.                         SendClientMessage(playerid, ORANGE, "USAGE: /ip [playerid]");
  3405.                         SendClientMessage(playerid, ORANGE, "FUNCTION: Will view a player's IP.");
  3406.                         return 1;
  3407.                 }
  3408.  
  3409.                 giveplayerid = ReturnUser(tmp);
  3410.                 if(IsPlayerConnected(giveplayerid))
  3411.                 {
  3412.                         new sstring[256];
  3413.                         new ip[128];
  3414.                         GetPlayerIp(giveplayerid,ip,128);
  3415.                         GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  3416.                         format(sstring, sizeof(sstring), "-| %s's IP: %s |-", giveplayer,ip);
  3417.                         SendClientMessage(playerid,LIGHTBLUE, sstring);
  3418.                 }
  3419.                 else
  3420.                 {
  3421.                         format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  3422.                         SendClientMessage(playerid, RED, string);
  3423.                 }
  3424.         }
  3425.         else
  3426.         {
  3427.         SendClientMessage(playerid, RED, "You are not an admin.");
  3428.         }
  3429. return 1;
  3430. }
  3431. if(strcmp(cmd, "/kick", true) == 0)
  3432. {
  3433. new reason[256];
  3434. if (PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid))
  3435.         {
  3436.         tmp = strtok(cmdtext, idx);
  3437.                 if(!strlen(tmp))
  3438.                 {
  3439.                         SendClientMessage(playerid, ORANGE, "USAGE: /kick [playerid] [reason]");
  3440.                         SendClientMessage(playerid, ORANGE, "FUNCTION: Will kick the specified player. **PLEASE ENTER THE ID ONLY!**");
  3441.                         return 1;
  3442.                 }
  3443.  
  3444.                 giveplayerid = ReturnUser(tmp);
  3445.                 if(giveplayerid != INVALID_PLAYER_ID)
  3446.                 {
  3447.                     GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  3448.                         GetPlayerName(playerid, sendername, sizeof(sendername));
  3449.                         new length = strlen(cmdtext);
  3450.                         while ((idx < length) && (cmdtext[idx] <= ' '))
  3451.                         {
  3452.                                 idx++;
  3453.                         }
  3454.                         new offset = idx;
  3455.                         while ((idx < length) && ((idx - offset) < (sizeof(reason) - 1)))
  3456.                         {
  3457.                                 reason[idx - offset] = cmdtext[idx];
  3458.                                 idx++;
  3459.                         }
  3460.                         reason[idx - offset] = EOS;
  3461.                         if(!strlen(reason))
  3462.                                 {
  3463.                                         SendClientMessage(playerid, ORANGE, "USAGE: /kick [playerid] [reason]");
  3464.                                         return 1;
  3465.                                 }
  3466.                         else
  3467.                         {
  3468.                         printf("[ADMIN NEWS]: Admin %s kicked %s. Reason: %s", sendername, giveplayer, reason);
  3469.                         format(string, sizeof(string), "-| Administrator %s kicked %s. [Reason: %s ]|-", sendername,giveplayer,reason);
  3470.                         SendClientMessageToAll(ADMIN_RED, string);
  3471.                         Kick(giveplayerid);
  3472.                         KickLog(string);
  3473.                         }
  3474.                 }
  3475.  
  3476.                 else if(giveplayerid == INVALID_PLAYER_ID)
  3477.                 {
  3478.                         format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  3479.                         SendClientMessage(playerid, RED, string);
  3480.                 }
  3481.         }
  3482.         else
  3483.         {
  3484.         SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  3485.         }
  3486.         return 1;
  3487. }
  3488. if(strcmp(cmd, "/mute", true) == 0)
  3489. {
  3490. new reason[164];
  3491. if (PlayerInfo[playerid][pAdminLevel] >= 2 || IsPlayerAdmin(playerid))
  3492.         {
  3493.         tmp = strtok(cmdtext, idx);
  3494.                 if(!strlen(tmp))
  3495.                 {
  3496.                         SendClientMessage(playerid, ORANGE, "USAGE: /mute [playerid] [reason]");
  3497.                         SendClientMessage(playerid, ORANGE, "FUNCTION: Will mute the specified player. **PLEASE ENTER THE ID ONLY!**");
  3498.                         return 1;
  3499.                 }
  3500.  
  3501.                 giveplayerid = ReturnUser(tmp);
  3502.  
  3503.                 if(giveplayerid != INVALID_PLAYER_ID)
  3504.                 {
  3505.                 if (Mute[giveplayerid] == 0)
  3506.                         {
  3507.                     GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  3508.                         GetPlayerName(playerid, sendername, sizeof(sendername));
  3509.                         new length = strlen(cmdtext);
  3510.                         while ((idx < length) && (cmdtext[idx] <= ' '))
  3511.                         {
  3512.                                 idx++;
  3513.                         }
  3514.                         new offset = idx;
  3515.                         while ((idx < length) && ((idx - offset) < (sizeof(reason) - 1)))
  3516.                         {
  3517.                                 reason[idx - offset] = cmdtext[idx];
  3518.                                 idx++;
  3519.                         }
  3520.                         reason[idx - offset] = EOS;
  3521.                         if(!strlen(reason))
  3522.                                 {
  3523.                                         SendClientMessage(playerid, ORANGE, "USAGE: /mute [playerid] [reason]");
  3524.                                         return 1;
  3525.                                 }
  3526.                         else
  3527.                         {
  3528.                         printf("[ADMIN NEWS]: Admin %s muted %s. Reason: %s", sendername, giveplayer, reason);
  3529.                         format(string, sizeof(string), "-| Administrator %s muted %s. [Reason: %s ]|-", sendername,giveplayer,reason);
  3530.                         SendClientMessageToAll(ADMIN_RED, string);
  3531.                         Mute[giveplayerid] = 1;
  3532.                         }
  3533.                         }
  3534.                 else if (Mute[giveplayerid] == 1)
  3535.                         {
  3536.                         SendClientMessage(playerid, RED, "Player is already muted!");
  3537.                         }
  3538.                 }
  3539.  
  3540.                 else if(giveplayerid == INVALID_PLAYER_ID)
  3541.                 {
  3542.                         format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  3543.                         SendClientMessage(playerid, RED, string);
  3544.                 }
  3545.         }
  3546.         else
  3547.         {
  3548.         SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  3549.         }
  3550.         return 1;
  3551. }
  3552. if(strcmp(cmd, "/unmute", true) == 0)
  3553. {
  3554. if (PlayerInfo[playerid][pAdminLevel] >= 2 || IsPlayerAdmin(playerid))
  3555.         {
  3556.         tmp = strtok(cmdtext, idx);
  3557.                 if(!strlen(tmp))
  3558.                 {
  3559.                         SendClientMessage(playerid, ORANGE, "USAGE: /unmute [playerid]");
  3560.                         SendClientMessage(playerid, ORANGE, "FUNCTION: Will unmute the specified player. **PLEASE ENTER THE ID ONLY!**");
  3561.                         return 1;
  3562.                 }
  3563.  
  3564.                 giveplayerid = ReturnUser(tmp);
  3565.  
  3566.                 if(giveplayerid != INVALID_PLAYER_ID)
  3567.                 {
  3568.                 if (Mute[giveplayerid] == 1)
  3569.                         {
  3570.                     GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  3571.                         GetPlayerName(playerid, sendername, sizeof(sendername));
  3572.                         printf("[ADMIN NEWS]: Admin %s unmuted %s.", sendername, giveplayer);
  3573.                         format(string, sizeof(string), "-| Administrator %s unmuted %s |-", sendername,giveplayer);
  3574.                         SendClientMessageToAll(ADMIN_RED, string);
  3575.                         Mute[giveplayerid] = 0;
  3576.                         }
  3577.                 else if (Mute[giveplayerid] == 0)
  3578.                         {
  3579.                         SendClientMessage(playerid, RED, "Player isn't muted.");
  3580.                         }
  3581.                 }
  3582.  
  3583.                 else if(giveplayerid == INVALID_PLAYER_ID)
  3584.                 {
  3585.                         format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  3586.                         SendClientMessage(playerid, RED, string);
  3587.                 }
  3588.         }
  3589.         else
  3590.         {
  3591.         SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  3592.         }
  3593.         return 1;
  3594. }
  3595. if(strcmp(cmd, "/nuclearbomb", true) == 0)
  3596. {
  3597.         if (PlayerInfo[playerid][pAdminLevel] >= 2 || IsPlayerAdmin(playerid))
  3598.         {
  3599.                 NuclearBombs();
  3600.                 SendClientMessage(playerid, GREEN, "Nuclear Bombs are now launched!");
  3601.         }
  3602.         else
  3603.         {
  3604.         SendClientMessage(playerid, RED, "You are not an admin.");
  3605.         }
  3606. return 1;
  3607. }
  3608. if(strcmp(cmd, "/drugs", true) == 0)
  3609. {
  3610.  if (PlayerInfo[playerid][pAdminLevel] > 1 || IsPlayerAdmin(playerid))
  3611.  {
  3612.     SetPlayerHealth(playerid,9999);
  3613.     SendClientMessage(playerid, GREEN, "You are now high on drugs...");
  3614.  }
  3615.  else
  3616.  {
  3617.     SendClientMessage(playerid, RED, "Hey, um... Nothing to see here...");
  3618.  }
  3619.         return 1;
  3620. }
  3621. if(strcmp(cmd, "/freeze", true) == 0)
  3622. {
  3623. new reason[64];
  3624. if (PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid))
  3625.         {
  3626.         tmp = strtok(cmdtext, idx);
  3627.                 if(!strlen(tmp))
  3628.                 {
  3629.                         SendClientMessage(playerid, ORANGE, "USAGE: /freeze [playerid] [reason]");
  3630.                         SendClientMessage(playerid, ORANGE, "FUNCTION: Will freeze the specified player. **PLEASE ENTER THE ID ONLY!**");
  3631.                         return 1;
  3632.                 }
  3633.  
  3634.                 giveplayerid = ReturnUser(tmp);
  3635.                 if(giveplayerid != INVALID_PLAYER_ID)
  3636.                 {
  3637.                     GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  3638.                         GetPlayerName(playerid, sendername, sizeof(sendername));
  3639.                         new length = strlen(cmdtext);
  3640.                         while ((idx < length) && (cmdtext[idx] <= ' '))
  3641.                         {
  3642.                                 idx++;
  3643.                         }
  3644.                         new offset = idx;
  3645.                         while ((idx < length) && ((idx - offset) < (sizeof(reason) - 1)))
  3646.                         {
  3647.                                 reason[idx - offset] = cmdtext[idx];
  3648.                                 idx++;
  3649.                         }
  3650.                         reason[idx - offset] = EOS;
  3651.                         if(!strlen(reason))
  3652.                                 {
  3653.                                         SendClientMessage(playerid, ORANGE, "USAGE: /freeze [playerid] [reason]");
  3654.                                         return 1;
  3655.                                 }
  3656.                         else
  3657.                         {
  3658.                         printf("[ADMIN NEWS]: Admin %s froze %s. Reason: %s", sendername, giveplayer, reason);
  3659.                         format(string, sizeof(string), "-| Administrator %s froze %s. [Reason: %s ]|-", sendername,giveplayer,reason);
  3660.                         SendClientMessageToAdmins(ADMIN_RED, string,1);
  3661.                         TogglePlayerControllable(giveplayerid,0);
  3662.                         }
  3663.                 }
  3664.  
  3665.                 else if(giveplayerid == INVALID_PLAYER_ID)
  3666.                 {
  3667.                         format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  3668.                         SendClientMessage(playerid, RED, string);
  3669.                 }
  3670.         }
  3671.         else
  3672.         {
  3673.         SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  3674.         }
  3675.         return 1;
  3676. }
  3677. if(strcmp(cmd, "/unfreeze", true) == 0)
  3678. {
  3679. if (PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid))
  3680.         {
  3681.         tmp = strtok(cmdtext, idx);
  3682.                 if(!strlen(tmp))
  3683.                 {
  3684.                         SendClientMessage(playerid, ORANGE, "USAGE: /unfreeze [playerid]");
  3685.                         SendClientMessage(playerid, ORANGE, "FUNCTION: Will unfreeze the specified player. **PLEASE ENTER THE ID ONLY!**");
  3686.                         return 1;
  3687.                 }
  3688.  
  3689.                 giveplayerid = ReturnUser(tmp);
  3690.                 if(giveplayerid != INVALID_PLAYER_ID)
  3691.                 {
  3692.                     GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  3693.                         GetPlayerName(playerid, sendername, sizeof(sendername));
  3694.                         printf("[ADMIN NEWS]: Admin %s unfroze %s.", sendername, giveplayer);
  3695.                         format(string, sizeof(string), "-| Administrator %s unfroze %s |-", sendername,giveplayer);
  3696.                         SendClientMessageToAdmins(ADMIN_RED, string,1);
  3697.                         TogglePlayerControllable(giveplayerid,1);
  3698.                 }
  3699.  
  3700.                 else if(giveplayerid == INVALID_PLAYER_ID)
  3701.                 {
  3702.                         format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  3703.                         SendClientMessage(playerid, RED, string);
  3704.                 }
  3705.         }
  3706.         else
  3707.         {
  3708.         SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  3709.         }
  3710.         return 1;
  3711. }
  3712. if(strcmp(cmd, "/setname", true) == 0)
  3713. {
  3714. new newname[128];
  3715. if (PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid))
  3716.         {
  3717.         tmp = strtok(cmdtext, idx);
  3718.                 if(!strlen(tmp))
  3719.                 {
  3720.                         SendClientMessage(playerid, ORANGE, "USAGE: /setname [playerid] [newname]");
  3721.                         SendClientMessage(playerid, ORANGE, "FUNCTION: Will change the player's current name. **PLEASE ENTER THE ID ONLY!**");
  3722.                         return 1;
  3723.                 }
  3724.  
  3725.                 giveplayerid = ReturnUser(tmp);
  3726.                 if(giveplayerid != INVALID_PLAYER_ID)
  3727.                 {
  3728.                     GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  3729.                         GetPlayerName(playerid, sendername, sizeof(sendername));
  3730.                         new length = strlen(cmdtext);
  3731.                         while ((idx < length) && (cmdtext[idx] <= ' '))
  3732.                         {
  3733.                                 idx++;
  3734.                         }
  3735.                         new offset = idx;
  3736.                         while ((idx < length) && ((idx - offset) < (sizeof(newname) - 1)))
  3737.                         {
  3738.                                 newname[idx - offset] = cmdtext[idx];
  3739.                                 idx++;
  3740.                         }
  3741.                         newname[idx - offset] = EOS;
  3742.                         if(!strlen(newname))
  3743.                                 {
  3744.                                         SendClientMessage(playerid, ORANGE, "USAGE: /setname [playerid] [newname]");
  3745.                                         return 1;
  3746.                                 }
  3747.                         else
  3748.                         {
  3749.                         printf("[ADMIN NEWS]: Admin %s renamed %s.", sendername, giveplayer);
  3750.                         format(string, sizeof(string), "-| Administrator %s renamed %s. [New Name: %s ]|-", sendername,giveplayer,newname);
  3751.                         SendClientMessageToAdmins(ADMIN_RED, string,1);
  3752.                         SetPlayerName(giveplayerid, newname);
  3753.                         }
  3754.                 }
  3755.  
  3756.                 else if(giveplayerid == INVALID_PLAYER_ID)
  3757.                 {
  3758.                         format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  3759.                         SendClientMessage(playerid, RED, string);
  3760.                 }
  3761.         }
  3762.         else
  3763.         {
  3764.         SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  3765.         }
  3766.         return 1;
  3767. }
  3768. if(strcmp(cmd, "/givecash", true) == 0)
  3769. {
  3770. new cash;
  3771. if (PlayerInfo[playerid][pAdminLevel] >= 2 || IsPlayerAdmin(playerid))
  3772.         {
  3773.         tmp = strtok(cmdtext, idx);
  3774.                 if(!strlen(tmp))
  3775.                 {
  3776.                         SendClientMessage(playerid, ORANGE, "USAGE: /givecash [playerid] [cash]");
  3777.                         SendClientMessage(playerid, ORANGE, "FUNCTION: Will give the player some cash. **PLEASE ENTER THE ID ONLY!**");
  3778.                         return 1;
  3779.                 }
  3780.  
  3781.                 giveplayerid = ReturnUser(tmp);
  3782.                 if(giveplayerid != INVALID_PLAYER_ID)
  3783.                 {
  3784.                     GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  3785.                         GetPlayerName(playerid, sendername, sizeof(sendername));
  3786.                         tmp = strtok(cmdtext, idx);
  3787.                         cash = strval(tmp);
  3788.                         if(!strlen(tmp))
  3789.                                 {
  3790.                                         SendClientMessage(playerid, ORANGE, "USAGE: /givecash [playerid] [cash]");
  3791.                                         return 1;
  3792.                                 }
  3793.                         else
  3794.                         {
  3795.                         printf("[ADMIN NEWS]: Admin %s gave %s $%d..", sendername, giveplayer, cash);
  3796.                         format(string, sizeof(string), "-| Administrator %s gave %s $%d |-", sendername,giveplayer,cash);
  3797.                         SendClientMessageToAdmins(ADMIN_RED, string,1);
  3798.                         GivePlayerMoney(giveplayerid, cash);
  3799.                         }
  3800.                 }
  3801.  
  3802.                 else if(giveplayerid == INVALID_PLAYER_ID)
  3803.                 {
  3804.                         format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  3805.                         SendClientMessage(playerid, RED, string);
  3806.                 }
  3807.         }
  3808.         else
  3809.         {
  3810.         SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  3811.         }
  3812.         return 1;
  3813. }
  3814. if(strcmp(cmd, "/kill", true) == 0)
  3815. {
  3816.         if (PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid))
  3817.         {
  3818.         tmp = strtok(cmdtext, idx);
  3819.                 if(!strlen(tmp))
  3820.                 {
  3821.                         SendClientMessage(playerid, ORANGE, "USAGE: /kill [playerid]");
  3822.                         SendClientMessage(playerid, ORANGE, "FUNCTION: Will kill the specified player. **PLEASE ENTER THE ID ONLY!**");
  3823.                         return 1;
  3824.                 }
  3825.  
  3826.                 giveplayerid = ReturnUser(tmp);
  3827.                 if(giveplayerid != INVALID_PLAYER_ID)
  3828.                 {
  3829.                     GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  3830.                         GetPlayerName(playerid, sendername, sizeof(sendername));
  3831.                         printf("[ADMIN NEWS]: Admin %s killed %s", sendername, giveplayer);
  3832.                         format(string, sizeof(string), "-| Administrator %s killed %s |-", sendername,giveplayer);
  3833.                         SendClientMessageToAdmins(ADMIN_RED, string,1);
  3834.                         SetPlayerHealth(giveplayerid, 0.0);
  3835.                 }
  3836.  
  3837.                 else if(giveplayerid == INVALID_PLAYER_ID)
  3838.                 {
  3839.                         format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  3840.                         SendClientMessage(playerid, RED, string);
  3841.                 }
  3842.         }
  3843.         else
  3844.         {
  3845.         if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to suicide while DeathMatching!");
  3846.         SendClientMessage(playerid, BLUE, "You have committed suicide.");
  3847.         SetPlayerHealth(playerid,0.0);
  3848.         }
  3849.         return 1;
  3850. }
  3851. if(strcmp(cmd, "/goto", true) == 0)
  3852. {
  3853. new Float:pX,Float:pY,Float:pZ;
  3854. if (PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid))
  3855.         {
  3856.         tmp = strtok(cmdtext, idx);
  3857.                 if(!strlen(tmp))
  3858.                 {
  3859.                         SendClientMessage(playerid, ORANGE, "USAGE: /goto [playerid]");
  3860.                         SendClientMessage(playerid, ORANGE, "FUNCTION: Will teleport to the specified player.");
  3861.                         return 1;
  3862.                 }
  3863.  
  3864.                 giveplayerid = ReturnUser(tmp);
  3865.                 if(giveplayerid != INVALID_PLAYER_ID)
  3866.                 {
  3867.                     if (GetPlayerState(playerid) == 2)
  3868.                     {
  3869.                     GetPlayerPos(giveplayerid,pX,pY,pZ);
  3870.                     SetVehiclePos(GetPlayerVehicleID(playerid),pX,pY,pZ+2);
  3871.                         }
  3872.                         else
  3873.                         {
  3874.                     GetPlayerPos(giveplayerid,pX,pY,pZ);
  3875.                     SetPlayerPos(playerid,pX,pY,pZ+2);
  3876.                     }
  3877.                         printf("[ADMIN NEWS]: Admin %s teleported to %s.", sendername, giveplayer);
  3878.                 }
  3879.                 else if(giveplayerid == INVALID_PLAYER_ID)
  3880.                 {
  3881.                         format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  3882.                         SendClientMessage(playerid, RED, string);
  3883.                 }
  3884.         }
  3885.         else
  3886.         {
  3887.         SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  3888.         }
  3889.         return 1;
  3890. }
  3891. if(strcmp(cmd, "/get", true) == 0)
  3892. {
  3893. new Float:pX,Float:pY,Float:pZ;
  3894. if (PlayerInfo[playerid][pAdminLevel] >= 2 || IsPlayerAdmin(playerid))
  3895.         {
  3896.         tmp = strtok(cmdtext, idx);
  3897.                 if(!strlen(tmp))
  3898.                 {
  3899.                         SendClientMessage(playerid, ORANGE, "USAGE: /get [playerid]");
  3900.                         SendClientMessage(playerid, ORANGE, "FUNCTION: Will teleport the specified player to you.");
  3901.                         return 1;
  3902.                 }
  3903.                 giveplayerid = ReturnUser(tmp);
  3904.                 if(giveplayerid != INVALID_PLAYER_ID)
  3905.                 {
  3906.                     if (GetPlayerState(giveplayerid) == PLAYER_STATE_DRIVER)
  3907.                     {
  3908.                     GetPlayerPos(playerid,pX,pY,pZ);
  3909.                     SetVehiclePos(GetPlayerVehicleID(giveplayerid),pX,pY,pZ+2);
  3910.                         }
  3911.                         else
  3912.                         {
  3913.                     GetPlayerPos(playerid,pX,pY,pZ);
  3914.                     SetPlayerPos(giveplayerid,pX,pY,pZ+2);
  3915.                     }
  3916.                         printf("[ADMIN NEWS]: Admin %s teleported to %s.", sendername, giveplayer);
  3917.                 }
  3918.                 else if(giveplayerid == INVALID_PLAYER_ID)
  3919.                 {
  3920.                         format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  3921.                         SendClientMessage(playerid, RED, string);
  3922.                 }
  3923.         }
  3924.         else
  3925.         {
  3926.         SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  3927.         }
  3928.         return 1;
  3929. }
  3930. if(strcmp(cmd, "//", true) == 0)
  3931. {
  3932. if (PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid))
  3933.         {
  3934.         GetPlayerName(playerid, playername, sizeof(playername));
  3935.                 new length = strlen(cmdtext);
  3936.                 while ((idx < length) && (cmdtext[idx] <= ' '))
  3937.                 {
  3938.                         idx++;
  3939.                 }
  3940.                 new offset = idx;
  3941.                 new result[256];
  3942.                 while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  3943.                 {
  3944.                         result[idx - offset] = cmdtext[idx];
  3945.                         idx++;
  3946.                 }
  3947.                 result[idx - offset] = EOS;
  3948.                 if(!strlen(result))
  3949.                 {
  3950.                         SendClientMessage(playerid, ORANGE, "USAGE: // <text>");
  3951.                 }
  3952.                         format(string, sizeof(string), "Admin [%i]%s: %s" ,playerid,playername, result);
  3953.                         SendClientMessageToAdmins(DARKPINK,string,1);
  3954.         }
  3955.         else
  3956.         {
  3957.                 SendClientMessage(playerid, RED, "You are not an admin.");
  3958.         }
  3959.         return 1;
  3960. }
  3961.         if(strcmp(cmd, "/warn", true) == 0)
  3962.         {
  3963.                         if (PlayerInfo[playerid][pAdminLevel] >= 2)
  3964.                         {
  3965.                                 tmp = strtok(cmdtext, idx);
  3966.                                 if(!strlen(tmp))
  3967.                                 {
  3968.                                         SendClientMessage(playerid, ORANGE, "USAGE: /warn [playerid] [reason]");
  3969.                                         return 1;
  3970.                                 }
  3971.                                 giveplayerid = ReturnUser(tmp);
  3972.                             if(IsPlayerConnected(giveplayerid))
  3973.                             {
  3974.                                 if(giveplayerid != INVALID_PLAYER_ID)
  3975.                                 {
  3976.                                             GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  3977.                                                 GetPlayerName(playerid, player, sizeof(player));
  3978.                                                 new length = strlen(cmdtext);
  3979.                                                 while ((idx < length) && (cmdtext[idx] <= ' '))
  3980.                                                 {
  3981.                                                         idx++;
  3982.                                                 }
  3983.                                                 new offset = idx;
  3984.                                                 new reason[256];
  3985.                                                 while ((idx < length) && ((idx - offset) < (sizeof(reason) - 1)))
  3986.                                                 {
  3987.                                                         reason[idx - offset] = cmdtext[idx];
  3988.                                                         idx++;
  3989.                                                 }
  3990.                                                 reason[idx - offset] = EOS;
  3991.                                                 if(!strlen(reason))
  3992.                                                 {
  3993.                                                         SendClientMessage(playerid, ORANGE, "USAGE: /warn [playerid] [reason]");
  3994.                                                         return 1;
  3995.                                                 }
  3996.                                                 new sstring[256];
  3997.                                                 PlayerInfo[giveplayerid][pWarns] += 1;
  3998.                                                 format(string, sizeof(string), "You got warned by Admin %s. Reason: %s", player, reason);
  3999.                                                 SendClientMessage(giveplayerid, ADMIN_RED, string);
  4000.                                                 SendClientMessage(giveplayerid, RED, "3 Warnings = Auto-Ban!");
  4001.                                                 format(string, sizeof(string), "-| Administrator %s warned %s. [Reason: %s ] |-",player ,giveplayer, reason);
  4002.                                                 SendClientMessageToAdmins(ADMIN_RED,string,1);
  4003.                                                 format(string, sizeof(string), "-| %s's warnings: %d |-",giveplayer, PlayerInfo[giveplayerid][pWarns]);
  4004.                                                 SendClientMessageToAdmins(ADMIN_RED,string,1);
  4005.                                                 if(PlayerInfo[giveplayerid][pWarns] >= 3)
  4006.                                                 {
  4007.                                                     new ip[128];
  4008.                                                         format(string, sizeof(string), "-| Administrator %s banned %s. [Reason: 3 Warnings.] |-", player,giveplayer);
  4009.                                                         BanLog(string);
  4010.                                                         format(string, sizeof(string), "-| Administrator %s banned %s. [Reason: 3 Warnings.] |-", player,giveplayer);
  4011.                                                         SendClientMessageToAll(ADMIN_RED, string);
  4012.                                                         GetPlayerIp(giveplayerid,ip,128);
  4013.                                                         format(sstring, sizeof(sstring), "-| Banned Player's IP: %s |-", ip);
  4014.                                                         SendClientMessageToAdmins(ADMIN_RED, sstring,1);
  4015.                                                         PlayerInfo[giveplayerid][pAdminLevel]= 0;
  4016.                                                         Ban(giveplayerid);
  4017.                                                         return 1;
  4018.                                                 }
  4019.                                                 return 1;
  4020.                                         }
  4021.                                         else
  4022.                                         {
  4023.                                                 format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  4024.                                                 SendClientMessage(playerid, RED, string);
  4025.                                         }
  4026.                                 }
  4027.                                 else
  4028.                                 {
  4029.                                         format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  4030.                                         SendClientMessage(playerid, RED, string);
  4031.                                 }
  4032.                         }
  4033.                         else
  4034.                         {
  4035.                                 format(string, sizeof(string), "You are not an admin with the required level.");
  4036.                                 SendClientMessage(playerid, RED, string);
  4037.                         }
  4038.                 return 1;
  4039.         }
  4040. if(strcmp(cmd, "/pstats", true) == 0)
  4041. {
  4042. if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] >= 1)
  4043.         {
  4044.             tmp = strtok(cmdtext, idx);
  4045.                 if(!strlen(tmp))
  4046.                 {
  4047.                         SendClientMessage(playerid, ORANGE, "USAGE: /pstats [playerid]");
  4048.                         return 1;
  4049.                 }
  4050.                 giveplayerid = ReturnUser(tmp);
  4051.                 if (giveplayerid != INVALID_PLAYER_ID)
  4052.                 {
  4053.                         new Float:health;
  4054.                         new ammo = GetPlayerAmmo(giveplayerid);
  4055.                         GetPlayerHealth(giveplayerid,health);
  4056.                 GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  4057.                 if (GetPlayerWeapon(giveplayerid) == 0)
  4058.                 {
  4059.                                 format(string, sizeof(string), "Stats of %s:- Weapon ID: %d - Ammos: 0 - Health: %.0f - Cash: %d - Warnings: %d",giveplayer, GetPlayerWeapon(giveplayerid), health,GetPlayerMoney(giveplayerid),PlayerInfo[giveplayerid][pWarns]);
  4060.                                 SendClientMessage(playerid,PURPLE,string);
  4061.                         }
  4062.                         else
  4063.                         {
  4064.                                 format(string, sizeof(string), "Stats of %s:- Weapon ID: %d - Ammos: %d - Health: %.0f - Cash: %d - Warnings: %d",giveplayer, GetPlayerWeapon(giveplayerid), ammo, health,GetPlayerMoney(giveplayerid),PlayerInfo[giveplayerid][pWarns]);
  4065.                                 SendClientMessage(playerid,PURPLE,string);
  4066.                         }
  4067.                         if(DMArena[giveplayerid] == 1) { SendClientMessage(playerid, PURPLE, "Player in DeathMatch arena: Yes");}
  4068.                         else if(DMArena[giveplayerid] == 0) { SendClientMessage(playerid, PURPLE, "Player in DeathMatch arena: No");}
  4069.                         if(IsLogged[giveplayerid] == 1) { SendClientMessage(playerid, PURPLE, "Logged In: Yes");}
  4070.                         else if(IsLogged[giveplayerid] == 0) { SendClientMessage(playerid, PURPLE, "Logged In: No"); }
  4071.                 }
  4072.                 else
  4073.                 {
  4074.                     SendClientMessage(playerid, RED, "Player is not active.");
  4075.                 }
  4076.         }
  4077.         else
  4078.         {
  4079.                 SendClientMessage(playerid, RED, "You're not an admin with the required level.");
  4080.         }
  4081.         return 1;
  4082. }
  4083. if(strcmp(cmd, "/slap", true) == 0)
  4084. {
  4085. new Float:pX,Float:pY,Float:pZ;
  4086. if (PlayerInfo[playerid][pAdminLevel] >= 4 || IsPlayerAdmin(playerid))
  4087.         {
  4088.         tmp = strtok(cmdtext, idx);
  4089.                 if(!strlen(tmp))
  4090.                 {
  4091.                         SendClientMessage(playerid, ORANGE, "USAGE: /slap [playerid]");
  4092.                         SendClientMessage(playerid, ORANGE, "FUNCTION: Will slap the specified player(He will teleport 5 meters higher)");
  4093.                         return 1;
  4094.                 }
  4095.  
  4096.                 giveplayerid = ReturnUser(tmp);
  4097.                 if(giveplayerid != INVALID_PLAYER_ID)
  4098.                 {
  4099.                     GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  4100.                         GetPlayerName(playerid, sendername, sizeof(sendername));
  4101.                     GetPlayerPos(giveplayerid,pX,pY,pZ);
  4102.                     SetPlayerPos(giveplayerid,pX,pY,pZ+5);
  4103.                         printf("[ADMIN NEWS]: Admin %s slapped %s.", sendername, giveplayer);
  4104.                         format(string, sizeof(string), "-| Administrator %s slapped %s |-",sendername, giveplayer);
  4105.                         SendClientMessageToAdmins(ADMIN_RED,string,1);
  4106.                 }
  4107.                 else if(giveplayerid == INVALID_PLAYER_ID)
  4108.                 {
  4109.                         format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  4110.                         SendClientMessage(playerid, RED, string);
  4111.                 }
  4112.         }
  4113.         else
  4114.         {
  4115.         SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  4116.         }
  4117.         return 1;
  4118. }
  4119. if(strcmp(cmd, "/bslap", true) == 0)
  4120. {
  4121. new Float:pX,Float:pY,Float:pZ;
  4122. if (PlayerInfo[playerid][pAdminLevel] >= 4 || IsPlayerAdmin(playerid))
  4123.         {
  4124.         tmp = strtok(cmdtext, idx);
  4125.                 if(!strlen(tmp))
  4126.                 {
  4127.                         SendClientMessage(playerid, ORANGE, "USAGE: /dslap [playerid]");
  4128.                         SendClientMessage(playerid, ORANGE, "FUNCTION: Will double slap the specified player(He will teleport 10 meters higher)");
  4129.                         return 1;
  4130.                 }
  4131.  
  4132.                 giveplayerid = ReturnUser(tmp);
  4133.                 if(giveplayerid != INVALID_PLAYER_ID)
  4134.                 {
  4135.                     GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  4136.                         GetPlayerName(playerid, sendername, sizeof(sendername));
  4137.                     GetPlayerPos(giveplayerid,pX,pY,pZ);
  4138.                     SetPlayerPos(giveplayerid,pX,pY,pZ+10);
  4139.                         printf("[ADMIN NEWS]: Admin %s bitch slapped %s.", sendername, giveplayer);
  4140.                         format(string, sizeof(string), "-| Administrator %s bitch slapped %s |-",sendername, giveplayer);
  4141.                         SendClientMessageToAdmins(ADMIN_RED,string,1);
  4142.                 }
  4143.                 else if(giveplayerid == INVALID_PLAYER_ID)
  4144.                 {
  4145.                         format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  4146.                         SendClientMessage(playerid, RED, string);
  4147.                 }
  4148.         }
  4149.         else
  4150.         {
  4151.         SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  4152.         }
  4153.         return 1;
  4154. }
  4155. if(strcmp(cmd, "/fuck", true) == 0)
  4156. {
  4157. new Float:pX,Float:pY,Float:pZ;
  4158. new Float:X,Float:Y,Float:Z;
  4159. if (PlayerInfo[playerid][pAdminLevel] >= 3 || IsPlayerAdmin(playerid))
  4160.         {
  4161.         tmp = strtok(cmdtext, idx);
  4162.                 if(!strlen(tmp))
  4163.                 {
  4164.                         SendClientMessage(playerid, ORANGE, "USAGE: /fuck [playerid]");
  4165.                         SendClientMessage(playerid, ORANGE, "FUNCTION: Will fuck up a player.");
  4166.                         return 1;
  4167.                 }
  4168.  
  4169.                 giveplayerid = ReturnUser(tmp);
  4170.                 if(giveplayerid != INVALID_PLAYER_ID)
  4171.                 {
  4172.                     GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  4173.                         GetPlayerName(playerid, sendername, sizeof(sendername));
  4174.                     GetPlayerPos(giveplayerid,pX,pY,pZ);
  4175.                     SetPlayerPos(giveplayerid,pX,pY,pZ+50);
  4176.                     GetPlayerPos(giveplayerid,X,Y,Z);
  4177.                     CreateExplosion(X,Y,Z,2,5.0);
  4178.                         printf("[ADMIN NEWS]: Admin %s fucked up %s.", sendername, giveplayer);
  4179.                         format(string, sizeof(string), "-| Administrator %s fucked up %s |-",sendername, giveplayer);
  4180.                         SendClientMessageToAdmins(ADMIN_RED,string,1);
  4181.                         SendClientMessage(giveplayerid, RED, "You are being fucked up by an admin.");
  4182.                 }
  4183.                 else if(giveplayerid == INVALID_PLAYER_ID)
  4184.                 {
  4185.                         format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  4186.                         SendClientMessage(playerid, RED, string);
  4187.                 }
  4188.         }
  4189.         else
  4190.         {
  4191.         SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  4192.         }
  4193.         return 1;
  4194. }
  4195. if(strcmp(cmd, "/disarm", true) == 0)
  4196. {
  4197. if (PlayerInfo[playerid][pAdminLevel] >= 3 || IsPlayerAdmin(playerid))
  4198.         {
  4199.         tmp = strtok(cmdtext, idx);
  4200.                 if(!strlen(tmp))
  4201.                 {
  4202.                         SendClientMessage(playerid, ORANGE, "USAGE: /disarm [playerid]");
  4203.                         SendClientMessage(playerid, ORANGE, "FUNCTION: Will disarm the player.");
  4204.                         return 1;
  4205.                 }
  4206.  
  4207.                 giveplayerid = ReturnUser(tmp);
  4208.                 if(giveplayerid != INVALID_PLAYER_ID)
  4209.                 {
  4210.                     GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  4211.                         GetPlayerName(playerid, sendername, sizeof(sendername));
  4212.                     ResetPlayerWeapons(giveplayerid);
  4213.                         printf("[ADMIN NEWS]: Admin %s disarmed %s.", sendername, giveplayer);
  4214.                         format(string, sizeof(string), "-| Administrator %s disarmed %s |-",sendername, giveplayer);
  4215.                         SendClientMessageToAdmins(ADMIN_RED,string,1);
  4216.                 }
  4217.                 else if(giveplayerid == INVALID_PLAYER_ID)
  4218.                 {
  4219.                         format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  4220.                         SendClientMessage(playerid, RED, string);
  4221.                 }
  4222.         }
  4223.         else
  4224.         {
  4225.         SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  4226.         }
  4227.         return 1;
  4228. }
  4229.         if(strcmp(cmd, "/giveweapon", true) == 0)
  4230.         {
  4231.             if (PlayerInfo[playerid][pAdminLevel] >= 3 || IsPlayerAdmin(playerid))
  4232.             {
  4233.                         tmp = strtok(cmdtext, idx);
  4234.                         if(!strlen(tmp))
  4235.                         {
  4236.                                 SendClientMessage(playerid, ORANGE, "USAGE: /giveweapon [playerid] [weaponid] [ammo]");
  4237.                                 return 1;
  4238.                         }
  4239.                         new gun;
  4240.                         new ammo;
  4241.                         giveplayerid = ReturnUser(tmp);
  4242.                         tmp = strtok(cmdtext, idx);
  4243.                         gun = strval(tmp);
  4244.                         if(!strlen(tmp))
  4245.                         {
  4246.                                 SendClientMessage(playerid, ORANGE, "USAGE: /giveweapon [playerid] [weaponid] [ammo]");
  4247.                                 return 1;
  4248.                         }
  4249.                         tmp = strtok(cmdtext, idx);
  4250.                         ammo = strval(tmp);
  4251.                         if(ammo <1||ammo > 10000)
  4252.                         { SendClientMessage(playerid, RED, "You can only give a maximum capacity of 10 000 bullets and not less than 1."); return 1; }
  4253.                             if(giveplayerid != INVALID_PLAYER_ID)
  4254.                             {
  4255.                                 GetPlayerName(playerid, sendername, sizeof(sendername));
  4256.                                         GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  4257.                                         GivePlayerWeapon(giveplayerid, gun, ammo);
  4258.                                         format(string, sizeof(string), "-| Administrator %s gave a weapon to %s |-",sendername, giveplayer);
  4259.                                         SendClientMessageToAdmins(ADMIN_RED,string,1);
  4260.                                 }
  4261.                                 else if(giveplayerid == INVALID_PLAYER_ID)
  4262.                             {
  4263.                                         format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  4264.                                         SendClientMessage(playerid, RED, string);
  4265.                                 }
  4266.                 }
  4267.                 else
  4268.                 {
  4269.                         SendClientMessage(playerid, RED, "You are not an admin with the required level!");
  4270.                 }
  4271.                 return 1;
  4272.         }
  4273. if(strcmp(cmd, "/dmon", true) == 0)
  4274. {
  4275.     if (PlayerInfo[playerid][pAdminLevel] >= 3 || IsPlayerAdmin(playerid))
  4276.     {
  4277.         for(new i = 0; i < MAX_PLAYERS; i++)
  4278.                 {
  4279.                         DMArena[i] = 2;
  4280.                 }
  4281.                 SendClientMessageToAll(GREEN,"[DM NEWS]: The DeathMatching arena is now opened.");
  4282.         }
  4283.         else
  4284.         {
  4285.             SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  4286.         }
  4287.         return 1;
  4288. }
  4289. if(strcmp(cmd, "/dmoff", true) == 0)
  4290. {
  4291.     if (PlayerInfo[playerid][pAdminLevel] >= 3 || IsPlayerAdmin(playerid))
  4292.     {
  4293.         for(new i = 0; i < MAX_PLAYERS; i++)
  4294.                 {
  4295.                         DMArena[i] = 3;
  4296.                 }
  4297.                 SendClientMessageToAll(RED,"[DM NEWS]: The DeathMatching arena is now closed.");
  4298.         }
  4299.         else
  4300.         {
  4301.             SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  4302.         }
  4303.         return 1;
  4304. }
  4305.         if(strcmp(cmd, "/say", true) == 0)
  4306.         {
  4307.             if (PlayerInfo[playerid][pAdminLevel] >= 4 || IsPlayerAdmin(playerid))
  4308.         {
  4309.                         GetPlayerName(playerid, player, sizeof(player));
  4310.                         new length = strlen(cmdtext);
  4311.                         while ((idx < length) && (cmdtext[idx] <= ' '))
  4312.                         {
  4313.                                 idx++;
  4314.                         }
  4315.                         new offset = idx;
  4316.                         new result[256];
  4317.                         while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  4318.                         {
  4319.                                 result[idx - offset] = cmdtext[idx];
  4320.                                 idx++;
  4321.                         }
  4322.                         result[idx - offset] = EOS;
  4323.                         if(!strlen(result))
  4324.                         {
  4325.                                 SendClientMessage(playerid, ORANGE, "USAGE: /say [message]");
  4326.                                 SendClientMessage(playerid, ORANGE, "FUNCTION: Will broadcast an admin message.");
  4327.                                 return 1;
  4328.                         }
  4329.                         format(string, sizeof(string), "* Admin: %s", result);
  4330.                         SendClientMessageToAll(LIGHTRED, string);
  4331.                         printf("%s", string);
  4332.                 }
  4333.                 else
  4334.                 {
  4335.                 SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  4336.                 }
  4337.                 return 1;
  4338.         }
  4339.                 if(strcmp(cmd, "/bc", true) == 0 || strcmp(cmd, "/announce", true) == 0)
  4340.         {
  4341.             if (PlayerInfo[playerid][pAdminLevel] >= 4 || IsPlayerAdmin(playerid))
  4342.         {
  4343.                         GetPlayerName(playerid, player, sizeof(player));
  4344.                         new length = strlen(cmdtext);
  4345.                         while ((idx < length) && (cmdtext[idx] <= ' '))
  4346.                         {
  4347.                                 idx++;
  4348.                         }
  4349.                         new offset = idx;
  4350.                         new result[256];
  4351.                         while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  4352.                         {
  4353.                                 result[idx - offset] = cmdtext[idx];
  4354.                                 idx++;
  4355.                         }
  4356.                         result[idx - offset] = EOS;
  4357.                         if(!strlen(result))
  4358.                         {
  4359.                                 SendClientMessage(playerid, ORANGE, "USAGE: /bc [message]");
  4360.                                 SendClientMessage(playerid, ORANGE, "FUNCTION: Will broadcast a screen message");
  4361.                                 return 1;
  4362.                         }
  4363.                         format(string, sizeof(string), "~w~%s", result);
  4364.                         GameTextForAll(string,5000,4);
  4365.                         printf("%s", string);
  4366.                 }
  4367.                 else
  4368.                 {
  4369.                 SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  4370.                 }
  4371.                 return 1;
  4372.         }
  4373.         if(strcmp(cmd, "/veh", true) == 0)
  4374.         {
  4375.                 if (PlayerInfo[playerid][pAdminLevel] >= 4 || IsPlayerAdmin(playerid))
  4376.                 {
  4377.                         tmp = strtok(cmdtext, idx);
  4378.                         if(!strlen(tmp))
  4379.                         {
  4380.                                 SendClientMessage(playerid, ORANGE, "USAGE: /veh [carid] [color1] [color2]");
  4381.                                 return 1;
  4382.                         }
  4383.                         new car;
  4384.                         car = strval(tmp);
  4385.                         if(car < 400 || car > 611) { SendClientMessage(playerid, RED, "Vehicle ID can't be below 400 nor above 611 !"); return 1; }
  4386.                         tmp = strtok(cmdtext, idx);
  4387.                         if(!strlen(tmp))
  4388.                         {
  4389.                                 SendClientMessage(playerid, ORANGE, "USAGE: /veh [carid] [color1] [color2]");
  4390.                                 return 1;
  4391.                         }
  4392.                         new color1;
  4393.                         color1 = strval(tmp);
  4394.                         if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, RED, "Color ID can't be below 0 nor above 126 !"); return 1; }
  4395.                         tmp = strtok(cmdtext, idx);
  4396.                         if(!strlen(tmp))
  4397.                         {
  4398.                                 SendClientMessage(playerid, ORANGE, "USAGE: /veh [carid] [color1] [color2]");
  4399.                                 return 1;
  4400.                         }
  4401.                         new color2;
  4402.                         color2 = strval(tmp);
  4403.                         if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, RED, "Color ID can't be below 0 nor above 126 !"); return 1; }
  4404.                         new Float:X,Float:Y,Float:Z;
  4405.                         GetPlayerPos(playerid, X,Y,Z);
  4406.                         new carid = CreateVehicle(car, X,Y,Z, 0.0, color1, color2, 600000);
  4407.                         format(string, sizeof(string), "Vehicle ID %d spawned.", carid);
  4408.                         SendClientMessage(playerid, GREEN, string);
  4409.                         GetPlayerName(playerid,player,sizeof(player));
  4410.                         format(string, sizeof(string), "-| Administrator %s spawned a vehicle |-",player);
  4411.                         SendClientMessageToAdmins(ADMIN_RED,string,1);
  4412.                         VehicleLog(string);
  4413.                 }
  4414.                 else
  4415.                 {
  4416.                     SendClientMessage(playerid, RED, "You're not an admin with the required level.");
  4417.                 }
  4418.                 return 1;
  4419.         }
  4420.         if(strcmp(cmd, "/crash", true) == 0)
  4421. {
  4422.  if (PlayerInfo[playerid][pAdminLevel] == 5)
  4423.         {
  4424.                 tmp = strtok(cmdtext, idx);
  4425.                 if(!strlen(tmp))
  4426.                         {
  4427.                                 SendClientMessage(playerid, ORANGE, "USAGE: /crash [playerid]");
  4428.                                 SendClientMessage(playerid, ORANGE, "FUNCTION: Crashes a player.");
  4429.                                 return 1;
  4430.                         }
  4431.                         new Float:X,Float:Y,Float:Z;
  4432.                         giveplayerid = ReturnUser(tmp);
  4433.                             if(IsPlayerConnected(giveplayerid))
  4434.                             {
  4435.                                     GetPlayerPos(giveplayerid,X,Y,Z);
  4436.                                         CreatePlayerObject(giveplayerid,11111111,X,Y,Z,0,0,0);
  4437.                                                 SendClientMessage(playerid,GREEN, "Player successfuly crashed.");
  4438.                                 }
  4439.                                 else if (!IsPlayerConnected(giveplayerid))
  4440.                                 {
  4441.                                         format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  4442.                                         SendClientMessage(playerid, RED, string);
  4443.                                 }
  4444.    }
  4445.         else
  4446.         {
  4447.         SendClientMessage(playerid, RED, "You're not a lead admin.");
  4448.         }
  4449. return 1;
  4450. }
  4451. if(strcmp(cmd, "/setwarn", true) == 0)
  4452. {
  4453. new warnings;
  4454. if (PlayerInfo[playerid][pAdminLevel] >= 4 || IsPlayerAdmin(playerid))
  4455.         {
  4456.         tmp = strtok(cmdtext, idx);
  4457.                 if(!strlen(tmp))
  4458.                 {
  4459.                         SendClientMessage(playerid, ORANGE, "USAGE: /setwarn [playerid] [warning]");
  4460.                         SendClientMessage(playerid, ORANGE, "FUNCTION: Will set a certain player's warning.");
  4461.                         return 1;
  4462.                 }
  4463.  
  4464.   giveplayerid = ReturnUser(tmp);
  4465.                 if(giveplayerid != INVALID_PLAYER_ID)
  4466.                 {
  4467.                     GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  4468.                         GetPlayerName(playerid, sendername, sizeof(sendername));
  4469.                         tmp = strtok(cmdtext, idx);
  4470.                         warnings = strval(tmp);
  4471.                         if(!strlen(tmp))
  4472.                                 {
  4473.                                         SendClientMessage(playerid, ORANGE, "USAGE: /setwarn [playerid] [warning]");
  4474.                                         return 1;
  4475.                                 }
  4476.                         else
  4477.                         {
  4478.                         PlayerInfo[giveplayerid][pWarns] = warnings;
  4479.                         printf("[ADMIN NEWS]: Admin %s has set %s's warnings to ", sendername, giveplayer, warnings);
  4480.                         format(string, sizeof(string), "Admin %s changed your warnings to %d", player, warnings);
  4481.                         SendClientMessage(giveplayerid, GREEN, string);
  4482.                         SendClientMessage(giveplayerid, RED, "3 Warnings = Auto-Ban!");
  4483.                         format(string, sizeof(string), "-| Administrator %s changed %s's warnings. [Warnings: %d ] |-",player ,giveplayer, PlayerInfo[giveplayerid][pWarns]);
  4484.                         SendClientMessageToAdmins(ADMIN_RED,string,1);
  4485.                         }
  4486.                 }
  4487.  
  4488.                 else if(giveplayerid == INVALID_PLAYER_ID)
  4489.                 {
  4490.                         format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  4491.                         SendClientMessage(playerid, RED, string);
  4492.                 }
  4493.         }
  4494.         else
  4495.         {
  4496.         SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  4497.         }
  4498.         return 1;
  4499. }
  4500.                 if(strcmp(cmd, "/an", true) == 0)
  4501.         {
  4502.             if (PlayerInfo[playerid][pAdminLevel] >= 5 || IsPlayerAdmin(playerid))
  4503.         {
  4504.                         GetPlayerName(playerid, player, sizeof(player));
  4505.                         new length = strlen(cmdtext);
  4506.                         while ((idx < length) && (cmdtext[idx] <= ' '))
  4507.                         {
  4508.                                 idx++;
  4509.                         }
  4510.                         new offset = idx;
  4511.                         new result[256];
  4512.                         while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  4513.                         {
  4514.                                 result[idx - offset] = cmdtext[idx];
  4515.                                 idx++;
  4516.                         }
  4517.                         result[idx - offset] = EOS;
  4518.                         if(!strlen(result))
  4519.                         {
  4520.                                 SendClientMessage(playerid, ORANGE, "USAGE: /an [message]");
  4521.                                 SendClientMessage(playerid, ORANGE, "FUNCTION: Will broadcast an announcement.");
  4522.                                 return 1;
  4523.                         }
  4524.                         format(string, sizeof(string), "%s", result);
  4525.                         SendClientMessageToAll(ANNOUNCEMENT, string);
  4526.                         printf("%s", string);
  4527.                 }
  4528.                 else
  4529.                 {
  4530.                 SendClientMessage(playerid, RED, "You are not a lead admin.");
  4531.                 }
  4532.                 return 1;
  4533.         }
  4534. if(strcmp(cmd, "/superpunch", true) == 0)
  4535. {
  4536.     if (PlayerInfo[playerid][pAdminLevel] >= 4 || IsPlayerAdmin(playerid))
  4537.     {
  4538.         tmp = strtok(cmdtext,idx);
  4539.         if(!strlen(tmp))
  4540.                 {
  4541.                         SendClientMessage(playerid, ORANGE, "USAGE: /superpunch [on/off]");
  4542.                         SendClientMessage(playerid, ORANGE, "FUNCTION: Will give you the power of Super Punch. When pressing 'PUNCH' button, you will explode but will live.");
  4543.                 }
  4544.         else if(strcmp(tmp,"on",true) == 0)
  4545.         {
  4546.                 SuperPunch[playerid] = 1;
  4547.                 SendClientMessage(playerid,GREEN,"You are now blessed with SUPER PUNCH! Go knock someone out, now.");
  4548.                 }
  4549.                 else if(strcmp(tmp,"off",true) == 0)
  4550.                 {
  4551.                 SuperPunch[playerid] = 0;
  4552.                 SendClientMessage(playerid,GREEN,"Your super punch is now disabled.");
  4553.                 }
  4554.         }
  4555.         else
  4556.         {
  4557.             SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  4558.         }
  4559.         return 1;
  4560. }
  4561. if(strcmp(cmd, "/vsuperpunch", true) == 0)
  4562. {
  4563.     if (PlayerInfo[playerid][pAdminLevel] >= 4 || IsPlayerAdmin(playerid))
  4564.     {
  4565.         tmp = strtok(cmdtext,idx);
  4566.         if(!strlen(tmp))
  4567.                 {
  4568.                         SendClientMessage(playerid, ORANGE, "USAGE: /vsuperpunch [on/off]");
  4569.                         SendClientMessage(playerid, ORANGE, "FUNCTION: Will give you the power of Super Punch in a Vehicle. When pressing 'PUNCH' button, you will explode but will live.");
  4570.                 }
  4571.         else if(strcmp(tmp,"on",true) == 0)
  4572.         {
  4573.                 SuperPunch[playerid] = 1;
  4574.                 SendClientMessage(playerid,GREEN,"You are now blessed with SUPER PUNCH! Go knock someone out, now.");
  4575.                 }
  4576.                 else if(strcmp(tmp,"off",true) == 0)
  4577.                 {
  4578.                 SuperPunch[playerid] = 0;
  4579.                 SendClientMessage(playerid,GREEN,"Your super punch is now disabled.");
  4580.                 }
  4581.         }
  4582.         else
  4583.         {
  4584.             SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  4585.         }
  4586.         return 1;
  4587. }
  4588. if (strcmp(cmd, "/superpunchp", true) ==0 )
  4589. {
  4590.         new tmp2[256];
  4591.     if (PlayerInfo[playerid][pAdminLevel] > 4 || IsPlayerAdmin(playerid))
  4592.         {
  4593.                 tmp = strtok(cmdtext,idx);
  4594.             if(!strlen(tmp))
  4595.                 {
  4596.                         SendClientMessage(playerid,ORANGE,"USAGE: /superpunchp [playerid] [on/off]");
  4597.                         SendClientMessage(playerid,ORANGE,"FUNCTION: Will give the player the power of SuperPunch.");
  4598.                 }
  4599.                 giveplayerid = ReturnUser(tmp);
  4600.                 if(giveplayerid != INVALID_PLAYER_ID)
  4601.                 {
  4602.                     tmp2 = strtok(cmdtext,idx);
  4603.                     if(strcmp(tmp2,"on",true) == 0)
  4604.                     {
  4605.                                 GetPlayerName(playerid, player, sizeof(player));
  4606.                                 GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  4607.                                 SuperPunch[giveplayerid] = 1;
  4608.                                 format(string, sizeof(string), "Admin %s blessed you with the power of Super Punch !", player);
  4609.                                 SendClientMessage(giveplayerid,GREEN,string);
  4610.                                 format(string, sizeof(string), "-| Administrator %s blessed %s with the power of Super Punch |-", player,giveplayer);
  4611.                                 SendClientMessageToAdmins(ADMIN_RED,string,1);
  4612.                         }
  4613.                         else if(strcmp(tmp2,"off",true) == 0)
  4614.                         {
  4615.                             format(string, sizeof(string), "Admin %s removed your Super Punch power.", player);
  4616.                                 SendClientMessage(giveplayerid,RED,string);
  4617.                                 SuperPunch[giveplayerid] = 0;
  4618.                         }
  4619.                 }
  4620.                 else if(giveplayerid == INVALID_PLAYER_ID)
  4621.                 {
  4622.                         format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  4623.                         SendClientMessage(playerid,RED,string);
  4624.                 }
  4625.         }
  4626.         else
  4627.         {
  4628.                 SendClientMessage(playerid,RED,"You are not an admin with the required level.");
  4629.         }
  4630.         return 1;
  4631. }
  4632. if(strcmp(cmd, "/viewcmds", true) == 0)
  4633. {
  4634.     if (PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid))
  4635.     {
  4636.         tmp = strtok(cmdtext,idx);
  4637.         if(!strlen(tmp))
  4638.                 {
  4639.                         SendClientMessage(playerid, ORANGE, "USAGE: /viewcmds [on/off]");
  4640.                         SendClientMessage(playerid, ORANGE, "FUNCTION: Will see the players typing '/cash' and '/count' incase of money hacks or count spam.");
  4641.                 }
  4642.         else if(strcmp(tmp,"on",true) == 0)
  4643.         {
  4644.                 ViewCmds[playerid] = 1;
  4645.                 SendClientMessage(playerid,GREEN,"You can know view players typing '/count' and '/cash'.");
  4646.                 }
  4647.                 else if(strcmp(tmp,"off",true) == 0)
  4648.                 {
  4649.                 ViewCmds[playerid] = 0;
  4650.                 SendClientMessage(playerid,GREEN,"You can no longer view players typing '/count' and '/cash'.");
  4651.                 }
  4652.         }
  4653.         else
  4654.         {
  4655.             SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  4656.         }
  4657.         return 1;
  4658. }
  4659. /*-------------------------------Login/Registration System----------------------------------*/
  4660.         if (strcmp(cmd, "/login", true) ==0 )
  4661.         {
  4662.                 new tmppass[128];
  4663.                         if(IsLogged[playerid] == 1)
  4664.                         {
  4665.                                 SendClientMessage(playerid, RED, "You are already logged in.");
  4666.                                 return 1;
  4667.                         }
  4668.                         tmp = strtok(cmdtext, idx);
  4669.                         if(!strlen(tmp))
  4670.                         {
  4671.                                 SendClientMessage(playerid, ORANGE, "USAGE: /login [password]");
  4672.                                 return 1;
  4673.                         }
  4674.                         new plname[MAX_PLAYER_NAME];
  4675.                         GetPlayerName(playerid, plname, sizeof(plname));
  4676.                         format(string, sizeof(string), "%s.ini", plname);
  4677.                         if(!fexist(string))
  4678.                         {
  4679.                                 SendClientMessage(playerid, RED, "That account isn't registered.");
  4680.                         }
  4681.                         strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
  4682. //                      Encrypt(tmppass);
  4683.                         OnPlayerLogin(playerid,tmppass);
  4684.                 return 1;
  4685.         }
  4686.         if (strcmp(cmd, "/register", true) ==0 )
  4687.         {
  4688.             if(IsPlayerConnected(playerid))
  4689.             {
  4690.                 if(IsLogged[playerid] == 1)
  4691.                         {
  4692.                                 SendClientMessage(playerid, RED, "You are already logged in.");
  4693.                                 return 1;
  4694.                         }
  4695.                         GetPlayerName(playerid, sendername, sizeof(sendername));
  4696.                         format(string, sizeof(string), "%s.ini", sendername);
  4697.                         new File: hFile = fopen(string, io_read);
  4698.                         if (hFile)
  4699.                         {
  4700.                                 SendClientMessage(playerid, RED, "That name is already taken. Please reconnect using a different username.");
  4701.                                 fclose(hFile);
  4702.                                 return 1;
  4703.                         }
  4704.                 new tmppass[128];
  4705.                         tmp = strtok(cmdtext, idx);
  4706.                         if(!strlen(tmp))
  4707.                         {
  4708.                                 SendClientMessage(playerid, ORANGE, "USAGE: /register [password]");
  4709.                                 return 1;
  4710.                         }
  4711.                         strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
  4712. //                      Encrypt(tmppass);
  4713.                         OnPlayerRegister(playerid,tmppass);
  4714.                 }
  4715.                 return 1;
  4716.         }
  4717. if (strcmp(cmd, "/cclogin", true) ==0 )
  4718. {
  4719.         tmp = strtok(cmdtext,idx);
  4720.     if(IsLogged[playerid] == 0) return SendClientMessage(playerid,RED,"You must be logged in to login as a CC member. ( /login )");
  4721.         if(CCIsLogged[playerid] == 1) return SendClientMessage(playerid,RED,"You are already logged in as a Crucio member.");
  4722.         if(!strlen(tmp))
  4723.         {
  4724.                 SendClientMessage(playerid,ORANGE,"USAGE: /cclogin [password]");
  4725.                 SendClientMessage(playerid,ORANGE,"FUNCTION: Will login as a Crucio Clan member if password is valid.");
  4726.         }
  4727.         else if(strcmp(tmp,"ccpwnz411",true) == 0)
  4728.         {
  4729.             GetPlayerName(playerid, player, sizeof(player));
  4730.                 CCIsLogged[playerid] = 1;
  4731.                 SendClientMessage(playerid,GREEN,"You are now logged in as a Crucio member.");
  4732.                 SetPlayerColor(playerid,LIGHTGREEN);
  4733.                 format(string, sizeof(string), "%s logged in as a Crucio member.", player);
  4734.                 SendClientMessageToCC(GREEN,string);
  4735.         }
  4736.         else
  4737.         {
  4738.                 SendClientMessage(playerid,RED,"Password Incorrect");
  4739.         }
  4740.         return 1;
  4741. }
  4742. if (strcmp(cmd, "/cclogout", true) ==0 )
  4743. {
  4744.         SendClientMessage(playerid,GREEN,"You have logged out from CC login.");
  4745.         CCIsLogged[playerid] = 0;
  4746.         SetPlayerColor(playerid,PLAYER_COLOR);
  4747.         return 1;
  4748. }
  4749. if (strcmp(cmd, "/ccvip", true) ==0 )
  4750. {
  4751.     if (PlayerInfo[playerid][pAdminLevel] > 4 || IsPlayerAdmin(playerid))
  4752.         {
  4753.             if(CCIsLogged[playerid] == 0) return SendClientMessage(playerid,RED,"You must be a Crucio Clan member to activate this command.");
  4754.                 tmp = strtok(cmdtext,idx);
  4755.             if(!strlen(tmp))
  4756.                 {
  4757.                         SendClientMessage(playerid,ORANGE,"USAGE: /ccvip [playerid]");
  4758.                         SendClientMessage(playerid,ORANGE,"FUNCTION: Will login a specified player to CC as a V.I.P.");
  4759.                 }
  4760.                 giveplayerid = ReturnUser(tmp);
  4761.                 if(giveplayerid != INVALID_PLAYER_ID)
  4762.                 {
  4763.                     GetPlayerName(playerid, player, sizeof(player));
  4764.                         GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  4765.                         CCIsLogged[giveplayerid] = 1;
  4766.                         format(string, sizeof(string), "Admin %s logged you in as Crucio V.I.P.", player);
  4767.                         SendClientMessage(giveplayerid,GREEN,string);
  4768.                         format(string, sizeof(string), "Player %s is now logged in as a Crucio V.I.P.", giveplayer);
  4769.                         SendClientMessage(playerid,GREEN,string);
  4770.                         SetPlayerColor(giveplayerid,LIGHTGREEN);
  4771.                 }
  4772.                 else if(giveplayerid == INVALID_PLAYER_ID)
  4773.                 {
  4774.                         format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  4775.                         SendClientMessage(playerid,RED,string);
  4776.                 }
  4777.         }
  4778.         else
  4779.         {
  4780.                 SendClientMessage(playerid,RED,"You are not an admin with the required level.");
  4781.         }
  4782.         return 1;
  4783. }
  4784. if (strcmp(cmd, "/cclogoutp", true) ==0 )
  4785. {
  4786.     if (PlayerInfo[playerid][pAdminLevel] > 4 || IsPlayerAdmin(playerid))
  4787.         {
  4788.             if(CCIsLogged[playerid] == 0) return SendClientMessage(playerid,RED,"You must be a Crucio Clan member to activate this command.");
  4789.                 tmp = strtok(cmdtext,idx);
  4790.             if(!strlen(tmp))
  4791.                 {
  4792.                         SendClientMessage(playerid,ORANGE,"USAGE: /cclogoutp [playerid]");
  4793.                         SendClientMessage(playerid,ORANGE,"FUNCTION: Will logout the specified player from CC access.");
  4794.                 }
  4795.                 giveplayerid = ReturnUser(tmp);
  4796.                 if(giveplayerid != INVALID_PLAYER_ID)
  4797.                 {
  4798.                     GetPlayerName(playerid, player, sizeof(player));
  4799.                         GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  4800.                         CCIsLogged[giveplayerid] = 0;
  4801.                         format(string, sizeof(string), "Admin %s logged you out of CC.", player);
  4802.                         SendClientMessage(giveplayerid,GREEN,string);
  4803.                         format(string, sizeof(string), "Player %s logged out from CC.", giveplayer);
  4804.                         SendClientMessage(playerid,GREEN,string);
  4805.                         SetPlayerColor(giveplayerid,PLAYER_COLOR);
  4806.                 }
  4807.                 else if(giveplayerid == INVALID_PLAYER_ID)
  4808.                 {
  4809.                         format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  4810.                         SendClientMessage(playerid,RED,string);
  4811.                 }
  4812.         }
  4813.         else
  4814.         {
  4815.                 SendClientMessage(playerid,RED,"You are not an admin with the required level.");
  4816.         }
  4817.         return 1;
  4818. }
  4819. /*------------------------------------------------/Invalid Command\------------------------------------------------*/
  4820. else
  4821.         {
  4822.                 format(string, sizeof(string), "%s is an Unknown Command. Type /commands for all the commands you can use.", cmdtext);
  4823.                 SendClientMessage(playerid, RED, string);
  4824.         }
  4825. return 1;
  4826. }
  4827.  
  4828. /*public OnPlayerInfoChange(playerid)
  4829. {
  4830.         return 1;
  4831. }
  4832. */
  4833. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  4834. {
  4835.         return 1;
  4836. }
  4837.  
  4838. public OnPlayerExitVehicle(playerid, vehicleid)
  4839. {
  4840.         return 1;
  4841. }
  4842.  
  4843. public OnPlayerStateChange(playerid, newstate, oldstate)
  4844. {
  4845.         if (oldstate == PLAYER_STATE_SPECTATING && newstate == 2)
  4846.         {
  4847.                 new giveplayerid;
  4848.         PlayerSpectateVehicle(playerid, GetPlayerVehicleID(giveplayerid));
  4849.         }
  4850.         return 1;
  4851. }
  4852.  
  4853. public OnPlayerEnterCheckpoint(playerid)
  4854. {
  4855.         return 1;
  4856. }
  4857.  
  4858. public OnPlayerLeaveCheckpoint(playerid)
  4859. {
  4860.         return 1;
  4861. }
  4862.  
  4863. public OnPlayerEnterRaceCheckpoint(playerid)
  4864. {
  4865.         return 1;
  4866. }
  4867.  
  4868. public OnPlayerLeaveRaceCheckpoint(playerid)
  4869. {
  4870.         return 1;
  4871. }
  4872.  
  4873. public OnRconCommand(cmd[])
  4874. {
  4875.         return 1;
  4876. }
  4877.  
  4878. public OnObjectMoved(objectid)
  4879. {
  4880.         return 1;
  4881. }
  4882.  
  4883. public OnPlayerObjectMoved(playerid, objectid)
  4884. {
  4885.         return 1;
  4886. }
  4887.  
  4888. public OnPlayerPickUpPickup(playerid, pickupid)
  4889. {
  4890. if (pickupid == DMexitICON)
  4891. {GameTextForPlayer(playerid,"Type ~r~/exitdm~n~~w~to exit the arena.",5000,5);}
  4892. if (pickupid == deagle)
  4893. {GivePlayerWeapon(playerid,24,9999999);}
  4894. if (pickupid == shotgun)
  4895. {GivePlayerWeapon(playerid,25,9999999);}
  4896. if (pickupid == sawnoff)
  4897. {GivePlayerWeapon(playerid,26,9999999);}
  4898. if (pickupid == spaz)
  4899. {GivePlayerWeapon(playerid,27,9999999);}
  4900. if (pickupid == uzi)
  4901. {GivePlayerWeapon(playerid,28,9999999);}
  4902. if (pickupid == mp5)
  4903. {GivePlayerWeapon(playerid,29,9999999);}
  4904. if (pickupid == ak)
  4905. {GivePlayerWeapon(playerid,30,9999999);}
  4906. if (pickupid == m4)
  4907. {GivePlayerWeapon(playerid,31,9999999);}
  4908. if (pickupid == pistol)
  4909. {GivePlayerWeapon(playerid,22,9999999);}
  4910. if (pickupid == tec9)
  4911. {GivePlayerWeapon(playerid,32,9999999);}
  4912. if (pickupid == sniper1)
  4913. {GivePlayerWeapon(playerid,34,50);}
  4914. if (pickupid == sniper2)
  4915. {GivePlayerWeapon(playerid,34,50);}
  4916. if (pickupid == rocketlaunch)
  4917. {GivePlayerWeapon(playerid,35,5);}
  4918. if (pickupid == armor)
  4919. {SetPlayerArmour(playerid,100);}
  4920. if (pickupid == knife)
  4921. {GivePlayerWeapon(playerid,4,1);}
  4922. if (pickupid == CCm4)
  4923. {GivePlayerWeapon(playerid,31,300);}
  4924. if (pickupid == CCak47)
  4925. {GivePlayerWeapon(playerid,30,300);}
  4926. if (pickupid == CCsniper)
  4927. {GivePlayerWeapon(playerid,34,50);}
  4928.         return 1;
  4929. }
  4930.  
  4931. public OnPlayerSelectedMenuRow(playerid, row)
  4932. {
  4933.         return 1;
  4934. }
  4935.  
  4936. public OnPlayerExitedMenu(playerid)
  4937. {
  4938.         return 1;
  4939. }
  4940.  
  4941. stock IsPlayerInArea(playerid,Float:max_x,Float:min_x,Float:max_y,Float:min_y)
  4942. {
  4943.         new Float:X;
  4944.         new Float:Y;
  4945.         new Float:Z;
  4946.         GetPlayerPos(playerid, X, Y, Z);
  4947.         if(X <= max_x && X >= min_x && Y <= max_y && Y >= min_y) {
  4948.         return 1;
  4949.         }
  4950.         return 0;
  4951. }
  4952.  
  4953. public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
  4954. {
  4955.     if(IsPlayerConnected(playerid))
  4956.         {
  4957.                 new Float:oldposx, Float:oldposy, Float:oldposz;
  4958.                 new Float:tempposx, Float:tempposy, Float:tempposz;
  4959.                 GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  4960.                 tempposx = (oldposx -x);
  4961.                 tempposy = (oldposy -y);
  4962.                 tempposz = (oldposz -z);
  4963.                 //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
  4964.                 if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  4965.                 {
  4966.                         return 1;
  4967.                 }
  4968.         }
  4969.         return 0;
  4970. }
  4971. public ScoreCheck()
  4972. {
  4973. for (new playerid; playerid < MAX_PLAYERS; playerid++)
  4974. {
  4975.         new Float:X,Float:Y,Float:Z;
  4976.         GetPlayerPos(playerid,X,Y,Z);
  4977.     if (GetPlayerScore(playerid) == 10)
  4978.     {
  4979.     KillTimer(DM);
  4980.     SetPlayerScore(playerid, 11);
  4981.     GetPlayerName(playerid, player, sizeof(player));
  4982.     new string[256];
  4983.     format(string, sizeof(string), "%s is on fire !",player);
  4984.         SendClientMessageToAll(LIGHTRED,string);
  4985.         DM = SetTimerEx("ScoreCheck",1000,1,"d",playerid);
  4986.         AttachObjectToPlayer(barrelplayer,playerid,0,0,1,0,0,0);
  4987.         SendClientMessage(playerid,RED,"Uh oh! There's a barrel attached to you!! Heal up and destroy it !");
  4988.         }
  4989.         if (GetPlayerScore(playerid) == 20)
  4990.     {
  4991.     KillTimer(DM);
  4992.     SetPlayerScore(playerid, 21);
  4993.     GetPlayerName(playerid, player, sizeof(player));
  4994.     new string[256];
  4995.     format(string, sizeof(string), "%s is on rampage !",player);
  4996.         SendClientMessageToAll(LIGHTRED,string);
  4997.         GivePlayerWeapon(playerid,35,3);
  4998.         DM = SetTimerEx("ScoreCheck",1000,1,"d",playerid);
  4999.         AttachObjectToPlayer(barrelplayer,playerid,0,0,1,0,0,0);
  5000.         AttachObjectToPlayer(barrelplayer2,playerid,0,0,2,0,0,0);
  5001.         SendClientMessage(playerid,RED,"Uh oh! There's 2 barrels attached to you!! Surrender ( /exitdm ) !!");
  5002.         }
  5003.         if (GetPlayerScore(playerid) == 50)
  5004.     {
  5005.     KillTimer(DM);
  5006.     SetPlayerScore(playerid, 51);
  5007.     GetPlayerName(playerid, player, sizeof(player));
  5008.     new string[256];
  5009.     format(string, sizeof(string), "%s is on killing spree!!",player);
  5010.         SendClientMessageToAll(LIGHTRED,string);
  5011.         GivePlayerWeapon(playerid,38,30);
  5012.         SendClientMessage(playerid,GREEN,"Shhh, use this carefuly. Pwn those noobs !");
  5013.         DM = SetTimerEx("ScoreCheck",1000,1,"d",playerid);
  5014.         AttachObjectToPlayer(barrelplayer,playerid,0,0,0.5,0,0,0);
  5015.         AttachObjectToPlayer(barrelplayer2,playerid,0,0,1,0,0,0);
  5016.         AttachObjectToPlayer(barrelplayer3,playerid,0,0,2,0,0,0);
  5017.         SendClientMessage(playerid,RED,"Uh oh! There's 3 barrels attached to you!! DO SOMETHING !!");
  5018.         }
  5019. }
  5020. }
  5021.  
  5022. public ObjectAttachedToPlayer()
  5023. {
  5024.     for (new playerid; playerid < MAX_PLAYERS; playerid++)
  5025.         {
  5026.         new Float:X,Float:Y,Float:Z;
  5027.         GetPlayerPos(playerid,X,Y,Z);
  5028.         SetObjectPos(barrelplayer,X,Y,Z);
  5029.         }
  5030. return 1;
  5031. }
  5032.  
  5033. public DMStatsCheck(playerid)
  5034. {
  5035.         new string[128];
  5036.         new sstring[128];
  5037.         format(string, sizeof(string), "%d",KillScore[playerid]);
  5038.         TextDrawSetString(dmr[playerid], string);
  5039.         format(sstring, sizeof(sstring), "%d",DeathScore[playerid]);
  5040.         TextDrawSetString(dmrh[playerid], sstring);
  5041.         return 1;
  5042. }
  5043.  
  5044. public NuclearBombs()
  5045. {
  5046. for(new i = 0; i < MAX_PLAYERS; i++)
  5047. {
  5048. MoveObject(nb1,1338.494751, 2806.414795, 10.976404,15);
  5049. MoveObject(nb2,1339.085083, 2816.555176, 10.826490,15);
  5050. MoveObject(nb3,1312.968262, 2801.345703, 10.709347,15);
  5051. MoveObject(nb4,1340.083740, 2767.255615, 9.951471,15);
  5052. MoveObject(nb5,1335.993652, 2785.427734, 10.551495,15);
  5053. MoveObject(nb6,1314.530396, 2775.036865, 10.849953,15);
  5054. MoveObject(nb7,1293.614380, 2800.921631, 10.179447,15);
  5055. MoveObject(nb8,1291.764893, 2780.408936, 10.733095,15);
  5056. MoveObject(nb9,1294.043701, 2823.022461, 10.576481,15);
  5057. MoveObject(nb10,1269.976685, 2808.976318, 10.301491,15);
  5058. MoveObject(nb11,1257.521729, 2786.706299, 10.026489,15);
  5059. MoveObject(nb12,1214.732300, 2824.856689, 10.473565,10);
  5060. MoveObject(nb13,1174.542603, 2775.916504, 10.575199,10);
  5061. MoveObject(nb14,1140.503540, 2795.846436, 10.250143,10);
  5062. MoveObject(nb15,1191.946533, 2838.445801, 10.425194,10);
  5063. MoveObject(nb16,1170.051514, 2746.266357, 10.557978,10);
  5064. SetTimer("NuclearBombsSuccess",9000,0);
  5065. }
  5066. SendClientMessageToAll(RED,"[DM NEWS]: NUCLEAR BOMBS ARE LAUNCHING! WATCH OUT!!");
  5067. return 1;
  5068. }
  5069. public NuclearBombsSuccess()
  5070. {
  5071. CreateExplosion(1338.494751, 2806.414795, 10.976404,6,5.0);
  5072. CreateExplosion(1339.085083, 2816.555176, 10.826490,6,5.0);
  5073. CreateExplosion(1312.968262, 2801.345703, 10.709347,6,5.0);
  5074. CreateExplosion(1340.083740, 2767.255615, 9.951471,6,5.0);
  5075. CreateExplosion(1335.993652, 2785.427734, 10.551495,6,5.0);
  5076. CreateExplosion(1314.530396, 2775.036865, 10.849953,6,5.0);
  5077. CreateExplosion(1293.614380, 2800.921631, 10.179447,6,5.0);
  5078. CreateExplosion(1291.764893, 2780.408936, 10.733095,6,5.0);
  5079. CreateExplosion(1294.043701, 2823.022461, 10.576481,6,5.0);
  5080. CreateExplosion(1269.976685, 2808.976318, 10.301491,6,5.0);
  5081. CreateExplosion(1257.521729, 2786.706299, 10.026489,6,5.0);
  5082. CreateExplosion(1214.732300, 2824.856689, 10.473565,6,5.0);
  5083. CreateExplosion(1174.542603, 2775.916504, 10.575199,6,5.0);
  5084. CreateExplosion(1140.503540, 2795.846436, 10.250143,6,5.0);
  5085. CreateExplosion(1191.946533, 2838.445801, 10.425194,6,5.0);
  5086. CreateExplosion(1170.051514, 2746.266357, 10.557978,6,5.0);
  5087. DestroyObject(nb1);
  5088. DestroyObject(nb2);
  5089. DestroyObject(nb3);
  5090. DestroyObject(nb4);
  5091. DestroyObject(nb5);
  5092. DestroyObject(nb6);
  5093. DestroyObject(nb7);
  5094. DestroyObject(nb8);
  5095. DestroyObject(nb9);
  5096. DestroyObject(nb10);
  5097. DestroyObject(nb11);
  5098. DestroyObject(nb12);
  5099. DestroyObject(nb13);
  5100. DestroyObject(nb14);
  5101. DestroyObject(nb15);
  5102. DestroyObject(nb16);
  5103. nb1 = CreateObject(3786, 1411.922119, 2805.617920, 82.026489, 0, 318.747, 0);
  5104. nb2 = CreateObject(3786, 1410.384888, 2816.555176, 82.051491, 0, 318.747, 0);
  5105. nb3 = CreateObject(3786, 1387.416748, 2801.345703, 85.159370, 0, 318.747, 0);
  5106. nb4 = CreateObject(3786, 1417.482666, 2767.255615, 87.051491, 0, 318.747, 0);
  5107. nb5 = CreateObject(3786, 1416.013794, 2785.427734, 90.301491, 0, 318.747, 0);
  5108. nb6 = CreateObject(3786, 1397.005127, 2775.036865, 91.949928, 0, 318.747, 348.75);
  5109. nb7 = CreateObject(3786, 1374.013306, 2799.821045, 93.629433, 0, 318.747, 0);
  5110. nb8 = CreateObject(3786, 1374.415039, 2781.507568, 93.958092, 0, 318.747, 0);
  5111. nb9 = CreateObject(3786, 1374.492432, 2823.022461, 91.076492, 0, 318.747, 0);
  5112. nb10 = CreateObject(3786, 1361.251709, 2808.976318, 101.551491, 0, 318.747, 0);
  5113. nb11 = CreateObject(3786, 1338.346802, 2786.706299, 90.801491, 0, 318.747, 0);
  5114. nb12 = CreateObject(3790, 1214.732300, 2824.856689, 57.448601, 357.6293, 272.3375, 6.8755);
  5115. nb13 = CreateObject(3790, 1174.542603, 2775.916504, 52.075165, 357.6293, 272.3375, 6.8755);
  5116. nb14 = CreateObject(3790, 1140.503540, 2795.846436, 59.025101, 357.6293, 272.3375, 6.8755);
  5117. nb15 = CreateObject(3790, 1191.946533, 2838.445801, 58.025162, 357.6293, 272.3375, 6.8755);
  5118. nb16 = CreateObject(3790, 1170.051514, 2746.266357, 52.782974, 357.6293, 272.3375, 6.8755);
  5119. return 1;
  5120. }
  5121.  
  5122. public VehRepair()
  5123. {
  5124.     for (new playerid; playerid < MAX_PLAYERS; playerid++)
  5125.         {
  5126.                 SetVehicleHealth(GetPlayerVehicleID(playerid),1000.0);
  5127.                 TogglePlayerControllable(playerid,1);
  5128.         }
  5129.         return 1;
  5130. }
  5131. public PingCheck(playerid)
  5132. {
  5133.         if (GetPlayerPing(playerid) >=800)
  5134.         {
  5135.             GetPlayerName(playerid, player, sizeof(player));
  5136.             new string[128];
  5137.             format(string, sizeof(string), "-| Auto-System kicked %s. [Reason: High Ping( %d ) ]|-", player,GetPlayerPing(playerid));
  5138.                 SendClientMessageToAll(ADMIN_RED, string);
  5139.             Kick(playerid);
  5140.         }
  5141. return 1;
  5142. }
  5143.  
  5144. public CCAreaCheck()
  5145. {
  5146.         for(new i = 0; i < MAX_PLAYERS; i++)
  5147.         {
  5148.         if (IsPlayerInArea(i,-724.0283, 887.5186, -630.6053, 992.6194) || CCIsLogged[i] == 0)
  5149.         {
  5150.             if (!IsPlayerInArea(i,724.0283, 887.5186, -630.6053, 992.6194))
  5151.             {
  5152.                 CCAC = SetTimerEx("CCAreaCheck",1000,1,"d",i);
  5153.             }
  5154.             else
  5155.             {
  5156.                 SendClientMessageToCC(RED, "[ALARM]: Intruder alert! An intruder has trespassed the CC HQ! Go kill him now !!");
  5157.                 KillTimer(CCAC);
  5158.             }
  5159.                 }
  5160.         }
  5161.         return 1;
  5162. }
  5163.  
  5164. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  5165. {
  5166.         new x = 0;
  5167.         while(x!=MAX_PLAYERS) {
  5168.             if( IsPlayerConnected(x) && GetPlayerState(x) == PLAYER_STATE_SPECTATING &&
  5169.                         SpectateID[x] == playerid && SpectateType[x] == SPEC_TYPE_PLAYER )
  5170.                 {
  5171.                     SetPlayerInterior(x,newinteriorid);
  5172.                 }
  5173.                 x++;
  5174.         }
  5175. }
  5176.  
  5177. public AttachPlayer( Float:X, Float:Y, Float:Z)
  5178. {
  5179.     for (new playerid; playerid < MAX_PLAYERS; playerid++)
  5180.         {
  5181.         new Float:health;
  5182.         GetPlayerHealth(playerid,health);
  5183.         SetPlayerPos(playerid,X,Y,Z+2);
  5184.         SetPlayerHealth(playerid,health);
  5185.         }
  5186.         return 1;
  5187. }
  5188.  
  5189. public VehLock()
  5190. {
  5191.     for (new playerid; playerid < MAX_PLAYERS; playerid++)
  5192.         {
  5193.         if (GetPlayerState(playerid) == 2)
  5194.                 {
  5195.    for(new i = 0; i < MAX_PLAYERS; i++)
  5196.                         {
  5197.                         SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), i, 0, 1);
  5198.                         }
  5199.                         SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), playerid, 0, 0);
  5200.                 }
  5201.                 else
  5202.                 {
  5203.                 KillTimer(CarLock);
  5204.                 }
  5205.         }
  5206. return 1;
  5207. }
  5208.  
  5209. public WebSite()
  5210. {
  5211.     SendClientMessageToAll(LIGHTGREEN, "_______________________________");
  5212.         SendClientMessageToAll(YELLOW, "     Please visit our site: ");
  5213.         SendClientMessageToAll(YELLOW, "       www.seifweb.co.nr ");
  5214.         SendClientMessageToAll(YELLOW, "    Use the register button. ");
  5215.         SendClientMessageToAll(LIGHTGREEN, "_______________________________");
  5216.         KillTimer(WebAn);
  5217.         An1 = SetTimer("Announcement1", 450000, 1);
  5218.         return 1;
  5219. }
  5220. public Announcement1()
  5221. {
  5222.     SendClientMessageToAll(ANNOUNCEMENT, "Found a cheater or a rule breaker? Report him to the admins! ( /report [id] [reason] )");
  5223.     An2 = SetTimer("Announcement2", 450000, 1);
  5224.     KillTimer(An1);
  5225.         return 1;
  5226. }
  5227. public Announcement2()
  5228. {
  5229.     SendClientMessageToAll(ANNOUNCEMENT, "Need some killing action? Go to the DeathMatching arena! ( /dm )");
  5230.     An3 = SetTimer("Announcement3", 450000, 1);
  5231.     KillTimer(An2);
  5232.         return 1;
  5233. }
  5234. public Announcement3()
  5235. {
  5236.     SendClientMessageToAll(ANNOUNCEMENT, "Want to tune your ride? Go to the tunning garage! ( /trans - /arch - /loco )");
  5237.     An4 = SetTimer("Announcement4", 450000, 1);
  5238.     KillTimer(An3);
  5239.         return 1;
  5240. }
  5241. public Announcement4()
  5242. {
  5243.     SendClientMessageToAll(ANNOUNCEMENT, "New here? Start with some information and make sure to read the rules and check our commands! ( /help - /rules - /commands )");
  5244.         An5 = SetTimer("Announcement5", 450000, 1);
  5245.     KillTimer(An4);
  5246.         return 1;
  5247. }
  5248. public Announcement5()
  5249. {
  5250.     SendClientMessageToAll(ANNOUNCEMENT, "Want to join the Crucio Clan(CC)? Just add Justin to your msn! ( crucio@hotmail.co.uk )");
  5251.         An6 = SetTimer("Announcement6", 450000, 1);
  5252.     KillTimer(An5);
  5253.         return 1;
  5254. }
  5255. public Announcement6()
  5256. {
  5257.     SendClientMessageToAll(ANNOUNCEMENT, "Want to save your DeathMatching kills/deaths and your cash? Register! ( /register - /stats )");
  5258.         WebAn = SetTimer("WebSite", 450000, 1);
  5259.     KillTimer(An6);
  5260.         return 1;
  5261. }
  5262. /*public OnVehicleMod(vehicleid, componentid)
  5263. {
  5264.         return 1;
  5265. }
  5266. public OnVehiclePaintjob(vehicleid, paintjobid)
  5267. {
  5268.         return 1;
  5269. }
  5270. public OnVehicleRespray(vehicleid, color1, color2)
  5271. {
  5272.         return 1;
  5273. }
  5274. public VehFullRepair()
  5275. {
  5276.     for (new playerid; playerid < MAX_PLAYERS; playerid++)
  5277.         {
  5278.                 SetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z);
  5279.         }
  5280.         return 1;
  5281. }*/
  5282.  
  5283. public ReplaceVehicle(vehicleid, Float:X, Float:Y, Float:Z, Float:Ang)
  5284. {
  5285.         SetVehiclePos(vehicleid, X, Y, Z);
  5286.         SetVehicleZAngle(vehicleid, Ang);
  5287.         SendToDriver(vehicleid, "You car has been repaired.");
  5288.         SetVehicleHealth(vehicleid,1000.0);
  5289.         SetCameraBehindPlayer(vehicleid);
  5290.         return 1;
  5291. }
  5292. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  5293. {
  5294.         if (SuperPunch[playerid] == 1)
  5295.         {
  5296.             if (GetPlayerState(playerid) != 2)
  5297.             {
  5298.                 if (newkeys == KEY_FIRE)
  5299.                 {
  5300.                     if (GetPlayerWeapon(playerid) == 0)
  5301.                     {
  5302.                         new Float:X,Float:Y,Float:Z;
  5303.                         SetPlayerHealth(playerid,100.0);
  5304.                         GetPlayerPos(playerid,X,Y,Z);
  5305.                         CreateExplosion(X,Y,Z,7,7.0);
  5306.                         SetPlayerHealth(playerid,100.0);
  5307.                    }
  5308.                         }
  5309.             }
  5310.         }
  5311.         if (VehSuperPunch[playerid] == 1)
  5312.         {
  5313.             if (GetPlayerState(playerid) == 2)
  5314.             {
  5315.                 if (newkeys == KEY_FIRE)
  5316.                 {
  5317.                         new Float:X,Float:Y,Float:Z;
  5318.                         SetVehicleHealth(GetPlayerVehicleID(playerid),1000.0);
  5319.                         GetPlayerPos(playerid,X,Y,Z);
  5320.                         CreateExplosion(X,Y,Z,7,7.0);
  5321.                         SetVehicleHealth(GetPlayerVehicleID(playerid),1000.0);
  5322.                         }
  5323.             }
  5324.         }
  5325.         else if(GetPlayerState(playerid) == 2 && BombInstalled[GetPlayerVehicleID(playerid)] == 1)
  5326.         {
  5327.             if(newkeys == KEY_FIRE)
  5328.             {
  5329.                 //SetTimerEx("BombCar", 5000, 0, "i", GetPlayerVehicleID(playerid));
  5330.                 GameTextForPlayer(playerid, "~w~~r~~h~Bomb armed!", 299, 5);
  5331.                 Count[playerid] = 5;
  5332.                 SetTimerEx("BombCountDown", 1000, 0, "i", playerid);
  5333.                 BombInstalled[GetPlayerVehicleID(playerid)] = 0;
  5334.                 return 1;
  5335.                 }
  5336.         }
  5337.         return 1;
  5338. }
  5339. public BombCountDown(playerid)
  5340. {
  5341.         if (Count[playerid] > 0)
  5342.         {
  5343.                 GameTextForPlayer(playerid, BCountText[Count[playerid]-1], 1000, 5);
  5344.                 Count[playerid]--;
  5345.                 SetTimer("BombCountDown", 1000, 0);
  5346.         }
  5347.         else
  5348.         {
  5349.                 GameTextForPlayer(playerid, "~r~Boom!!", 1500, 5);
  5350.                 Count[playerid] = 5;
  5351.                 BombCar(GetPlayerVehicleID(playerid));
  5352.         }
  5353. }
  5354.  
  5355. public BombCar(vehicleid)
  5356. {
  5357.         new Float:X, Float:Y, Float:Z;
  5358.         SetVehicleHealth(vehicleid, 0.0);
  5359.         GetVehiclePos(vehicleid, X, Y, Z);
  5360.         CreateExplosion(X+2, Y+2, Z+2, 7, 20.0);
  5361.         CreateExplosion(X, Y, Z, 7, 20.0);
  5362.         return 1;
  5363. }
  5364. public BombPickup(playerid)
  5365. {
  5366.     if (PlayerToPoint(4.0, playerid, 2505.5649,-1693.8972,13.5582))
  5367.         {
  5368.         GameTextForPlayer(playerid,"Type ~r~~h~/bomb~n~~w~to install a bomb to~n~your vehicle for ~n~~g~~h~$50 000",10000,5);
  5369.     }
  5370.         return 1;
  5371. }
  5372. public CountDown()
  5373. {
  5374.         if (CountD > 0)
  5375.         {
  5376.                 GameTextForAll(CountText[CountD-1], 1500, 5);
  5377.                 CountD--;
  5378.                 SetTimer("CountDown", 1000, 0);
  5379.         }
  5380.         else
  5381.         {
  5382.                 GameTextForAll("~g~~h~!!! GO GO GO !!!", 1500, 5);
  5383.                 CountD = 5;
  5384.         }
  5385.         return 1;
  5386. }