Guest User

Need help with login & password

a guest
Jul 28th, 2014
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 311.07 KB | None | 0 0
  1. /*
  2. This version of Zombie Apocalypse is re-created and developed by W33D$P33D. Previous versions were created by Kitten and Hossa
  3. You are not allowed to re-release it with out getting my permission/kitten/hossa's.
  4. Feel free to suggest us for new updates at ux-gaming.net/forum
  5.  
  6. Latest Updates:
  7. - Logindialog
  8. - Bug Fixed
  9. - New awesome looking textdraws
  10. - Some bugs fixed
  11. - Maps bug fixed
  12.  
  13. For any Help and Support regarding hosting, scripting, etc contact me at
  14. - Samp Forum or UneXpected Gaming Forums (ux-gaming.net)
  15.  
  16. And expect more for its future version. I will be making it the best :D
  17. */
  18.  
  19.  
  20. native WP_Hash(buffer[], len, const str[]);
  21.  
  22. #include <a_samp>
  23. #include <zcmd>
  24. #include <sscanf2>
  25. #include <foreach>
  26. #include <YSI\y_ini>
  27. #include <KickBan>
  28.  
  29. // Defines
  30. #define function%0(%1) forward%0(%1);public%0(%1)
  31. #define NON_IMMUNE 69,14,261,2,107,11,125,6,299,43,124,12,13,280,230,274,27,25,95,260,149,29,161,76,23,115,287,67,200
  32. #define MAX_MAPTIME 250
  33. #define MAX_RESTART_TIME 10000
  34. #define MAX_MAPUPDATE_TIME 1450
  35. #define MAX_SHOW_CP_TIME 1000
  36. #define MAX_END_TIME 60000
  37. #define MAX_BALANCERUPDATE_TIME 6000
  38. #define MAX_MAP_FILES 19
  39. #define SCM SendClientMessage
  40. #define SCMTA SendClientMessageToAll
  41.  
  42. #define Grey 0xC0C0C0FF // Defining the color 'Grey'
  43. // Reaction Test Script
  44. #define Loop(%0,%1) for(new %0 = 0; %0 != %1; %0++)
  45. #define PURPLE 0xAFAFAFAA // Don't care this is Grey
  46. #define GREEN 0x33CCFFAA // Don't care this is Light Blue
  47. #define TIME 180000 //180000
  48. // Reaction Test Script
  49.  
  50. new String[128], Float:SpecX[MAX_PLAYERS], Float:SpecY[MAX_PLAYERS], Float:SpecZ[MAX_PLAYERS], vWorld[MAX_PLAYERS], Inter[MAX_PLAYERS];
  51. new IsSpecing[MAX_PLAYERS], Name[MAX_PLAYER_NAME], IsBeingSpeced[MAX_PLAYERS],spectatorid[MAX_PLAYERS];
  52.  
  53. #define PRESSED(%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
  54.  
  55. #define PATH "/ZMA/Users/%s.ini"
  56. #define NAME ".:|| ZOMBIE APOCALYPSE ||:. New $ick$tuff!"
  57. #define SCRIPT "v0.3z"
  58. #define SCRIPTER "Modded by [$A$]W33D$P33D"
  59. #define SITE "www.sickactionstunters.webs.com"
  60. #define FACEBOOK "[$A$]$ickAction$erver"
  61. #define chat "{FFFFFF}ยป"
  62. #define PLAYER_MUTE_TIME_MINUTES (2)
  63.  
  64. #define DIALOG_REGISTER 0
  65. #define DIALOG_LOGIN 1
  66. #define DIALOG_RADIO 2
  67. #define DIALOG_KICK 3
  68. #define DIALOG_TOP 4
  69. #define DIALOG_WARN 5
  70. #define DIALOG_BANNED 6
  71. #define DIALOG_CMDS 7
  72. #define DIALOG_HELP 8
  73. #define DIALOG_HOWTOXP 9
  74. #define DIALOG_ACMDS 10
  75. #define DIALOG_RULES 11
  76. #define DIALOG_CLASS 12
  77. #define DIALOG_CLASS2 13
  78. #define DIALOG_CLASS_2 14
  79. #define DIALOG_CLASS_2_2 15
  80. #define DIALOG_CLASS_3 16
  81. #define DIALOG_CLASS_3_3 17
  82. #define DIALOG_ADMINS 18
  83. #define DIALOG_VIPS 19
  84. #define DIALOG_REPORT 20
  85. #define DIALOG_REPORT_2 21
  86. #define DIALOG_SHOUT 22
  87. #define DIALOG_VIPINFO 23
  88. #define DIALOG_VIP 24
  89. #define DIALOG_VIP_CLASS 25
  90. #define DIALOG_COINS 26
  91. #define DIALOG_BUY_WEAPONS 27
  92. #define DIALOG_BUY_CLASSES 28
  93. #define DIALOG_XP 30
  94. #define DIALOG_RADIO_1 31
  95.  
  96. #define TEAM_ZOMBIE 0
  97. #define TEAM_HUMAN 1
  98.  
  99. #define ENDCHAT_01 0
  100.  
  101. #define COLOR_HUMAN 0x33CCFFAA
  102. #define COLOR_ZOMBIE 0x9ACD3244
  103. #define COLOR_ADUTY 0xFF0000AA
  104.  
  105. #define COLOR_GREY 0xAFAFAFAA
  106. #define ROSA 0xFF66FFAA
  107. #define BLU_CHIARO 0x00BFFFAA
  108. #define COLOR_GREY 0xAFAFAFAA
  109. #define COLOR_GREEN 0x33AA33AA
  110. #define COLOR_RED 0xFF0000AA
  111. #define COLOR_YELLOW 0xFFFF00AA
  112. #define COLOR_WHITE 0xFFFFFFAA
  113. #define COLOR_BLUE 0x0000BBAA
  114. #define COLOR_LIGHTBLUE 0x33CCFFAA
  115. #define COLOR_ORANGE 0xFF9900AA
  116. #define COLOR_LIME 0x10F441AA
  117. #define COLOR_MAGENTA 0xFF00FFFF
  118. #define COLOR_NAVY 0x000080AA
  119. #define COLOR_AQUA 0xFF000000
  120. #define COLOR_CRIMSON 0xDC143CAA
  121. #define COLOR_FLBLUE 0x6495EDAA
  122. #define COLOR_BISQUE 0xFFE4C4AA
  123. #define COLOR_BLACK 0x000000AA
  124. #define COLOR_CHARTREUSE 0x7FFF00AA
  125. #define COLOR_BROWN 0xA52A2AAA
  126. #define COLOR_CORAL 0xFF7F50AA
  127. #define COLOR_GOLD 0xB8860BAA
  128. #define COLOR_GREENYELLOW 0xADFF2FAA
  129. #define COLOR_INDIGO 0x4B00B0AA
  130. #define COLOR_IVORY 0xFFFF82AA
  131. #define COLOR_LAWNGREEN 0x7CFC00AA
  132. #define COLOR_SEAGREEN 0x20B2AAAA
  133. #define COLOR_LIMEGREEN 0x32CD32AA //<--- Dark lime
  134. #define COLOR_MIDNIGHTBLUE 0X191970AA
  135. #define COLOR_MAROON 0x800000AA
  136. #define COLOR_OLIVE 0x808000AA
  137. #define COLOR_ORANGERED 0xFF4500AA
  138. #define COLOR_PINK 0xFFC0CBAA // - Light light pink
  139. #define COLOR_SPRINGGREEN 0x00FF7FAA
  140. #define COLOR_TOMATO 0xFF6347AA // - Tomato >:/ sounds wrong lol... well... :P
  141. #define COLOR_YELLOWGREEN 0x9ACD32AA //- like military green
  142. #define COLOR_MEDIUMAQUA 0x83BFBFAA
  143. #define COLOR_MEDIUMMAGENTA 0x8B008BAA // dark magenta ^^
  144.  
  145. // Human Classes (New Classes were ADDED)
  146. #define CIVILIAN 1501
  147. #define POLICEMAN 1502
  148. #define MEDIC 1503
  149. #define SCOUT 1504
  150. #define HEAVYMEDIC 1505
  151. #define FARMER 1506
  152. #define ENGINEER 1507
  153. #define SWAT 1508
  154. #define HEAVYSHOTGUN 1509
  155. #define ADVANCEDMEDIC 1510
  156. #define ADVANCEDENGINEER 1511
  157. #define FEDERALAGENT 1512
  158. #define KICKBACK 1513
  159. #define ADVANCEDSCOUT 1514
  160. #define COWBOY 1515
  161. #define ASSASSIN 1516
  162. #define TRAPMASTER 1517
  163. #define VIPENGINEER 1518
  164. #define VIPMEDIC 1519
  165. #define VIPSCOUT 1520
  166. #define E_ENGINEER 1521
  167. #define SOLDIER 1522
  168. #define DOCTOR 1523
  169. #define FBI 1524
  170. #define SCIENTIST 1525
  171. #define EXPERIENCEDSCOUT 1526
  172. #define PIMP 1527
  173. #define WEAPONSDEALER 1528
  174. #define SMOKEUP 1529
  175. #define SHOTGUNSPECIAL 1530
  176. #define BOXER 1231
  177. #define BOMBER 1232
  178. #define MASTER 1233
  179. #define GHOST 1234
  180. #define BUDDY 1235
  181. #define AKICK 1236
  182. #define TECG 1237
  183. #define BULL 1238
  184. #define HITMAN 1239
  185.  
  186.  
  187. // Zombie Classes (New classes)
  188. #define STANDARDZOMBIE 2501
  189. #define MUTATEDZOMBIE 2502
  190. #define FASTZOMBIE 2503
  191. #define REAPERZOMBIE 2504
  192. #define WITCHZOMBIE 2505
  193. #define BOOMERZOMBIE 2506
  194. #define STOMPERZOMBIE 2507
  195. #define SCREAMERZOMBIE 2508
  196. #define FIREBREATHER 2509
  197. #define ADVANCEDMUTATED 2510
  198. #define HEAVYSCREAMER 2511
  199. #define FLESHEATER 2512
  200. #define ADVANCEDWITCH 2513
  201. #define ADVANCEDBOOMER 2514
  202. #define NEMESIS 2515
  203. #define ADVSTOMPER 2516
  204. #define ADVSCREAMER 2517
  205. #define HZOMBIE 2518
  206. #define SLENDER 2519
  207. #define KZOM 2520
  208. #define GZOM 2521
  209. #define DSNIPE 2522
  210.  
  211. #define COL_WHITE "{FFFFFF}"
  212. #define COL_GREY "{C3C3C3}"
  213. #define COL_GREEN "{37DB45}"
  214. #define COL_RED "{FF3333}"
  215. #define COL_YELLOW "{F3FF02}"
  216. #define COL_ORANGE "{F9B857}"
  217. #define COL_BLUE "{0049FF}"
  218. #define COL_PINK "{FF00EA}"
  219. #define COL_LIGHTBLUE "{00C0FF}"
  220. #define COL_LGREEN "{C9FFAB}"
  221.  
  222.  
  223. forward NoSpawnKill(playerid);
  224.  
  225. // Variables
  226.  
  227. new time;
  228. new mapvar;
  229. new balvar;
  230. new mapid;
  231. new gateobj;
  232. new playerOnline;
  233. new playersAliveCount;
  234. new DocShield;
  235. new Trap;
  236. new meatDrops[MAX_PLAYERS];
  237. new ammoDrops[MAX_PLAYERS];
  238. new LastMapStarted = -1;
  239.  
  240.  
  241. new playedtimer[MAX_PLAYERS];
  242. new team[MAX_PLAYERS];
  243. new c4Obj[MAX_PLAYERS];
  244. new smokemachine[MAX_PLAYERS];
  245. new PlayerShotPlayer[MAX_PLAYERS][MAX_PLAYERS];
  246.  
  247. new Text:EventText;
  248. new Text:CurrentMap;
  249. new Text:remadeText;
  250. new Text:remadeText2;
  251. new Text:AliveInfo;
  252. new Text:AliveInfo2;
  253. new Text:ChatMsg;
  254. new Text:TimeLeft;
  255. new Text:XP;
  256. new Text:Infected[MAX_PLAYERS];
  257. new Text:iKilled[MAX_PLAYERS];
  258. new Text:myXP[MAX_PLAYERS];
  259. new Text:ServerIntroOne[MAX_PLAYERS];
  260. new Text:ServerIntroTwo[MAX_PLAYERS];
  261. new shoutstring[256];
  262. new Text:Textdraw0;
  263. new Text:Textdraw1;
  264. new Text:Textdraw2;
  265. new Text:Textdraw4;
  266. new Text:Textdraw5;
  267. new Text:Textdraw7;
  268. new Text:Textdraw8;
  269. new Text:Textdraw9;
  270.  
  271. enum mapinfo
  272. {
  273. MapName[128],
  274. FSMapName[128],
  275. Float:HumanSpawnX,
  276. Float:HumanSpawnY,
  277. Float:HumanSpawnZ,
  278. Float:HumanSpawn2X,
  279. Float:HumanSpawn2Y,
  280. Float:HumanSpawn2Z,
  281. Float:ZombieSpawnX,
  282. Float:ZombieSpawnY,
  283. Float:ZombieSpawnZ,
  284. Float:GateX,
  285. Float:GateY,
  286. Float:GateZ,
  287. Float:GaterX,
  288. Float:GaterY,
  289. Float:GaterZ,
  290. Float:CPx,
  291. Float:CPy,
  292. Float:CPz,
  293. GateID,
  294. MoveGate,
  295. AllowWater,
  296. Interior,
  297. Weather,
  298. Time,
  299. EvacType,
  300. IsStarted,
  301. XPType,
  302. };
  303. new Map[mapinfo];
  304.  
  305. enum playerinfo
  306. {
  307. pPassword[129],
  308. pXP,
  309. ReadCmds,
  310. pKills,
  311. pDeaths,
  312. pRank,
  313. pEvac,
  314. pAdminLevel,
  315. pAdminDuty,
  316. pBanned,
  317. gLeader,
  318. gMember,
  319. pVipLevel,
  320. pHour,
  321. pMin,
  322. pSec,
  323. pMapsPlayed,
  324. pCoins,
  325. pLogged,
  326. pWarnings,
  327. FirstPS,
  328. pPM,
  329. IsPlayerMuted,
  330. Killstreak,
  331. pHumanClass,
  332. pZombieClass,
  333. IsPlayerInfected,
  334. IsPlayerInfectedTimer,
  335. Boxes,
  336. BoxesAdvanced,
  337. SkinChanges,
  338. ArmourChanges,
  339. C4,
  340. traps,
  341. pVipKickBack,
  342. pVipFlash,
  343. pVipBoxes,
  344. pLadders,
  345. pFakeKills,
  346. pAmmoBoxes,
  347. pKickBackCoin,
  348. pDamageShotgunCoin,
  349. pDamageDeagleCoin,
  350. pDamageMP5Coin,
  351. pDoctorShield,
  352. pRenamed,
  353. pTrapMasterTrap,
  354. pScientistCure,
  355. Frozen
  356. };
  357. new pInfo[MAX_PLAYERS][playerinfo];
  358.  
  359. enum aname
  360. {
  361. HighJumpScout,
  362. HighJumpZombie,
  363. StomperPushing,
  364. WitchAttack,
  365. ScreamerZombieAb,
  366. ScreamerZombieAb2,
  367. InfectionNormal,
  368. InfectionMutated,
  369. ShoutCooldown,
  370. HealCoolDown,
  371. FireBreatherCooldown,
  372. NemesisCooldown,
  373. AdvancedMutatedCooldown,
  374. WitchAttack2,
  375. InfectionFleshEater
  376. }
  377. new Abilitys[MAX_PLAYERS][aname];
  378.  
  379. new randomMessages[][] =
  380. {
  381. ""chat""COL_BLUE" [Info] "COL_WHITE"Earn XP by killing the enemy team or using your ability and donating for double XP!",
  382. ""chat""COL_BLUE" [Help] "COL_WHITE"Are you lost are you new? try out the command '/help' and /vinfo",
  383. ""chat""COL_BLUE" [Help] "COL_WHITE"Got bugged? Cant move a single cm? try out /rbug",
  384. //""chat""COL_BLUE" [Wass up] "COL_WHITE"Good news We are offering free vip level 1 now!! For more info type /vhelp and /vinfo",
  385. ""chat""COL_RED" [Note] "COL_WHITE"Remember to report hackers and rule breakers with /report <id> <reason>",
  386. ""chat""COL_BLUE" [Help] "COL_WHITE"Remember to read the rules to prevent you from getting banned /rules",
  387. ""chat""COL_BLUE" [Info] "COL_WHITE"Remember to use /ss command to save your stats to avoid losing XP",
  388. ""chat""COL_BLUE" [Help] "COL_WHITE"Got bugged? Cant move a single cm? try out /rbug",
  389. //""chat""COL_BLUE" [Wass up] "COL_WHITE"Good news We are offering free vip level 1 now!! For more info type /vhelp and /vinfo",
  390. ""chat""COL_BLUE" [Help] "COL_WHITE"Having problem with objects ? Try out /robj to remove them (only for humans)",
  391. ""chat""COL_RED" [Note] "COL_WHITE"Find us on FACEBOOK https://www.facebook.com/[$A$]$ickAction$erver/!",
  392. ""chat""COL_RED" [Note] "COL_WHITE"Report hackers and rule breakers with /report <id> <reason> , DO NOT SAY IT IN MAIN CHAT",
  393. //""chat""COL_BLUE" [Wass up] "COL_WHITE"Good news We are offering free vip level 1 now!! For more info type /vhelp",
  394. ""chat""COL_LGREEN" [Updates] "COL_WHITE"Wanna know whats new? Why not? Try out /updates",
  395. ""chat""COL_BLUE" [Info] "COL_WHITE"Always respect other players if you want to be hero in front of them",
  396. ""chat""COL_BLUE" [Help] "COL_WHITE"Need help? Try out /help",
  397. ""chat""COL_BLUE" [Help] "COL_WHITE"Having problem with objects ? Try out /robj to remove them (only for humans)",
  398. //""chat""COL_BLUE" [Wass up] "COL_WHITE"Good news We are offering free vip level 1 now!! For more info type /vhelp and /vinfo",
  399. ""chat""COL_ORANGE" [Help Us] "COL_WHITE"If you find a bug please report it on our forum "COL_ORANGE" www.sickactionstunters.webs.com ",
  400. ""chat""COL_LGREEN" [BUY] "COL_WHITE"You can buy weapons, classes, objects,etc "COL_WHITE" ' /buy ' command",
  401. ""chat""COL_BLUE" [Help] "COL_WHITE"Got bugged? Cant move a single cm? try out /rbug",
  402. ""chat""COL_YELLOW" [Whats New] "COL_WHITE"We did an aditional class menu "COL_WHITE" ' /class2 ' "COL_WHITE" make sure you check it out!",
  403. ""chat""COL_BLUE" [Help] "COL_WHITE"Having problem with objects ? Try out /robj to remove them (only for humans)",
  404. //""chat""COL_BLUE" [Whats up] "COL_WHITE"Good news We are offering free vip level 1 now!! For more info type /vhelp",
  405. ""chat""COL_RED" [Note] "COL_WHITE"Do NOT spawn kill zombies, else you will be punished and even banned if you keep doing it!",
  406. ""chat""COL_BLUE" [Info] "COL_WHITE"Earn xp and unlock new classes. Try out /class2!!",
  407. ""chat""COL_BLUE" [Help] "COL_WHITE"Got bugged? Cant move a single cm? try out /rbug",
  408. ""chat""COL_ORANGE" [Help Us] "COL_WHITE"We are looking for scripters and mappers! Please Apply in our forum: www.sickactionstunters.webs.com ",
  409. ""chat""COL_BLUE" [Help] "COL_WHITE"Need help? try out /help or ask any online admin",
  410. //""chat""COL_BLUE" [Wass up] "COL_WHITE"Good news We are offering free vip level 1 now!! For more info type /vhelp and /vinfo",
  411. ""chat""COL_YELLOW" [Note] "COL_WHITE"Remember to use /ss command to save your stats to avoid losing XP"
  412. };
  413.  
  414. forward load_Map_basic(Mapid, name[], value[]);
  415. forward LoadUser_data(playerid,name[],value[]);
  416. forward TimeOnServer(playerid);
  417. forward Float:GetDistanceBetweenPlayers(p1,p2);
  418. forward GetClosestPlayer(p1);
  419. forward RandomZombie();
  420.  
  421. main()
  422. {
  423. print("\n----------------------------------");
  424. print(""NAME" Loaded with version of "SCRIPT"");
  425. print("----------------------------------\n");
  426. }
  427.  
  428. function StartMap()
  429. {
  430. ClearChat();
  431. foreach(Player,i)
  432. {
  433. SetCameraBehindPlayer(i);
  434. ClearAnimations(i);
  435. HumanSetup(i);
  436. SpawnPlayer(i);
  437. CurePlayer(i);
  438. SetPlayerDrunkLevel(i,0);
  439. DisablePlayerCheckpoint(i);
  440. pInfo[i][Boxes] = 2;
  441. pInfo[i][BoxesAdvanced] = 10;
  442. pInfo[i][SkinChanges] = 2;
  443. pInfo[i][ArmourChanges] = 2;
  444. pInfo[i][pVipBoxes] = 35;
  445. pInfo[i][pLadders] = 2;
  446. pInfo[i][pFakeKills] = 0;
  447. pInfo[i][pAmmoBoxes] = 10;
  448. pInfo[i][C4] = 4;
  449. pInfo[i][pTrapMasterTrap] = 1;
  450. pInfo[i][pScientistCure] = 1;
  451. pInfo[i][pDoctorShield] = 1;
  452. pInfo[i][pMapsPlayed]++;
  453. TextDrawHideForPlayer(i, ServerIntroOne[i]);
  454. TextDrawHideForPlayer(i, ServerIntroTwo[i]);
  455. DestroyPickup(meatDrops[i]);
  456. DestroyPickup(ammoDrops[i]);
  457. DestroyObject(DocShield);
  458. DestroyObject(Trap);
  459. TogglePlayerControllable(i,1);
  460. }
  461.  
  462. time = MAX_MAPTIME;
  463.  
  464. SetWeather(Map[Weather]);
  465. SetWorldTime(Map[Time]);
  466. UpdateMapName();
  467. SendClientMessageToAll(-1,""chat""COL_LGREEN" [Clear]"COL_WHITE" Chat Cleared "COL_YELLOW"[Reason: Next Map]");
  468. SendClientMessageToAll(-1,""chat""COL_RED" [Info]"COL_WHITE" These maps are created by 07 Mappers");
  469.  
  470. SetTimer("RandomZombie",1000,false);
  471. gateobj = CreateObject(Map[GateID],Map[GateX],Map[GateY],Map[GateZ],Map[GaterX],Map[GaterY],Map[GaterZ],500.0);
  472. mapvar = SetTimer("OnMapUpdate",MAX_MAPUPDATE_TIME,true);
  473. balvar = SetTimer("OnMapBalance",MAX_BALANCERUPDATE_TIME,true);
  474. return 1;
  475. }
  476.  
  477. function EndMap()
  478. {
  479. ClearObjects();
  480. DestroyAllVehicle();
  481. UnloadFilterScript(Map[FSMapName]);
  482. LoadMap(LoadNewMap());
  483. LoadFilterScript(Map[FSMapName]);
  484.  
  485. SetTimer("StartMap",MAX_RESTART_TIME,false);
  486. GameTextForAll("~n~~n~~n~~n~~n~~g~Loading~w~ next map",3500,5);
  487.  
  488. foreach(Player,i)
  489. {
  490. ChangeCameraView(i);
  491. TogglePlayerControllable(i,0);
  492. TextDrawShowForPlayer(i, ServerIntroOne[i]);
  493. TextDrawShowForPlayer(i, ServerIntroTwo[i]);
  494.  
  495. if(pInfo[i][pAdminDuty] == 1)
  496. {
  497. pInfo[i][pAdminDuty] = 0;
  498. }
  499. }
  500. SendClientMessageToAll(-1,""chat""COL_YELLOW" Creating Map Objects. Plz wait...");
  501. return 1;
  502. }
  503.  
  504. function OnMapUpdate()
  505. {
  506. time -= 1;
  507.  
  508. new str[64];
  509. format(str,sizeof(str),"~r~%d",time);
  510. TextDrawSetString(TimeLeft,str);
  511.  
  512. if(time <= 0) TextDrawSetString(TimeLeft,"~y~Evac"),KillTimer(mapvar),KillTimer(balvar),SetTimer("ShowCheckpoint",MAX_SHOW_CP_TIME,false);
  513. return 1;
  514. }
  515.  
  516. function ShowCheckpoint()
  517. {
  518. CreateEvacMaps();
  519. MoveObject(gateobj,Map[GateX],Map[GateY],Map[MoveGate],3.0);
  520. foreach(Player,i) SetPlayerCheckpoint(i,Map[CPx],Map[CPy],Map[CPz],6.0);
  521. SetTimer("EndMap",MAX_END_TIME,false);
  522. return 1;
  523. }
  524.  
  525. function OnMapBalance()
  526. {
  527. if(playerOnline >= 2)
  528. {
  529. if(GetTeamPlayersAlive(TEAM_HUMAN) == 0)
  530. {
  531. KillTimer(balvar);
  532. KillTimer(mapvar);
  533. TextDrawSetString(TimeLeft,"~r~Zombies Rocked!!!");
  534. SetTimer("EndMap",4000,false); // Cannot use MAX_END_TIME Because of MAX_END_TIME is set to 1 minute not 4 seconds *NOTE TO ME*
  535. foreach(Player,i)
  536. {
  537. if(team[i] == TEAM_ZOMBIE)
  538. {
  539. pInfo[i][pXP] += 30;
  540. GivePlayerXP(i,30);
  541. }
  542. }
  543. }
  544. }
  545. return 1;
  546. }
  547.  
  548. public OnPlayerEnterCheckpoint(playerid)
  549. {
  550. if(team[playerid] == TEAM_HUMAN)
  551. {
  552. new string[256];
  553. if(Map[EvacType] == 1)
  554. {
  555. SetPlayerInterior(playerid,0);
  556. SetPlayerPos(playerid,-1408.2051,-970.8841,198.9738);
  557. format(string,sizeof(string), ""chat""COL_LIGHTBLUE" %s made it to evacuation point and has received 1 coin!",PlayerName(playerid));
  558. SendClientMessageToAll(-1,string);
  559. DisablePlayerCheckpoint(playerid);
  560. CurePlayer(playerid);
  561. GivePlayerXP(playerid,50);
  562. pInfo[playerid][pEvac]++;
  563. pInfo[playerid][pCoins]++;
  564. SetPlayerColor(playerid,COLOR_YELLOW);
  565. }
  566.  
  567. if(Map[EvacType] == 2)
  568. {
  569. SetPlayerPos(playerid,3024.4983,447.9744,14.7813);
  570. SetPlayerInterior(playerid,0);
  571. format(string,sizeof(string), ""chat""COL_LIGHTBLUE" %s made it to the water evacuation point and has received 1 coin!",PlayerName(playerid));
  572. SendClientMessageToAll(-1,string);
  573. DisablePlayerCheckpoint(playerid);
  574. CurePlayer(playerid);
  575. GivePlayerXP(playerid,50);
  576. pInfo[playerid][pEvac]++;
  577. pInfo[playerid][pCoins]++;
  578. SetPlayerColor(playerid,COLOR_YELLOW);
  579. }
  580.  
  581. if(Map[EvacType] == 3)
  582. {
  583. SetPlayerPos(playerid,285.5,2510.30004882817,121.5);
  584. SetPlayerInterior(playerid,0);
  585. format(string,sizeof(string), ""chat""COL_LIGHTBLUE" %s made it to the helicopter evacuation point and has received 1 coin!",PlayerName(playerid));
  586. SendClientMessageToAll(-1,string);
  587. DisablePlayerCheckpoint(playerid);
  588. CurePlayer(playerid);
  589. GivePlayerXP(playerid,50);
  590. pInfo[playerid][pEvac]++;
  591. pInfo[playerid][pCoins]++;
  592. SetPlayerColor(playerid,COLOR_YELLOW);
  593. }
  594.  
  595. if(Map[EvacType] == 4)
  596. {
  597. SetPlayerPos(playerid,1456.3000488281,-1126,427.10000610352);///By Fahad
  598. SetPlayerInterior(playerid,0);
  599. format(string,sizeof(string), ""chat""COL_LIGHTBLUE" %s made it to the Parachute evacuation point and has received 1 coin!",PlayerName(playerid));
  600. SendClientMessageToAll(-1,string);
  601. DisablePlayerCheckpoint(playerid);
  602. CurePlayer(playerid);
  603. GivePlayerXP(playerid,50);
  604. pInfo[playerid][pEvac]++;
  605. pInfo[playerid][pCoins]++;
  606. GivePlayerWeapon(playerid,46,1);
  607. SetPlayerColor(playerid,COLOR_YELLOW);
  608.  
  609. }
  610. }
  611. return 1;
  612. }
  613.  
  614. public OnPlayerPickUpPickup(playerid, pickupid)
  615. {
  616. new string[256];
  617. DestroyPickup(meatDrops[playerid]);
  618. if(team[playerid] == TEAM_ZOMBIE)
  619. {
  620. if(pInfo[playerid][pZombieClass] == BOOMERZOMBIE) { SetPlayerHealth(playerid,50); }
  621. else { SetPlayerHealth(playerid,100.0); }
  622. }
  623.  
  624. if(team[playerid] == TEAM_HUMAN)
  625. {
  626. if(pInfo[playerid][pHumanClass] == ENGINEER || pInfo[playerid][pHumanClass] == ADVANCEDENGINEER || pInfo[playerid][pHumanClass] == VIPENGINEER || pInfo[playerid][pHumanClass] == E_ENGINEER || pInfo[playerid][pHumanClass] == TRAPMASTER || pInfo[playerid][pHumanClass] == BOMBER)
  627. {
  628. switch(pInfo[playerid][pHumanClass])
  629. {
  630. case ENGINEER: pInfo[playerid][Boxes]++,GameTextForPlayer(playerid,"~g~Found~w~: 1 Box",4000,5),DestroyPickup(meatDrops[playerid]);
  631. case ADVANCEDENGINEER: pInfo[playerid][BoxesAdvanced] += 2,GameTextForPlayer(playerid,"~g~Found~w~: 2 Boxes",4000,5),DestroyPickup(meatDrops[playerid]);
  632. case VIPENGINEER: pInfo[playerid][pVipBoxes] += 3,GameTextForPlayer(playerid,"~g~Found~w~: 3 Boxes",4000,5),DestroyPickup(meatDrops[playerid]);
  633. case E_ENGINEER: pInfo[playerid][pLadders] += 1,GameTextForPlayer(playerid,"~g~Found~w~: 1 Ladders",4000,5),DestroyPickup(meatDrops[playerid]);
  634. case TRAPMASTER: pInfo[playerid][pTrapMasterTrap] += 1,GameTextForPlayer(playerid,"~g~Found~w~: 1 trap",4000,5),DestroyPickup(meatDrops[playerid]);
  635. case BOMBER: pInfo[playerid][pXP] += 10,GameTextForPlayer(playerid,"~g~Found~w~: 10 xp",4000,5),DestroyPickup(meatDrops[playerid]);
  636. }
  637. }
  638. else
  639. {
  640. if(pInfo[playerid][IsPlayerInfected] == 0)
  641. {
  642. new slot, weap, ammo;
  643. for ( slot = 0; slot < 14; slot++ )
  644. {
  645. GetPlayerWeaponData(playerid,slot,weap,ammo);
  646. if(IsValidWeapon(weap))
  647. {
  648. new randomselect = random(2);
  649. switch(randomselect)
  650. {
  651. case 0:
  652. {
  653. new randomammo = random(50);
  654. GivePlayerWeapon(playerid,weap,randomammo);
  655. format(string,sizeof(string),"~g~Found~w~: %d ammo",randomammo);
  656. GameTextForPlayer(playerid,string,4000,5);
  657. DestroyPickup(meatDrops[playerid]);
  658. }
  659. case 1:
  660. {
  661. new randomxp = random(35);
  662. format(string,sizeof(string),"~g~Found~w~: %d XP",randomxp);
  663. GameTextForPlayer(playerid,string,4000,5);
  664. pInfo[playerid][pXP] += randomxp;
  665. DestroyPickup(meatDrops[playerid]);
  666. }
  667. }
  668. }
  669. }
  670. }
  671. }
  672. }
  673.  
  674. return 1;
  675. }
  676.  
  677. public OnGameModeInit()
  678. {
  679. UsePlayerPedAnims();
  680. SetGameModeText("Zombie $urvival "SCRIPT"");
  681. SendRconCommand("weburl "SITE"");
  682. SetTimer("PayDay", 1200000, true);
  683.  
  684. AddPlayerClass(181, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  685. AllowInteriorWeapons(1);
  686. DisableInteriorEnterExits();
  687. SetTimer("RandomMessages",50000,true);
  688. SetTimer("OnServerUpdate", 1000, true);
  689.  
  690. SetTeamCount(2);
  691.  
  692. Map[IsStarted] = 0;
  693. Map[XPType] = 0;
  694. mapid = 0;
  695. SetWorldTime(0);
  696. SetWeather(12);
  697. DefaultTextdraws();
  698.  
  699. SetTimer("HG",1000,1);
  700. return 1;
  701. }
  702.  
  703. function OnServerUpdate()
  704. {
  705. foreach(Player, i)
  706. {
  707. if(GetPlayerMoney(i) >= 1) return ResetPlayerMoney(i);
  708. SetPlayerScore(i,pInfo[i][pXP]);
  709. UpdateXPTextdraw(i);
  710.  
  711. if(GetPlayerSpecialAction(i) == SPECIAL_ACTION_USEJETPACK)
  712. {
  713. new Admin[24] = "Anti-cheat";
  714. new reason3[128] = "Jetpack";
  715. BanPlayer(i,reason3,Admin);
  716. }
  717.  
  718. new Float:armor;
  719. GetPlayerArmour(i,armor);
  720. if(armor >= 96)
  721. {
  722. new Admin[24] = "Anti-cheat";
  723. new reason3[128] = "Armour Hack (Exceeded over 96f)";
  724. BanPlayer(i,reason3,Admin);
  725. }
  726.  
  727. if(team[i] == TEAM_ZOMBIE)
  728. {
  729. switch(GetPlayerWeapon(i))
  730. {
  731. case 2,3,4,5,6,7,8,10,11,12,13,14,15,16,17,18,22,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,41,42,43,44,45,46:
  732. {
  733. ResetPlayerWeapons(i);
  734. GivePlayerWeapon(i,9,1);
  735. }
  736. }
  737. }
  738.  
  739. if(team[i] == TEAM_ZOMBIE)
  740. {
  741. if(armor > 0.0)
  742. {
  743. SetPlayerArmour(i,0.0);
  744. }
  745. }
  746.  
  747. if(IsPlayerInAnyVehicle(i))
  748. {
  749. if(pInfo[i][pAdminLevel] == 0)
  750. {
  751. Kick(i);
  752. }
  753. }
  754.  
  755. if(pInfo[i][pVipFlash] == 1)
  756. {
  757. switch(random(5))
  758. {
  759. case 0: SetPlayerColor(i,COLOR_BLUE);
  760. case 1: SetPlayerColor(i,COLOR_YELLOW);
  761. case 2: SetPlayerColor(i,COLOR_RED);
  762. case 3: SetPlayerColor(i,COLOR_PINK);
  763. case 4: SetPlayerColor(i,COLOR_ORANGE);
  764. }
  765. }
  766. DoctorShield();
  767. TrapMasterTrap();
  768. UpdateAliveInfo();
  769. UpdateAliveInfo2();
  770. }
  771. return 1;
  772. }
  773.  
  774. public OnGameModeExit()
  775. {
  776. TextDrawHideForAll(TimeLeft);
  777. TextDrawDestroy(TimeLeft);
  778. TextDrawDestroy(Textdraw0);
  779. TextDrawHideForAll(Textdraw0);
  780. TextDrawDestroy(Textdraw4);
  781. TextDrawHideForAll(Textdraw4);
  782. TextDrawDestroy(Textdraw5);
  783. TextDrawHideForAll(Textdraw5);
  784. TextDrawDestroy(Textdraw7);
  785. TextDrawHideForAll(Textdraw7);
  786. TextDrawDestroy(Textdraw8);
  787. TextDrawHideForAll(Textdraw8);
  788. TextDrawDestroy(Textdraw9);
  789. TextDrawHideForAll(Textdraw9);
  790. TextDrawDestroy(Textdraw1);
  791. TextDrawDestroy(Textdraw2);
  792. TextDrawHideForAll(Textdraw2);
  793. TextDrawHideForAll(Textdraw1);
  794. TextDrawHideForAll(AliveInfo);
  795. TextDrawDestroy(AliveInfo);
  796. TextDrawHideForAll(AliveInfo2);
  797. TextDrawDestroy(AliveInfo2);
  798. TextDrawHideForAll(remadeText);
  799. TextDrawDestroy(remadeText);
  800. TextDrawHideForAll(remadeText2);
  801. TextDrawDestroy(remadeText2);
  802. TextDrawHideForAll(CurrentMap);
  803. TextDrawHideForAll(ChatMsg);
  804. TextDrawDestroy(CurrentMap);
  805. TextDrawHideForAll(XP);
  806. TextDrawDestroy(XP);
  807. TextDrawHideForAll(EventText);
  808. TextDrawDestroy(EventText);
  809.  
  810. for(new i; i < MAX_PLAYERS; i ++)
  811. {
  812. TextDrawHideForAll(Infected[i]);
  813. TextDrawHideForAll(iKilled[i]);
  814. TextDrawDestroy(iKilled[i]);
  815. TextDrawHideForAll(myXP[i]);
  816. TextDrawDestroy(myXP[i]);
  817. TextDrawHideForAll(ServerIntroOne[i]);
  818. TextDrawDestroy(ServerIntroOne[i]);
  819. TextDrawHideForAll(ServerIntroTwo[i]);
  820. TextDrawDestroy(ServerIntroTwo[i]);
  821. }
  822. return 1;
  823. }
  824.  
  825. public OnPlayerRequestClass(playerid, classid)
  826. {
  827. SetPlayerPos(playerid, 661.6200,-820.1381,86.5092);
  828. SetPlayerFacingAngle(playerid, 227.2857);
  829. SetPlayerCameraLookAt(playerid, 661.6200,-820.1381,86.5092);
  830. SetPlayerCameraPos(playerid, 673.1569,-826.9614,80.5580);
  831. CreateObject(2780,658.29999,-814.70001,85.6,0.0,0.0,0.0);
  832. RemoveBuildingForPlayer(playerid, 705, 658.20313, -818.14062, 85.13281, 0.0);
  833. SetPlayerWeather(playerid, 7);
  834. SetPlayerTime(playerid, 0, 0);
  835. if(classid == 0)
  836. {
  837. SetPlayerTeam(playerid,TEAM_ZOMBIE);
  838. team[playerid] = TEAM_ZOMBIE;
  839. }
  840. return 1;
  841. }
  842.  
  843. public OnPlayerConnect(playerid)
  844. {
  845. playerOnline++;
  846. ResetVars(playerid);
  847. ConnectVars(playerid);
  848. new string[128];
  849. if(fexist(UserPath(playerid)))
  850. {
  851. INI_ParseFile(UserPath(playerid), "LoadUser_data", .bExtra = true, .extra = playerid);
  852. format(string,sizeof(string),""chat" Welcome back %s",PlayerName(playerid));
  853. ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,string,""chat" Our system have detected your username registered please login","Login","Quit");
  854. }
  855. else
  856. {
  857. format(string,sizeof(string),""chat" Hello %s",PlayerName(playerid));
  858. ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,string,""chat" Welcome to "NAME" you'll be forced to register please click register!","Register","Quit");
  859. }
  860. return 1;
  861. }
  862.  
  863. public OnPlayerDisconnect(playerid, reason)
  864. {
  865. new constring[128];
  866. format(constring, sizeof(constring), ""chat""COL_ORANGE"[Left] "COL_WHITE"%s has left the server :(", PlayerName(playerid));
  867. SendClientMessageToAll(-1,constring);
  868.  
  869. if(pInfo[playerid][pLogged] == 1) { SaveStats(playerid); } else return 0;
  870. ResetVars(playerid);
  871. playersAliveCount--;
  872. playerOnline--;
  873. if(playerOnline == 0) return SendRconCommand("mapname > Loading <"),KillTimer(mapvar),KillTimer(balvar),Map[IsStarted] = 0;
  874. return 1;
  875. }
  876.  
  877.  
  878.  
  879. public OnPlayerSpawn(playerid)
  880. {
  881. playersAliveCount++;
  882. CheckToStartMap();
  883. SetPlayerInterior(playerid,Map[Interior]);
  884.  
  885. if(team[playerid] == TEAM_ZOMBIE)
  886. {
  887. ZombieSetup(playerid);
  888. SetPlayerPos(playerid,Map[ZombieSpawnX],Map[ZombieSpawnY],Map[ZombieSpawnZ]);
  889. }
  890.  
  891. if(team[playerid] == TEAM_HUMAN)
  892. {
  893. HumanSetup(playerid);
  894. switch(random(2))
  895. {
  896. case 0: SetPlayerPos(playerid,Map[HumanSpawnX],Map[HumanSpawnY],Map[HumanSpawnZ]);
  897. case 1: SetPlayerPos(playerid,Map[HumanSpawn2X],Map[HumanSpawn2Y],Map[HumanSpawn2Z]);
  898. }
  899. }
  900. sendClassMessage(playerid);
  901. setClass(playerid);
  902. SpawnVars(playerid);
  903. return 1;
  904. }
  905.  
  906. public NoSpawnKill(playerid)
  907. {
  908. SendClientMessage(playerid,-1,""COL_GREEN"[Info] "COL_WHITE"Spawn Protection is Over. Best of Luck");
  909. SetPlayerHealth(playerid,100.0);
  910. if(pInfo[playerid][pZombieClass] == BOOMERZOMBIE) { SetPlayerHealth(playerid,20); }
  911. if(pInfo[playerid][pZombieClass] == NEMESIS) { SetPlayerHealth(playerid,200); }
  912. return 1;
  913. }
  914.  
  915. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  916. {
  917. switch(dialogid)
  918. {
  919. case DIALOG_REGISTER:
  920. {
  921. if(!response)
  922. {
  923. ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_MSGBOX,"Kicked",""chat" You must register to play at "NAME"","Close","");
  924. }
  925. if(response)
  926. {
  927. new str[256],IP[16],buf[129];
  928. GetPlayerIp(playerid, IP, sizeof(IP));
  929. if(!strlen(inputtext))
  930. {
  931. format(str,sizeof(str),""chat"Welcome %s to "NAME"",PlayerName(playerid));
  932. ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,str,""chat" Welcome to "NAME" you'll be forced to register please click register!","Register","Quit");
  933. }
  934.  
  935. new INI:File = INI_Open(UserPath(playerid));
  936. WP_Hash(buf, sizeof(buf), inputtext);
  937. INI_SetTag(File,"data");
  938. INI_WriteString(File, "pPassword", buf);
  939. INI_WriteInt(File,"pLogged",0);
  940. INI_WriteInt(File,"pXP",0);
  941. INI_WriteInt(File,"pKills",0);
  942. INI_WriteInt(File,"pDeaths",0);
  943. INI_WriteInt(File,"pRank",0);
  944. INI_WriteInt(File,"pEvac",0);
  945. INI_WriteInt(File,"pAdminLevel",0);
  946. INI_WriteInt(File,"pAdminDuty",0);
  947. INI_WriteInt(File,"pVipLevel",0);
  948. INI_WriteInt(File,"pHour",0);
  949. INI_WriteInt(File,"pMin",0);
  950. INI_WriteInt(File,"pSec",0);
  951. INI_WriteInt(File,"pMapsPlayed",0);
  952. INI_WriteInt(File,"pCoins",0);
  953. INI_WriteString(File,"pIP",IP);
  954. INI_WriteInt(File,"pBanned",0);
  955. INI_WriteInt(File,"gLeader",0);
  956. INI_WriteInt(File,"gMember",0);
  957. INI_Close(File);
  958.  
  959. playedtimer[playerid] = SetTimerEx("TimeOnServer", 1000, 1, "i", playerid);
  960. pInfo[playerid][pLogged] = 1;
  961. }
  962. }
  963.  
  964. case DIALOG_LOGIN:
  965. {
  966. if(response)
  967. {
  968. new buf[128];
  969. WP_Hash(buf, sizeof(buf), inputtext);
  970. if(!strcmp(buf,pInfo[playerid][pPassword]))
  971. {
  972. INI_ParseFile(UserPath(playerid), "LoadUser_data", .bExtra = true, .extra = playerid);
  973. pInfo[playerid][pLogged] = 1;
  974. playedtimer[playerid] = SetTimerEx("TimeOnServer", 1000, 1, "i", playerid);
  975. SendClientMessage(playerid,-1,""chat""COL_LGREEN" Logged in!");
  976. printf("%s",pInfo[playerid][pPassword]);
  977. }
  978. else
  979. {
  980. if(!strcmp(buf,pInfo[playerid][pPassword]))
  981. {
  982. INI_ParseFile(UserPath(playerid), "LoadUser_data", .bExtra = true, .extra = playerid);
  983. pInfo[playerid][pLogged] = 0;
  984. playedtimer[playerid] = SetTimerEx("TimeOnServer", 1000, 1, "i", playerid);
  985. SendClientMessage(playerid,-1,""chat""COL_RED" Loggin First!");
  986. printf("%s",pInfo[playerid][pPassword]);
  987. }
  988. new string[256];
  989. format(string,sizeof(string),""chat" Welcome back %s",PlayerName(playerid));
  990. ShowPlayerDialog(playerid, DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,string,""chat" Our system have detected your username registered please login","Login","Quit");
  991. }
  992. return 1;
  993. }
  994. }
  995.  
  996. case DIALOG_RADIO:
  997. {
  998. if(response)
  999. {
  1000. switch(listitem)
  1001. {
  1002. case 0: PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/u/81961893/Eric%20Prydz%20-%20Pjanoo.mp3");
  1003. case 1: PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/u/81961893/Nicki%20Minaj%20-%20Starships%20%28Lyrics%29.mp3");
  1004. case 2: PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/u/81961893/Train-%20Drive%20by%20%28with%20lyrics%29.mp3");
  1005. case 3: PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/u/81961893/Six%20days%20-%20Tokyo%20Drift.mp3");
  1006. case 4: PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/u/81961893/Wildstylez%20Feat.%20Niels%20Geusebroek%20-%20Year%20Of%20Summer%20%28Official%20Videoclip%29.mp3");
  1007. case 5: PlayAudioStreamForPlayer(playerid,"http://www.woo55.pk/adata/5529/PSY%20-%20Gangnam%20Style%20(www.SongsLover.pk).mp3");
  1008. case 6: PlayAudioStreamForPlayer(playerid,"Radio Stoped");
  1009. }
  1010. }
  1011. }
  1012.  
  1013. case DIALOG_RADIO_1:
  1014. {
  1015. if(response)
  1016. {
  1017. switch(listitem)
  1018. {
  1019. case 0: PlayAudioStreamForPlayer(playerid,"http://dc493.4shared.com/img/1517496961/d886e9a0/dlink__2Fdownload_2FHmXedbA6_3Ftsid_3D20131012-53953-266e366/preview.mp3");
  1020. case 1: PlayAudioStreamForPlayer(playerid,"http://www.desimusic.us/2011b/Desi%20Boyz/Subha%20Hone%20Na%20De_Desi%20Boyz(DesiSong.com).mp3");
  1021. case 2: PlayAudioStreamForPlayer(playerid,"http://www.djluv.in/music/songs/01%20-%20Desi%20Boyz%20(2011)%20-%20Make%20Some%20Noise%20For%20The%20Desi%20Boyz%20%5Bwww.DJLUV.in%5D.mp3");
  1022. case 3: PlayAudioStreamForPlayer(playerid,"Radio Stoped");
  1023. }
  1024. }
  1025. }
  1026.  
  1027. case DIALOG_CLASS:
  1028. {
  1029. if(response)
  1030. {
  1031. switch(listitem)
  1032. {
  1033. case 0:
  1034. {
  1035. if(team[playerid] == TEAM_HUMAN)
  1036. {
  1037. new string[2500];
  1038. strcat(string,"{008080}Civilian - Silenced Pistol,Shotgun - 0 XP\n{008080}Police Man - Deagle,Shotgun - 500 XP\n{008080}Medic -Shotgun,Silenced Pistol,Armour,Cure Infected - 1000 XP\n\
  1039. {008080}Scout - Sniper,Silenced Pistol - 1500 XP\n{008080}Heavy Medic - Deagle,Shotgun,Armour,Cure Infected - 5000 XP\n{008080}Farmer - Deagle,AK,County Rifle,Armour - 6000 XP\n");
  1040. strcat(string,"{008080}Soldier - AK47,Deagle - 6500 XP\n{008080}Engineer - Silenced Pistol,Shotgun,Armour,Build Boxes - 7500 XP\n{008080}S.W.A.T - MP5,Deagle,Armour,Immunity - 15,000 XP\n\
  1041. {008080}Heavy Shotgun - Shotgun,Deagle,Armour,More shotgun damage - 20,000 XP\n{008080}Advanced Medic - M4,Deagle,Shotgun,Cure all - 25,000 XP\n");
  1042. strcat(string,"{008080}Advanced Engineer - Deagle,M4,Armour,Build Boxes - 30,000 XP\n{008080}Experienced Engineer -Deagle,Shotgun,Armour - Build Ladders - 35,000 XP\n\
  1043. {008080}Federal Agent - M4,Deagle,Shotgun,Armour,Immunity - 50,000 XP\n{008080}Advanced Scout - Sniper,Deagle,High jump,Half Armour - 100,000 XP\n\
  1044. {008080}Kick Back - Silenced Pistol,Shotgun,MP5 - 400000 XP\n{008080}Doctor - Silenced Pistol - Heal,Cure,Shield Heal,Half Immunity - Rank 22");
  1045. ShowPlayerDialog(playerid,DIALOG_CLASS_2,DIALOG_STYLE_LIST,"Class Selection (Human)",string,"Select","Close");
  1046. }
  1047. else return SendClientMessage(playerid,-1,""chat" You must be a human to use human classes!");
  1048. }
  1049.  
  1050. case 1:
  1051. {
  1052. if(team[playerid] == TEAM_ZOMBIE)
  1053. {
  1054. new string[1000];
  1055. strcat(string,"{41A317}Standard Zombie - LALT Infect a player - 0 XP\n{41A317}Mutated Zombie - LALT Infect Drunk Vision - 500 XP\n{41A317}Fast Zombie - High Jump - 5,000 XP\n\
  1056. {41A317}Reaper Zombie - More damage with chainsaw - 10,000 XP\n{41A317}Witch Zombie - LALT 75 Damage - 18,000 XP\n");
  1057. strcat(string,"{41A317}Boomer Zombie - Explodes on death and infect - 20,000 XP\n\
  1058. {41A317}Stomper Zombie - LALT Throw all around you - 25,000 XP\n{41A317}Screamer - LALT Drop everyone down - 35000 XP\n\
  1059. {41A317}Advanced Mutated - LALT Infect all around - 65,000 XP\n{41A317}Heavy Screamer - LALT Throw all +5hp - 70,000 XP\n");
  1060. strcat(string,"{41A317}Flesh Eater - LALT Infect a player kills faster - 100,000 XP\n{41A317}Advanced Witch - LALT 99 Damage - 150,000 XP\n{41A317}Advanced Boomer - LALT Explode - 500,000 X");
  1061.  
  1062. ShowPlayerDialog(playerid,DIALOG_CLASS_3,DIALOG_STYLE_LIST,"Class Selection (Zombie)",string,"Select","Close");
  1063. }
  1064. else return SendClientMessage(playerid,-1,""chat" You must be a zombie to use zombie classes!");
  1065. }
  1066.  
  1067. case 2: SendClientMessage(playerid,-1,""chat""COL_LGREEN" On October 31st 2012 we are having an 24hour event these classes will be enabled around October 30th!");
  1068. }
  1069. }
  1070. }
  1071.  
  1072. case DIALOG_CLASS2:
  1073. {
  1074. if(response)
  1075. {
  1076. switch(listitem)
  1077. {
  1078. case 0:
  1079. {
  1080. if(team[playerid] == TEAM_HUMAN)
  1081. {
  1082. new string[2500];
  1083. strcat(string,"{008080}Pimp - Dildo, deals 15 damage 15000 XP\n{008080}Heavy Soldier - Can Give 25 Armour Point - 150000\n");
  1084. strcat(string,"{008080}Assassin - Katana, One Hit Kill, C4 - 300.000 XP\n{008080}Cowboy - 2 colt pistols, extra damage, armour, 250.000XP\n");
  1085. strcat(string,"{008080}Trap Master - Combat Shotgun, AK, Can put traps - 200.000 XP\n{008080}FBI - M4, Deagle, Immunity from all, Shotgun, Mp5 - 200.000 XP\n");
  1086. strcat(string,"{008080}Scientist - Silenced Pistol, Can cure zombies - 300.000 XP\n{008080}Shotgun Specialist - Shotgun +50 Damage - 450,000 XP.\n{008080}Experienced Scout - One shoot kill, Sniper, Silenced Pistol - 1000000xp\n");
  1087. strcat(string,"{008080}Smoke Up - Deagle - MP5 - M4 - Flamer - Full Immunity - Rank 30 Required\n{008080}Boxer - Can Give Stomper - 31 Rank Required\n{008080}BomberMan - Having Rocket Launcher - 450000xp\n");
  1088. strcat(string,"{008080}Mp5 Master - Extreme damage with Mp5 - 500000xp\n{008080}Ghost Rider - Can Burn Zombies - 600000xp\n{008080}Hey Buddy - Gives 70 Damage - 150000xp\n{008080}Advanced KickBack - Gives Extreme KickBack - 900000\n{008080}Tec Girl - Gives 75 damage with Tec|200hp - 900000\n{008080}Bulls Eye - Gives high damage|sawnoff - 27 rank needed\n");
  1089. ShowPlayerDialog(playerid,DIALOG_CLASS_2_2,DIALOG_STYLE_LIST,"Class Selection (Human)",string,"Select","Close");
  1090. }
  1091. else return SendClientMessage(playerid,-1,""chat" You must be a human to use human classes!");
  1092. }
  1093.  
  1094. case 1:
  1095. {
  1096. if(team[playerid] == TEAM_ZOMBIE)
  1097. {
  1098. new string[1000];
  1099. strcat(string,"{41A317}Advanced Stomper - 150 HP , Stomps humans away - 200.000 XP\n");
  1100. strcat(string,"{41A317}Fire Breather - Throws out flames burning everything - 350.000 XP\n{41A317}Advanced Screamer - LALT Throw all +10hp ||-10 Hp to human - 450,000 XP\n{41A317}Advanced Boomer - LALT Explode - 500,000 XP\n");
  1101. strcat(string,"{41A317}Nemesis - Creates some paravane, has 200 HP, custom skinned\n{41A317}Zombie Medic - /zheal to heal zombies\n{41A317}SlenderMan - HighJump MoreDamage - 700000\n{41A317}Killer Zombie - Cant be kickback - 600000\n{41A317}Ghost Zombie - Invisible | Gives 40 Damage - 170000\n{41A317}Dark Sniper - Having Sniper|Can Infect - 700000 xp");
  1102.  
  1103. ShowPlayerDialog(playerid,DIALOG_CLASS_3_3,DIALOG_STYLE_LIST,"Class Selection (Zombie)",string,"Select","Close");
  1104. }
  1105. else return SendClientMessage(playerid,-1,""chat" You must be a zombie to use zombie classes!");
  1106. }
  1107.  
  1108. }
  1109. }
  1110. }
  1111.  
  1112. case DIALOG_CLASS_2:
  1113. {
  1114. if(response)
  1115. {
  1116. if(pInfo[playerid][SkinChanges] >= 1)
  1117. {
  1118. switch(listitem)
  1119. {
  1120. case 0: if(pInfo[playerid][pXP] >= 0) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = CIVILIAN,setClass(playerid); else { SendXPError(playerid,0); }
  1121. case 1: if(pInfo[playerid][pXP] >= 500) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = POLICEMAN,setClass(playerid); else { SendXPError(playerid,500); }
  1122. case 2: if(pInfo[playerid][pXP] >= 1000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = MEDIC,setClass(playerid); else { SendXPError(playerid,1000); }
  1123. case 3: if(pInfo[playerid][pXP] >= 1500) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = SCOUT,setClass(playerid); else { SendXPError(playerid,1500); }
  1124. case 4: if(pInfo[playerid][pXP] >= 5000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = HEAVYMEDIC,setClass(playerid); else { SendXPError(playerid,5000); }
  1125. case 5: if(pInfo[playerid][pXP] >= 6000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = FARMER,setClass(playerid); else { SendXPError(playerid,6000); }
  1126. case 6: if(pInfo[playerid][pXP] >= 6500) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = SOLDIER,setClass(playerid); else { SendXPError(playerid,6500); }
  1127. case 7: if(pInfo[playerid][pXP] >= 7500) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = ENGINEER,setClass(playerid); else { SendXPError(playerid,7500); }
  1128. case 8: if(pInfo[playerid][pXP] >= 15000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = SWAT,setClass(playerid); else { SendXPError(playerid,10000); }
  1129. case 9: if(pInfo[playerid][pXP] >= 20000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = HEAVYSHOTGUN,setClass(playerid); else { SendXPError(playerid,20000); }
  1130. case 10: if(pInfo[playerid][pXP] >= 25000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = ADVANCEDMEDIC,setClass(playerid); else { SendXPError(playerid,25000); }
  1131. case 11: if(pInfo[playerid][pXP] >= 30000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = ADVANCEDENGINEER,setClass(playerid); else { SendXPError(playerid,30000); }
  1132. case 12: if(pInfo[playerid][pXP] >= 35000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = E_ENGINEER,setClass(playerid); else { SendXPError(playerid,35000); }
  1133. case 13: if(pInfo[playerid][pXP] >= 50000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = FEDERALAGENT,setClass(playerid); else { SendXPError(playerid,50000); }
  1134. case 14: if(pInfo[playerid][pXP] >= 100000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = ADVANCEDSCOUT,setClass(playerid); else { SendXPError(playerid,100000); }
  1135. case 15: if(pInfo[playerid][pXP] >= 400000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = KICKBACK,setClass(playerid); else { SendXPError(playerid,400000); }
  1136. case 16: if(pInfo[playerid][pRank] >= 22) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = DOCTOR,setClass(playerid); else { SendClientMessage(playerid,-1,""chat""COL_PINK" You need to be rank 22+ to use this"); }
  1137. }
  1138. }
  1139. else return SendClientMessage(playerid,-1,""chat""COL_RED" You ran out of skin changes mate! What do you think you are? Shape Shifter?");
  1140. }
  1141. }
  1142. case DIALOG_CLASS_2_2:
  1143. {
  1144. if(response)
  1145. {
  1146. if(pInfo[playerid][SkinChanges] >= 1)
  1147. {
  1148. switch(listitem)
  1149. {
  1150. case 0: if(pInfo[playerid][pXP] >= 15000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = PIMP,setClass(playerid); else { SendXPError(playerid,15000); }
  1151. case 1: if(pInfo[playerid][pXP] >= 75000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = WEAPONSDEALER,setClass(playerid); else { SendXPError(playerid,75000); }
  1152. case 2: if(pInfo[playerid][pXP] >= 300000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = ASSASSIN,setClass(playerid); else { SendXPError(playerid,300000); }
  1153. case 3: if(pInfo[playerid][pXP] >= 250000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = COWBOY,setClass(playerid); else { SendXPError(playerid,250000); }
  1154. case 4: if(pInfo[playerid][pXP] >= 200000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = TRAPMASTER,setClass(playerid); else { SendXPError(playerid,200000); }
  1155. case 5: if(pInfo[playerid][pXP] >= 200000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = FBI,setClass(playerid); else { SendXPError(playerid,200000); }
  1156. case 6: if(pInfo[playerid][pXP] >= 300000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = SCIENTIST,setClass(playerid); else { SendXPError(playerid,300000); }
  1157. case 7: if(pInfo[playerid][pXP] >= 450000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = SHOTGUNSPECIAL,setClass(playerid); else { SendXPError(playerid,450000); }
  1158. case 8: if(pInfo[playerid][pXP] >= 1000000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = EXPERIENCEDSCOUT,setClass(playerid); else { SendXPError(playerid,1000000); }
  1159. case 9: if(pInfo[playerid][pRank] >= 30) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = SMOKEUP,setClass(playerid); else { SendClientMessage(playerid,-1,""chat""COL_PINK" You need to be rank 30+ to use this"); }
  1160. case 10: if(pInfo[playerid][pRank] >= 31) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = BOXER,setClass(playerid); else { SendClientMessage(playerid,-1,""chat""COL_PINK" You need to be rank 31+ to use this"); }
  1161. case 11: if(pInfo[playerid][pXP] >= 450000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = BOMBER,setClass(playerid); else { SendClientMessage(playerid,-1,""chat""COL_PINK" You need 450000 xp to use this class!"); }
  1162. case 12: if(pInfo[playerid][pXP] >= 500000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = MASTER,setClass(playerid); else { SendClientMessage(playerid,-1,""chat""COL_PINK" You need 500000 xp to use this class!"); }
  1163. case 13: if(pInfo[playerid][pXP] >= 600000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = GHOST,setClass(playerid); else { SendClientMessage(playerid,-1,""chat""COL_PINK" You need 600000 xp to use this class!"); }
  1164. case 14: if(pInfo[playerid][pXP] >= 150000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = BUDDY,setClass(playerid); else { SendClientMessage(playerid,-1,""chat""COL_PINK" You need 150000 xp to use this class!"); }
  1165. case 15: if(pInfo[playerid][pXP] >= 800000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = AKICK,setClass(playerid); else { SendClientMessage(playerid,-1,""chat""COL_PINK" You need 800000 xp to use this class!"); }
  1166. case 16: if(pInfo[playerid][pXP] >= 900000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = TECG,setClass(playerid); else { SendClientMessage(playerid,-1,""chat""COL_PINK" You need 900000 xp to use this class!"); }
  1167. case 17: if(pInfo[playerid][pRank] >= 27) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = BULL,setClass(playerid); else { SendClientMessage(playerid,-1,""chat""COL_PINK" You need to be rank 27+ to use this class!"); }
  1168. }
  1169. }
  1170. else return SendClientMessage(playerid,-1,""chat""COL_RED" You ran out of skin changes mate!");
  1171. }
  1172. }
  1173.  
  1174. case DIALOG_CLASS_3:
  1175. {
  1176. if(response)
  1177. {
  1178. switch(listitem)
  1179. {
  1180. case 0: if(pInfo[playerid][pXP] >= 0) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = STANDARDZOMBIE,setClass(playerid); else { SendXPError(playerid,0); }
  1181. case 1: if(pInfo[playerid][pXP] >= 500) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = MUTATEDZOMBIE,setClass(playerid); else { SendXPError(playerid,500); }
  1182. case 2: if(pInfo[playerid][pXP] >= 5000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = FASTZOMBIE,setClass(playerid); else { SendXPError(playerid,5000); }
  1183. case 3: if(pInfo[playerid][pXP] >= 10000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = REAPERZOMBIE,setClass(playerid); else { SendXPError(playerid,10000); }
  1184. case 4: if(pInfo[playerid][pXP] >= 18000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = WITCHZOMBIE,setClass(playerid); else { SendXPError(playerid,18000); }
  1185. case 5: if(pInfo[playerid][pXP] >= 20000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = BOOMERZOMBIE,setClass(playerid); else { SendXPError(playerid,20000); }
  1186. case 6: if(pInfo[playerid][pXP] >= 25000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = STOMPERZOMBIE,setClass(playerid); else { SendXPError(playerid,25000); }
  1187. case 7: if(pInfo[playerid][pXP] >= 35000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = SCREAMERZOMBIE,setClass(playerid); else { SendXPError(playerid,35000); }
  1188. case 8: if(pInfo[playerid][pXP] >= 65000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = ADVANCEDMUTATED,setClass(playerid); else { SendXPError(playerid,65000); }
  1189. case 9: if(pInfo[playerid][pXP] >= 70000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = HEAVYSCREAMER,setClass(playerid); else { SendXPError(playerid,70000); }
  1190. case 10: if(pInfo[playerid][pXP] >= 100000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = FLESHEATER,setClass(playerid); else { SendXPError(playerid,100000); }
  1191. case 11: if(pInfo[playerid][pXP] >= 150000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = ADVANCEDWITCH,setClass(playerid); else { SendXPError(playerid,150000); }
  1192. case 12: if(pInfo[playerid][pXP] >= 500000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = ADVANCEDBOOMER,setClass(playerid); else { SendXPError(playerid,500000); }
  1193. }
  1194. }
  1195. }
  1196.  
  1197. case DIALOG_CLASS_3_3:
  1198. {
  1199. if(response)
  1200. {
  1201. switch(listitem)
  1202. {
  1203. case 0: if(pInfo[playerid][pXP] >= 200000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = ADVSTOMPER,setClass(playerid); else { SendXPError(playerid,200000); }
  1204. case 1: if(pInfo[playerid][pXP] >= 350000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = FIREBREATHER,setClass(playerid); else { SendXPError(playerid,350000); }
  1205. case 2: if(pInfo[playerid][pXP] >= 400000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = ADVSCREAMER,setClass(playerid); else { SendXPError(playerid,400000); }
  1206. case 3: if(pInfo[playerid][pXP] >= 500000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = ADVANCEDBOOMER,setClass(playerid); else { SendXPError(playerid,500000); }
  1207. case 4: if(pInfo[playerid][pXP] >= 500000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = NEMESIS,setClass(playerid); else { SendXPError(playerid,500000); }
  1208. case 5: if(pInfo[playerid][pXP] >= 550000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = HZOMBIE,setClass(playerid); else { SendXPError(playerid,550000); }
  1209. case 6: if(pInfo[playerid][pXP] >= 700000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = SLENDER,setClass(playerid); else { SendXPError(playerid,700000); }
  1210. case 7: if(pInfo[playerid][pXP] >= 600000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = KZOM,setClass(playerid); else { SendXPError(playerid,600000); }
  1211. case 8: if(pInfo[playerid][pXP] >= 170000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = GZOM,setClass(playerid); else { SendXPError(playerid,170000); }
  1212. case 9: if(pInfo[playerid][pXP] >= 700000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = DSNIPE,setClass(playerid); else { SendXPError(playerid,700000); }
  1213. }
  1214. }
  1215. }
  1216.  
  1217. case DIALOG_SHOUT:
  1218. {
  1219. if(response)
  1220. {
  1221. switch(listitem)
  1222. {
  1223. case 0: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s Shouts MEDIC!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
  1224. case 1: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s Shouts BOOMER INCOMING!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
  1225. case 2: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s Shouts SCREAMER INCOMING!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
  1226. case 3: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s Shouts STOMPER INCOMING!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
  1227. case 4: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s Shouts it's clear!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
  1228. case 5: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s Shouts Zombies Nearby!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
  1229. case 6: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s Shouts ZOMBIES INCOMING!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
  1230. case 7: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s Shouts Need assistance!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
  1231. case 8: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s Shouts Need backup!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
  1232. case 9: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s Shouts Ghost Incoming!!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
  1233. }
  1234. }
  1235. }
  1236.  
  1237. case DIALOG_VIP:
  1238. {
  1239. if(response)
  1240. {
  1241. if(pInfo[playerid][ArmourChanges] >= 1)
  1242. {
  1243. switch(listitem)
  1244. {
  1245. case 0: if(pInfo[playerid][pVipLevel] >= 1) SendPlayerMaxAmmo(playerid),SendClientMessage(playerid,-1,""chat""COL_PINK" You have all your weapons max'ed ammo!"); else { SendVipError(playerid,1); }
  1246. case 1: if(pInfo[playerid][pVipLevel] >= 1) GivePlayerWeapon(playerid,31,150),GivePlayerWeapon(playerid,24,100),GivePlayerWeapon(playerid,25,600); else { SendVipError(playerid,1); }
  1247. case 2: if(pInfo[playerid][pVipLevel] >= 3) ShowPlayerDialog(playerid,DIALOG_VIP_CLASS,DIALOG_STYLE_LIST,"Vip Classes (Human)","{C35817}Vip Engineer (LVL 3)\n{C35817}Vip Medic (LVL 4)\n{C35817}Vip Scout (LVL 4)\n{C35817}Vip Hitman (LVL 5)","Select","Close"); else { SendVipError(playerid,3); }
  1248. case 3: if(pInfo[playerid][pVipLevel] >= 3) pInfo[playerid][pVipKickBack] = 1,SendClientMessage(playerid,-1,""chat""COL_LGREEN" You've enabled VIP kick back!"); else { SendVipError(playerid,3); }
  1249. case 4: if(pInfo[playerid][pVipLevel] >= 3) pInfo[playerid][pVipKickBack] = 0,SendClientMessage(playerid,-1,""chat""COL_LGREEN" You've disabled VIP kick back!"); else { SendVipError(playerid,3); }
  1250. case 5: if(pInfo[playerid][pVipLevel] >= 2) SetPlayerAttachedObject(playerid,0,19142,1,0.028000,0.034000,0.000000,0.000000,0.000000,0.000000,1.063000,1.191999,1.285999); else { SendVipError(playerid,2); }
  1251. case 6: if(pInfo[playerid][pVipLevel] >= 4) pInfo[playerid][pVipFlash] = 1,SendClientMessage(playerid,-1,""chat""COL_LGREEN" Your name is now flashing!"); else { SendVipError(playerid,4); }
  1252. case 7: if(pInfo[playerid][pVipLevel] >= 4) pInfo[playerid][pVipFlash] = 0,SendClientMessage(playerid,-1,""chat""COL_LGREEN" Your name has stopped flashing"); else { SendVipError(playerid,4); }
  1253. case 8: if(pInfo[playerid][pVipLevel] >= 4) pInfo[playerid][SkinChanges] -= 1, SetPlayerArmour(playerid,50.0),SendClientMessage(playerid,-1,""chat""COL_LGREEN" You've got 50.0f VIP Armour"); else { SendVipError(playerid,4); }
  1254. case 9: if(pInfo[playerid][pVipLevel] >= 5) SetPlayerColor(playerid,0xFFFFFF00); else { SendVipError(playerid,5); }
  1255.  
  1256. }
  1257. }
  1258. else return SendClientMessage(playerid,-1,""chat""COL_RED" You ran out of armours mate! What do you think you are? Ammunation?");
  1259. }
  1260. }
  1261.  
  1262. case DIALOG_VIP_CLASS:
  1263. {
  1264. if(response)
  1265. {
  1266. if(team[playerid] == TEAM_HUMAN)
  1267. {
  1268. switch(listitem)
  1269. {
  1270. case 0: if(pInfo[playerid][pVipLevel] >= 3) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = VIPENGINEER,setClass(playerid); else { SendVipError(playerid,3); }
  1271. case 1: if(pInfo[playerid][pVipLevel] >= 4) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = VIPMEDIC,setClass(playerid); else { SendVipError(playerid,4); }
  1272. case 2: if(pInfo[playerid][pVipLevel] >= 4) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = VIPSCOUT,setClass(playerid); else { SendVipError(playerid,4); }
  1273. case 3: if(pInfo[playerid][pVipLevel] >= 5) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = HITMAN,setClass(playerid); else { SendVipError(playerid,5); }
  1274.  
  1275.  
  1276. }
  1277. }
  1278. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You must be a human to use VIP classes!");
  1279. }
  1280. }
  1281.  
  1282. case DIALOG_COINS:
  1283. {
  1284. if(response)
  1285. {
  1286. if(team[playerid] == TEAM_HUMAN)
  1287. {
  1288. switch(listitem)
  1289. {
  1290. case 0:
  1291. {
  1292. ShowPlayerDialog(playerid, DIALOG_XP, DIALOG_STYLE_LIST, "XP Shop", "1000XP 10 Coins\n5000XP 25 Coins\n10000XP 75 Coins", "Select", "Close");
  1293. }
  1294. case 1:
  1295. {
  1296. if(pInfo[playerid][pHumanClass] == ASSASSIN || pInfo[playerid][pHumanClass] == PIMP || pInfo[playerid][pHumanClass] == DOCTOR || pInfo[playerid][pHumanClass] == VIPMEDIC || pInfo[playerid][pHumanClass] == FBI || pInfo[playerid][pHumanClass] == TRAPMASTER || pInfo[playerid][pHumanClass] == EXPERIENCEDSCOUT || pInfo[playerid][pHumanClass] == SCIENTIST || pInfo[playerid][pHumanClass] == COWBOY || pInfo[playerid][pHumanClass] == PIMP)
  1297. {
  1298. SendClientMessage(playerid,-1,""chat""COL_RED" Your class can't buy weapons... ");
  1299. }
  1300. else
  1301. {
  1302. if(pInfo[playerid][pCoins] >= 5) pInfo[playerid][pCoins] -= 0,ShowPlayerDialog(playerid,DIALOG_BUY_WEAPONS,DIALOG_STYLE_LIST,"Buy weapons unsing coins(HUMANS)","[ 5 coins] Deagle - Ammo: 199\n[10 coins] Shotgun Ammo: 199\n[15 coins]MP5 or SMG - Ammo: 300\n[20 coins]AK-47 Assault Rifle - Ammo: 300\n[20 coins]M4 Assault Rifle - Ammo: 300\n[25 coins]Sniper Rifle - Ammo: 150","Select","Close"); else { SendCoinError(playerid,1); }
  1303. }
  1304. }
  1305. case 2: if(pInfo[playerid][pCoins] >= 5) pInfo[playerid][pCoins] -= 5,ShowPlayerDialog(playerid,DIALOG_BUY_CLASSES,DIALOG_STYLE_LIST,"Buy classes unsing coins(HUMANS)","[ 10 Coins]Engineer\n[ 10 Coins]SWAT\n[ 50 Coins]Heavy Shotgun\n[ 10 Coins]Advanced Medic\n[ 15 Coins]Advanced Engineer\n[ 15 Coins]Federal Agent\n[ 100 Coins]Kick Back\n[ 80 Coins]Advanced Scout\n[ 20 Coins]Experienced Engineer\n[ 100 Coins]Doctor","Select","Close"); else { SendCoinError(playerid,1); }
  1306. case 3: if(pInfo[playerid][pCoins] >= 100) pInfo[playerid][pCoins] -= 100,pInfo[playerid][pVipKickBack] = 1; else { SendCoinError(playerid,100); }
  1307. case 4: if(pInfo[playerid][pCoins] >= 1) pInfo[playerid][pCoins] -= 1,SetPlayerAttachedObject(playerid,0,19142,1,0.028000,0.034000,0.000000,0.000000,0.000000,0.000000,1.063000,1.191999,1.285999); else { SendCoinError(playerid,1); }
  1308. }
  1309. }
  1310. }
  1311. }
  1312. case DIALOG_XP:
  1313. {
  1314. if(response)
  1315. {
  1316. if(team[playerid] == TEAM_HUMAN)
  1317. {
  1318. switch(listitem)
  1319. {
  1320. case 0: if(pInfo[playerid][pCoins] >= 10) pInfo[playerid][pCoins] -= 10,GivePlayerXP(playerid,1000); else { SendCoinError(playerid,10); }
  1321. case 1: if(pInfo[playerid][pCoins] >= 25) pInfo[playerid][pCoins] -= 50,GivePlayerXP(playerid,5000); else { SendCoinError(playerid,25); }
  1322. case 2: if(pInfo[playerid][pCoins] >= 75) pInfo[playerid][pCoins] -= 100,GivePlayerXP(playerid,10000); else { SendCoinError(playerid,75); }
  1323. }
  1324. }
  1325. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You must be a human to buy weapons");
  1326. }
  1327. }
  1328.  
  1329. case DIALOG_BUY_WEAPONS:
  1330. {
  1331. if(response)
  1332. {
  1333. if(team[playerid] == TEAM_HUMAN)
  1334. {
  1335. switch(listitem)
  1336. {
  1337. case 0: if(pInfo[playerid][pCoins] >= 5) pInfo[playerid][pCoins] -= 5,GivePlayerWeapon(playerid,24,199); else { SendCoinError(playerid,5); }
  1338. case 1: if(pInfo[playerid][pCoins] >= 10) pInfo[playerid][pCoins] -= 10,GivePlayerWeapon(playerid,25,199); else { SendCoinError(playerid,10); }
  1339. case 2: if(pInfo[playerid][pCoins] >= 15) pInfo[playerid][pCoins] -= 15,GivePlayerWeapon(playerid,29,300); else { SendCoinError(playerid,15); }
  1340. case 3: if(pInfo[playerid][pCoins] >= 20) pInfo[playerid][pCoins] -= 20,GivePlayerWeapon(playerid,30,300); else { SendCoinError(playerid,20); }
  1341. case 4: if(pInfo[playerid][pCoins] >= 20) pInfo[playerid][pCoins] -= 20,GivePlayerWeapon(playerid,31,300); else { SendCoinError(playerid,20); }
  1342. case 5: if(pInfo[playerid][pCoins] >= 25) pInfo[playerid][pCoins] -= 25,GivePlayerWeapon(playerid,34,150); else { SendCoinError(playerid,25); }
  1343. }
  1344. }
  1345. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You must be a human to buy weapons");
  1346. }
  1347. }
  1348.  
  1349. case DIALOG_BUY_CLASSES:
  1350. {
  1351. if(response)
  1352. {
  1353. if(team[playerid] == TEAM_HUMAN)
  1354. {
  1355. if(pInfo[playerid][SkinChanges] >= 1)
  1356. {
  1357. switch(listitem)
  1358. {
  1359. case 0: if(pInfo[playerid][pCoins] >= 10) pInfo[playerid][pCoins] -= 10,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = ENGINEER,setClass(playerid); else { SendCoinError(playerid,10); }
  1360. case 1: if(pInfo[playerid][pCoins] >= 10) pInfo[playerid][pCoins] -= 10,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = SWAT,setClass(playerid); else { SendCoinError(playerid,10); }
  1361. case 2: if(pInfo[playerid][pCoins] >= 50) pInfo[playerid][pCoins] -= 50,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = HEAVYSHOTGUN,setClass(playerid); else { SendCoinError(playerid,50); }
  1362. case 3: if(pInfo[playerid][pCoins] >= 10) pInfo[playerid][pCoins] -= 10,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = ADVANCEDMEDIC,setClass(playerid); else { SendCoinError(playerid,10); }
  1363. case 4: if(pInfo[playerid][pCoins] >= 15) pInfo[playerid][pCoins] -= 15,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = ADVANCEDENGINEER,setClass(playerid); else { SendCoinError(playerid,15); }
  1364. case 5: if(pInfo[playerid][pCoins] >= 15) pInfo[playerid][pCoins] -= 15,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = FEDERALAGENT,setClass(playerid); else { SendCoinError(playerid,15); }
  1365. case 6: if(pInfo[playerid][pCoins] >= 100) pInfo[playerid][pCoins] -= 100,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = KICKBACK,setClass(playerid); else { SendCoinError(playerid,100); }
  1366. case 7: if(pInfo[playerid][pCoins] >= 80) pInfo[playerid][pCoins] -= 80,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = ADVANCEDSCOUT,setClass(playerid); else { SendCoinError(playerid,80); }
  1367. case 8: if(pInfo[playerid][pCoins] >= 20) pInfo[playerid][pCoins] -= 20,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = E_ENGINEER,setClass(playerid); else { SendCoinError(playerid,20); }
  1368. case 9: if(pInfo[playerid][pCoins] >= 100) pInfo[playerid][pCoins] -= 100,pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = DOCTOR,setClass(playerid); else { SendCoinError(playerid,100); }
  1369. }
  1370. }
  1371. else return SendClientMessage(playerid,-1,""chat""COL_RED" You are not allowed to change your class anymore!");
  1372. }
  1373. else return SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You must be a human to buy weapons");
  1374. }
  1375. }
  1376. }
  1377. return 1;
  1378. }
  1379.  
  1380. public OnPlayerDeath(playerid, killerid, reason)
  1381. {
  1382. if(team[playerid] == TEAM_ZOMBIE && team[killerid] == TEAM_ZOMBIE)
  1383. {
  1384. switch(GetPlayerWeapon(playerid))
  1385. {
  1386. case 45:
  1387. {
  1388. new reasonillegalweapons[128];
  1389. new Admin[24] = "Anti-cheat";
  1390. format(reasonillegalweapons,sizeof(reasonillegalweapons),"Weapon hack %i",GetPlayerWeapon(playerid));
  1391. BanPlayer(playerid,reasonillegalweapons,Admin);
  1392. }
  1393. case 9:
  1394. {
  1395. if(GetDistanceBetweenPlayers(playerid,killerid) >= 6.0)
  1396. {
  1397. printf("%s has been kicked for fake killing - On Player Death", PlayerName(playerid));
  1398. Kick(playerid);
  1399. }
  1400. }
  1401. case 1,2,3,4,5,6,7,8,10,11,12,13,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34:
  1402. {
  1403. pInfo[playerid][pFakeKills] += 1;
  1404. }
  1405. }
  1406. if(pInfo[playerid][pLadders] >= 5)
  1407. {
  1408. SendClientMessage(playerid,COLOR_RED,"You have been banned for fake killing");
  1409.  
  1410. pInfo[playerid][pBanned] = 1;
  1411.  
  1412. new Admin[24] = "Anti-cheat-FakeKills";
  1413. new reasonFake[128] = "Fake Killing - On Player Death - FakeKills";
  1414. BanPlayer(playerid,reasonFake,Admin);
  1415. }
  1416.  
  1417. }
  1418.  
  1419. if(pInfo[playerid][pDeaths] >= 10000000 && pInfo[playerid][pKills] == 0)
  1420. {
  1421. new Admin[24] = "Anti-cheat";
  1422. new reason3[128] = "Fake Killing - On Player Death";
  1423. BanPlayer(playerid,reason3,Admin);
  1424.  
  1425. pInfo[killerid][pKills] -= 20;
  1426. pInfo[playerid][Killstreak] = 0;
  1427. pInfo[killerid][pCoins] -= 4;
  1428.  
  1429. switch(Map[XPType])
  1430. {
  1431. case 1:
  1432. {
  1433. pInfo[killerid][pXP] -= 300;
  1434. }
  1435. case 2:
  1436. {
  1437. pInfo[killerid][pXP] -= 500;
  1438. }
  1439. case 3:
  1440. {
  1441. pInfo[killerid][pXP] -= 700;
  1442. }
  1443. case 4:
  1444. {
  1445. pInfo[killerid][pXP] -= 900;
  1446. }
  1447. }
  1448. }
  1449.  
  1450. if(pInfo[playerid][pLogged] == 1)
  1451. {
  1452. new string[256],gunname[32];
  1453. SaveStats(playerid);
  1454. SendDeathMessage(killerid, playerid, reason);
  1455. playersAliveCount--;
  1456.  
  1457. pInfo[playerid][pDeaths]++;
  1458. pInfo[playerid][Killstreak] = 0;
  1459.  
  1460. if(IsBeingSpeced[playerid] == 1)//If the player being spectated, dies, then turn off the spec mode for the spectator.
  1461. {
  1462. foreach(Player,i)
  1463. {
  1464. if(spectatorid[i] == playerid)
  1465. {
  1466. TogglePlayerSpectating(i,false);// This justifies what's above, if it's not off then you'll be either spectating your connect screen, or somewhere in blueberry (I don't know why)
  1467. if(team[i] == TEAM_HUMAN)
  1468. {
  1469. HumanSetup(i);
  1470. SpawnPlayer(i);
  1471. }
  1472. else if(team[i] == TEAM_ZOMBIE)
  1473. {
  1474. ZombieSetup(i);
  1475. SpawnPlayer(i);
  1476. }
  1477. }
  1478. }
  1479. }
  1480.  
  1481. if(pInfo[playerid][IsPlayerInfected] == 1)
  1482. {
  1483. ZombieSetup(playerid);
  1484. CurePlayer(playerid);
  1485. }
  1486.  
  1487. if(team[playerid] == TEAM_HUMAN)
  1488. {
  1489. ZombieSetup(playerid);
  1490. }
  1491.  
  1492. pInfo[killerid][pKills]++;
  1493. pInfo[killerid][Killstreak]++;
  1494. pInfo[playerid][pDeaths]++;
  1495. pInfo[playerid][Killstreak] = 0;
  1496.  
  1497. switch(Map[XPType])
  1498. {
  1499. case 1:
  1500. {
  1501. switch(random(2))
  1502. {
  1503. case 0: GivePlayerXP(killerid,10);
  1504. case 1: GivePlayerXP(killerid,20);
  1505. }
  1506. }
  1507. case 2:
  1508. {
  1509. switch(random(2))
  1510. {
  1511. case 0: GivePlayerXP(killerid,20);
  1512. case 1: GivePlayerXP(killerid,30);
  1513. }
  1514. }
  1515. case 3:
  1516. {
  1517. switch(random(2))
  1518. {
  1519. case 0: GivePlayerXP(killerid,30);
  1520. case 1: GivePlayerXP(killerid,40);
  1521. }
  1522. }
  1523. case 4:
  1524. {
  1525. switch(random(2))
  1526. {
  1527. case 0: GivePlayerXP(killerid,40);
  1528. case 1: GivePlayerXP(killerid,50);
  1529. }
  1530. }
  1531. }
  1532.  
  1533. if(pInfo[killerid][pVipLevel] >= 1)
  1534. {
  1535. switch(Map[XPType])
  1536. {
  1537. case 1:
  1538. {
  1539. switch(random(2))
  1540. {
  1541. case 0: GivePlayerXP(killerid,15),SendClientMessage(killerid,-1,""chat" Earned 15 XP from VIP Double XP! + normal xp 10 = 25 xp total");
  1542. case 1: GivePlayerXP(killerid,25),SendClientMessage(killerid,-1,""chat" Earned 25 XP from VIP Double XP! + normal xp 20 = 45 xp total");
  1543. }
  1544. }
  1545.  
  1546. case 2:
  1547. {
  1548. switch(random(2))
  1549. {
  1550. case 0: GivePlayerXP(killerid,25),SendClientMessage(killerid,-1,""chat" Earned 25 XP from VIP Double XP! + double xp 20 = 45 xp total");
  1551. case 1: GivePlayerXP(killerid,35),SendClientMessage(killerid,-1,""chat" Earned 35 XP from VIP Double XP! + double xp 30 = 65 xp total");
  1552. }
  1553. }
  1554.  
  1555. case 3:
  1556. {
  1557. switch(random(2))
  1558. {
  1559. case 0: GivePlayerXP(killerid,35),SendClientMessage(killerid,-1,""chat" Earned 35 XP from VIP Double XP! + triple xp 30 = 65 xp total");
  1560. case 1: GivePlayerXP(killerid,45),SendClientMessage(killerid,-1,""chat" Earned 45 XP from VIP Double XP! + triple xp 40 = 85 xp total");
  1561. }
  1562. }
  1563. case 4:
  1564. {
  1565. switch(random(2))
  1566. {
  1567. case 0: GivePlayerXP(killerid,55),SendClientMessage(killerid,-1,""chat" Earned 55 XP from VIP Double XP! + quad xp 40 = 95 xp total");
  1568. case 1: GivePlayerXP(killerid,65),SendClientMessage(killerid,-1,""chat" Earned 65 XP from VIP Double XP! + quad xp 50 = 115 xp total");
  1569. }
  1570. }
  1571. }
  1572. }
  1573.  
  1574. if(team[killerid] == TEAM_ZOMBIE)
  1575. {
  1576. if(reason == 9)
  1577. {
  1578. ZombieSetup(playerid);
  1579. }
  1580. }
  1581.  
  1582. KillTimer(pInfo[playerid][IsPlayerInfectedTimer]);
  1583. GetWeaponName(reason,gunname,sizeof(gunname));
  1584. format(string,sizeof(string),"You have killed~r~ %s~w~ with an %s",PlayerName(playerid),gunname);
  1585. TextDrawSetString(iKilled[killerid],string);
  1586. TextDrawShowForPlayer(killerid, iKilled[killerid]);
  1587. SetTimerEx("HideiKilled", 3000, 0, "i", killerid);
  1588.  
  1589. if(killerid != INVALID_PLAYER_ID)
  1590. {
  1591. if(!PlayerShotPlayer[killerid][playerid])
  1592. {
  1593. new Admin[24] = "Anti-cheat";
  1594. new reason3[128] = "Fake Killing";
  1595. BanPlayer(playerid,reason3,Admin);
  1596. }
  1597. }
  1598.  
  1599. foreach(Player,i)
  1600. {
  1601. PlayerShotPlayer[i][playerid] = 0;
  1602. }
  1603. new Float:x,Float:y,Float:z;
  1604.  
  1605. if(team[playerid] == TEAM_ZOMBIE)
  1606. {
  1607. GetPlayerPos(playerid,Float:x,Float:y,Float:z);
  1608. meatDrops[playerid] = CreatePickup(2805,19,Float:x,Float:y,Float:z,0);
  1609.  
  1610. if(pInfo[playerid][pZombieClass] == BOOMERZOMBIE)
  1611. {
  1612. GetPlayerPos(playerid,Float:x,Float:y,Float:z);
  1613. CreateExplosion(Float:x,Float:y,Float:z,0,6.0);
  1614.  
  1615. foreach(Player,i)
  1616. {
  1617. GetClosestPlayer(i);
  1618. if(IsPlayerConnected(i))
  1619. {
  1620. switch(GetPlayerSkin(i))
  1621. {
  1622. case NON_IMMUNE:
  1623. {
  1624. if(IsPlayerInRangeOfPoint(i,7.0,Float:x,Float:y,Float:z))
  1625. {
  1626. if(pInfo[i][IsPlayerInfected] == 0)
  1627. {
  1628. if(pInfo[i][pAdminDuty] == 0)
  1629. {
  1630. InfectPlayerStandard(i);
  1631. }
  1632. else if(pInfo[i][pAdminDuty] == 1)
  1633. {
  1634. SendClientMessage(playerid,COLOR_RED,"That player can't be infected because is on admin duty!");
  1635. }
  1636. }
  1637. }
  1638. }
  1639. }
  1640. }
  1641. }
  1642. }
  1643. }
  1644.  
  1645. new kstring[256];
  1646. switch(pInfo[killerid][Killstreak])
  1647. {
  1648. case 5: format(kstring,sizeof(kstring),""chat""COL_PINK" %s has achieved a 5 killstreak "COL_WHITE"(+50 XP) (1 Coin)",PlayerName(killerid)), SendClientMessageToAll(-1,kstring), pInfo[killerid][pXP] += 50,pInfo[killerid][pCoins] += 1;
  1649. case 10: format(kstring,sizeof(kstring),""chat""COL_PINK" %s has achieved a 10 killstreak "COL_WHITE"(+80 XP) (2 Coins)",PlayerName(killerid)), SendClientMessageToAll(-1,kstring), pInfo[killerid][pXP] += 80,pInfo[killerid][pCoins] += 2;
  1650. case 15: format(kstring,sizeof(kstring),""chat""COL_PINK" %s has achieved a 15 killstreak "COL_WHITE"(+100 XP) (3 Coins)",PlayerName(killerid)), SendClientMessageToAll(-1,kstring), pInfo[killerid][pXP] += 100,pInfo[killerid][pCoins] += 3;
  1651. case 20: format(kstring,sizeof(kstring),""chat""COL_PINK" %s has achieved a 20 killstreak "COL_WHITE"(+150 XP) (4 Coins)",PlayerName(killerid)), SendClientMessageToAll(-1,kstring), pInfo[killerid][pXP] += 150,pInfo[killerid][pCoins] += 4;
  1652. case 25: format(kstring,sizeof(kstring),""chat""COL_PINK" %s has achieved a 25 killstreak "COL_WHITE"(+200 XP) (5 Coins)",PlayerName(killerid)), SendClientMessageToAll(-1,kstring), pInfo[killerid][pXP] += 200,pInfo[killerid][pCoins] += 5;
  1653. case 30: format(kstring,sizeof(kstring),""chat""COL_PINK" %s has achieved a 30 killstreak "COL_WHITE"(+250 XP) (6 Coins)",PlayerName(killerid)), SendClientMessageToAll(-1,kstring), pInfo[killerid][pXP] += 250,pInfo[killerid][pCoins] += 6;
  1654. case 35: format(kstring,sizeof(kstring),""chat""COL_PINK" %s has achieved a 35 killstreak "COL_WHITE"(+350 XP) (7 Coins)",PlayerName(killerid)), SendClientMessageToAll(-1,kstring), pInfo[killerid][pXP] += 350,pInfo[killerid][pCoins] += 7;
  1655. case 40: format(kstring,sizeof(kstring),""chat""COL_PINK" %s has achieved a 40 killstreak "COL_WHITE"(+500 XP) (8 Coins)",PlayerName(killerid)), SendClientMessageToAll(-1,kstring), pInfo[killerid][pXP] += 500,pInfo[killerid][pCoins] += 8;
  1656. case 45: format(kstring,sizeof(kstring),""chat""COL_PINK" %s has achieved a 45 killstreak "COL_WHITE"(+600 XP) (9 Coins)",PlayerName(killerid)), SendClientMessageToAll(-1,kstring), pInfo[killerid][pXP] += 600,pInfo[killerid][pCoins] += 9;
  1657. case 50: format(kstring,sizeof(kstring),""chat""COL_PINK" %s has achieved a 50 killstreak "COL_WHITE"(+800 XP) (10 Coins)",PlayerName(killerid)), SendClientMessageToAll(-1,kstring), pInfo[killerid][pXP] += 800,pInfo[killerid][pCoins] += 10;
  1658. case 55: format(kstring,sizeof(kstring),""chat""COL_PINK" %s has achieved a 55 killstreak "COL_WHITE"(+950 XP) (11 Coins)",PlayerName(killerid)), SendClientMessageToAll(-1,kstring), pInfo[killerid][pXP] += 950,pInfo[killerid][pCoins] += 11;
  1659. case 60: format(kstring,sizeof(kstring),""chat""COL_PINK" %s has achieved a 60 killstreak "COL_WHITE"(+1000 XP) (12 Coins)",PlayerName(killerid)), SendClientMessageToAll(-1,kstring), pInfo[killerid][pXP] += 1000,pInfo[killerid][pCoins] += 12;
  1660. case 65: format(kstring,sizeof(kstring),""chat""COL_PINK" %s has achieved a 65 killstreak "COL_WHITE"(+1200 XP) (13 Coins)",PlayerName(killerid)), SendClientMessageToAll(-1,kstring), pInfo[killerid][pXP] += 1200,pInfo[killerid][pCoins] += 13;
  1661. case 70: format(kstring,sizeof(kstring),""chat""COL_PINK" %s has achieved a 70 killstreak "COL_WHITE"(+1500 XP) (14 Coins)",PlayerName(killerid)), SendClientMessageToAll(-1,kstring), pInfo[killerid][pXP] += 1500,pInfo[killerid][pCoins] += 14;
  1662. case 75: format(kstring,sizeof(kstring),""chat""COL_PINK" %s has achieved a 75 killstreak "COL_WHITE"(+1600 XP) (15 Coins)",PlayerName(killerid)), SendClientMessageToAll(-1,kstring), pInfo[killerid][pXP] += 1600,pInfo[killerid][pCoins] += 15;
  1663. case 80: format(kstring,sizeof(kstring),""chat""COL_PINK" %s has achieved a 80 killstreak "COL_WHITE"(+1800 XP) (16 Coins)",PlayerName(killerid)), SendClientMessageToAll(-1,kstring), pInfo[killerid][pXP] += 1800,pInfo[killerid][pCoins] += 16;
  1664. case 85: format(kstring,sizeof(kstring),""chat""COL_PINK" %s has achieved a 85 killstreak "COL_WHITE"(+1900 XP) (17 Coins)",PlayerName(killerid)), SendClientMessageToAll(-1,kstring), pInfo[killerid][pXP] += 1900,pInfo[killerid][pCoins] += 17;
  1665. case 90: format(kstring,sizeof(kstring),""chat""COL_PINK" %s has achieved a 90 killstreak "COL_WHITE"(+2000 XP) (18 Coins)",PlayerName(killerid)), SendClientMessageToAll(-1,kstring), pInfo[killerid][pXP] += 2000,pInfo[killerid][pCoins] += 18;
  1666. case 95: format(kstring,sizeof(kstring),""chat""COL_PINK" %s has achieved a 95 killstreak "COL_WHITE"(+5000 XP) (19 Coins)",PlayerName(killerid)), SendClientMessageToAll(-1,kstring), pInfo[killerid][pXP] += 5000,pInfo[killerid][pCoins] += 19;
  1667. case 100: format(kstring,sizeof(kstring),""chat""COL_PINK" %s has achieved a 100 killstreak "COL_WHITE"(+5500 XP) (20 Coins)",PlayerName(killerid)), SendClientMessageToAll(-1,kstring), pInfo[killerid][pXP] += 5500,pInfo[killerid][pCoins] += 20;
  1668. case 105: format(kstring,sizeof(kstring),""chat""COL_PINK" %s has achieved a 105 killstreak "COL_WHITE"(+6000 XP) (21 Coins)",PlayerName(killerid)), SendClientMessageToAll(-1,kstring), pInfo[killerid][pXP] += 6000,pInfo[killerid][pCoins] += 21;
  1669. case 110: format(kstring,sizeof(kstring),""chat""COL_PINK" %s has achieved a 110 killstreak "COL_WHITE"(+6500 XP) (22 Coins)",PlayerName(killerid)), SendClientMessageToAll(-1,kstring), pInfo[killerid][pXP] += 6500,pInfo[killerid][pCoins] += 22;
  1670. case 115: format(kstring,sizeof(kstring),""chat""COL_PINK" %s has achieved a 115 killstreak "COL_WHITE"(+7000 XP) (23 Coins)",PlayerName(killerid)), SendClientMessageToAll(-1,kstring), pInfo[killerid][pXP] += 7000,pInfo[killerid][pCoins] += 23;
  1671. case 120: format(kstring,sizeof(kstring),""chat""COL_PINK" %s has achieved a 120 killstreak "COL_WHITE"(+7500 XP) (24 Coins)",PlayerName(killerid)), SendClientMessageToAll(-1,kstring), pInfo[killerid][pXP] += 7500,pInfo[killerid][pCoins] += 24;
  1672. }
  1673.  
  1674. if(team[killerid] == TEAM_HUMAN)
  1675. {
  1676. if(GetPlayerSkin(killerid) == 0)
  1677. {
  1678. new Admin[24] = "Anti-cheat";
  1679. new reason3[128] = "Skin Hack (SI 0)";
  1680. BanPlayer(killerid,reason3,Admin);
  1681. }
  1682. }
  1683.  
  1684. hideTextdrawsAfterConnect(playerid);
  1685. CheckToLevelOrRankUp(killerid);
  1686. }
  1687.  
  1688. return 1;
  1689. }
  1690.  
  1691. public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
  1692. {
  1693. PlayerShotPlayer[issuerid][playerid] = 1;
  1694.  
  1695. if(team[issuerid] == TEAM_HUMAN)
  1696. {
  1697. if(pInfo[issuerid][pHumanClass] == KICKBACK || pInfo[issuerid][pVipKickBack] == 1 || pInfo[issuerid][pKickBackCoin])
  1698. {
  1699. if(team[playerid] == TEAM_ZOMBIE)
  1700. {
  1701. if(weaponid == 23 || weaponid == 25 || weaponid == 24 || weaponid == 34 || weaponid == 31 || weaponid == 29)
  1702. {
  1703. new Float:x,Float:y,Float:z,Float:angle;
  1704. GetPlayerFacingAngle(playerid,Float:angle);
  1705. GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
  1706.  
  1707. SetPlayerVelocity(playerid,Float:x+0.1,Float:y+0.1,Float:z+0.2);
  1708. SetPlayerFacingAngle(playerid,Float:angle);
  1709. }
  1710. }
  1711. }
  1712. }
  1713.  
  1714. if(team[issuerid] == TEAM_HUMAN)
  1715. {
  1716. if(pInfo[issuerid][pHumanClass] == KICKBACK || pInfo[issuerid][pVipKickBack] == 1 || pInfo[issuerid][pKickBackCoin])
  1717. {
  1718. if(pInfo[issuerid][pZombieClass] == KZOM)
  1719. {
  1720. if(weaponid == 23 || weaponid == 25 || weaponid == 24 || weaponid == 34 || weaponid == 31 || weaponid == 29 || weaponid == 27)
  1721. {
  1722. new Float:x,Float:y,Float:z,Float:angle;
  1723. GetPlayerFacingAngle(playerid,Float:angle);
  1724. GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
  1725.  
  1726. SetPlayerVelocity(playerid,Float:x+0.0,Float:y+0.0,Float:z+0.0);
  1727. SetPlayerFacingAngle(playerid,Float:angle);
  1728. }
  1729. }
  1730. }
  1731. }
  1732.  
  1733. if(team[issuerid] == TEAM_ZOMBIE)
  1734. {
  1735. if(pInfo[issuerid][pZombieClass] == DSNIPE)
  1736. {
  1737. if(team[playerid] == TEAM_HUMAN)
  1738. {
  1739. if(weaponid == 34)
  1740. {
  1741. new Float:hp;
  1742. GetPlayerHealth(playerid,hp);
  1743. SetPlayerHealth(playerid, hp - 10);
  1744. }
  1745. }
  1746. }
  1747. }
  1748.  
  1749. if(team[issuerid] == TEAM_HUMAN)
  1750. {
  1751. if(pInfo[issuerid][pHumanClass] == AKICK)
  1752. {
  1753. if(team[playerid] == TEAM_ZOMBIE)
  1754. {
  1755. if(weaponid == 27)
  1756. {
  1757. new Float:x,Float:y,Float:z,Float:angle;
  1758. GetPlayerFacingAngle(playerid,Float:angle);
  1759. GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
  1760.  
  1761. SetPlayerVelocity(playerid,Float:x+0.3,Float:y+0.3,Float:z+0.4);
  1762. SetPlayerFacingAngle(playerid,Float:angle);
  1763. }
  1764. }
  1765. }
  1766. }
  1767.  
  1768. if(team[issuerid] == TEAM_HUMAN)
  1769. {
  1770. if(pInfo[issuerid][pHumanClass] == VIPSCOUT || pInfo[issuerid][pHumanClass] == MASTER || pInfo[issuerid][pHumanClass] == BUDDY || pInfo[issuerid][pHumanClass] == HITMAN)
  1771. {
  1772. if(team[playerid] == TEAM_ZOMBIE)
  1773. {
  1774. if(weaponid == 34 || weaponid == 29 || weaponid == 14 || weaponid == 33 || weaponid == 30)
  1775. {
  1776. new Float:hp;
  1777. GetPlayerHealth(playerid,hp);
  1778. SetPlayerHealth(playerid, hp - 40);
  1779. }
  1780. }
  1781. }
  1782. }
  1783. if(team[issuerid] == TEAM_ZOMBIE)
  1784. {
  1785. if(pInfo[issuerid][pZombieClass] == GZOM)
  1786. {
  1787. if(team[playerid] == TEAM_HUMAN)
  1788. {
  1789. if(weaponid == 9)
  1790. {
  1791. new Float:hp;
  1792. GetPlayerHealth(playerid,hp);
  1793. SetPlayerHealth(playerid, hp - 40);
  1794. }
  1795. }
  1796. }
  1797. }
  1798.  
  1799. if(team[issuerid] == TEAM_ZOMBIE || TEAM_HUMAN)
  1800. {
  1801. if(pInfo[issuerid][pHour] <= 2)
  1802. {
  1803. if(team[playerid] == TEAM_HUMAN)
  1804. {
  1805. pInfo[issuerid][pXP] += 10;
  1806. }
  1807. }
  1808. }
  1809.  
  1810. if(team[issuerid] == TEAM_HUMAN)
  1811. {
  1812. if(pInfo[issuerid][pHumanClass] == COWBOY)
  1813. {
  1814. if(team[playerid] == TEAM_ZOMBIE)
  1815. {
  1816. if(weaponid == 22)
  1817. {
  1818. new Float:hp;
  1819. GetPlayerHealth(playerid,hp);
  1820. SetPlayerHealth(playerid, hp - 20);
  1821. }
  1822. }
  1823. }
  1824. }
  1825.  
  1826. if(team[issuerid] == TEAM_HUMAN)
  1827. {
  1828. if(pInfo[issuerid][pHumanClass] == ASSASSIN)
  1829. {
  1830. if(team[playerid] == TEAM_ZOMBIE)
  1831. {
  1832. if(weaponid == 8)
  1833. {
  1834. new Float:hp;
  1835. GetPlayerHealth(playerid,hp);
  1836. SetPlayerHealth(playerid, hp - 100);
  1837. }
  1838. }
  1839. }
  1840. }
  1841. if(team[issuerid] == TEAM_HUMAN)
  1842. {
  1843. if(pInfo[issuerid][pHumanClass] == PIMP)
  1844. {
  1845. if(team[playerid] == TEAM_ZOMBIE)
  1846. {
  1847. if(weaponid == 10)
  1848. {
  1849. new Float:hp;
  1850. GetPlayerHealth(playerid,hp);
  1851. SetPlayerHealth(playerid, hp - 15);
  1852. }
  1853. }
  1854. }
  1855. }
  1856. if(team[issuerid] == TEAM_HUMAN)
  1857. {
  1858. if(pInfo[issuerid][pHumanClass] == EXPERIENCEDSCOUT)
  1859. {
  1860. if(team[playerid] == TEAM_ZOMBIE)
  1861. {
  1862. if(weaponid == 34 || weaponid == 23 )
  1863. {
  1864. new Float:hp;
  1865. GetPlayerHealth(playerid,hp);
  1866. SetPlayerHealth(playerid, hp - 80);
  1867. }
  1868. }
  1869. }
  1870. }
  1871. if(team[issuerid] == TEAM_HUMAN)
  1872. {
  1873. if(pInfo[issuerid][pHumanClass] == SCOUT || pInfo[issuerid][pHumanClass] == HEAVYSHOTGUN || pInfo[issuerid][pHumanClass] == KICKBACK || pInfo[issuerid][pDamageShotgunCoin] == 1 || pInfo[issuerid][pHumanClass] == BOXER)
  1874. {
  1875. if(team[playerid] == TEAM_ZOMBIE)
  1876. {
  1877. if(weaponid == 25)
  1878. {
  1879. new Float:hp;
  1880. GetPlayerHealth(playerid,hp);
  1881. SetPlayerHealth(playerid, hp - 35);
  1882. }
  1883. if(weaponid == 0)
  1884. {
  1885. new Float:hp;
  1886. GetPlayerHealth(playerid,hp);
  1887. SetPlayerHealth(playerid, hp - 100);
  1888. }
  1889. if(weaponid == 34)
  1890. {
  1891. new Float:hp;
  1892. GetPlayerHealth(playerid,hp);
  1893. SetPlayerHealth(playerid, hp - 35);
  1894. }
  1895. }
  1896. }
  1897. }
  1898.  
  1899. if(team[issuerid] == TEAM_HUMAN)
  1900. {
  1901. if(pInfo[issuerid][pHumanClass] == TECG)
  1902. {
  1903. if(team[playerid] == TEAM_ZOMBIE)
  1904. {
  1905. if(weaponid == 32)
  1906. {
  1907. new Float:hp;
  1908. GetPlayerHealth(playerid,hp);
  1909. SetPlayerHealth(playerid, hp - 75);
  1910. }
  1911. }
  1912. }
  1913. }
  1914.  
  1915. if(team[issuerid] == TEAM_HUMAN)
  1916. {
  1917. if(pInfo[issuerid][pHumanClass] == BULL)
  1918. {
  1919. if(team[playerid] == TEAM_ZOMBIE)
  1920. {
  1921. if(weaponid == 26)
  1922. {
  1923. new Float:hp;
  1924. GetPlayerHealth(playerid,hp);
  1925. SetPlayerHealth(playerid, hp - 40);
  1926. }
  1927. }
  1928. }
  1929. }
  1930.  
  1931. if(team[issuerid] == TEAM_HUMAN)
  1932. {
  1933. if(pInfo[issuerid][pHumanClass] == SHOTGUNSPECIAL)
  1934. {
  1935. if(team[playerid] == TEAM_ZOMBIE)
  1936. {
  1937. if(weaponid == 25)
  1938. {
  1939. new Float:hp;
  1940. GetPlayerHealth(playerid,hp);
  1941. SetPlayerHealth(playerid, hp - 50);
  1942. }
  1943. }
  1944. }
  1945. }
  1946. return 1;
  1947. }
  1948.  
  1949. public OnPlayerText(playerid, text[])
  1950. {
  1951. if(GetPVarInt(playerid, "SPS Muted") == 0)
  1952. {
  1953. SetPVarInt(playerid, "SPS Messages Sent", GetPVarInt(playerid, "SPS Messages Sent") + 1);
  1954. SetTimerEx("SPS_Remove_Messages_Limit", 1500, 0, "i", playerid);
  1955.  
  1956. if(GetPVarInt(playerid, "SPS Messages Sent") >= 4)
  1957. {
  1958. if(!(((GetPVarInt(playerid, "SPS Spam Warnings") + 2) == 3)))
  1959. {
  1960. SendClientMessage(playerid, -1, ""chat""COL_LIGHTBLUE" Please, do not spam.");
  1961. }
  1962. SetPVarInt(playerid, "SPS Spam Warnings", GetPVarInt(playerid, "SPS Spam Warnings") + 1);
  1963. }
  1964.  
  1965. if(pInfo[playerid][pLogged] == 1)
  1966. {
  1967. new stringbig[356];
  1968. if(pInfo[playerid][IsPlayerMuted] == 1) {
  1969. SendClientMessage(playerid,-1,""chat" You are muted");
  1970. return 0;
  1971. }
  1972. if(team[playerid] == TEAM_HUMAN)
  1973. {
  1974. format(stringbig,sizeof(stringbig),""COL_WHITE"[Human](%d): {FFFFFF}%s",playerid, text);
  1975. SendPlayerMessageToAll(playerid,stringbig);
  1976. }
  1977. if(team[playerid] == TEAM_ZOMBIE)
  1978. {
  1979. format(stringbig,sizeof(stringbig),""COL_WHITE"[Zombie](%d): {FFFFFF}%s",playerid, text);
  1980. SendPlayerMessageToAll(playerid,stringbig);
  1981. }
  1982. {
  1983. SetPlayerChatBubble(playerid, text, 0xFF0000FF, 100.0, 10000);
  1984. }
  1985. }
  1986. }
  1987. else
  1988. {
  1989. SendClientMessage(playerid, -1, ""chat""COL_LIGHTBLUE" You are muted, you can't talk.");
  1990. return 0;
  1991. }
  1992. return 0;
  1993. }
  1994.  
  1995. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  1996. {
  1997. if(pInfo[playerid][pAdminLevel] >= 5)
  1998. {
  1999. SendClientMessage(playerid,-1,""chat" "COL_GREEN"{1569C7}Welcome To Vehicle");
  2000. }
  2001. else
  2002. {
  2003. new Float:posxx[3];
  2004. GetPlayerPos(playerid, posxx[0], posxx[1], posxx[2]);
  2005. SetPlayerPos(playerid, posxx[0], posxx[1], posxx[2]+2);
  2006. }
  2007. return 1;
  2008. }
  2009.  
  2010. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  2011. {
  2012. if(PRESSED(KEY_FIRE))
  2013. {
  2014. switch(GetPlayerWeapon(playerid))
  2015. {
  2016. case 15,16,17,18,36,38,39,41,42,43,44,45:
  2017. {
  2018. new reason[128];
  2019. new Admin[24] = "Anti-cheat";
  2020. format(reason,sizeof(reason),"Weapon hack %i",GetPlayerWeapon(playerid));
  2021. BanPlayer(playerid,reason,Admin);
  2022. }
  2023. }
  2024. }
  2025.  
  2026. if(PRESSED(KEY_FIRE))
  2027. {
  2028. if(team[playerid] == TEAM_HUMAN)
  2029. {
  2030. switch(GetPlayerWeapon(playerid))
  2031. {
  2032. case 9: ShowPlayerDialog(playerid,DIALOG_KICK,DIALOG_STYLE_MSGBOX,"Kicked for bugged","You have been kicked for chainsaw bug reconnect to solve the problem","Leave",""),Kick(playerid);
  2033. }
  2034. }
  2035. }
  2036.  
  2037.  
  2038. if(PRESSED(KEY_YES))
  2039. {
  2040. if(team[playerid] == TEAM_HUMAN)
  2041. {
  2042. if(gettime() - 8 < Abilitys[playerid][ShoutCooldown]) return GameTextForPlayer(playerid,"~w~ Cannot shout wait 8 seconds!",1000,5);
  2043. {
  2044. ShowPlayerDialog(playerid,DIALOG_SHOUT,DIALOG_STYLE_LIST,"Select an shout!","Medic\nBoomer Incoming\nScreamer Incoming\nStomper Incoming\nIt's clear\nZOMBIES NEARBY!\nZOMBIES INCOMING\nNeed assistance\nNeed backup","Select","Cancel");
  2045. PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  2046. Abilitys[playerid][ShoutCooldown] = gettime();
  2047. }
  2048. }
  2049. }
  2050. if(PRESSED(KEY_WALK))
  2051. {
  2052. if(team[playerid] == TEAM_HUMAN)
  2053. {
  2054. if(pInfo[playerid][pHumanClass] == E_ENGINEER)
  2055. {
  2056. new Float:pz, Float:x, Float:y, Float:z;
  2057. GetPlayerFacingAngle(playerid, pz);
  2058. GetPlayerPos(playerid, Float:x, Float:y, Float:z);
  2059.  
  2060. if(pInfo[playerid][pLadders] >= 1)
  2061. {
  2062. new string[128];
  2063. pInfo[playerid][pLadders] -= 1;
  2064. GetXYInFrontOfPlayer(playerid, Float:x,Float:y, 1.0);
  2065. CreateObject(1437,Float:x,Float:y,Float:z,-30.0,0.0,pz,500.0);
  2066. format(string,sizeof(string),""chat" You have %i ladders left",pInfo[playerid][pLadders]);
  2067. SendClientMessage(playerid,-1,string);
  2068. PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  2069. }
  2070. else return SendClientMessage(playerid,-1,""chat" You ran out of Ladders!");
  2071. }
  2072. }
  2073. }
  2074. if(PRESSED(KEY_WALK))
  2075. {
  2076. if(team[playerid] == TEAM_HUMAN)
  2077. {
  2078. if(pInfo[playerid][pHumanClass] == VIPENGINEER)
  2079. {
  2080. new Float:pz, Float:x, Float:y, Float:z;
  2081. GetPlayerFacingAngle(playerid, pz);
  2082. GetPlayerPos(playerid, Float:x, Float:y, Float:z);
  2083.  
  2084. if(pInfo[playerid][pVipBoxes] >= 1)
  2085. {
  2086. new string[128];
  2087. pInfo[playerid][pVipBoxes] -= 1;
  2088. GetXYInFrontOfPlayer(playerid, Float:x,Float:y, 1.0);
  2089. CreateObject(1271,Float:x,Float:y,Float:z,0.0,0.0,pz,500.0);
  2090. format(string,sizeof(string),""chat" You have %i boxes left",pInfo[playerid][pVipBoxes]);
  2091. SendClientMessage(playerid,-1,string);
  2092. PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  2093. }
  2094. else return SendClientMessage(playerid,-1,""chat" You ran out of boxes!");
  2095. }
  2096. }
  2097. }
  2098. if(PRESSED(KEY_WALK))
  2099. {
  2100. if(team[playerid] == TEAM_HUMAN)
  2101. {
  2102. if(pInfo[playerid][pHumanClass] == ENGINEER)
  2103. {
  2104. new Float:pz, Float:x, Float:y, Float:z;
  2105. GetPlayerFacingAngle(playerid, pz);
  2106. GetPlayerPos(playerid, Float:x, Float:y, Float:z);
  2107.  
  2108. if(pInfo[playerid][Boxes] >= 1)
  2109. {
  2110. new string[128];
  2111. pInfo[playerid][Boxes] -= 1;
  2112. GetXYInFrontOfPlayer(playerid, Float:x,Float:y, 1.0);
  2113. CreateObject(1421,Float:x,Float:y,Float:z,0.0,0.0,pz,500.0);
  2114. format(string,sizeof(string),""chat" You have %i boxes left",pInfo[playerid][Boxes]);
  2115. SendClientMessage(playerid,-1,string);
  2116. PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  2117. }
  2118. else return SendClientMessage(playerid,-1,""chat" You ran out of boxes!");
  2119. }
  2120. }
  2121. }
  2122. if(PRESSED(KEY_WALK))
  2123. {
  2124. if(team[playerid] == TEAM_HUMAN)
  2125. {
  2126. if(pInfo[playerid][pHumanClass] == ADVANCEDENGINEER)
  2127. {
  2128. new Float:pz, Float:x, Float:y, Float:z;
  2129. GetPlayerFacingAngle(playerid, pz);
  2130. GetPlayerPos(playerid, Float:x, Float:y, Float:z);
  2131.  
  2132. if(pInfo[playerid][BoxesAdvanced] >= 1)
  2133. {
  2134. new string[128];
  2135. pInfo[playerid][BoxesAdvanced] -= 1;
  2136. GetXYInFrontOfPlayer(playerid, Float:x,Float:y, 1.0);
  2137. CreateObject(1421,Float:x,Float:y,Float:z,0.0,0.0,pz,500.0);
  2138. format(string,sizeof(string),""chat" You have %i boxes left",pInfo[playerid][BoxesAdvanced]);
  2139. SendClientMessage(playerid,-1,string);
  2140. PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  2141. }
  2142. else return SendClientMessage(playerid,-1,""chat" You ran out of boxes!");
  2143. }
  2144. }
  2145. }
  2146. if(PRESSED(KEY_WALK))
  2147. {
  2148. if(team[playerid] == TEAM_HUMAN)
  2149. {
  2150. if(pInfo[playerid][pHumanClass] == DOCTOR)
  2151. {
  2152. new Float:pz, Float:x, Float:y, Float:z;
  2153. GetPlayerFacingAngle(playerid, pz);
  2154. GetPlayerPos(playerid, Float:x, Float:y, Float:z);
  2155.  
  2156. if(pInfo[playerid][pDoctorShield] >= 1)
  2157. {
  2158. new string[128];
  2159. pInfo[playerid][pDoctorShield] -= 1;
  2160. GetXYInFrontOfPlayer(playerid, Float:x,Float:y, 1.0);
  2161. DocShield = CreateObject(3534,Float:x,Float:y,Float:z,0.0,0.0,pz,500.0);
  2162. format(string,sizeof(string),""chat" You have %i Doctor shields left",pInfo[playerid][pDoctorShield]);
  2163. SendClientMessage(playerid,-1,string);
  2164. PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  2165. }
  2166. else return SendClientMessage(playerid,-1,""chat" You ran out of shields!");
  2167. }
  2168. }
  2169. }
  2170. if(PRESSED(KEY_WALK))
  2171. {
  2172. if(team[playerid] == TEAM_HUMAN)
  2173. {
  2174. if(pInfo[playerid][pHumanClass] == ASSASSIN)
  2175. {
  2176. new Float:pz, Float:x, Float:y, Float:z;
  2177. GetPlayerFacingAngle(playerid, pz);
  2178. GetPlayerPos(playerid, Float:x, Float:y, Float:z);
  2179.  
  2180. if(pInfo[playerid][C4] >= 1)
  2181. {
  2182. new string[128];
  2183. pInfo[playerid][C4] -= 1;
  2184. GetXYInFrontOfPlayer(playerid, Float:x,Float:y, 1.0);
  2185. ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 2000);
  2186. c4Obj[playerid] = CreateObject(1654,Float:x,Float:y,Float:z-1,0.0,0.0,pz,500.0);
  2187. format(string,sizeof(string),""chat" You have %i C4's left",pInfo[playerid][C4]);
  2188. SendClientMessage(playerid,-1,string);
  2189.  
  2190. GameTextForPlayer(playerid,"~n~~n~~n~~n~~g~Planted c4 exploded in 10 seconds",3500,5);
  2191. SetTimerEx("C4Explode",10000,0,"i",playerid);
  2192. GivePlayerXP(playerid,5);
  2193. PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  2194. }
  2195. else return SendClientMessage(playerid,-1,""chat" You ran out of c4's!");
  2196. }
  2197. }
  2198. }
  2199. if(PRESSED(KEY_WALK))
  2200. {
  2201. if(team[playerid] == TEAM_HUMAN)
  2202. {
  2203. if(pInfo[playerid][pHumanClass] == TRAPMASTER)
  2204. {
  2205. new Float:pz, Float:x, Float:y, Float:z;
  2206. GetPlayerFacingAngle(playerid, pz);
  2207. GetPlayerPos(playerid, Float:x, Float:y, Float:z);
  2208.  
  2209. if(pInfo[playerid][pTrapMasterTrap] >= 1)
  2210. {
  2211. new string[128];
  2212. pInfo[playerid][pTrapMasterTrap] -= 1;
  2213. GetXYInFrontOfPlayer(playerid, Float:x,Float:y, 1.0);
  2214. ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 2000);
  2215. Trap = CreateObject(19315,Float:x,Float:y,Float:z-1,0.0,0.0,pz,500.0);
  2216. format(string,sizeof(string),""chat" You have %i traps left",pInfo[playerid][traps]);
  2217. SendClientMessage(playerid,-1,string);
  2218. }
  2219. else return SendClientMessage(playerid,-1,""chat" You ran out of traps!");
  2220. }
  2221.  
  2222. }
  2223.  
  2224. }
  2225. if(PRESSED(KEY_WALK))
  2226. {
  2227. if(team[playerid] == TEAM_HUMAN)
  2228. {
  2229. if(pInfo[playerid][pHumanClass] == SCIENTIST)
  2230. {
  2231. new Float:x,Float:y,Float:z,Float:Angle;
  2232. GetPlayerPos(playerid,Float:x,Float:y,Float:z);
  2233. GetPlayerFacingAngle(playerid,Float:Angle);
  2234.  
  2235. new targetid = GetClosestPlayer(playerid);
  2236. if(team[targetid] == TEAM_ZOMBIE)
  2237. {
  2238. foreach(Player,i)
  2239. {
  2240. if(GetDistanceBetweenPlayers(targetid,i) <= 6.0)
  2241. {
  2242. if (pInfo[playerid][pScientistCure] >= 1)
  2243. {
  2244. GetClosestPlayer(i);
  2245. GetPlayerFacingAngle(i,Float:Angle);
  2246. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  2247. GivePlayerXP(playerid, 500);
  2248.  
  2249. new string[128], string2[128], revivedstring[128];
  2250. HumanSetup(targetid);
  2251. SpawnPlayer(targetid);
  2252.  
  2253. SetPlayerPos(targetid,Float:x,Float:y,Float:z);
  2254. SetPlayerFacingAngle(targetid,Float:Angle);
  2255.  
  2256. pInfo[playerid][pScientistCure] -= 1;
  2257.  
  2258. format(string,sizeof(string),""chat" You have revived %s",PlayerName(targetid));
  2259. SendClientMessage(playerid,-1,string);
  2260.  
  2261. format(string2,sizeof(string2),""chat" You have beed revived by %s",PlayerName(playerid));
  2262. SendClientMessage(targetid,-1,string2);
  2263.  
  2264. format(revivedstring,sizeof(revivedstring), ""chat""COL_PINK" %s has been revived by %s",PlayerName(targetid),PlayerName(playerid));
  2265. SendClientMessageToAll(-1,revivedstring);
  2266. }
  2267. }
  2268. }
  2269. }
  2270. }
  2271. }
  2272. }
  2273. if(PRESSED(KEY_WALK))
  2274. {
  2275. if(team[playerid] == TEAM_ZOMBIE)
  2276. {
  2277. if(pInfo[playerid][pZombieClass] == ADVSTOMPER || pInfo[playerid][pZombieClass] == KZOM)
  2278. {
  2279. if(gettime() - 6 < Abilitys[playerid][StomperPushing]) return GameTextForPlayer(playerid,"~w~ Still recovering",1000,5);
  2280. {
  2281. new Float:x,Float:y,Float:z,Float:Angle;
  2282. GetPlayerPos(playerid,Float:x,Float:y,Float:z);
  2283. GetPlayerFacingAngle(playerid,Float:Angle);
  2284. foreach(Player,i)
  2285. {
  2286. switch(GetPlayerSkin(i))
  2287. {
  2288. case NON_IMMUNE,100:
  2289. {
  2290. if(GetDistanceBetweenPlayers(playerid,i) < 8.0)
  2291. {
  2292. GetClosestPlayer(i);
  2293. GetPlayerFacingAngle(i,Float:Angle);
  2294. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  2295. SetPlayerVelocity(i,Float:x+0.3,Float:y+0.3,Float:z+0.2);
  2296. SetPlayerFacingAngle(i,Float:Angle);
  2297. GivePlayerXP(playerid,20);
  2298. Abilitys[playerid][StomperPushing] = gettime();
  2299. }
  2300. }
  2301. }
  2302. }
  2303. }
  2304. }
  2305. }
  2306. }
  2307. if(PRESSED(KEY_WALK))
  2308. {
  2309. if(team[playerid] == TEAM_ZOMBIE)
  2310. {
  2311. if(pInfo[playerid][pZombieClass] == STOMPERZOMBIE)
  2312. {
  2313. if(gettime() - 6 < Abilitys[playerid][StomperPushing]) return GameTextForPlayer(playerid,"~w~ Still recovering",1000,5);
  2314. {
  2315. new Float:x,Float:y,Float:z,Float:Angle;
  2316. GetPlayerPos(playerid,Float:x,Float:y,Float:z);
  2317. GetPlayerFacingAngle(playerid,Float:Angle);
  2318. foreach(Player,i)
  2319. {
  2320. switch(GetPlayerSkin(i))
  2321. {
  2322. case NON_IMMUNE,163,70:
  2323. {
  2324. if(GetDistanceBetweenPlayers(playerid,i) < 6.0)
  2325. {
  2326. GetClosestPlayer(i);
  2327. GetPlayerFacingAngle(i,Float:Angle);
  2328. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  2329. SetPlayerVelocity(i,Float:x+0.3,Float:y+0.3,Float:z+0.2);
  2330. SetPlayerFacingAngle(i,Float:Angle);
  2331. GivePlayerXP(playerid,20);
  2332. Abilitys[playerid][StomperPushing] = gettime();
  2333. }
  2334. }
  2335. }
  2336. }
  2337. }
  2338. }
  2339. }
  2340. }
  2341. if(PRESSED(KEY_FIRE))
  2342. {
  2343. if(team[playerid] == TEAM_HUMAN)
  2344. {
  2345. if(pInfo[playerid][pHumanClass] == BOXER)
  2346. {
  2347. if(gettime() - 1 < Abilitys[playerid][StomperPushing]) return GameTextForPlayer(playerid,"~r~ Still recovering",1000,5);
  2348. {
  2349. new Float:x,Float:y,Float:z,Float:Angle;
  2350. GetPlayerPos(playerid,Float:x,Float:y,Float:z);
  2351. GetPlayerFacingAngle(playerid,Float:Angle);
  2352. foreach(Player,i)
  2353. {
  2354. switch(GetPlayerSkin(i))
  2355. {
  2356. case TEAM_ZOMBIE:
  2357. {
  2358. if(GetDistanceBetweenPlayers(playerid,i) < 2.0)
  2359. {
  2360. GetClosestPlayer(i);
  2361. GetPlayerFacingAngle(i,Float:Angle);
  2362. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  2363. SetPlayerVelocity(i,Float:x+0.3,Float:y+0.3,Float:z+0.2);
  2364. SetPlayerFacingAngle(i,Float:Angle);
  2365. GivePlayerXP(playerid,10);
  2366. Abilitys[playerid][StomperPushing] = gettime();
  2367. }
  2368. }
  2369. }
  2370. }
  2371. }
  2372. }
  2373. }
  2374. }
  2375. if(PRESSED(KEY_WALK))
  2376. {
  2377. if(team[playerid] == TEAM_ZOMBIE)
  2378. {
  2379. if(pInfo[playerid][pZombieClass] == FIREBREATHER)
  2380. {
  2381. if(gettime() - 15 < Abilitys[playerid][FireBreatherCooldown]) return GameTextForPlayer(playerid,"~w~ Still recovering",1000,5);
  2382. {
  2383. new Float:pz, Float:x, Float:y, Float:z;
  2384. GetPlayerFacingAngle(playerid, pz);
  2385. GetPlayerPos(playerid, Float:x, Float:y, Float:z);
  2386. GetXYInFrontOfPlayer(playerid, Float:x,Float:y,12.0);
  2387. CreateExplosion(Float:x, Float:y, Float:z,1,40);
  2388. GivePlayerXP(playerid,50);
  2389. Abilitys[playerid][FireBreatherCooldown] = gettime();
  2390. SendClientMessage(playerid,COLOR_GREEN,"You took a deep breath and burned everything in your way!");
  2391. }
  2392. }
  2393. }
  2394. }
  2395. if(PRESSED(KEY_WALK))
  2396. {
  2397. if(team[playerid] == TEAM_HUMAN)
  2398. {
  2399. if(pInfo[playerid][pHumanClass] == GHOST)
  2400. {
  2401. if(gettime() - 20 < Abilitys[playerid][FireBreatherCooldown]) return GameTextForPlayer(playerid,"~r~ Still recovering",1000,5);
  2402. {
  2403. new Float:pz, Float:x, Float:y, Float:z;
  2404. GetPlayerFacingAngle(playerid, pz);
  2405. GetPlayerPos(playerid, Float:x, Float:y, Float:z);
  2406. GetXYInFrontOfPlayer(playerid, Float:x,Float:y,12.0);
  2407. CreateExplosion(Float:x, Float:y, Float:z,1,40);
  2408. GivePlayerXP(playerid,50);
  2409. Abilitys[playerid][FireBreatherCooldown] = gettime();
  2410. SendClientMessage(playerid,COLOR_GREEN,"I AM GHOST RIDER BABY!!!");
  2411. }
  2412. }
  2413. }
  2414. }
  2415. if(PRESSED(KEY_WALK))
  2416. {
  2417. if(team[playerid] == TEAM_ZOMBIE)
  2418. {
  2419. if(pInfo[playerid][pZombieClass] == NEMESIS)
  2420. {
  2421. new Float:pz, Float:x, Float:y, Float:z;
  2422. new targetid = GetClosestPlayer(playerid);
  2423. GetPlayerFacingAngle(playerid, pz);
  2424. GetPlayerPos(playerid, Float:x, Float:y, Float:z);
  2425. if(GetDistanceBetweenPlayers(playerid,targetid) < 10.0)
  2426. {
  2427. if(gettime() - 30 < Abilitys[playerid][NemesisCooldown]) return GameTextForPlayer(playerid,"~r~ You must wait 30 seconds",1000,5);
  2428. {
  2429. if(team[targetid] == TEAM_HUMAN)
  2430. {
  2431. smokemachine[playerid] = SetPlayerAttachedObject(playerid, 7, 2780, 2, -2.2709, 1.1330, -5.0079, -6.0999, 109.2999, -98.0999, 1.0000, 1.0000, 1.0000, 0, 0);
  2432. SetTimerEx("NemesisSmoke",10000,0,"i",playerid);
  2433.  
  2434. GivePlayerXP(playerid,100);
  2435.  
  2436. Abilitys[playerid][NemesisCooldown] = gettime();
  2437.  
  2438. SendClientMessage(playerid,COLOR_GREEN,"Smoke 'em baby!!!");
  2439.  
  2440. SetPlayerPos(targetid,Float:x+1,Float:y+1,Float:z);
  2441. ApplyAnimation(targetid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
  2442. ApplyAnimation(targetid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0); //Apply it twice!
  2443. TogglePlayerControllable(targetid, 0);
  2444. SetTimerEx("ClearAnims", 3000, 0, "i", targetid);
  2445.  
  2446. new nemesisstring[128];
  2447. format(nemesisstring,sizeof(nemesisstring),""chat" You have been attacked by Nemesis %s",PlayerName(playerid));
  2448. SendClientMessage(targetid,-1,nemesisstring);
  2449. }
  2450. }
  2451. }
  2452. }
  2453. }
  2454. }
  2455. if(PRESSED(KEY_WALK))
  2456. {
  2457. if(team[playerid] == TEAM_ZOMBIE)
  2458. {
  2459. if(pInfo[playerid][pZombieClass] == ADVANCEDMUTATED)
  2460. {
  2461. if(gettime() - 10 < Abilitys[playerid][AdvancedMutatedCooldown]) return GameTextForPlayer(playerid,"~w~ Still recovering",1000,5);
  2462. {
  2463. foreach(Player,i)
  2464. {
  2465. switch(GetPlayerSkin(i))
  2466. {
  2467. case NON_IMMUNE:
  2468. {
  2469. if(GetDistanceBetweenPlayers(playerid,i) < 6.5)
  2470. {
  2471. if(pInfo[i][IsPlayerInfected] == 0)
  2472. {
  2473. if(pInfo[i][pAdminDuty] == 0)
  2474. {
  2475. InfectPlayerStandard(i);
  2476. GivePlayerXP(playerid,20);
  2477. Abilitys[playerid][AdvancedMutatedCooldown] = gettime();
  2478. }
  2479. else if(pInfo[i][pAdminDuty] == 1)
  2480. {
  2481. SendClientMessage(playerid,COLOR_RED,"That player can't be infected because is on admin duty!");
  2482. }
  2483. }
  2484. }
  2485. }
  2486. }
  2487. }
  2488. }
  2489. }
  2490. }
  2491. }
  2492. if(PRESSED(KEY_WALK))
  2493. {
  2494. if(team[playerid] == TEAM_ZOMBIE)
  2495. {
  2496. if(pInfo[playerid][pZombieClass] == SCREAMERZOMBIE)
  2497. {
  2498. if(gettime() - 9 < Abilitys[playerid][ScreamerZombieAb]) return GameTextForPlayer(playerid,"~w~ Still recovering",1000,5);
  2499. {
  2500. foreach(Player,i)
  2501. {
  2502. switch(GetPlayerSkin(i))
  2503. {
  2504. case NON_IMMUNE,285:
  2505. {
  2506. if(GetDistanceBetweenPlayers(playerid,i) < 5.0)
  2507. {
  2508. GetClosestPlayer(i);
  2509. ApplyAnimation(i, "PED", "BIKE_fall_off", 4.1, 0, 1, 1, 1, 0, 1);
  2510. GameTextForPlayer(i,"~n~~n~~n~~n~~g~Screamer Attacked",3500,5);
  2511. SetTimerEx("ScreamerClearAnim",1500,0,"i",i);
  2512. GivePlayerXP(playerid,15);
  2513. Abilitys[playerid][ScreamerZombieAb] = gettime();
  2514. }
  2515. }
  2516. }
  2517. }
  2518. }
  2519. }
  2520. }
  2521. }
  2522. if(PRESSED(KEY_WALK))
  2523. {
  2524. if(team[playerid] == TEAM_ZOMBIE)
  2525. {
  2526. if(pInfo[playerid][pZombieClass] == HEAVYSCREAMER)
  2527. {
  2528. if(gettime() - 12 < Abilitys[playerid][ScreamerZombieAb2]) return GameTextForPlayer(playerid,"~w~ Still recovering",1000,5);
  2529. {
  2530. foreach(Player,i)
  2531. {
  2532. switch(GetPlayerSkin(i))
  2533. {
  2534. case NON_IMMUNE,163,285,296:
  2535. {
  2536. if(GetDistanceBetweenPlayers(playerid,i) < 8.0)
  2537. {
  2538. new Float:hp;
  2539. GetClosestPlayer(i);
  2540. ApplyAnimation(i, "PED", "BIKE_fall_off", 4.1, 0, 1, 1, 1, 0, 1);
  2541. GameTextForPlayer(i,"~n~~n~~n~~n~~g~Advanced Screamer Attacked",3500,5);
  2542. SetTimerEx("ScreamerClearAnim",1500,0,"i",i);
  2543. GivePlayerXP(playerid,20);
  2544. GetPlayerHealth(playerid,hp);
  2545. Abilitys[playerid][ScreamerZombieAb2] = gettime();
  2546. if(hp <= 80)
  2547. {
  2548. GetPlayerHealth(playerid,hp);
  2549. SetPlayerHealth(playerid,hp+5);
  2550. }
  2551. else return SendClientMessage(playerid,-1,""chat""COL_PINK" Screamed sucessfully but wasn't able to gain HP because you have enough HP (80)");
  2552. }
  2553. }
  2554. }
  2555. }
  2556. }
  2557. }
  2558. }
  2559. }
  2560. if(PRESSED(KEY_WALK))
  2561. {
  2562. if(team[playerid] == TEAM_ZOMBIE)
  2563. {
  2564. if(pInfo[playerid][pZombieClass] == ADVSCREAMER)
  2565. {
  2566. if(gettime() - 12 < Abilitys[playerid][ScreamerZombieAb2]) return GameTextForPlayer(playerid,"~w~ Still recovering",1000,5);
  2567. {
  2568. foreach(Player,i)
  2569. {
  2570. switch(GetPlayerSkin(i))
  2571. {
  2572. case NON_IMMUNE,285,163,33,34,201,198,123,296,240,112,50,62:
  2573. {
  2574. if(GetDistanceBetweenPlayers(playerid,i) < 8.0)
  2575. {
  2576. new Float:hp;
  2577. GetClosestPlayer(i);
  2578. ApplyAnimation(i, "PED", "BIKE_fall_off", 4.1, 0, 1, 1, 1, 0, 1);
  2579. GameTextForPlayer(i,"~n~~n~~n~~n~~g~Advanced Screamer Attacked",3500,5);
  2580. SetTimerEx("ScreamerClearAnim",1500,0,"i",i);
  2581. GivePlayerXP(playerid,25);
  2582. GetPlayerHealth(playerid,hp);
  2583. Abilitys[playerid][ScreamerZombieAb2] = gettime();
  2584. if(hp <= 80)
  2585. {
  2586. GetPlayerHealth(playerid,hp);
  2587. SetPlayerHealth(playerid,hp+10);
  2588. }
  2589. else return SendClientMessage(playerid,-1,""chat""COL_PINK" Screamed sucessfully but wasn't able to gain HP because you have enough HP (80)");
  2590. }
  2591. }
  2592. }
  2593. }
  2594. }
  2595. }
  2596. }
  2597. }
  2598. if(PRESSED(KEY_WALK))
  2599. {
  2600. if(team[playerid] == TEAM_HUMAN)
  2601. {
  2602. if(pInfo[playerid][pHumanClass] == ADVANCEDMEDIC)
  2603. {
  2604. new victimid = GetClosestPlayer(playerid);
  2605. if(IsPlayerConnected(victimid))
  2606. {
  2607. switch(GetPlayerSkin(victimid))
  2608. {
  2609. case NON_IMMUNE:
  2610. {
  2611. if(GetDistanceBetweenPlayers(playerid,victimid) < 10.0)
  2612. {
  2613. if(pInfo[victimid][IsPlayerInfected] == 1)
  2614. {
  2615. CurePlayer(victimid);
  2616. GivePlayerXP(playerid,20);
  2617. }
  2618. else return SendClientMessage(playerid,-1,""chat" No one around you is infected");
  2619. }
  2620. }
  2621. }
  2622. }
  2623. }
  2624. }
  2625. }
  2626. if(PRESSED(KEY_WALK))
  2627. {
  2628. if(team[playerid] == TEAM_ZOMBIE)
  2629. {
  2630. if(pInfo[playerid][pZombieClass] == FASTZOMBIE || pInfo[playerid][pZombieClass] == SLENDER)
  2631. {
  2632. if(gettime() - 6 < Abilitys[playerid][HighJumpZombie]) return GameTextForPlayer(playerid,"~w~ Still recovering",1000,5);
  2633. {
  2634. new Float:x,Float:y,Float:z;
  2635. GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
  2636. SetPlayerVelocity(playerid,Float:x,Float:y*1.0,Float:z+0.8* 1.2);
  2637. Abilitys[playerid][HighJumpZombie] = gettime();
  2638. }
  2639. }
  2640. }
  2641. }
  2642.  
  2643. if(PRESSED(KEY_WALK))
  2644. {
  2645. if(team[playerid] == TEAM_HUMAN)
  2646. {
  2647. if(pInfo[playerid][pHumanClass] == ADVANCEDSCOUT)
  2648. {
  2649. if(gettime() - 6 < Abilitys[playerid][HighJumpScout]) return GameTextForPlayer(playerid,"~w~ Still recovering",1000,5);
  2650. {
  2651. new Float:x,Float:y,Float:z;
  2652. GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
  2653. SetPlayerVelocity(playerid,Float:x,Float:y*0.9,Float:z+0.5* 0.9);
  2654. Abilitys[playerid][HighJumpScout] = gettime();
  2655. }
  2656. }
  2657. }
  2658. }
  2659. if(PRESSED(KEY_WALK))
  2660. {
  2661. if(team[playerid] == TEAM_HUMAN)
  2662. {
  2663. if(pInfo[playerid][pHumanClass] == EXPERIENCEDSCOUT)
  2664. {
  2665. if(gettime() - 6 < Abilitys[playerid][HighJumpScout]) return GameTextForPlayer(playerid,"~w~ Still recovering",1000,5);
  2666. {
  2667. new Float:x,Float:y,Float:z;
  2668. GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
  2669. SetPlayerVelocity(playerid,Float:x,Float:y*0.9,Float:z+0.5* 0.9);
  2670. Abilitys[playerid][HighJumpScout] = gettime();
  2671. }
  2672. }
  2673. }
  2674. }
  2675.  
  2676. if(PRESSED(KEY_WALK))
  2677. {
  2678. if(team[playerid] == TEAM_ZOMBIE)
  2679. {
  2680. if(pInfo[playerid][pZombieClass] == WITCHZOMBIE)
  2681. {
  2682. new victimid = GetClosestPlayer(playerid);
  2683. if(IsPlayerConnected(victimid))
  2684. {
  2685. switch(GetPlayerSkin(victimid))
  2686. {
  2687. case NON_IMMUNE,70:
  2688. {
  2689. if(GetDistanceBetweenPlayers(playerid,victimid) < 1.5)
  2690. {
  2691. if(gettime() - 9 < Abilitys[playerid][WitchAttack]) return GameTextForPlayer(playerid,"~w~ Still recovering",4000,5);
  2692. {
  2693. new Float:hp,zmstring[256];
  2694. GetPlayerHealth(victimid,hp);
  2695. SetPlayerHealth(victimid, hp -45);
  2696. GameTextForPlayer(victimid,"~n~~n~~n~~n~~y~Witched attacked",3000,5);
  2697. GivePlayerXP(playerid,15);
  2698. format(zmstring,sizeof(zmstring), ""chat""COL_PINK" %s has been witch attacked by %s",PlayerName(victimid),PlayerName(playerid));
  2699. SendClientMessageToAll(-1,zmstring);
  2700. Abilitys[playerid][WitchAttack] = gettime();
  2701. }
  2702. }
  2703. }
  2704. }
  2705. }
  2706. }
  2707. }
  2708. }
  2709.  
  2710. if(PRESSED(KEY_WALK))
  2711. {
  2712. if(team[playerid] == TEAM_ZOMBIE)
  2713. {
  2714. if(pInfo[playerid][pZombieClass] == ADVANCEDWITCH)
  2715. {
  2716. new victimid = GetClosestPlayer(playerid);
  2717. if(IsPlayerConnected(victimid))
  2718. {
  2719. switch(GetPlayerSkin(victimid))
  2720. {
  2721. case NON_IMMUNE,70:
  2722. {
  2723. if(GetDistanceBetweenPlayers(playerid,victimid) < 1.5)
  2724. {
  2725. if(gettime() - 15 < Abilitys[playerid][WitchAttack2]) return GameTextForPlayer(playerid,"~w~ Still recovering",4000,5);
  2726. {
  2727. new Float:hp,zmstring[256];
  2728. GetPlayerHealth(victimid,hp);
  2729. SetPlayerHealth(victimid, hp -95);
  2730. GameTextForPlayer(victimid,"~n~~n~~n~~n~~y~Advanced Witched attacked",3000,5);
  2731. GivePlayerXP(playerid,15);
  2732. format(zmstring,sizeof(zmstring), ""chat""COL_PINK" %s has been advanced witch attacked by %s",PlayerName(victimid),PlayerName(playerid));
  2733. SendClientMessageToAll(-1,zmstring);
  2734. Abilitys[playerid][WitchAttack2] = gettime();
  2735. }
  2736. }
  2737. }
  2738. }
  2739. }
  2740. }
  2741. }
  2742. }
  2743.  
  2744. if(PRESSED(KEY_WALK))
  2745. {
  2746. if(team[playerid] == TEAM_ZOMBIE)
  2747. {
  2748. if(pInfo[playerid][pZombieClass] == STANDARDZOMBIE)
  2749. {
  2750. new victimid = GetClosestPlayer(playerid);
  2751. if(gettime() - 7 < Abilitys[playerid][InfectionNormal]) return GameTextForPlayer(playerid,"~b~ Still recovering",4000,5);
  2752. {
  2753. if(IsPlayerConnected(victimid))
  2754. {
  2755. switch(GetPlayerSkin(victimid))
  2756. {
  2757. case NON_IMMUNE:
  2758. {
  2759. if(GetDistanceBetweenPlayers(playerid,victimid) < 2.0)
  2760. {
  2761. if(pInfo[victimid][IsPlayerInfected] == 0)
  2762. {
  2763. if(pInfo[victimid][pAdminDuty] == 0)
  2764. {
  2765. new zmstring[256];
  2766. InfectPlayerStandard(victimid);
  2767. format(zmstring,sizeof(zmstring), ""chat""COL_PINK" %s has been infected by %s",PlayerName(victimid),PlayerName(playerid));
  2768. SendClientMessageToAll(-1,zmstring);
  2769. GivePlayerXP(playerid,20);
  2770. Abilitys[playerid][InfectionNormal] = gettime();
  2771. }
  2772. else if(pInfo[victimid][pAdminDuty] == 1)
  2773. {
  2774. SendClientMessage(playerid,COLOR_RED,"That player can't be infected because is on admin duty!");
  2775. }
  2776. }
  2777. else return SendClientMessage(playerid,-1,""chat" Player is already infected!");
  2778. }
  2779. }
  2780. }
  2781. }
  2782. }
  2783. }
  2784. }
  2785. }
  2786.  
  2787. if(PRESSED(KEY_WALK))
  2788. {
  2789. if(team[playerid] == TEAM_ZOMBIE)
  2790. {
  2791. if(pInfo[playerid][pZombieClass] == MUTATEDZOMBIE || pInfo[playerid][pZombieClass] == DSNIPE)
  2792. {
  2793. new victimid = GetClosestPlayer(playerid);
  2794. if(gettime() - 7 < Abilitys[playerid][InfectionMutated]) return GameTextForPlayer(playerid,"~b~ Still ~r~recovering",4000,5);
  2795. {
  2796. if(IsPlayerConnected(victimid))
  2797. {
  2798. switch(GetPlayerSkin(victimid))
  2799. {
  2800. case NON_IMMUNE:
  2801. {
  2802. if(GetDistanceBetweenPlayers(playerid,victimid) < 1.7)
  2803. {
  2804. if(pInfo[victimid][IsPlayerInfected] == 0)
  2805. {
  2806. if(pInfo[victimid][pAdminDuty] == 0)
  2807. {
  2808. new zmstring[256];
  2809. InfectPlayerMutated(victimid);
  2810. format(zmstring,sizeof(zmstring), ""chat""COL_PINK" %s has been infected by %s",PlayerName(victimid),PlayerName(playerid));
  2811. SendClientMessageToAll(-1,zmstring);
  2812. GivePlayerXP(playerid,20);
  2813. Abilitys[playerid][InfectionMutated] = gettime();
  2814. }
  2815. else if(pInfo[victimid][pAdminDuty] == 1)
  2816. {
  2817. SendClientMessage(playerid,-1,""chat" That player is on admin duty");
  2818. }
  2819. }
  2820. else return SendClientMessage(playerid,-1,""chat" Player is already infected!");
  2821. }
  2822. }
  2823. }
  2824. }
  2825. }
  2826. }
  2827. }
  2828. }
  2829.  
  2830. if(PRESSED(KEY_WALK))
  2831. {
  2832. if(team[playerid] == TEAM_ZOMBIE)
  2833. {
  2834. if(pInfo[playerid][pZombieClass] == FLESHEATER)
  2835. {
  2836. new victimid = GetClosestPlayer(playerid);
  2837. if(gettime() - 18 < Abilitys[playerid][InfectionFleshEater]) return GameTextForPlayer(playerid,"~b~ Still recovering",4000,5);
  2838. {
  2839. if(IsPlayerConnected(victimid))
  2840. {
  2841. switch(GetPlayerSkin(victimid))
  2842. {
  2843. case NON_IMMUNE,285,70:
  2844. {
  2845. if(GetDistanceBetweenPlayers(playerid,victimid) < 1.7)
  2846. {
  2847. if(pInfo[victimid][IsPlayerInfected] == 0)
  2848. {
  2849. if(pInfo[victimid][pAdminDuty] == 0)
  2850. {
  2851. new zmstring[256];
  2852. InfectPlayerFleshEater(victimid);
  2853. format(zmstring,sizeof(zmstring), ""chat""COL_PINK" %s has been bitten and infected by %s",PlayerName(victimid),PlayerName(playerid));
  2854. SendClientMessageToAll(-1,zmstring);
  2855. GivePlayerXP(playerid,10);
  2856. Abilitys[playerid][InfectionFleshEater] = gettime();
  2857. }
  2858. else if(pInfo[victimid][pAdminDuty] == 1)
  2859. {
  2860. SendClientMessage(playerid,-1,""chat" That player is on admin duty");
  2861. }
  2862. }
  2863. else return SendClientMessage(playerid,-1,""chat" Player is already infected!");
  2864. }
  2865. }
  2866. }
  2867. }
  2868. }
  2869. }
  2870. }
  2871. }
  2872.  
  2873. if(PRESSED(KEY_WALK))
  2874. {
  2875. if(team[playerid] == TEAM_ZOMBIE)
  2876. {
  2877. if(pInfo[playerid][pZombieClass] == ADVANCEDBOOMER)
  2878. {
  2879. if(IsPlayerInRangeOfPoint(playerid,8.0,Map[ZombieSpawnX],Map[ZombieSpawnY],Map[ZombieSpawnZ]))
  2880. {
  2881. GameTextForPlayer(playerid,"~r~Cannot explode near Zombie spawn!",4000,5);
  2882. }
  2883. else
  2884. {
  2885. new Float:x,Float:y,Float:z;
  2886. GetPlayerPos(playerid,Float:x,Float:y,Float:z);
  2887. SetPlayerHealth(playerid,0.0);
  2888. CreateExplosion(Float:x,Float:y,Float:z,0,6.0);
  2889. foreach(Player,i)
  2890. {
  2891. GetClosestPlayer(i);
  2892. if(IsPlayerConnected(i))
  2893. {
  2894. switch(GetPlayerSkin(i))
  2895. {
  2896. case NON_IMMUNE:
  2897. {
  2898. if(IsPlayerInRangeOfPoint(i,7.0,Float:x,Float:y,Float:z))
  2899. {
  2900. if(pInfo[i][IsPlayerInfected] == 0)
  2901. {
  2902. if(pInfo[i][pAdminDuty] == 0)
  2903. {
  2904. InfectPlayerStandard(i);
  2905. }
  2906. }
  2907. }
  2908. }
  2909. }
  2910. }
  2911. }
  2912. }
  2913. }
  2914. }
  2915. }
  2916.  
  2917. return 1;
  2918. }
  2919.  
  2920. forward ClearAnims(playerid);
  2921. public ClearAnims(playerid) { return ClearAnimations(playerid), TogglePlayerControllable(playerid, 1); }
  2922.  
  2923. public OnPlayerStateChange(playerid, newstate, oldstate)
  2924. {
  2925. if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)// If the player's state changes to a vehicle state we'll have to spec the vehicle.
  2926. {
  2927. if(IsBeingSpeced[playerid] == 1)//If the player being spectated, enters a vehicle, then let the spectator spectate the vehicle.
  2928. {
  2929. foreach(Player,i)
  2930. {
  2931. if(spectatorid[i] == playerid)
  2932. {
  2933. PlayerSpectateVehicle(i, GetPlayerVehicleID(playerid));// Letting the spectator, spectate the vehicle of the player being spectated (I hope you understand this xD)
  2934. }
  2935. }
  2936. }
  2937. }
  2938. if(newstate == PLAYER_STATE_ONFOOT)
  2939. {
  2940. if(IsBeingSpeced[playerid] == 1)//If the player being spectated, exists a vehicle, then let the spectator spectate the player.
  2941. {
  2942. foreach(Player,i)
  2943. {
  2944. if(spectatorid[i] == playerid)
  2945. {
  2946. PlayerSpectatePlayer(i, playerid);// Letting the spectator, spectate the player who exited the vehicle.
  2947. }
  2948. }
  2949. }
  2950. }
  2951. return 1;
  2952. }
  2953.  
  2954. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)//This is called when a player's interior is changed.
  2955. {
  2956. if(IsBeingSpeced[playerid] == 1)//If the player being spectated, changes an interior, then update the interior and virtualword for the spectator.
  2957. {
  2958. foreach(Player,i)
  2959. {
  2960. if(spectatorid[i] == playerid)
  2961. {
  2962. SetPlayerInterior(i,GetPlayerInterior(playerid));
  2963. SetPlayerVirtualWorld(i,GetPlayerVirtualWorld(playerid));
  2964. }
  2965. }
  2966. }
  2967. return 1;
  2968. }
  2969.  
  2970. public OnVehicleMod(playerid, vehicleid, componentid)
  2971. {
  2972. new Admin[24] = "Anti-cheat";
  2973. new reason3[128] = "Vehicle Modding";
  2974. BanPlayer(playerid,reason3,Admin);
  2975. return 0;
  2976. }
  2977.  
  2978. public OnPlayerUpdate(playerid)
  2979. {
  2980. if(IsSpecing[playerid] == 0)
  2981. {
  2982. if(Map[AllowWater] == 0)
  2983. {
  2984. if(IsPlayerInWater(playerid))
  2985. {
  2986. SetPlayerHealth(playerid,0.0);
  2987. }
  2988. }
  2989. }
  2990.  
  2991. if(pInfo[playerid][pAdminDuty] == 1)
  2992. {
  2993. SetPlayerHealth(playerid,99999);
  2994. SetPlayerColor(playerid,COLOR_RED);
  2995. }
  2996.  
  2997. if(pInfo[playerid][Frozen] == 1)
  2998. {
  2999. SetPlayerHealth(playerid,99999);
  3000. SetPlayerColor(playerid,COLOR_WHITE);
  3001. }
  3002.  
  3003. return 1;
  3004. }
  3005. public OnPlayerCommandPerformed(playerid, cmdtext[], success)
  3006. {
  3007. if(!success)
  3008. {
  3009. PlayerPlaySound(playerid,1054,0.0,0.0,0.0),
  3010. SendClientMessage(playerid,-1,""chat" {FF0000}[Error] {FFFFFF}Dude its incorrect cmd! Plz try out /help or /cmds");
  3011. }
  3012.  
  3013. if(pInfo[playerid][pLogged] == 0 && pInfo[playerid][pAdminLevel] >= 1)
  3014. {
  3015. SendClientMessage(playerid,COLOR_RED,"You must be logged in.");
  3016. Kick(playerid);
  3017. }
  3018.  
  3019. return 1;
  3020. }
  3021.  
  3022. CMD:skip(playerid)
  3023. {
  3024. if(pInfo[playerid][pLogged] == 1)
  3025. {
  3026. if(pInfo[playerid][pAdminLevel] >= 5)
  3027. {
  3028. time = 5;
  3029. }
  3030. }
  3031. else if(pInfo[playerid][pLogged] == 0)
  3032. {
  3033. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!What do you think you are? Hacker?");
  3034. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  3035. }
  3036. return 1;
  3037. }
  3038.  
  3039. CMD:rbug(playerid) return ClearAnimations(playerid);
  3040.  
  3041. CMD:test(playerid) return SetPlayerSpecialAction(playerid,ENDCHAT_01);
  3042.  
  3043. CMD:gotoevac(playerid) return SetPlayerPos(playerid,Map[CPx],Map[CPy],Map[CPz]);
  3044.  
  3045. CMD:rwarn(playerid,params[])
  3046. {
  3047. if(pInfo[playerid][pAdminLevel] >= 3 || IsPlayerAdmin(playerid))
  3048. {
  3049. new targetid,reason[105],string[256];
  3050. if(sscanf(params, "us[105]", targetid, reason)) return SendClientMessage(playerid,-1,""chat" /rwarn [playerid] [reason]");
  3051. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  3052.  
  3053. new sentstring[128];
  3054.  
  3055. pInfo[targetid][pWarnings]--;
  3056.  
  3057. format(string,sizeof(string), "%s %s has removed your warning\nReason: %s\nRemoved Warning Number: %i",GetAdminName(playerid),PlayerName(playerid), reason, pInfo[targetid][pWarnings]);
  3058. ShowPlayerDialog(targetid,DIALOG_WARN,DIALOG_STYLE_MSGBOX,"Good News",string,"Ok, Dude","");
  3059. format(sentstring,sizeof(sentstring), ""chat""COL_LIGHTBLUE" %s %s has removed warning of %s Reason: %s (%i / 3)",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),reason,pInfo[targetid][pWarnings]);
  3060. SendClientMessageToAll(-1,sentstring);
  3061.  
  3062. if(pInfo[targetid][pWarnings] >= 100)
  3063. {
  3064. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s has kicked %s [Reason: %s][100 Warnings EXCEEDED]",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),reason);
  3065. SendClientMessageToAll(-1,string);
  3066. Kick(targetid);
  3067. }
  3068. }
  3069. else {
  3070. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  3071. }
  3072. return 1;
  3073. }
  3074.  
  3075. CMD:iwarn(playerid,params[])
  3076. {
  3077. if(pInfo[playerid][pAdminLevel] >= 7 || IsPlayerAdmin(playerid))
  3078. {
  3079. new targetid,reason[105],string[256];
  3080. if(sscanf(params, "us[105]", targetid, reason)) return SendClientMessage(playerid,-1,""chat" /iwarn [playerid] [reason]");
  3081. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  3082.  
  3083. new sentstring[128];
  3084.  
  3085. pInfo[targetid][pWarnings]++;
  3086.  
  3087. format(string,sizeof(string), "i [BOT] has warned you\nReason: %s\nWarning Number: %i",GetAdminName(playerid),PlayerName(playerid), reason, pInfo[targetid][pWarnings]);
  3088. ShowPlayerDialog(targetid,DIALOG_WARN,DIALOG_STYLE_MSGBOX,"iBot Warning",string,"Ok, iBot","");
  3089. format(sentstring,sizeof(sentstring), ""chat""COL_LIGHTBLUE" i Bot has warned %s Reason: %s (%i / 3)",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),reason,pInfo[targetid][pWarnings]);
  3090. SendClientMessageToAll(-1,sentstring);
  3091.  
  3092. if(pInfo[targetid][pWarnings] >= 100)
  3093. {
  3094. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s has kicked %s [Reason: %s][100 Warnings EXCEEDED]",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),reason);
  3095. SendClientMessageToAll(-1,string);
  3096. }
  3097. }
  3098. else {
  3099. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  3100. }
  3101. return 1;
  3102. }
  3103. CMD:more(playerid)
  3104. {
  3105. if(pInfo[playerid][pLogged] == 1)
  3106. {
  3107. if(pInfo[playerid][pAdminLevel] >= 5)
  3108. {
  3109. time = 500;
  3110. }
  3111. }
  3112. else if(pInfo[playerid][pLogged] == 0)
  3113. {
  3114. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  3115. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  3116. }
  3117. return 1;
  3118. }
  3119.  
  3120. CMD:etcccctestcmd(playerid)
  3121. {
  3122. SetPlayerAttachedObject( playerid, 0, 18693, 5, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
  3123. SetPlayerAttachedObject( playerid, 1, 18693, 6, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
  3124. SetPlayerAttachedObject( playerid, 2, 18703, 6, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
  3125. SetPlayerAttachedObject( playerid, 3, 18703, 5, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
  3126. SetPlayerAttachedObject( playerid,1,18978,2,0.065999,0.012999,0.000000,16.099998,81.499969,81.000000,1.000000,1.000000,1.000000);
  3127. return 1;
  3128. }
  3129.  
  3130. CMD:robj(playerid)///need to be replaced, with all object remover! *NOTES*
  3131. {
  3132. for ( new i = 0; i < 5; i++ )
  3133. if ( IsPlayerAttachedObjectSlotUsed( playerid, i ) )
  3134. RemovePlayerAttachedObject( playerid, i );
  3135. return 1;
  3136. }
  3137.  
  3138. CMD:arestart(playerid)////LoadFilterScript(filename[])
  3139. {
  3140. if(pInfo[playerid][pLogged] == 1)
  3141. {
  3142. if(pInfo[playerid][pAdminLevel] >= 5)
  3143. {
  3144. SendRconCommand("gmx");
  3145. }
  3146. else SendClientMessage(playerid,COLOR_RED,"You need to be lvl 5 admin to use this command!");
  3147. }
  3148. else if(pInfo[playerid][pLogged] == 0)
  3149. {
  3150. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  3151. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  3152. }
  3153. return 1;
  3154. }
  3155.  
  3156. CMD:spec(playerid,params[])
  3157. {
  3158. if(pInfo[playerid][pLogged] == 1)
  3159. {
  3160. if(pInfo[playerid][pAdminLevel] >= 1)
  3161. {
  3162. new id;// This will hold the ID of the player you are going to be spectating.
  3163. if(sscanf(params,"u", id))return SendClientMessage(playerid, Grey, "Usage: /spec [id]");// Now this is where we use sscanf to check if the params were filled, if not we'll ask you to fill them
  3164. if(id == playerid)return SendClientMessage(playerid,Grey,"You cannot spec yourself.");// Just making sure.
  3165. if(id == INVALID_PLAYER_ID)return SendClientMessage(playerid, Grey, "Player not found!");// This is to ensure that you don't fill the param with an invalid player id.
  3166. GetPlayerPos(playerid,SpecX[playerid],SpecY[playerid],SpecZ[playerid]);// This is getting and saving the player's position in a variable so they'll respawn at the same place they typed '/spec'
  3167. Inter[playerid] = GetPlayerInterior(playerid);// Getting and saving the interior.
  3168. vWorld[playerid] = GetPlayerVirtualWorld(playerid);//Getting and saving the virtual world.
  3169. TogglePlayerSpectating(playerid, true);// Now before we use any of the 3 functions listed above, we need to use this one. It turns the spectating mode on.
  3170. if(IsPlayerInAnyVehicle(id))//Checking if the player is in a vehicle.
  3171. {
  3172. if(GetPlayerInterior(id) > 0)//If the player's interior is more than 0 (the default) then.....
  3173. {
  3174. SetPlayerInterior(playerid,GetPlayerInterior(id));//.....set the spectator's interior to that of the player being s Screamed sucessfully but wasn't able to gain HP because you have enough HP (80)pectated.
  3175. }
  3176. if(GetPlayerVirtualWorld(id) > 0)//If the player's virtual world is more than 0 (the default) then.....
  3177. {
  3178. SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(id));//.....set the spectator's virtual world to that of the player being spectated.
  3179. }
  3180. PlayerSpectateVehicle(playerid,GetPlayerVehicleID(id));// Now remember we checked if the player is in a vehicle, well if they're in a vehicle then we'll spec the vehicle.
  3181. }
  3182. else// If they're not in a vehicle, then we'll spec the player.
  3183. {
  3184. if(GetPlayerInterior(id) > 0)
  3185. {
  3186. SetPlayerInterior(playerid,GetPlayerInterior(id));
  3187. }
  3188. if(GetPlayerVirtualWorld(id) > 0)
  3189. {
  3190. SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(id));
  3191. }
  3192. PlayerSpectatePlayer(playerid,id);// Letting the spectator spec the person and not a vehicle.
  3193. }
  3194. GetPlayerName(id, Name, sizeof(Name));//Getting the name of the player being spectated.
  3195. format(String, sizeof(String),"You have started to spectate %s.",Name);// Formatting a string to send to the spectator.
  3196. SendClientMessage(playerid,0x0080C0FF,String);//Sending the formatted message to the spectator.
  3197. IsSpecing[playerid] = 1;// Just saying that the spectator has begun to spectate someone.
  3198. IsBeingSpeced[id] = 1;// Just saying that a player is being spectated (You'll see where this comes in)
  3199. spectatorid[playerid] = id;// Saving the spectator's id into this variable.
  3200. }
  3201. else SendClientMessage(playerid,-1,""chat" You must be on admin duty before you spectate! /aduty");
  3202. }
  3203. else if(pInfo[playerid][pLogged] == 0)
  3204. {
  3205. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  3206. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  3207. }
  3208. return 1;
  3209. }
  3210.  
  3211. CMD:specoff(playerid, params[])
  3212. {
  3213. if(pInfo[playerid][pLogged] == 1)
  3214. {
  3215. if(pInfo[playerid][pAdminLevel] >= 1)
  3216. {
  3217. if(IsSpecing[playerid] == 0)return SendClientMessage(playerid,Grey,"You are not spectating anyone.");
  3218. TogglePlayerSpectating(playerid, 0);//Toggling spectate mode, off. Note: Once this is called, the player will be spawned, there we'll need to reset their positions, virtual world and interior to where they typed '/spec'
  3219. if(team[playerid] == TEAM_HUMAN)
  3220. {
  3221. HumanSetup(playerid);
  3222. SpawnPlayer(playerid);
  3223. }
  3224. else if(team[playerid] == TEAM_ZOMBIE)
  3225. {
  3226. ZombieSetup(playerid);
  3227. SpawnPlayer(playerid);
  3228. }
  3229. }
  3230. }
  3231. else if(pInfo[playerid][pLogged] == 0)
  3232. {
  3233. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  3234. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  3235. }
  3236. return 1;
  3237. }
  3238.  
  3239. CMD:rename(playerid,params[])
  3240. {
  3241. if(pInfo[playerid][pLogged] == 1)
  3242. {
  3243. if(pInfo[playerid][pAdminLevel] >= 2)
  3244. {
  3245. new oldname[128], newname[128], string[90], targetid;
  3246. if(sscanf(params,"s[128]s[128]", oldname, newname)) return SendClientMessage(playerid,COLOR_YELLOW, "Correct Usage: /rename [OldName][New name]");
  3247. new filestring[128];
  3248. new filestring2[128];
  3249. new filestring3[128];
  3250. format(filestring2, sizeof(filestring2), "/ZMA/Users/%s.ini", oldname);
  3251. if(!fexist(filestring2)) return SendClientMessage(playerid, COLOR_YELLOW, "That account name doesn't exist!");
  3252. format(filestring, sizeof(filestring), "/ZMA/Users/%s.ini", newname);
  3253. if(fexist(filestring)) return SendClientMessage(playerid, COLOR_YELLOW, "The new name you've chosen is already taken");
  3254. frename(filestring2, filestring);
  3255. format(filestring3, sizeof(filestring3), "/ZMA/Users/%s.ini", oldname);
  3256. new INI:File = INI_Open(filestring);
  3257. INI_SetTag(File, "data");
  3258. INI_WriteString(File,"OldName", oldname);
  3259. INI_Close(File);
  3260. if(!fremove(filestring3))fremove(filestring3);
  3261. new renamedstring[128], cstring[128];
  3262. format(string, sizeof(string), "You have successfully renamed %s's account to %s" ,oldname, newname);
  3263. format(renamedstring, sizeof(renamedstring), "%s has renamed %s's account to %s" ,GetAdminName(playerid) ,oldname, newname);
  3264. format(cstring, sizeof(cstring), "Your name was changed from %s to %s" ,oldname, newname);
  3265. SendClientMessage(playerid, COLOR_BLUE, string);
  3266. SendClientMessage(targetid, COLOR_BLUE, cstring);
  3267. SendClientMessageToAll(-1,renamedstring);
  3268. printf("%s %s has renamed %s's account to %s" ,GetAdminName(playerid),PlayerName(playerid) ,oldname, newname);
  3269. pInfo[targetid][pRenamed] = 1;
  3270. }
  3271. }
  3272. else if(pInfo[playerid][pLogged] == 0)
  3273. {
  3274. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  3275. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  3276. }
  3277. return 1;
  3278. }
  3279.  
  3280. CMD:aduty(playerid)
  3281. {
  3282. if(pInfo[playerid][pLogged] == 1)
  3283. {
  3284. if(pInfo[playerid][pAdminLevel] >= 1)
  3285. {
  3286. if(pInfo[playerid][pAdminDuty] == 0)
  3287. {
  3288. pInfo[playerid][pAdminDuty] = 1;
  3289.  
  3290. new adutyonstring[128];
  3291. format(adutyonstring, sizeof(adutyonstring), "%s is now on admin duty" ,PlayerName(playerid));
  3292. SendClientMessageToAll(-1,adutyonstring);
  3293. SetPlayerColor(playerid,COLOR_RED);
  3294. SetPlayerHealth(playerid,999999.0);
  3295. SendClientMessage(playerid,COLOR_RED,"Remember to /aduty when you play as regular player.");
  3296. }
  3297. else
  3298. {
  3299. if(pInfo[playerid][pAdminDuty] == 1)
  3300. {
  3301. pInfo[playerid][pAdminDuty] = 0;
  3302. new adutyoffstring[128];
  3303. format(adutyoffstring, sizeof(adutyoffstring), "%s is now off admin duty" ,PlayerName(playerid));
  3304. SendClientMessageToAll(-1,adutyoffstring);
  3305.  
  3306. if(team[playerid] == TEAM_ZOMBIE)
  3307. {
  3308. SetPlayerColor(playerid,COLOR_ZOMBIE);
  3309. }
  3310. if(team[playerid] == TEAM_HUMAN)
  3311. {
  3312. SetPlayerColor(playerid,COLOR_HUMAN);
  3313. }
  3314. SetPlayerHealth(playerid,100);
  3315. }
  3316. }
  3317. }
  3318. }
  3319. else if(pInfo[playerid][pLogged] == 0)
  3320. {
  3321. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  3322. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  3323. }
  3324. return 1;
  3325. }
  3326.  
  3327. CMD:agun(playerid, params[])
  3328. {
  3329. if(pInfo[playerid][pLogged] == 1)
  3330. {
  3331. new id, gun, ammo;
  3332. if(pInfo[playerid][pAdminLevel] >= 2)
  3333. {
  3334. if(sscanf(params,"uii", id, gun, ammo)) return SendClientMessage(playerid, -1,"USAGE: /givegun [playerid/partofname] [gunid] [ammo]");
  3335. if(gun > 47 || gun < 1) return SendClientMessage(playerid, -1,"GUN ID'S: 1-47");
  3336. if(ammo > 9999 || ammo < 1) return SendClientMessage(playerid, -1,"Ammo 1-9999");
  3337. GivePlayerWeapon(id, gun, ammo);
  3338. }
  3339. }
  3340. else if(pInfo[playerid][pLogged] == 0)
  3341. {
  3342. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  3343. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  3344. }
  3345. return 1;
  3346. }
  3347.  
  3348. CMD:asz(playerid, params[])
  3349. {
  3350. if(pInfo[playerid][pLogged] == 1)
  3351. {
  3352. if(pInfo[playerid][gMember] -= 1)
  3353. if(pInfo[playerid][gLeader] -= 1)
  3354. {
  3355. SetPlayerSkin(playerid,108);
  3356. GivePlayerWeapon(playerid,31,500);
  3357. GivePlayerWeapon(playerid,29,500);
  3358. GivePlayerWeapon(playerid,34,100);
  3359. }
  3360. }
  3361. else if(pInfo[playerid][pLogged] == 0)
  3362. {
  3363. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  3364. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  3365. }
  3366. return 1;
  3367. }
  3368.  
  3369. CMD:aheli(playerid)
  3370. {
  3371. if(pInfo[playerid][pLogged] == 1)
  3372. {
  3373. if(pInfo[playerid][pAdminLevel] >= 1)
  3374. {
  3375. new Float: x, Float: y, Float: z, Float: r, vehicle;
  3376. GetPlayerPos(playerid,x,y,z);
  3377. GetPlayerFacingAngle(playerid,r);
  3378. vehicle = CreateVehicle(501,x,y,z,r,1,1,300);
  3379. PutPlayerInVehicle(playerid,vehicle,0);
  3380. SetVehicleHealth(vehicle, 999999);
  3381. }
  3382. }
  3383. else if(pInfo[playerid][pLogged] == 0)
  3384. {
  3385. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  3386. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  3387. }
  3388. return 1;
  3389. }
  3390.  
  3391. CMD:voff(playerid)
  3392. {
  3393. if(pInfo[playerid][pLogged] == 1)
  3394. {
  3395. if(pInfo[playerid][pAdminLevel] >= 1)
  3396. {
  3397. new currentveh;
  3398. currentveh = GetPlayerVehicleID(playerid);
  3399. DestroyVehicle(currentveh);
  3400. }
  3401. }
  3402. else if(pInfo[playerid][pLogged] == 0)
  3403. {
  3404. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!What do u think u r?Hacker");
  3405. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  3406. }
  3407. return 1;
  3408. }
  3409.  
  3410. CMD:freeze(playerid,params[])
  3411. {
  3412. if(pInfo[playerid][pLogged] == 1)
  3413. {
  3414. if(pInfo[playerid][pAdminLevel] >= 1)
  3415. {
  3416. new Target; //defines the playerid we wanna freeze
  3417. if(sscanf(params, "u", Target)) SendClientMessage(playerid, COLOR_LIGHTBLUE, "USAGE: /freeze [playerid]"); //tell sscanf again if the parameters/syntax is wrong to return a special message
  3418. if(!IsPlayerConnected(Target)) //if the ID doesn't exist, return an error-message
  3419. return SendClientMessage(playerid, COLOR_GREY, "ERROR:Player is not connected!");
  3420. if(!sscanf(params, "u", Target))
  3421. {
  3422. if(pInfo[Target][pAdminLevel] > pInfo[playerid][pAdminLevel]) return SendClientMessage(playerid,COLOR_RED,"ERROR: You cant perform this on Admins that are higher than your level!"); // if the player you're performing this command on has a higher level as you, return a message, you ain't able to freeze him
  3423. new tname[MAX_PLAYER_NAME]; //define the new target-name of the playerid
  3424. GetPlayerName(Target,tname,sizeof(tname)); //get the playername with this function
  3425. new pname[MAX_PLAYER_NAME]; //define the adminname
  3426. GetPlayerName(playerid,pname,sizeof(pname)); //get the adminname with this function
  3427. new tstring[128]; //define the string for the player (victim)
  3428. new pstring[128];// define the string for the admin which is performing
  3429. format(tstring,sizeof(tstring),"You have been frozen by administrator %s! You cant move!",pname); //this is formatting the player-string, while it's also getting the adminname
  3430. format(pstring,sizeof(pstring),"You have frozen player %s(%d)!",tname,Target); //this is formatting the adminname-string, while it's also getting the playername and his ID(target)
  3431. SendClientMessage(Target,COLOR_RED,tstring);//sends the message to the victim
  3432. SendClientMessage(playerid,COLOR_RED,pstring);//sends the message to the admin
  3433. TogglePlayerControllable(Target,0); //with that function, the player won't be able to mov, while we're using the variable "Target" as the playerid
  3434. pInfo[Target][Frozen] = 1;//IMPORTANT:we're getting the variable "[frozen]" out of the enum, and set it's value to "1', the compiler knows now that the player is frozen
  3435. }
  3436.  
  3437. }
  3438. else return SendClientMessage(playerid,COLOR_RED,"ERROR: You must be level 1 to use this command!");
  3439. }
  3440. else if(pInfo[playerid][pLogged] == 0)
  3441. {
  3442. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  3443. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  3444. }
  3445. return 1;
  3446. }
  3447.  
  3448. CMD:unfreeze(playerid,params[])
  3449. {
  3450. if(pInfo[playerid][pAdminLevel] >= 1)
  3451. {
  3452. new Target; //defines the playerid we wanna freeze
  3453. if(sscanf(params, "u", Target)) SendClientMessage(playerid, COLOR_LIGHTBLUE, "USAGE: /freeze [playerid]"); //tell sscanf again if the parameters/syntax is wrong to return a special message
  3454. if(!IsPlayerConnected(Target)) //if the ID doesn't exist, return an error-message
  3455. return SendClientMessage(playerid, COLOR_GREY, "ERROR:Player is not connected!");
  3456. if(!sscanf(params, "u", Target))
  3457. {
  3458. if(pInfo[Target][pAdminLevel] > pInfo[playerid][pAdminLevel]) return SendClientMessage(playerid,COLOR_RED,"ERROR: You cant perform this on Admins that are higher than your level!"); // if the player you're performing this command on has a higher level as you, return a message, you ain't able to freeze him
  3459. new tname[MAX_PLAYER_NAME]; //define the new target-name of the playerid
  3460. GetPlayerName(Target,tname,sizeof(tname)); //get the playername with this function
  3461. new pname[MAX_PLAYER_NAME]; //define the adminname
  3462. GetPlayerName(playerid,pname,sizeof(pname)); //get the adminname with this function
  3463. new tstring[128]; //define the string for the player (victim)
  3464. new pstring[128];// define the string for the admin which is performing
  3465. new astring[128];//define the string for all the players which are online
  3466. format(tstring,sizeof(tstring),"You have been unfrozen by administrator %s! You can move!",pname); //this is formatting the player-string, while it's also getting the adminname
  3467. format(pstring,sizeof(pstring),"You have unfrozen player %s(%d)!",tname,Target); //this is formatting the adminname-string, while it's also getting the playername and his ID(target)
  3468. format(astring,sizeof(astring),"Administrator %s has unfrozen %s!",pname,tname); //this is formatting the all-string, while it's sending this message to everybody and is getting admin- and playername
  3469. SendClientMessage(Target,COLOR_RED,tstring);//sends the message to the victim
  3470. SendClientMessage(playerid,COLOR_RED,pstring);//sends the message to the admin
  3471. SendClientMessageToAll(COLOR_RED,astring);//sends the message to everybody
  3472. TogglePlayerControllable(Target,1); //with that function, the player won't be able to mov, while we're using the variable "Target" as the playerid
  3473. pInfo[Target][Frozen] = 0;//IMPORTANT:we're getting the variable "[frozen]" out of the enum, and set it's value to "1', the compiler knows now that the player is frozen
  3474. }
  3475. if(team[Target] == TEAM_HUMAN)
  3476. {
  3477. SetPlayerHealth(Target, 100);
  3478. SetPlayerColor(Target,COLOR_HUMAN);
  3479. }
  3480.  
  3481. if(team[Target] == TEAM_ZOMBIE)
  3482. {
  3483. if(pInfo[Target][pZombieClass] == BOOMERZOMBIE)
  3484. {
  3485. SetPlayerHealth(Target, 25);
  3486. SetPlayerColor(Target,COLOR_ZOMBIE);
  3487. }
  3488. else
  3489. {
  3490. SetPlayerHealth(Target, 100);
  3491. SetPlayerColor(Target,COLOR_ZOMBIE);
  3492. }
  3493. }
  3494. }
  3495.  
  3496. // if he doesn't have permissions, return that message!
  3497. else if(pInfo[playerid][pLogged] == 0)
  3498. {
  3499. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  3500. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  3501. }
  3502. return 1;
  3503. }
  3504. CMD:fakekills(playerid, params[])
  3505. {
  3506. if(pInfo[playerid][pAdminLevel] >= 1)
  3507. {
  3508. new targetid;
  3509. if(sscanf(params, "u", targetid)) return SendClientMessage(playerid,-1,""chat" /fakekills [playerid]");
  3510. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  3511. {
  3512. new string[180];
  3513. format(string,sizeof(string)," {37DB45}Viewing player stats: %s{FFFFFF} \nPossible FakeKills: %i",PlayerName(targetid),pInfo[targetid][pFakeKills]);
  3514.  
  3515. ShowPlayerDialog(playerid,1888,DIALOG_STYLE_MSGBOX,"Checking for Fake Kills",string,"Close","");
  3516. }
  3517. }
  3518.  
  3519. return 1;
  3520. }
  3521.  
  3522. CMD:checkhp(playerid, params[])
  3523. {
  3524. if(pInfo[playerid][pAdminLevel] >= 1)
  3525. {
  3526. new targetid;
  3527. if(sscanf(params, "u", targetid)) return SendClientMessage(playerid,-1,""chat" /checkhp [playerid]");
  3528. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  3529. {
  3530. new string[180], Float:HP;
  3531. GetPlayerHealth(targetid,HP);
  3532.  
  3533. format(string,sizeof(string),"Player %s has %.2f",PlayerName(targetid),HP);
  3534. SendClientMessage(playerid, COLOR_GREEN, string);
  3535. }
  3536. }
  3537.  
  3538. return 1;
  3539. }
  3540.  
  3541. CMD:sethealth(playerid, params[])
  3542. {
  3543. if(pInfo[playerid][pLogged] == 1)
  3544. {
  3545. new id, health;
  3546. if(pInfo[playerid][pAdminLevel] >= 2)
  3547. {
  3548. if(sscanf(params,"uii", id, health)) return SendClientMessage(playerid, -1,"USAGE: /sethealth [ID / part of name] [Health from 1 to 100]");
  3549. if(health > 100 || health < 1) return SendClientMessage(playerid, -1,"Set the health from 1 to 100, NOT MORE nor LESS");
  3550. SetPlayerHealth(id, health);
  3551. }
  3552. }
  3553. else if(pInfo[playerid][pLogged] == 0)
  3554. {
  3555. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  3556. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  3557. }
  3558.  
  3559. return 1;
  3560. }
  3561.  
  3562. CMD:setarmour(playerid, params[])
  3563. {
  3564. if(pInfo[playerid][pLogged] == 1)
  3565. {
  3566. new id, armour;
  3567. if(pInfo[playerid][pAdminLevel] >= 2)
  3568. {
  3569. if(sscanf(params,"uii", id, armour)) return SendClientMessage(playerid, -1,"USAGE: /setarmour[ID / part of name] [Armour( from 1 to 95]");
  3570. if(armour > 95 || armour < 1) return SendClientMessage(playerid, -1,"Set the armour from 1 to 100, NOT MORE nor LESS");
  3571. SetPlayerArmour(id, armour);
  3572. }
  3573. }
  3574. else if(pInfo[playerid][pLogged] == 0)
  3575. {
  3576. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  3577. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  3578. }
  3579.  
  3580. return 1;
  3581. }
  3582.  
  3583. CMD:text(playerid, params[])
  3584. {
  3585. if(pInfo[playerid][pLogged] == 1)
  3586. {
  3587. new filestring[128], text[50];
  3588. format(filestring, sizeof(filestring), "%s", text);
  3589. new Text3D:label = Create3DTextLabel("text", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
  3590. Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.3);
  3591. }
  3592.  
  3593. return 1;
  3594. }
  3595.  
  3596. CMD:textoff(playerid, params[])
  3597. {
  3598. if(pInfo[playerid][pLogged] == 1)
  3599. {
  3600.  
  3601. }
  3602.  
  3603. return 1;
  3604. }
  3605.  
  3606. CMD:cw(playerid, params[])
  3607. {
  3608. if(pInfo[playerid][pAdminLevel] >= 1)
  3609. {
  3610. new count = 0;
  3611. new ammo, weaponid, weapon[24], string[128], id;
  3612. if(!sscanf(params, "u", id))
  3613. {
  3614. for (new c = 0; c < 13; c++)
  3615. {
  3616. GetPlayerWeaponData(id, c, weaponid, ammo);
  3617. if (weaponid != 0 && ammo != 0)
  3618. {
  3619. count++;
  3620. }
  3621. }
  3622. SendClientMessage(playerid, COLOR_ORANGE, "||=============WEAPONS AND AMMO===========||");
  3623. if(count > 0)
  3624. {
  3625. for (new c = 0; c < 13; c++)
  3626. {
  3627. GetPlayerWeaponData(id, c, weaponid, ammo);
  3628. if (weaponid != 0 && ammo != 0)
  3629. {
  3630. GetWeaponName(weaponid, weapon, 24);
  3631. format(string, sizeof(string), "Weapons: %s Ammo: %d", weapon, ammo);
  3632. SendClientMessage(playerid, COLOR_GREEN, string);
  3633. }
  3634. }
  3635. }
  3636. else
  3637. {
  3638. SendClientMessage(playerid, COLOR_GREY, "This player has no weapons!");
  3639. }
  3640. return 1;
  3641. }
  3642. else return SendClientMessage(playerid, COLOR_GREY, "USAGE: /cw [ID]");
  3643. }
  3644. else return SendClientMessage(playerid, COLOR_GREY, "You are not allowed to do this");
  3645. }
  3646.  
  3647. CMD:buy(playerid)
  3648. {
  3649. if(team[playerid] == TEAM_HUMAN)
  3650. {
  3651. ShowCoinDialog(playerid);
  3652. }
  3653. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You must be human to use this command!");
  3654. return 1;
  3655. }
  3656. CMD:vipmenu(playerid)
  3657. {
  3658. if(pInfo[playerid][pHumanClass] == SMOKEUP) return SCM(playerid, -1,"{FF0000}You cant use /vipmenu with this class !");
  3659. if(pInfo[playerid][pHumanClass] == BOMBER) return SCM(playerid, -1,"{FF0000}You cant use /vipmenu with this class !");
  3660.  
  3661. else if(pInfo[playerid][pVipLevel] >= 1)
  3662. {
  3663. new str[300];
  3664. strcat(str,"{2B547E}Vip Unlimited Ammo (LVL1+)\n{2B547E}Vip Weapons (LVL1+)\n{2B547E}Vip Classes (LVL3+)\n{2B547E}Enable Kick Back (LVL3+)\n{2B547E}Disable Kick Back (LVL3+)\n\
  3665. {2B547E}Vip S.W.A.T Armour Object (LVL2+)\n{2B547E}Vip Name Flash (LVL 4+)\n{2B547E}Disable Vip Name Flash (LVL 4+)\n{2B547E}Vip Armour (LVL 4+)\n{2B547E}Vip Invisible (LVL5+)");
  3666. ShowPlayerDialog(playerid,DIALOG_VIP,DIALOG_STYLE_LIST,"Vip Dialog",str,"Select","Close");
  3667. }
  3668. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You need atleast vip package one to use this command!");
  3669. return 1;
  3670. }
  3671.  
  3672. CMD:ranks(playerid)
  3673. {
  3674. new str[800];
  3675. strcat(str,"10 Kills - Rank 1\n50 Kills - Rank 2\n100 Kills - Rank 3\n150 Kills - Rank 4\n200 Kills - Rank 5\n250 Kills - Rank 6\n300 Kills - Rank 7\n\
  3676. 350 Kills - Rank 8\n400 Kills - Rank 9\n450 Kills - Rank 10\n500 Kills - Rank 11\n550 Kills - Rank 12\n600 Kills - Rank 13\n650 Kills - Rank 14\n\
  3677. 700 Kills - Rank 15\n750 Kills - Rank 16\n800 Kills - Rank 17\n850 Kills - Rank 18\n900 Kills - Rank 19\n950 Kills - Rank 20\n");
  3678.  
  3679. strcat(str,"1000 Kills - Rank 21\n1500 Kills - Rank 22\n2000 Kills - Rank 23\n2500 Kills - Rank 24\n3000 Kills - Rank 25\n3500 Kills - Rank 26\n\
  3680. 4000 Kills - Rank 27\n4500 Kills - Rank 28\n5000 Kills - Rank 29\n5500 Kills - Rank 30\n6000 Kills - Rank 31\n6500 Kills - Rank 32");
  3681. ShowPlayerDialog(playerid,5326,DIALOG_STYLE_MSGBOX,"Rank list",str,"Close","");
  3682. return 1;
  3683. }
  3684.  
  3685. CMD:vip(playerid)
  3686. {
  3687. new vipinfo[600];
  3688. strcat(vipinfo,""chat" Hello when you donate depends on how much you donated\nYou get what it's called an 'Vip Package it sets your current package\nWith bunch of awesome features\n\
  3689. Package info are posted below:\nVisit www.sickactionstunters.webs.com !");
  3690. ShowPlayerDialog(playerid,DIALOG_VIPINFO,DIALOG_STYLE_MSGBOX,"Vip Info",vipinfo,"Close","");
  3691. return 1;
  3692. }
  3693.  
  3694.  
  3695. CMD:normas(playerid)
  3696. {
  3697. new normas[600];
  3698. strcat(normas,"ESPAร‘OL:\n1.No tercer modo de fiesta (NO CORTAR!)\n2.No mods Cleo\n3.No salga de la zona del mapa\n4.No Publicidad\n\
  3699. 5.No hagas spam o inundar el chat\n6.No insultar a nadie en el servidor\n7.No bunnyhopping!\n8.Sin pausa durante la IG\n\
  3700. 9.No Racism TOLERATED\n10.Ningรบn arma-scroll o cualquier otro bichos GTA (bug C permite)\n11.No Killing Spawn (SK)");
  3701.  
  3702. ShowPlayerDialog(playerid,DIALOG_RULES,DIALOG_STYLE_MSGBOX,"Normas - Translated with Google Translate",normas,"Close","");
  3703. return 1;
  3704. }
  3705.  
  3706. CMD:pravila(playerid)
  3707. {
  3708. new pravila[600];
  3709. strcat(pravila,"RUSSKIY YAZYK:\n1.Tret'yego ne mod partii (NO VZLOM !)\n2.Net Cleo modov\n3.Ne vykhodya za predelyzony karty\n4.Nikakoy reklamy\n\
  3710. 5.Ne spam ili navodneniye publichnom chate\n6.Net oskorbitel'nyye lyubogo na servere\n7.Net bunnyhopping !\n8.Net Pauza vo vremya IG\n\
  3711. 9.Net rasizma perenositsya\n10.Net oruzhiya prokrutki ili lyuboy drugoy oshibki GTA ( C oshibka davala )\n11.Net Spawn Killing (SK)");
  3712.  
  3713. ShowPlayerDialog(playerid,DIALOG_RULES,DIALOG_STYLE_MSGBOX,"/pravila RUSSKIY - Google Translated",pravila,"Close","");
  3714. return 1;
  3715. }
  3716.  
  3717. CMD:rules(playerid)
  3718. {
  3719. new rules[600];
  3720. strcat(rules,"ENGLISH:\n1.No third party mod (NO HACKING!)\n2.No Cleo mods\n3.Do not go outside of the map area\n4.No Advertising\n\
  3721. 5.Do not spam or flood the public chat\n6.No insulting anyone on the server\n7.No bunnyhopping!\n8.No Pausing during IG\n\
  3722. 9.No Racism TOLERATED\n10.No weapon-scroll or any other GTA bugs (C bug allowed)\n11.No Spawn Killing (SK)\n ESPANOL: /normas --- RUSSKIY:/pravila");
  3723.  
  3724. ShowPlayerDialog(playerid,DIALOG_RULES,DIALOG_STYLE_MSGBOX,"Server Public Rules",rules,"Close","");
  3725. return 1;
  3726. }
  3727.  
  3728. CMD:help(playerid, params[])
  3729. {
  3730. SendClientMessage(playerid, COLOR_BLUE, " ~~~~~~~~~~~~~~~~~~~~~~~| Zombie Apocalypse [Help] |~~~~~~~~~~~~~~~~~~~~~~~");
  3731. SendClientMessage(playerid, COLOR_ORANGE,"=============================================================");
  3732. SendClientMessage(playerid, COLOR_RED, ">> Q1.Who made this server? ");
  3733. SendClientMessage(playerid, COLOR_GREEN, "<< A1.This server is scripted by [07]Fahad_king and [07]Tom_Redlake and [07]W33D$P33D modded it 4fucksakes");
  3734. SendClientMessage(playerid, COLOR_ORANGE,"=============================================================");
  3735. SendClientMessage(playerid, COLOR_RED, ">> Q2.How to earn Xp? ");
  3736. SendClientMessage(playerid, COLOR_GREEN, "<< A2.Kill your opponent team and get xp else donate us for more xp");
  3737. SendClientMessage(playerid, COLOR_ORANGE,"=============================================================");
  3738. SendClientMessage(playerid, COLOR_RED,">> Q3.How to be Human/Zombie ?");
  3739. SendClientMessage(playerid, COLOR_GREEN,"<< A3.Its Random");
  3740. SendClientMessage(playerid, COLOR_ORANGE,"==================================================================="); SendClientMessage(playerid, COLOR_ORANGE,"=============================================================");
  3741. SendClientMessage(playerid, COLOR_RED,">> Q4.How to become Admins ?");
  3742. SendClientMessage(playerid, COLOR_GREEN,"<< A4.Be active, help others, never insult anyone and apply in forum");
  3743. SendClientMessage(playerid, COLOR_ORANGE,"===================================================================");
  3744.  
  3745. SendClientMessage(playerid, COLOR_YELLOW, "if you have any Question or need help /pm any admin online or ask in our forum");
  3746. return 1;
  3747. }
  3748.  
  3749. CMD:updates(playerid, params[])
  3750. {
  3751.  
  3752. SendClientMessage(playerid, COLOR_RED, "________________| Zombie Apocalypse Updates: |________________");
  3753. SendClientMessage(playerid, GREEN, "Something added");
  3754. SendClientMessage(playerid, GREEN, "Many Bugs are fixed.");
  3755. SendClientMessage(playerid, GREEN, "New somethings");
  3756. SendClientMessage(playerid, GREEN, "New maps NOT YET");
  3757. SendClientMessage(playerid, GREEN, "New textdraws have been added");
  3758. SendClientMessage(playerid, GREEN, "And other cool stuffs xD");
  3759. return 1;
  3760. }
  3761.  
  3762. CMD:vinfo(playerid)
  3763. {
  3764. new helpstring[300];
  3765. strcat(helpstring,"If you are ready to donate us. We will be giving you special features, and vip rank! We provides the following cmds for vip only\n/vipmenu and /vcmds");
  3766. ShowPlayerDialog(playerid,DIALOG_HELP,DIALOG_STYLE_MSGBOX,"VIP INFO!",helpstring,"Close","");
  3767. return 1;
  3768. }
  3769.  
  3770. CMD:credits(playerid)
  3771. {
  3772. new string[300];
  3773. strcat(string,"This GameMode is created by\n> Fahadking07\n> Kitten\n> Hossa & Modded By W33D$P33D");
  3774. ShowPlayerDialog(playerid,DIALOG_HELP,DIALOG_STYLE_MSGBOX,"Developers",string,"Close","");
  3775. return 1;
  3776. }
  3777.  
  3778. CMD:vcmds(playerid)
  3779. {
  3780. new helpstring[300];
  3781. strcat(helpstring,"These are vips 4+ cmds /vheal and /vcure\nMore coming soon!");
  3782. ShowPlayerDialog(playerid,DIALOG_HELP,DIALOG_STYLE_MSGBOX,"VIP INFO!",helpstring,"Close","");
  3783. return 1;
  3784. }
  3785.  
  3786. CMD:vhelp(playerid)
  3787. {
  3788. new helpstring[300];
  3789. strcat(helpstring,"Welcome to Zombie Apocalypse Server! We are offering free vip level 1 for all to active it use /freevip cmd");
  3790. ShowPlayerDialog(playerid,DIALOG_HELP,DIALOG_STYLE_MSGBOX,"You asked for help?",helpstring,"Close","");
  3791. return 1;
  3792. }
  3793.  
  3794. CMD:cmds(playerid)
  3795. {
  3796. new acmdstring[400];
  3797. strcat(acmdstring,"Cmds: /sharexp /hi /help /vip /blockpm /stats /rbug /cmds \n\
  3798. Cmds: /unblockpm /ss /robj /vinfo /radio /hradio /class /class2 /buy /fail /pstats /admins /vips /adminlist");
  3799. ShowPlayerDialog(playerid,DIALOG_ACMDS,DIALOG_STYLE_MSGBOX,"Admin Commands",acmdstring,"Close","");
  3800. return 1;
  3801. }
  3802.  
  3803. CMD:acmds(playerid)
  3804. {
  3805. if(pInfo[playerid][pAdminLevel] >= 1)
  3806. {
  3807. new acmdstring[500];
  3808. strcat(acmdstring,"Trial Admin: /codes, /(un)freeze, /cw (checks the weapons), /getid, /cc (clear the chat), /slap, /a, /warn, /akill,/mute,/ummute,/kick\n\
  3809. Moderator: /xp, /spec, /ban, /nuke, /unban, /megaslap, /settime, /setweather, /get\n\
  3810. Global Moderator: /ann, /ip, /setzombie, /sethuman\n\
  3811. Management: /givexp, /rename\nFor level 5 admins type /a5cmds");
  3812. ShowPlayerDialog(playerid,DIALOG_ACMDS,DIALOG_STYLE_MSGBOX,"Admin Commands",acmdstring,"Close","");
  3813. }
  3814. return 1;
  3815. }
  3816.  
  3817. CMD:a5cmds(playerid)
  3818. {
  3819. if(pInfo[playerid][pAdminLevel] >= 5)
  3820. {
  3821. new acmdstring[300];
  3822. strcat(acmdstring,"Head Admin: /skip /more /aheli \n\
  3823. Server Mapper: /nextmap\nFor Admins lvl 7+ type /a7cmds");
  3824. ShowPlayerDialog(playerid,DIALOG_ACMDS,DIALOG_STYLE_MSGBOX,"Admin Commands",acmdstring,"Close","");
  3825. }
  3826. return 1;
  3827. }
  3828.  
  3829. CMD:a7cmds(playerid)
  3830. {
  3831. if(pInfo[playerid][pAdminLevel] >= 7)
  3832. {
  3833. new acmdstring[300];
  3834. strcat(acmdstring,"Manager: /givegun /gvcoins /setxp4 /givexp4 \n\
  3835. For 7+: /setpro /setdonor\n For Server Founders type /rcmds");
  3836. ShowPlayerDialog(playerid,DIALOG_ACMDS,DIALOG_STYLE_MSGBOX,"Admin Commands",acmdstring,"Close","");
  3837. }
  3838. return 1;
  3839. }
  3840.  
  3841. CMD:rcmds(playerid)
  3842. {
  3843. if(pInfo[playerid][pAdminLevel] >= 9)
  3844. {
  3845. new acmdstring[300];
  3846. strcat(acmdstring,"Our rcon password is \n\
  3847. ");
  3848. ShowPlayerDialog(playerid,DIALOG_ACMDS,DIALOG_STYLE_MSGBOX,"Admin Commands",acmdstring,"Close","");
  3849. }
  3850. return 1;
  3851. }
  3852.  
  3853. CMD:vcure(playerid,params[])
  3854. {
  3855. if(team[playerid] == TEAM_HUMAN)
  3856. {
  3857. if(pInfo[playerid][pVipLevel] >= 4)
  3858. {
  3859. new targetid,string[128],str[256];
  3860. if(sscanf(params,"u", targetid)) return SendClientMessage(playerid,-1,""chat" /vcure [playerid]");
  3861.  
  3862. if(pInfo[targetid][IsPlayerInfected] == 1)
  3863. {
  3864. CurePlayer(targetid);
  3865. format(string,sizeof(string),"~n~~n~~n~~n~~g~VIP~w~ %s has cured you",GetClassName(playerid),PlayerName(playerid));
  3866. GameTextForPlayer(targetid,string,3500,5);
  3867. format(str,sizeof(str),""chat""COL_LGREEN" VIP %s has cured %s",GetClassName(playerid),PlayerName(playerid),PlayerName(targetid));
  3868. SendClientMessageToAll(-1,str);
  3869. GivePlayerXP(playerid,20);
  3870. }
  3871. else return SendClientMessage(playerid,-1,""chat" The player you are trying to cure isn't infected");
  3872. }
  3873. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You'll need to be VIP Level 4 to use this command!");
  3874. }
  3875. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You'll need to be an human to use this command!");
  3876. return 1;
  3877. }
  3878.  
  3879. CMD:vheal(playerid,params[])
  3880. {
  3881. if(gettime() - 15 < Abilitys[playerid][HealCoolDown]) return GameTextForPlayer(playerid,"~w~ Cannot VIP heal wait 15 seconds!",1000,5);
  3882. {
  3883. if(team[playerid] == TEAM_HUMAN)
  3884. {
  3885. if(pInfo[playerid][pVipLevel] >= 4)
  3886. {
  3887. new targetid,string[128],str[256];
  3888. if(sscanf(params,"u", targetid)) return SendClientMessage(playerid,-1,""chat" /vheal [playerid]");
  3889. new Float:hp;
  3890. GetPlayerHealth(targetid,hp);
  3891. if(team[targetid] == TEAM_HUMAN)
  3892. {
  3893. if(hp >= 80)
  3894. {
  3895. SendClientMessage(playerid,-1,""chat" That player already has enough health to survive");
  3896. }
  3897. else
  3898. {
  3899. if(pInfo[playerid][pVipLevel] >= 4)
  3900. {
  3901. SetPlayerHealth(targetid,hp+40);
  3902. format(string,sizeof(string),"~n~~n~~n~~n~~g~%s~w~ %s has healed you (by %.2f HP)",GetClassName(playerid),PlayerName(playerid),hp);
  3903. GameTextForPlayer(targetid,string,3500,5);
  3904. format(str,sizeof(str),""chat""COL_LGREEN" %s %s has healed %s by (NEW HP: %.2f HP)",GetClassName(playerid),PlayerName(playerid),PlayerName(targetid),hp);
  3905. SendClientMessageToAll(-1,str);
  3906. GivePlayerXP(playerid,35);
  3907. Abilitys[playerid][HealCoolDown] = gettime();
  3908. }
  3909. }
  3910. }
  3911. else return SendClientMessage(playerid,-1,""chat" You cannot heal an zombie!");
  3912. }
  3913. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" you need to be VIP level 4 to use this command!");
  3914. }
  3915. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You'll need to be an human to use this command!");
  3916. }
  3917. return 1;
  3918. }
  3919.  
  3920. CMD:fail(playerid)
  3921. {
  3922. new fail1[128];
  3923. format(fail1, sizeof(fail1), ""chat"Player %s just made an epic failure.", PlayerName(playerid), playerid);
  3924. SendClientMessageToAll(COLOR_LIGHTBLUE, fail1);
  3925. return 1;
  3926. }
  3927.  
  3928. CMD:hi(playerid)
  3929. {
  3930. new fail1[128];
  3931. format(fail1, sizeof(fail1), ""chat" {ADD8E6}Player %s says: {41A317}Hi all guys, whats up!", PlayerName(playerid), playerid);
  3932. SendClientMessageToAll(COLOR_LIGHTBLUE, fail1);
  3933. return 1;
  3934. }
  3935.  
  3936. CMD:codes(playerid)
  3937. {
  3938. if(pInfo[playerid][pAdminLevel] >= 1)
  3939. {
  3940. new cstring[600];
  3941. strcat(cstring,"HH - Health Hacks (Permanent)\nGM -God Mode (Permanent)\nAB - Air Break (Permanent)\nSH- Speed Hacks (Permanent)\nWH - Weapon Hacks (Permanent)\n\
  3942. SK - Spawnkill (Over did)\nFH - Fly hacks (Permanent)\nOH - Other hacks (Permanent)\nVH - Vehicle hacks (Permanent)\nPF - Profanity");
  3943. ShowPlayerDialog(playerid,9511,DIALOG_STYLE_MSGBOX,"Ban Codes",cstring,"Close","");
  3944. }
  3945. return 1;
  3946. }
  3947. CMD:giveammo(playerid,params[])
  3948. {
  3949. if(gettime() - 15 < Abilitys[playerid][HealCoolDown]) return GameTextForPlayer(playerid,"~w~ Cannot Give Mini-Ammo Box wait 15 seconds!",1000,5);
  3950. {
  3951. if(team[playerid] == TEAM_HUMAN)
  3952. {
  3953. if(pInfo[playerid][pHumanClass] == WEAPONSDEALER)
  3954. {
  3955. new targetid,string[128],str[256];
  3956. if(sscanf(params,"u", targetid)) return SendClientMessage(playerid,-1,""chat" /giveammo [playerid]");
  3957. if(team[targetid] == TEAM_HUMAN)
  3958. {
  3959. {
  3960. if(pInfo[playerid][pHumanClass] == WEAPONSDEALER)
  3961. {
  3962. new ammo = GetPlayerAmmo(targetid);
  3963. SetPlayerAmmo(targetid, GetPlayerWeapon(targetid), ammo+50);
  3964. format(string,sizeof(string),"~n~~n~~n~~n~~g~%s~w~ %s has Given Mini-Ammo Box you ",GetClassName(playerid),PlayerName(playerid));
  3965. GameTextForPlayer(targetid,string,3500,5);
  3966. format(str,sizeof(str),""chat""COL_LGREEN" %s %s has Given Mini-Ammo Box to %s ",GetClassName(playerid),PlayerName(playerid),PlayerName(targetid),PlayerName(targetid));
  3967. SendClientMessageToAll(-1,str);
  3968. GivePlayerXP(playerid,5);
  3969. Abilitys[playerid][HealCoolDown] = gettime();
  3970. }
  3971.  
  3972. }
  3973. }
  3974.  
  3975.  
  3976. else return SendClientMessage(playerid,-1,""chat" You cannot Give Ammo to an zombie!");
  3977. }
  3978. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You'll need to be A Weapons Dealer to use this command!");
  3979. }
  3980. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You'll need to be an human to use this command!");
  3981. }
  3982. return 1;
  3983. }
  3984. CMD:vest(playerid,params[])
  3985. {
  3986. if(gettime() - 15 < Abilitys[playerid][HealCoolDown]) return GameTextForPlayer(playerid,"~w~ Cannot Give Mini-Armour wait 15 seconds!",1000,5);
  3987. {
  3988. if(team[playerid] == TEAM_HUMAN)
  3989. {
  3990. if(pInfo[playerid][pHumanClass] == WEAPONSDEALER)
  3991. {
  3992. new targetid,string[128],str[256];
  3993. if(sscanf(params,"u", targetid)) return SendClientMessage(playerid,-1,""chat" /vest [playerid]");
  3994. new Float:ar;
  3995. GetPlayerArmour(playerid, ar);
  3996. if(team[targetid] == TEAM_HUMAN)
  3997. {
  3998. if(ar >= 80)
  3999. {
  4000. SendClientMessage(playerid,-1,""chat" That player already has More than 80 Armour");
  4001. }
  4002. else
  4003. {
  4004. if(pInfo[playerid][pHumanClass] == WEAPONSDEALER)
  4005. {
  4006. SetPlayerArmour(targetid,ar+20);
  4007. format(string,sizeof(string),"~n~~n~~n~~n~~g~%s~w~ %s has Given Mini-Vest you (New HP: %.2f)",GetClassName(playerid),PlayerName(playerid),ar);
  4008. GameTextForPlayer(targetid,string,3500,5);
  4009. format(str,sizeof(str),""chat""COL_LGREEN" %s %s has Given Mini-Vest to %s (NEW HP: %.2f HP)",GetClassName(playerid),PlayerName(playerid),PlayerName(targetid),ar,PlayerName(targetid));
  4010. SendClientMessageToAll(-1,str);
  4011. GivePlayerXP(playerid,5);
  4012. Abilitys[playerid][HealCoolDown] = gettime();
  4013. }
  4014.  
  4015. }
  4016. }
  4017.  
  4018.  
  4019. else return SendClientMessage(playerid,-1,""chat" You cannot Vest an zombie!");
  4020. }
  4021. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You'll need to be Weapons Dealer to use this command!");
  4022. }
  4023. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You'll need to be an human to use this command!");
  4024. }
  4025. return 1;
  4026. }
  4027.  
  4028. CMD:cure(playerid,params[])
  4029. {
  4030. if(team[playerid] == TEAM_HUMAN)
  4031. {
  4032. if(pInfo[playerid][pHumanClass] == MEDIC || pInfo[playerid][pHumanClass] == ADVANCEDMEDIC || pInfo[playerid][pHumanClass] == HEAVYMEDIC || pInfo[playerid][pHumanClass] == VIPMEDIC || pInfo[playerid][pHumanClass] == DOCTOR)
  4033. {
  4034. new targetid,string[128],str[256];
  4035. if(sscanf(params,"u", targetid)) return SendClientMessage(playerid,-1,""chat" /cure [playerid]");
  4036.  
  4037. if(pInfo[targetid][IsPlayerInfected] == 1)
  4038. {
  4039. CurePlayer(targetid);
  4040. format(string,sizeof(string),"~n~~n~~n~~n~~g~%s~w~ %s has cured you",GetClassName(playerid),PlayerName(playerid));
  4041. GameTextForPlayer(targetid,string,3500,5);
  4042. format(str,sizeof(str),""chat""COL_LGREEN" %s %s has cured %s",GetClassName(playerid),PlayerName(playerid),PlayerName(targetid));
  4043. SendClientMessageToAll(-1,str);
  4044. GivePlayerXP(playerid,20);
  4045. }
  4046. else return SendClientMessage(playerid,-1,""chat" The player you are trying to cure isn't infected");
  4047. }
  4048. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You'll need to be an Medic & Advanced Medic or V.I.P Medic to use this command!");
  4049. }
  4050. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You'll need to be an human to use this command!");
  4051. return 1;
  4052. }
  4053.  
  4054. CMD:zheal(playerid,params[])
  4055. {
  4056. if(gettime() - 15 < Abilitys[playerid][HealCoolDown]) return GameTextForPlayer(playerid,"~w~ Cannot heal wait 15 seconds!",1000,5);
  4057. {
  4058. if(team[playerid] == TEAM_ZOMBIE)
  4059. {
  4060. if(pInfo[playerid][pZombieClass] == HZOMBIE)
  4061. {
  4062. new targetid,string[128],str[256];
  4063. if(sscanf(params,"u", targetid)) return SendClientMessage(playerid,-1,""chat" /zheal [playerid]");
  4064. new Float:hp;
  4065. GetPlayerHealth(targetid,hp);
  4066. if(team[targetid] == TEAM_ZOMBIE)
  4067. {
  4068. if(hp >= 80)
  4069. {
  4070. SendClientMessage(playerid,-1,""chat" That player already has enough health to survive");
  4071. }
  4072. else
  4073. {
  4074. if(pInfo[playerid][pZombieClass] == HZOMBIE)
  4075. {
  4076. SetPlayerHealth(targetid,hp+40);
  4077. format(string,sizeof(string),"~n~~n~~n~~n~~g~%s~w~ %s has healed you (New HP: %.2f)",GetClassName(playerid),PlayerName(playerid),hp);
  4078. GameTextForPlayer(targetid,string,3500,5);
  4079. format(str,sizeof(str),""chat""COL_LGREEN" %s %s has healed %s (NEW HP: %.2f HP)",GetClassName(playerid),PlayerName(playerid),PlayerName(targetid),hp,PlayerName(targetid));
  4080. SendClientMessageToAll(-1,str);
  4081. GivePlayerXP(playerid,20);
  4082. Abilitys[playerid][HealCoolDown] = gettime();
  4083. }
  4084. }
  4085. }
  4086. else return SendClientMessage(playerid,-1,""chat" You cannot heal an human!");
  4087. }
  4088. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You'll need to be Zombie Medic!");
  4089. }
  4090. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You'll need to be an zombie to use this command!");
  4091. }
  4092. return 1;
  4093. }
  4094.  
  4095. CMD:heal(playerid,params[])
  4096. {
  4097. if(gettime() - 15 < Abilitys[playerid][HealCoolDown]) return GameTextForPlayer(playerid,"~w~ Cannot heal wait 15 seconds!",1000,5);
  4098. {
  4099. if(team[playerid] == TEAM_HUMAN)
  4100. {
  4101. if(pInfo[playerid][pHumanClass] == HEAVYMEDIC || pInfo[playerid][pHumanClass] == ADVANCEDMEDIC || pInfo[playerid][pHumanClass] == VIPMEDIC || pInfo[playerid][pHumanClass] == DOCTOR)
  4102. {
  4103. new targetid,string[128],str[256];
  4104. if(sscanf(params,"u", targetid)) return SendClientMessage(playerid,-1,""chat" /heal [playerid]");
  4105. new Float:hp;
  4106. GetPlayerHealth(targetid,hp);
  4107. if(team[targetid] == TEAM_HUMAN)
  4108. {
  4109. if(hp >= 80)
  4110. {
  4111. SendClientMessage(playerid,-1,""chat" That player already has enough health to survive");
  4112. }
  4113. else
  4114. {
  4115. if(pInfo[playerid][pHumanClass] == HEAVYMEDIC || pInfo[playerid][pHumanClass] == ADVANCEDMEDIC)
  4116. {
  4117. SetPlayerHealth(targetid,hp+5);
  4118. format(string,sizeof(string),"~n~~n~~n~~n~~g~%s~w~ %s has healed you (New HP: %.2f)",GetClassName(playerid),PlayerName(playerid),hp);
  4119. GameTextForPlayer(targetid,string,3500,5);
  4120. format(str,sizeof(str),""chat""COL_LGREEN" %s %s has healed %s (NEW HP: %.2f HP)",GetClassName(playerid),PlayerName(playerid),PlayerName(targetid),hp,PlayerName(targetid));
  4121. SendClientMessageToAll(-1,str);
  4122. GivePlayerXP(playerid,20);
  4123. Abilitys[playerid][HealCoolDown] = gettime();
  4124. }
  4125. else if(pInfo[playerid][pHumanClass] == VIPMEDIC)
  4126. {
  4127. SetPlayerHealth(targetid,hp+20);
  4128. format(string,sizeof(string),"~n~~n~~n~~n~~g~%s~w~ %s has healed you (by %.2f HP)",GetClassName(playerid),PlayerName(playerid),hp);
  4129. GameTextForPlayer(targetid,string,3500,5);
  4130. format(str,sizeof(str),""chat""COL_LGREEN" %s %s has healed %s by (NEW HP: %.2f HP)",GetClassName(playerid),PlayerName(playerid),PlayerName(targetid),hp);
  4131. SendClientMessageToAll(-1,str);
  4132. GivePlayerXP(playerid,20);
  4133. Abilitys[playerid][HealCoolDown] = gettime();
  4134. }
  4135.  
  4136. else if(pInfo[playerid][pHumanClass] == DOCTOR)
  4137. {
  4138. SetPlayerHealth(targetid,hp+40);
  4139. format(string,sizeof(string),"~n~~n~~n~~n~~g~%s~w~ %s has healed you (by %.2f HP)",GetClassName(playerid),PlayerName(playerid),hp);
  4140. GameTextForPlayer(targetid,string,3500,5);
  4141. format(str,sizeof(str),""chat""COL_LGREEN" %s %s has healed %s by (NEW HP: %.2f HP)",GetClassName(playerid),PlayerName(playerid),PlayerName(targetid),hp);
  4142. SendClientMessageToAll(-1,str);
  4143. GivePlayerXP(playerid,35);
  4144. Abilitys[playerid][HealCoolDown] = gettime();
  4145. }
  4146. }
  4147. }
  4148. else return SendClientMessage(playerid,-1,""chat" You cannot heal an zombie!");
  4149. }
  4150. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You'll need to be an Medic & Advanced Medic & Doctor or V.I.P Medic to use this command!");
  4151. }
  4152. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You'll need to be an human to use this command!");
  4153. }
  4154. return 1;
  4155. }
  4156.  
  4157. CMD:kill(playerid)
  4158. {
  4159. if(team[playerid] == TEAM_HUMAN)
  4160. {
  4161. SetPlayerHealth(playerid,0.0);
  4162. ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
  4163. SendClientMessage(playerid,-1,""chat" You've killed yourself");
  4164. }
  4165. else return SendClientMessage(playerid,-1,""chat" You cannot kill yourself if you are an 'Zombie'");
  4166. return 1;
  4167. }
  4168.  
  4169. CMD:admins(playerid, params[])
  4170. {
  4171. if(pInfo[playerid][pHour] >= 1)
  4172. {
  4173. new adminstring[128];
  4174. if(IsPlayerConnected(playerid))
  4175. {
  4176. for (new i = 0; i < MAX_PLAYERS; i++)
  4177. {
  4178. if(IsPlayerConnected(i))
  4179. {
  4180. if(pInfo[i][pAdminLevel] > 0)
  4181. {
  4182. format(adminstring, sizeof(adminstring),"%s%s: %s\n", adminstring, GetAdminName(i), PlayerName(i));
  4183. }
  4184. }
  4185. }
  4186. ShowPlayerDialog(playerid,DIALOG_ADMINS,DIALOG_STYLE_MSGBOX,"Online admins",adminstring,"Close","");
  4187. }
  4188. else return SendClientMessage(playerid,-1,""chat" No admins online");
  4189. }
  4190. else return SendClientMessage(playerid,-1,""chat" You cannot view admins online (You need 1 hours IG time)");
  4191. return 1;
  4192. }
  4193.  
  4194. CMD:vips(playerid, params[])
  4195. {
  4196. if(pInfo[playerid][pHour] >= 1)
  4197. {
  4198. new adminstring[128];
  4199. if(IsPlayerConnected(playerid))
  4200. {
  4201. for (new i = 0; i < MAX_PLAYERS; i++)
  4202. {
  4203. if(IsPlayerConnected(i))
  4204. {
  4205. if(pInfo[i][pVipLevel] > 0)
  4206. {
  4207. format(adminstring, sizeof(adminstring),"%sLevel %d: %s\n", adminstring, pInfo[i][pVipLevel], PlayerName(i));
  4208. }
  4209. }
  4210. }
  4211. ShowPlayerDialog(playerid,DIALOG_VIPS,DIALOG_STYLE_MSGBOX,"Online V.I.Ps",adminstring,"Close","");
  4212. }
  4213. else return SendClientMessage(playerid,-1,""chat" No vip's online");
  4214. }
  4215. else return SendClientMessage(playerid,-1,""chat" You cannot view vips online (You need 1 Hour IG time)");
  4216. return 1;
  4217. }
  4218.  
  4219. CMD:myteam(playerid)
  4220. {
  4221. new strteam[128];
  4222. switch(team[playerid])
  4223. {
  4224. case TEAM_ZOMBIE: strteam = "Zombie";
  4225. case TEAM_HUMAN: strteam = "Human";
  4226. }
  4227.  
  4228. new str[128];
  4229. format(str,sizeof(str),""chat" Your current team is %s",strteam);
  4230. SendClientMessage(playerid,-1,str);
  4231. return 1;
  4232. }
  4233.  
  4234. CMD:class(playerid,params[])
  4235. {
  4236. if(team[playerid] == TEAM_HUMAN)
  4237. {
  4238. if(time >= 200)
  4239. {
  4240. new string[2500];
  4241. strcat(string,"{008080}Civilian - Silenced Pistol,Shotgun - 0 XP\n{008080}Police Man - Deagle,Shotgun - 500 XP\n{008080}Medic -Shotgun,Silenced Pistol,Armour,Cure Infected - 1000 XP\n\
  4242. {008080}Scout - Sniper,Silenced Pistol - 1500 XP\n{008080}Heavy Medic - Deagle,Shotgun,Armour,Cure Infected - 5000 XP\n{008080}Farmer - Deagle,AK,County Rifle,Armour - 6000 XP\n");
  4243. strcat(string,"{008080}Soldier - AK47,Deagle - 6500 XP\n{008080}Engineer - Silenced Pistol,Shotgun,Armour,Build Boxes - 7500 XP\n{008080}S.W.A.T - MP5,Deagle,Armour,Immunity - 15,000 XP\n\
  4244. {008080}Heavy Shotgun - Shotgun,Deagle,Armour,More shotgun damage - 20,000 XP\n{008080}Advanced Medic - M4,Deagle,Shotgun,Cure all - 25,000 XP\n");
  4245. strcat(string,"{008080}Advanced Engineer - Deagle,M4,Armour,Build Boxes - 30,000 XP\n{008080}Experienced Engineer -Deagle,Shotgun,Armour - Build Ladders - 35,000 XP\n\
  4246. {008080}Federal Agent - M4,Deagle,Shotgun,Armour,Immunity - 50,000 XP\n{008080}Advanced Scout - Sniper,Deagle,High jump,Half Armour - 100,000 XP\n\
  4247. {008080}Kick Back - Silenced Pistol,Shotgun,MP5 - 400000 XP\n{008080}Doctor - Silenced Pistol - Heal,Cure,Shield Heal,Half Immunity - Rank 22");
  4248. ShowPlayerDialog(playerid,DIALOG_CLASS_2,DIALOG_STYLE_LIST,"Class Selection (Human)",string,"Select","Close");
  4249. }
  4250. else return SendClientMessage(playerid,-1,""chat" 50 seconds has passed! you cannot select a class anymore!");
  4251. }
  4252. if(team[playerid] == TEAM_ZOMBIE)
  4253. {
  4254. new string[1000];
  4255. strcat(string,"{41A317}Standard Zombie - LALT Infect a player - 0 XP\n{41A317}Mutated Zombie - LALT Infect Drunk Vision - 500 XP\n{41A317}Fast Zombie - High Jump - 5,000 XP\n\
  4256. {41A317}Reaper Zombie - More damage with chainsaw - 10,000 XP\n{41A317}Witch Zombie - LALT 75 Damage - 18,000 XP\n");
  4257. strcat(string,"{41A317}Boomer Zombie - Explodes on death and infect - 20,000 XP\n\
  4258. {41A317}Stomper Zombie - LALT Throw all around you - 25,000 XP\n{41A317}Screamer - LALT Drop everyone down - 35000 XP\n\
  4259. {41A317}Advanced Mutated - LALT Infect all around - 65,000 XP\n{41A317}Heavy Screamer - LALT Throw all +5hp - 70,000 XP\n");
  4260. strcat(string,"{41A317}Flesh Eater - LALT Infect a player kills faster - 100,000 XP\n{41A317}Advanced Witch - LALT 99 Damage - 150,000 XP\n{41A317}Advanced Boomer - LALT Explode - 500,000 X");
  4261.  
  4262. ShowPlayerDialog(playerid,DIALOG_CLASS_3,DIALOG_STYLE_LIST,"Class Selection (Zombie)",string,"Select","Close");
  4263. }
  4264. return 1;
  4265. }
  4266.  
  4267. CMD:class2(playerid,params[])
  4268. {
  4269. if(team[playerid] == TEAM_HUMAN)
  4270. {
  4271. if(time >= 200)
  4272. {
  4273. new string[2500];
  4274. strcat(string,"{008080}Pimp - Dildo, deals 15 damage 15000 XP\n{008080}Heavy Soldier - Can Give 25 Armour Point - 150000\n");
  4275. strcat(string,"{008080}Assassin - Katana, One Hit Kill, C4 - 300.000 XP\n{008080}Cowboy - 2 colt pistols, extra damage, armour, 250.000XP\n");
  4276. strcat(string,"{008080}Trap Master - Combat Shotgun, AK, Can put traps - 200.000 XP\n{008080}FBI - M4, Deagle, Immunity from all, Shotgun, Mp5 - 200.000 XP\n");
  4277. strcat(string,"{008080}Scientist - Silenced Pistol, Can cure zombies - 300.000 XP\n{008080}Shotgun Specialist - Shotgun +50 Damage - 450,000 XP.\n{008080}Experienced Scout - One shoot kill, Sniper, Silenced Pistol - 1000000xp\n");
  4278. strcat(string,"{008080}Smoke Up - Deagle - MP5 - M4 - Flamer - Full Immunity - Rank 30 Required\n{008080}Boxer - Can Give Stomper - 31 Rank Required\n{008080}BomberMan - Having Rocket Launcher - 450000xp\n");
  4279. strcat(string,"{008080}Mp5 Master - Extreme damage with Mp5 - 500000xp\n{008080}Ghost Rider - Can Burn Zombies - 600000xp\n{008080}Hey Buddy - Gives 70 Damage - 150000xp\n{008080}Advanced KickBack - Gives Extreme KickBack - 900000\n{008080}Tec Girl - Gives 75 damage with Tec|200hp - 900000\n{008080}Bulls Eye - Gives high damage|sawnoff - 27 rank needed\n");
  4280. ShowPlayerDialog(playerid,DIALOG_CLASS_2_2,DIALOG_STYLE_LIST,"Class Selection (Human)",string,"Select","Close");
  4281. }
  4282. else return SendClientMessage(playerid,-1,""chat" 50 seconds has passed! you cannot select a class anymore!");
  4283. }
  4284. if(team[playerid] == TEAM_ZOMBIE)
  4285. {
  4286. new string[1000];
  4287. strcat(string,"{41A317}Advanced Stomper - 150 HP , Stomps humans away - 200.000 XP\n");
  4288. strcat(string,"{41A317}Fire Breather - Throws out flames burning everything - 350.000 XP\n{41A317}Advanced Screamer - LALT Throw all +10hp ||-10 Hp to human - 450,000 XP\n{41A317}Advanced Boomer - LALT Explode - 500,000 XP\n");
  4289. strcat(string,"{41A317}Nemesis - Creates some paravane, has 200 HP, custom skinned\n{41A317}Zombie Medic - /zheal to heal zombies\n{41A317}SlenderMan - HighJump MoreDamage - 700000\n{41A317}Killer Zombie - Cant be kickback - 600000\n{41A317}Ghost Zombie - Invisible | Gives 40 Damage - 170000\n{41A317}Dark Sniper - Having Sniper|Can Infect - 700000 xp");
  4290.  
  4291. ShowPlayerDialog(playerid,DIALOG_CLASS_3_3,DIALOG_STYLE_LIST,"Class Selection (Zombie)",string,"Select","Close");
  4292. }
  4293. return 1;
  4294. }
  4295.  
  4296. CMD:nextmap(playerid,params[])
  4297. {
  4298. if(pInfo[playerid][pLogged] == 1)
  4299. {
  4300. if(pInfo[playerid][pAdminLevel] >= 1)
  4301. {
  4302. new map,stringmap[256];
  4303. if(sscanf(params,"i", map)) return SendClientMessage(playerid,-1,""chat" /nextmap [mapid]");
  4304.  
  4305. format(stringmap,sizeof(stringmap),""chat""COL_LIGHTBLUE" %s %s set next map id to %i",GetAdminName(playerid),PlayerName(playerid),map);
  4306. SendClientMessageToAll(-1,stringmap);
  4307. mapid = map;
  4308. }
  4309. }
  4310. else if(pInfo[playerid][pLogged] == 0)
  4311. {
  4312. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4313. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4314. }
  4315. return 1;
  4316. }
  4317.  
  4318. CMD:setzombie(playerid,params[])
  4319. {
  4320. if(pInfo[playerid][pLogged] == 1)
  4321. {
  4322. if(pInfo[playerid][pAdminLevel] >= 3)
  4323. {
  4324. if(IsPlayerConnected(playerid))
  4325. {
  4326. new targetid,str[256];
  4327. if(sscanf(params, "u", targetid)) return SendClientMessage(playerid,-1,""chat" /setzombie [playerid]");
  4328. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  4329.  
  4330. ZombieSetup(targetid);
  4331. SpawnPlayer(targetid);
  4332. format(str,sizeof(str),""chat""COL_LGREEN" Admin %s(%i) has set your team to Zombie",PlayerName(playerid),playerid);
  4333. SendClientMessage(targetid,-1,str);
  4334. format(str,sizeof(str),""chat""COL_LGREEN" You've changed %s(%i) team to zombie!",PlayerName(targetid),targetid);
  4335. SendClientMessage(playerid,-1,str);
  4336. }
  4337. }
  4338. }
  4339. else if(pInfo[playerid][pLogged] == 0)
  4340. {
  4341. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4342. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4343. }
  4344. return 1;
  4345. }
  4346.  
  4347. CMD:sethuman(playerid,params[])
  4348. {
  4349. if(pInfo[playerid][pLogged] == 1)
  4350. {
  4351. if(pInfo[playerid][pAdminLevel] >= 3)
  4352. {
  4353. if(IsPlayerConnected(playerid))
  4354. {
  4355. new targetid,str[256];
  4356. if(sscanf(params, "u", targetid)) return SendClientMessage(playerid,-1,""chat" /sethuman [playerid]");
  4357. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  4358.  
  4359. HumanSetup(targetid);
  4360. SpawnPlayer(targetid);
  4361. format(str,sizeof(str),""chat""COL_LGREEN" Admin %s(%i) has set your team to Human",PlayerName(playerid),playerid);
  4362. SendClientMessage(targetid,-1,str);
  4363. format(str,sizeof(str),""chat""COL_LGREEN" You've changed %s(%i) team to Human!",PlayerName(targetid),targetid);
  4364. SendClientMessage(playerid,-1,str);
  4365. }
  4366. }
  4367. }
  4368.  
  4369. else if(pInfo[playerid][pLogged] == 0)
  4370. {
  4371. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4372. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4373. }
  4374. return 1;
  4375. }
  4376.  
  4377. CMD:ban(playerid,params[])
  4378. {
  4379. if(pInfo[playerid][pLogged] == 1)
  4380. {
  4381. if(pInfo[playerid][pAdminLevel] >= 2)
  4382. {
  4383. if(IsPlayerConnected(playerid))
  4384. {
  4385. new targetid,reason[105],string[256];
  4386. if(sscanf(params, "us[105]", targetid,reason)) return SendClientMessage(playerid,-1,""chat" /ban [playerid] [reason]");
  4387. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  4388. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s has banned %s [Reason: %s]",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),reason);
  4389. SendClientMessageToAll(-1,string);
  4390. printf("%s %s has banned %s [Reason: %s]",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),reason);
  4391. pInfo[targetid][pBanned] = 1;
  4392. BanPlayer(targetid,reason,GetAdminName(playerid));
  4393. }
  4394. }
  4395.  
  4396. else
  4397. {
  4398. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  4399. }
  4400. }
  4401. else if(pInfo[playerid][pLogged] == 0)
  4402. {
  4403. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4404. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4405. }
  4406. return 1;
  4407. }
  4408.  
  4409. CMD:unbanip(playerid, params[])
  4410. {
  4411. if(pInfo[playerid][pLogged] == 1)
  4412. {
  4413. if(pInfo[playerid][pAdminLevel] >= 2)
  4414. {
  4415. if(pInfo[playerid][pLogged] == 1)
  4416. {
  4417. new string[128], sendername[MAX_PLAYER_NAME];
  4418. if(pInfo[playerid][pAdminLevel] < 1) return SendClientMessage(playerid, COLOR_RED, " you are not authorized to use that command!");
  4419. if(isnull(params)) return SendClientMessage(playerid,COLOR_WHITE,"USAGE: /unbanip [playerIP]");
  4420. format(string,sizeof(string),"unbanip %s",params);
  4421. SendRconCommand(string);
  4422. SendRconCommand("reloadbans");
  4423. GetPlayerName(playerid, sendername, sizeof(sendername));
  4424. format(string, 128, "%s has unbanned IP %s", sendername,params);
  4425. SendClientMessage(playerid,-1,string);
  4426. }
  4427. else if(pInfo[playerid][pLogged] == 0)
  4428. {
  4429. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4430. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4431. }
  4432. }
  4433. }
  4434. return 1;
  4435. }
  4436.  
  4437. CMD:unban(playerid, params[])
  4438. {
  4439. if(pInfo[playerid][pLogged] == 1)
  4440. {
  4441. if(pInfo[playerid][pAdminLevel] >= 2)
  4442. {
  4443.  
  4444. if(pInfo[playerid][pLogged] == 1)
  4445. {
  4446. new id, string[128], sendername[MAX_PLAYER_NAME], name[MAX_PLAYER_NAME], targetid;
  4447. if(pInfo[playerid][pAdminLevel] < 1) return SendClientMessage(playerid, COLOR_RED,"You are not authorized to use this command");
  4448. else if(sscanf(params,"u", id)) return SendClientMessage(playerid, COLOR_GREY,"USAGE: /unban [playername]");
  4449. else
  4450. {
  4451. GetPlayerName(playerid, sendername, sizeof(sendername));
  4452. GetPlayerName(id, name, sizeof(name));
  4453. format(string, sizeof(string),"%s has been unbanned by admin %s", name, sendername);
  4454. SendClientMessage(playerid,-1,string);
  4455. pInfo[targetid][pBanned] = 0;
  4456. }
  4457. }
  4458. else if(pInfo[playerid][pLogged] == 0)
  4459. {
  4460. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4461. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4462. }
  4463. }
  4464. }
  4465. return 1;
  4466. }
  4467.  
  4468.  
  4469. CMD:radio(playerid)
  4470. {
  4471. SendClientMessage(playerid, COLOR_RED,"Make sure your RADIO VOLUME is max!!! Else the radio won't work!");
  4472. new string[256];
  4473. strcat(string,"{FF0000}Eric Pridz - Pjanoo\n{00FF00}Nicki Minaj - Starships\n{0000FF}Train - Drive By\nSix Days - Tokyo Driftn\n{00FF00}Year of Summer\nGangnam Style\nStop Radio\n");
  4474. ShowPlayerDialog(playerid,DIALOG_RADIO,DIALOG_STYLE_LIST,"Select an radio!",string,"Select","Close");
  4475. return 1;
  4476. }
  4477.  
  4478. CMD:hradio(playerid)
  4479. {
  4480. SendClientMessage(playerid, COLOR_GREEN,"Make sure your RADIO VOLUME is max!!! Else the radio won't work!");
  4481. new string[256];
  4482. strcat(string,"{FF0000}Criminal\n{00FF00}Subha honai na dai\n{0000FF}Make Some Noise\nStop Radio\n");
  4483. ShowPlayerDialog(playerid,DIALOG_RADIO_1,DIALOG_STYLE_LIST,"Select an radio!",string,"Select","Close");
  4484. return 1;
  4485. }
  4486.  
  4487. CMD:getid(playerid,params[])
  4488. {
  4489. new found, string[128], playername[MAX_PLAYER_NAME];
  4490. if(pInfo[playerid][pAdminLevel] >= 1)
  4491. {
  4492. if(isnull(params)) return SendClientMessage(playerid, -1, ""chat" /getid [PartOfName] ");
  4493. format(string,sizeof(string),""chat" Searched for: \"%s\"",params);
  4494. SendClientMessage(playerid, -1,string);
  4495. for(new i=0; i <= MAX_PLAYERS; i++)
  4496. {
  4497. if(IsPlayerConnected(i))
  4498. {
  4499. GetPlayerName(i, playername, MAX_PLAYER_NAME);
  4500. new namelen = strlen(playername);
  4501. new bool:searched=false;
  4502. for(new pos=0; pos <= namelen; pos++)
  4503. {
  4504. if(searched != true)
  4505. {
  4506. if(strfind(playername,params,true) == pos)
  4507. {
  4508. found++;
  4509. format(string,sizeof(string),""chat" %d. %s (ID: %d)",found,playername,i);
  4510. SendClientMessage(playerid, -1 ,string);
  4511. searched = true;
  4512. }
  4513. }
  4514. }
  4515. }
  4516. }
  4517. if(found == 0)
  4518. SendClientMessage(playerid, -1, ""chat" No Players Localized!");
  4519. }
  4520. else if(pInfo[playerid][pLogged] == 0)
  4521. {
  4522. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4523. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4524. }
  4525. return 1;
  4526. }
  4527.  
  4528. CMD:cc(playerid,params[])
  4529. {
  4530. if(pInfo[playerid][pLogged] == 1)
  4531. {
  4532. if(pInfo[playerid][pAdminLevel] >= 1)
  4533. {
  4534. new reason[105], string[256];
  4535. if(sscanf(params, "s[105]", reason)) return SendClientMessage(playerid,-1,""chat" /cc [reason]");
  4536.  
  4537. ClearChat();
  4538. format(string,sizeof(string), ""chat""COL_LIGHTBLUE" %s %s cleared the chat [Reason: %s]",GetAdminName(playerid),PlayerName(playerid),reason);
  4539. SendClientMessageToAll(-1,string);
  4540. }
  4541. else {
  4542. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  4543. }
  4544. }
  4545.  
  4546. else if(pInfo[playerid][pLogged] == 0)
  4547. {
  4548. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4549. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4550. }
  4551. return 1;
  4552. }
  4553.  
  4554. CMD:setmapper(playerid,params[])
  4555. {
  4556. if(pInfo[playerid][pLogged] == 1)
  4557. {
  4558. if(pInfo[playerid][pAdminLevel] >= 6)
  4559. {
  4560. new targetid,level,string[256];
  4561. if(sscanf(params, "ud", targetid, level)) return SendClientMessage(playerid,-1,""chat" /setmapper [playerid] [level]");
  4562. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  4563. if(level < 5 || level > 7) return SendClientMessage(playerid,-1,""chat" Mapper level is 6 only ");
  4564.  
  4565. pInfo[targetid][pAdminLevel] = level;
  4566.  
  4567. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s have given Mapper status of %d to %s",GetAdminName(playerid),PlayerName(playerid),level,PlayerName(targetid));
  4568. SendClientMessageToAll(-1,string);
  4569. printf("%s %s have given Mapper status of %d to %s",GetAdminName(playerid),PlayerName(playerid),level,PlayerName(targetid));
  4570. }
  4571. else {
  4572. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  4573. }
  4574. }
  4575. else if(pInfo[playerid][pLogged] == 0)
  4576. {
  4577. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay! are u mapper?");
  4578. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4579. }
  4580. return 1;
  4581. }
  4582.  
  4583. CMD:setdonor(playerid,params[])
  4584. {
  4585. if(pInfo[playerid][pLogged] == 1)
  4586. {
  4587. if(pInfo[playerid][pAdminLevel] >= 6)
  4588. {
  4589. new targetid,level,string[256];
  4590. if(sscanf(params, "ud", targetid, level)) return SendClientMessage(playerid,-1,""chat" /setvip [playerid] [level]");
  4591. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  4592. if(level < 0 || level > 5) return SendClientMessage(playerid,-1,""chat" Vip levels are ONLY between 1-5");
  4593.  
  4594. pInfo[targetid][pVipLevel] = level;
  4595.  
  4596. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s have given vip status of %d to %s",GetAdminName(playerid),PlayerName(playerid),level,PlayerName(targetid));
  4597. SendClientMessageToAll(-1,string);
  4598. printf(" %s %s have given vip status of %d to %s",GetAdminName(playerid),PlayerName(playerid),level,PlayerName(targetid));
  4599. }
  4600. else {
  4601. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  4602. }
  4603. }
  4604. else if(pInfo[playerid][pLogged] == 0)
  4605. {
  4606. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4607. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4608. }
  4609. return 1;
  4610. }
  4611.  
  4612. CMD:megaslap(playerid,params[])
  4613. {
  4614. if(pInfo[playerid][pLogged] == 1)
  4615. {
  4616. if(pInfo[playerid][pAdminLevel] >= 2 || IsPlayerAdmin(playerid))
  4617. {
  4618. new targetid,string[256];
  4619. if(sscanf(params, "u", targetid)) return SendClientMessage(playerid,-1,""chat" /megaslap [playerid]");
  4620. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  4621.  
  4622. new Float:posxx[3];
  4623. GetPlayerPos(targetid, posxx[0], posxx[1], posxx[2]);
  4624. SetPlayerPos(targetid, posxx[0], posxx[1], posxx[2]+40);
  4625.  
  4626. if(IsPlayerAdmin(playerid))
  4627. {
  4628. format(string, sizeof(string), ""chat" RCON Admin has mega slapped %s",PlayerName(targetid));
  4629. SendClientMessageToAll(-1,string);
  4630. }
  4631. else
  4632. {
  4633. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s has mega slapped %s",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid));
  4634. SendClientMessageToAll(-1,string);
  4635. printf(" %s %s has mega slapped %s",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid));
  4636. }
  4637. }
  4638. else {
  4639. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  4640. }
  4641. }
  4642. else if(pInfo[playerid][pLogged] == 0)
  4643. {
  4644. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4645. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4646. }
  4647. return 1;
  4648. }
  4649.  
  4650. CMD:slap(playerid,params[])
  4651. {
  4652. if(pInfo[playerid][pLogged] == 1)
  4653. {
  4654. if(pInfo[playerid][pAdminLevel] >= 1)
  4655. {
  4656. new targetid,string[256];
  4657. if(sscanf(params, "u", targetid)) return SendClientMessage(playerid,-1,""chat" /slap [playerid]");
  4658. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  4659.  
  4660. new Float:posxx[3];
  4661.  
  4662. GetPlayerPos(targetid, posxx[0], posxx[1], posxx[2]);
  4663. SetPlayerPos(targetid, posxx[0], posxx[1], posxx[2]+4);
  4664.  
  4665. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s has slapped %s",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid));
  4666. SendClientMessageToAll(-1,string);
  4667. printf(" %s %s has slapped %s",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid));
  4668. }
  4669. else {
  4670. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  4671. }
  4672. }
  4673. else if(pInfo[playerid][pLogged] == 0)
  4674. {
  4675. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4676. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4677. }
  4678. return 1;
  4679. }
  4680.  
  4681. CMD:a(playerid,params[])
  4682. {
  4683. if(pInfo[playerid][pLogged] == 1)
  4684. {
  4685. new adminstring[256];
  4686. if(pInfo[playerid][pAdminLevel] >= 1)
  4687. {
  4688. if(!strlen(params))
  4689. {
  4690. SendClientMessage(playerid, -1, ""chat" /a [message]");
  4691. return 1;
  4692. }
  4693. format(adminstring, sizeof(adminstring), ""COL_LIGHTBLUE"[Admin Chat] %s %s[%d]: %s",GetAdminName(playerid),PlayerName(playerid), playerid, params);
  4694. SendMessageToAllAdmins(adminstring, -1);
  4695. printf("[Admin Chat] %s %s[%d]: %s",GetAdminName(playerid),PlayerName(playerid), playerid, params);
  4696. }
  4697. else {
  4698. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  4699. }
  4700. }
  4701. else if(pInfo[playerid][pLogged] == 0)
  4702. {
  4703. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4704. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4705. }
  4706. return 1;
  4707. }
  4708.  
  4709. CMD:z(playerid,params[])
  4710. {
  4711. if(pInfo[playerid][pLogged] == 1)
  4712. {
  4713. new zstring[256];
  4714. if(team[playerid] == TEAM_ZOMBIE)
  4715. {
  4716. if(!strlen(params))
  4717. {
  4718. SendClientMessage(playerid, -1, ""chat" /z [message]");
  4719. return 1;
  4720. }
  4721. format(zstring, sizeof(zstring), ""chat""COL_RED"[Zombie Chat]"COL_WHITE" %s[%d]: %s", PlayerName(playerid), playerid, params);
  4722. SendZMessage(zstring, -1);
  4723. printf("[Zombie Chat]"COL_WHITE" %s[%d]: %s", PlayerName(playerid), playerid, params);
  4724. }
  4725. else return SendClientMessage(playerid,-1,""chat" You must be a zombie to use this chat function");
  4726. }
  4727. else if(pInfo[playerid][pLogged] == 0)
  4728. {
  4729. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4730. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4731. }
  4732. return 1;
  4733. }
  4734.  
  4735. CMD:h(playerid,params[])
  4736. {
  4737. if(pInfo[playerid][pLogged] == 1)
  4738. {
  4739. new zstring[256];
  4740. if(team[playerid] == TEAM_HUMAN)
  4741. {
  4742. if(!strlen(params))
  4743. {
  4744. SendClientMessage(playerid, -1, ""chat" /h [message]");
  4745. return 1;
  4746. }
  4747. format(zstring, sizeof(zstring), ""chat""COL_RED"[Human Chat]"COL_WHITE" %s[%d]: %s", PlayerName(playerid), playerid, params);
  4748. SendHMessage(zstring, -1);
  4749. printf("[Human Chat]"COL_WHITE" %s[%d]: %s", PlayerName(playerid), playerid, params);
  4750. }
  4751. else return SendClientMessage(playerid,-1,""chat" You must be a human to use this chat function");
  4752. }
  4753. else if(pInfo[playerid][pLogged] == 0)
  4754. {
  4755. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4756. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4757. }
  4758. return 1;
  4759. }
  4760.  
  4761. CMD:report(playerid, params[])
  4762. {
  4763. if(pInfo[playerid][pLogged] == 1)
  4764. {
  4765.  
  4766. new text[128],targetid,string[128],sendername[MAX_PLAYER_NAME],giveplayer[MAX_PLAYER_NAME];
  4767. if(sscanf(params, "us[128]", targetid, text)) SendClientMessage(playerid, COLOR_GREY, "Usage: /report [playerid] [reason]");
  4768. else
  4769. {
  4770. if (!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_GREY, "Invaild ID - That player is not connected!");
  4771. format(sendername, sizeof(sendername), "%s", PlayerName(playerid));
  4772. format(giveplayer, sizeof(giveplayer), "%s", PlayerName(targetid));
  4773. format(string, sizeof(string), "Report: %s[%d] has reported %s[%d] [Reason: %s]", sendername, playerid, giveplayer, targetid, text);
  4774. SendMessageToAdmins(COLOR_YELLOW,string);
  4775. printf("Report: %s[%d] has reported %s[%d] [Reason: %s]", sendername, playerid, giveplayer, targetid, text);
  4776. SendClientMessage(playerid, COLOR_GREEN,"Thanks for reporting!");
  4777. }
  4778. }
  4779. else if(pInfo[playerid][pLogged] == 0)
  4780. {
  4781. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4782. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4783. }
  4784. return 1;
  4785. }
  4786.  
  4787. CMD:pm(playerid,params[])
  4788. {
  4789. if(pInfo[playerid][pLogged] == 1)
  4790. {
  4791. new targetid,message[256],pmstring[256],string[256];
  4792.  
  4793. if(sscanf(params,"us[256]", targetid, message)) return SendClientMessage(playerid,-1,""chat" /pm [playerid] [message]");
  4794. if(pInfo[playerid][pLogged] == 1)
  4795. {
  4796. if(pInfo[targetid][pPM] == 0)
  4797. {
  4798. format(pmstring,sizeof(pmstring),""chat""COL_RED" Call from %s[%d] "COL_GREEN"Message: %s",PlayerName(playerid),playerid,message);
  4799. SendClientMessage(targetid,-1,pmstring);
  4800. printf("PM From %s[%d] Message: %s",PlayerName(playerid),playerid,message);
  4801. format(string,sizeof(string),""chat" "COL_GREEN"[Info]"COL_WHITE"Your Call was send to %s ("COL_GREEN"Message: "COL_YELLOW"%s"COL_WHITE")", PlayerName(targetid),message);
  4802. SendClientMessage(playerid,-1,string);
  4803. printf(""COL_GREEN"[Info]"COL_WHITE"Your Call was send to %s ("COL_GREEN"Message: "COL_YELLOW"%s"COL_WHITE")", PlayerName(targetid),message);
  4804. }
  4805. else {
  4806. SendClientMessage(playerid,-1,""chat" This player is not accepting any personal messages");
  4807. }
  4808. }
  4809. }
  4810. else if(pInfo[playerid][pLogged] == 0)
  4811. {
  4812. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4813. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4814. }
  4815. return 1;
  4816. }
  4817.  
  4818.  
  4819. CMD:blockpm(playerid) return pInfo[playerid][pPM] = 1, SendClientMessage(playerid,-1,""chat" "COL_GREEN"[Info]"COL_WHITE"You are now blocking personal messages :D");
  4820. CMD:unblockpm(playerid) return pInfo[playerid][pPM] = 0, SendClientMessage(playerid,-1,""chat" "COL_GREEN"[Info]"COL_WHITE"You are not blocking any more personal messages :D");
  4821.  
  4822.  
  4823. CMD:ann(playerid,params[])
  4824. {
  4825. if(pInfo[playerid][pLogged] == 1)
  4826. {
  4827. if(pInfo[playerid][pAdminLevel] >= 4 || IsPlayerAdmin(playerid))
  4828. {
  4829. if(isnull(params)) return SendClientMessage(playerid, -1, ""chat" /ann [Text]");
  4830. GameTextForAll(params,5000,3);
  4831. }
  4832. else {
  4833. SendClientMessage(playerid,-1,""chat" You must be a level 4 admin");
  4834. }
  4835. }
  4836. else if(pInfo[playerid][pLogged] == 0)
  4837. {
  4838. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4839. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4840. }
  4841. return 1;
  4842. }
  4843.  
  4844. CMD:ann2(playerid,params[])
  4845. {
  4846. if(pInfo[playerid][pLogged] == 1)
  4847. {
  4848. if(pInfo[playerid][pAdminLevel] >= 3 || IsPlayerAdmin(playerid))
  4849. {
  4850. if(isnull(params)) return SendClientMessage(playerid, -1, ""chat" /ann2 [Text]");
  4851. SendClientMessageToAll(-1,params);
  4852. }
  4853. else {
  4854. SendClientMessage(playerid,-1,""chat" You must be a level 3 admin");
  4855. }
  4856. }
  4857. else if(pInfo[playerid][pLogged] == 0)
  4858. {
  4859. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4860. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4861. }
  4862. return 1;
  4863. }
  4864.  
  4865. CMD:warn(playerid,params[])
  4866. {
  4867. if(pInfo[playerid][pLogged] == 1)
  4868. {
  4869. if(pInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid))
  4870. {
  4871. new targetid,reason[105],string[256];
  4872. if(sscanf(params, "us[105]", targetid, reason)) return SendClientMessage(playerid,-1,""chat" /warn [playerid] [reason]");
  4873. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  4874.  
  4875. new sentstring[128];
  4876. new Float:X; new Float:Y; new Float:Z;
  4877.  
  4878. pInfo[targetid][pWarnings]++;
  4879. GetPlayerPos(targetid, X, Y, Z);
  4880. SetPlayerPos(targetid, X, Y, Z+4);
  4881. TogglePlayerControllable(targetid,0);
  4882. SetTimerEx("UNFREEZE",5000,0,"i",playerid);
  4883. format(string,sizeof(string), "%s %s warned you\nReason: %s\nWarning Number: %i",GetAdminName(playerid),PlayerName(playerid), reason, pInfo[targetid][pWarnings]);
  4884. ShowPlayerDialog(targetid,DIALOG_WARN,DIALOG_STYLE_MSGBOX,"Warning",string,"I Understand","");
  4885. format(sentstring,sizeof(sentstring), ""chat""COL_RED" %s %s has warned %s Reason: %s (%i / 3)",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),reason,pInfo[targetid][pWarnings]);
  4886. SendClientMessageToAll(-1,sentstring);
  4887.  
  4888. if(pInfo[targetid][pWarnings] >= 3)
  4889. {
  4890. format(string, sizeof(string), ""chat""COL_RED" %s %s has kicked %s [Reason: %s][3 Warnings EXCEEDED]",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),reason);
  4891. SendClientMessageToAll(-1,string);
  4892. SCM(targetid, -1, ""COL_LIGHTBLUE" You have Been Kicked Because your Warns EXCEEDED 3 ");
  4893. SetTimerEx("WARN_KICK",2000,0,"i",targetid);
  4894. }
  4895. }
  4896. else {
  4897. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  4898. }
  4899. }
  4900. else if(pInfo[playerid][pLogged] == 0)
  4901. {
  4902. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4903. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4904. }
  4905. return 1;
  4906. }
  4907.  
  4908. forward WARN_KICK();
  4909. public WARN_KICK()
  4910. {
  4911. for(new i=0; i<MAX_PLAYERS; i++)
  4912. {
  4913. if(IsPlayerConnected(i))
  4914. {
  4915. Kick(i);
  4916. }
  4917. }
  4918. return 1;
  4919. }
  4920.  
  4921. CMD:givexp4(playerid,params[])
  4922. {
  4923. if(pInfo[playerid][pLogged] == 1)
  4924. {
  4925. if(pInfo[playerid][pAdminLevel] >= 6)
  4926. {
  4927. new targetid,givexp,string[256];
  4928. if(sscanf(params, "ui", targetid, givexp)) return SendClientMessage(playerid,-1,""chat" /givexp4 [playerid] [amount]");
  4929. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  4930.  
  4931. if(givexp < -100000 || givexp > 100000) return SendClientMessage(playerid,-1,""chat" You can only give xp between Negative 100000 - Positive 100000");
  4932. pInfo[targetid][pXP] += givexp;
  4933.  
  4934. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s has given %s %d xp",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),givexp);
  4935. SendClientMessageToAll(-1,string);
  4936. printf("%s %s has given %s %d xp",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),givexp);
  4937. }
  4938. else {
  4939. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  4940. }
  4941. }
  4942. else if(pInfo[playerid][pLogged] == 0)
  4943. {
  4944. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4945. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4946. }
  4947. return 1;
  4948. }
  4949.  
  4950. CMD:gvcoins(playerid,params[])
  4951. {
  4952. if(pInfo[playerid][pLogged] == 1)
  4953. {
  4954. if(pInfo[playerid][pAdminLevel] >= 5)
  4955. {
  4956. new targetid,givecoin,string[256];
  4957. if(sscanf(params, "ui", targetid, givecoin)) return SendClientMessage(playerid,-1,""chat" /gvcoins [playerid] [amount]");
  4958. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  4959.  
  4960. if(givecoin < 1 || givecoin > 500) return SendClientMessage(playerid,-1,""chat" You can only give coins between 1 and 500");
  4961. pInfo[targetid][pCoins] += givecoin;
  4962.  
  4963. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s has given %s %d Coins",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),givecoin);
  4964. SendClientMessageToAll(-1,string);
  4965. printf("%s %s has given %s %d Coins",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),givecoin);
  4966. }
  4967. else {
  4968. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  4969. }
  4970. }
  4971. else if(pInfo[playerid][pLogged] == 0)
  4972. {
  4973. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4974. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4975. }
  4976. return 1;
  4977. }
  4978.  
  4979. CMD:sharexp(playerid,params[])
  4980. {
  4981. if(pInfo[playerid][pLogged] == 1)
  4982. {
  4983. if(pInfo[playerid][pHour] >= 4)
  4984. {
  4985. new targetid,givexp,reason[105],stringxp[256];
  4986. if(sscanf(params,"uis[105]", targetid,givexp,reason)) return SendClientMessage(playerid,-1,""chat" /sharexp [playerid] [amount] [reason]");
  4987. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  4988. if(targetid == playerid) return SendClientMessage(playerid,-1,""chat" You cannot give xp to yourself");
  4989. //if(givexp < 49 || givexp > 2000) return SendClientMessage(playerid,-1,""chat" You can only give xp between 50-2000");
  4990. if (givexp > 0 && pInfo[playerid][pXP] >= givexp)
  4991. {
  4992. pInfo[targetid][pXP] += givexp;
  4993. pInfo[playerid][pXP] -= givexp;
  4994. format(stringxp,sizeof(stringxp),""chat" Player %s has shared %d xp to %s [Reason: %s]", PlayerName(playerid), givexp, PlayerName(targetid), reason);
  4995. SendClientMessageToAll(-1,stringxp);
  4996. printf("Player %s has shared %d xp to %s [Reason: %s]", PlayerName(playerid), givexp, PlayerName(targetid), reason);
  4997.  
  4998. }
  4999. else
  5000. {
  5001. SendClientMessage(playerid,-1,""chat" You don't have enough XP");
  5002. }
  5003. }
  5004. else SendClientMessage(playerid,-1,""chat" You need to play 4 hours before you can share xp!");
  5005. }
  5006. else if(pInfo[playerid][pLogged] == 0)
  5007. {
  5008. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  5009. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  5010. }
  5011. return 1;
  5012. }
  5013.  
  5014. CMD:xp(playerid,params[])
  5015. {
  5016. if(pInfo[playerid][pLogged] == 1)
  5017. {
  5018. if(pInfo[playerid][pAdminLevel] >= 2)
  5019. {
  5020. new xpID,string[256],xpString[64];
  5021. if(sscanf(params, "i", xpID)) return SendClientMessage(playerid,-1,""chat" /xp [XP Type ID] (1normal,2double,3triple,4quad)");
  5022.  
  5023. Map[XPType] = xpID;
  5024. format(string,sizeof(string),""chat""COL_LIGHTBLUE" %s %s has changed the XP variable. Have Fun !!",GetAdminName(playerid),PlayerName(playerid),GetXPName());
  5025. SendClientMessageToAll(-1,string);
  5026. format(xpString,sizeof(xpString),"%s",GetXPName());
  5027. TextDrawSetString(XP,xpString);
  5028. }
  5029. else return SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  5030. }
  5031. else if(pInfo[playerid][pLogged] == 0)
  5032. {
  5033. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  5034. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  5035. }
  5036. return 1;
  5037. }
  5038.  
  5039. CMD:setxp4(playerid,params[])
  5040. {
  5041. if(pInfo[playerid][pLogged] == 1)
  5042. {
  5043. if(pInfo[playerid][pAdminLevel] >= 6)
  5044. {
  5045. new targetid,givexp,string[256];
  5046. if(sscanf(params, "ui", targetid, givexp)) return SendClientMessage(playerid,-1,""chat" /setxp4 [playerid] [amount]");
  5047. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  5048.  
  5049. pInfo[targetid][pXP] = givexp;
  5050.  
  5051. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s has set %s xp to %d",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),givexp);
  5052. SendClientMessageToAll(-1,string);
  5053. }
  5054. else {
  5055. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  5056. }
  5057. }
  5058. else if(pInfo[playerid][pLogged] == 0)
  5059. {
  5060. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  5061. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  5062. }
  5063. return 1;
  5064. }
  5065.  
  5066. CMD:savestats(playerid)
  5067. {
  5068. if(pInfo[playerid][pLogged] == 1)
  5069. {
  5070. SaveStats(playerid);
  5071. SendClientMessage(playerid,-1,""chat" "COL_GREEN"[Info] "COL_WHITE"Your stats was saved");
  5072. }
  5073. return 1;
  5074. }
  5075.  
  5076. CMD:freevip(playerid)
  5077. {
  5078. if(pInfo[playerid][pLogged] == 1)
  5079. {
  5080. if(pInfo[playerid][pXP] >= 0) pInfo[playerid][pVipLevel] = 1; else { SendCoinError(playerid,800); }
  5081. SendClientMessage(playerid,-1,""chat" "COL_GREEN"[Info] "COL_WHITE"Now you are vip level 1 :D (/vipmenu)");
  5082. }
  5083. return 1;
  5084. }
  5085.  
  5086. CMD:ss(playerid) return cmd_savestats(playerid);
  5087.  
  5088. CMD:stats(playerid)
  5089. {
  5090. new string[800];
  5091. new Float:kd = floatdiv(pInfo[playerid][pKills], pInfo[playerid][pDeaths]);
  5092. new Float:wins = floatdiv(pInfo[playerid][pMapsPlayed], pInfo[playerid][pEvac]);
  5093. format(string,sizeof(string)," {37DB45}Viewing player stats: Yourself{FFFFFF} \nCoins %i\nXP %i\nKills %i\nDeaths %i\nMaps Played %i\nRank %i\nEvac Points %i\nAdmin Level %s\nVip Level %i\n\
  5094. Played %d Hours || %d Minutes || %d Seconds\nK:D RATIO: %0.2f\nWin RATIO: %0.2f\nWarnings: %i",pInfo[playerid][pCoins],pInfo[playerid][pXP],pInfo[playerid][pKills],pInfo[playerid][pDeaths],pInfo[playerid][pMapsPlayed],
  5095. pInfo[playerid][pRank],pInfo[playerid][pEvac],GetAdminName(playerid),pInfo[playerid][pVipLevel],pInfo[playerid][pHour],pInfo[playerid][pMin],pInfo[playerid][pSec],kd,wins,pInfo[playerid][pWarnings]);
  5096.  
  5097. ShowPlayerDialog(playerid,1888,DIALOG_STYLE_MSGBOX,"Viewing Stats!",string,"Close","");
  5098. return 1;
  5099. }
  5100.  
  5101. CMD:pstats(playerid,params[])
  5102. {
  5103. if(pInfo[playerid][pXP] >= 10)
  5104. {
  5105. new targetid;
  5106. if(sscanf(params, "u", targetid)) return SendClientMessage(playerid,-1,""chat" /pstats [playerid]");
  5107. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  5108. {
  5109. new string[800];
  5110. new Float:kd = floatdiv(pInfo[targetid][pKills], pInfo[targetid][pDeaths]);
  5111. new Float:wins = floatdiv(pInfo[targetid][pMapsPlayed], pInfo[targetid][pEvac]);
  5112. format(string,sizeof(string)," {37DB45}Viewing player stats: %s{FFFFFF} \nCoins %i\nXP %i\nKills %i\nDeaths %i\nMaps Played %i\nRank %i\nEvac Points %i\nAdmin Level %s\nVip Level %i\n\
  5113. Played %d Hours || %d Minutes || %d Seconds\nK:D RATIO: %0.2f\nWin RATIO: %0.2f\nWarning: %i",PlayerName(targetid),pInfo[targetid][pCoins],pInfo[targetid][pXP],pInfo[targetid][pKills],pInfo[targetid][pDeaths],pInfo[targetid][pMapsPlayed],
  5114. pInfo[targetid][pRank],pInfo[targetid][pEvac],GetAdminName(targetid),pInfo[targetid][pVipLevel],pInfo[targetid][pHour],pInfo[targetid][pMin],pInfo[targetid][pSec],kd,wins,pInfo[targetid][pWarnings]);
  5115.  
  5116. ShowPlayerDialog(playerid,1888,DIALOG_STYLE_MSGBOX,"Viewing Stats!",string,"Close","");
  5117. }
  5118. }
  5119. else return SendXPError(playerid,20);
  5120. return 1;
  5121. }
  5122.  
  5123. CMD:settime(playerid,params[])
  5124. {
  5125. if(pInfo[playerid][pLogged] == 1)
  5126. {
  5127. if(pInfo[playerid][pAdminLevel] >= 2 || IsPlayerAdmin(playerid))
  5128. {
  5129. new time2,string[128];
  5130. if(sscanf(params, "i", time2)) return SendClientMessage(playerid,-1,""chat" /settime [time]");
  5131.  
  5132. SetWorldTime(time2);
  5133.  
  5134. if(IsPlayerAdmin(playerid))
  5135. {
  5136. format(string, sizeof(string), ""chat" Time Changed To %d",time2);
  5137. SendClientMessageToAll(-1,string);
  5138. }
  5139. else
  5140. {
  5141. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s has changed the time to %d",GetAdminName(playerid),PlayerName(playerid),time2);
  5142. SendClientMessageToAll(-1,string);
  5143. }
  5144. }
  5145. else {
  5146. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  5147. }
  5148. }
  5149. else if(pInfo[playerid][pLogged] == 0)
  5150. {
  5151. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  5152. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  5153. }
  5154. return 1;
  5155. }
  5156.  
  5157. CMD:iadminu(playerid,params[])
  5158. {
  5159. if(pInfo[playerid][pLogged] == 1)
  5160. {
  5161. if(pInfo[playerid][pAdminLevel] >= 8)
  5162. {
  5163. new targetid,level,string[256];
  5164. if(sscanf(params, "ud", targetid, level)) return SendClientMessage(playerid,-1,""chat" /iadminu [playerid] [level]");
  5165. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  5166. if(level < 0 || level > 10) return SendClientMessage(playerid,-1,""chat" Admin levels are ONLY between 1-10");
  5167.  
  5168. pInfo[targetid][pAdminLevel] = level;
  5169.  
  5170. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s have given admin status of %d to %s",GetAdminName(playerid),PlayerName(playerid),level,PlayerName(targetid));
  5171. SendClientMessageToAll(-1,string);
  5172. printf("%s %s have given admin status of %d to %s",GetAdminName(playerid),PlayerName(playerid),level,PlayerName(targetid));
  5173. }
  5174. else {
  5175. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  5176. }
  5177. }
  5178. else if(pInfo[playerid][pLogged] == 0)
  5179. {
  5180. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  5181. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  5182. }
  5183. return 1;
  5184. }
  5185.  
  5186. CMD:setweather(playerid,params[])
  5187. {
  5188. if(pInfo[playerid][pLogged] == 1)
  5189. {
  5190.  
  5191. if(pInfo[playerid][pAdminLevel] >= 2 || IsPlayerAdmin(playerid))
  5192. {
  5193. new weather,string[128];
  5194. if(sscanf(params, "i", weather)) return SendClientMessage(playerid,-1,""chat" /setweather [weather id]");
  5195.  
  5196. SetWeather(weather);
  5197.  
  5198. if(IsPlayerAdmin(playerid))
  5199. {
  5200. format(string, sizeof(string), ""chat" Weather Changed to %d",weather);
  5201. SendClientMessageToAll(-1,string);
  5202. }
  5203. else
  5204. {
  5205. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s has changed the weather to %d",GetAdminName(playerid),PlayerName(playerid),weather);
  5206. SendClientMessageToAll(-1,string);
  5207. }
  5208. }
  5209. else {
  5210. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  5211. }
  5212. }
  5213. else if(pInfo[playerid][pLogged] == 0)
  5214. {
  5215. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  5216. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  5217. }
  5218. return 1;
  5219. }
  5220.  
  5221. CMD:ip(playerid, params[])
  5222. {
  5223. if(pInfo[playerid][pAdminLevel] >= 3)
  5224. {
  5225. new targetid,playerip[16],string[128];
  5226. if(sscanf(params, "u", targetid, playerip)) return SendClientMessage(playerid,-1,""chat" /ip [playerid]");
  5227. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  5228.  
  5229. GetPlayerIp(targetid, playerip, sizeof(playerip));
  5230. format(string, sizeof(string), ""chat" IP of %s %s", PlayerName(targetid), playerip);
  5231. SendClientMessage(playerid, -1, string);
  5232. }
  5233. else {
  5234. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  5235. }
  5236. return 1;
  5237. }
  5238.  
  5239. CMD:akill(playerid,params[])
  5240. {
  5241. if(pInfo[playerid][pLogged] == 1)
  5242. {
  5243. if(pInfo[playerid][pAdminLevel] >= 1)
  5244. {
  5245. new targetid,string[256];
  5246. if(sscanf(params, "u", targetid)) return SendClientMessage(playerid,-1,""chat" /akill [playerid]");
  5247. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  5248.  
  5249. SetPlayerHealth(targetid,0.0);
  5250. ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
  5251.  
  5252. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s has killed %s",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid));
  5253. SendClientMessageToAll(-1,string);
  5254. }
  5255. else {
  5256. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  5257. }
  5258. }
  5259. else if(pInfo[playerid][pLogged] == 0)
  5260. {
  5261. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  5262. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  5263. }
  5264. return 1;
  5265. }
  5266.  
  5267. CMD:nuke(playerid,params[])
  5268. {
  5269. if(pInfo[playerid][pLogged] == 1)
  5270. {
  5271. if(pInfo[playerid][pAdminLevel] >= 1)
  5272. {
  5273. new targetid,string[256];
  5274. if(sscanf(params, "u", targetid)) SendClientMessage(playerid,-1,""chat" /nuke [playerid]");
  5275. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  5276.  
  5277. new Float:x,Float:y,Float:z;
  5278. GetPlayerPos(targetid,Float:x,Float:y,Float:z);
  5279. CreateExplosion(Float:x,Float:y,Float:z,0,5.0);
  5280.  
  5281. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s has blown up %s",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid));
  5282. SendClientMessageToAll(-1,string);
  5283. }
  5284. else {
  5285. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  5286. }
  5287. }
  5288. else if(pInfo[playerid][pLogged] == 0)
  5289. {
  5290. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  5291. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  5292. }
  5293. return 1;
  5294. }
  5295.  
  5296. CMD:get(playerid,params[])
  5297. {
  5298. if(pInfo[playerid][pLogged] == 1)
  5299. {
  5300. if(pInfo[playerid][pAdminLevel] >= 2)
  5301. {
  5302. new targetid;
  5303. if(sscanf(params, "u", targetid)) SendClientMessage(playerid,-1,""chat" /get [playerid]");
  5304. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  5305.  
  5306. new Float:x, Float:y, Float:z;
  5307. GetPlayerPos(playerid, x, y, z);
  5308. SetPlayerPos(targetid, x+1, y+1, z);
  5309.  
  5310. if(IsPlayerInAnyVehicle(targetid))
  5311. {
  5312. SetVehiclePos(GetPlayerVehicleID(targetid),x,y,z);
  5313. }
  5314. }
  5315. else {
  5316. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  5317. }
  5318. }
  5319. else if(pInfo[playerid][pLogged] == 0)
  5320. {
  5321. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  5322. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  5323. }
  5324. return 1;
  5325. }
  5326.  
  5327. CMD:goto(playerid,params[])
  5328. {
  5329. if(pInfo[playerid][pLogged] == 1)
  5330. {
  5331.  
  5332. if(pInfo[playerid][pAdminLevel] >= 2)
  5333. {
  5334. new targetid;
  5335. if(sscanf(params, "u", targetid)) SendClientMessage(playerid,-1,""chat" /goto [playerid]");
  5336. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  5337.  
  5338. new Float:x,Float:y,Float:z,inter;
  5339. GetPlayerPos(targetid,Float:x,Float:y,Float:z);
  5340. inter = GetPlayerInterior(targetid);
  5341. SetPlayerPosEx(playerid,Float:x,Float:y,Float:z,inter,0);
  5342. }
  5343. else {
  5344. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  5345. }
  5346. }
  5347. else if(pInfo[playerid][pLogged] == 0)
  5348. {
  5349. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  5350. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  5351. }
  5352. return 1;
  5353. }
  5354.  
  5355. CMD:mute(playerid,params[])
  5356. {
  5357. if(pInfo[playerid][pLogged] == 1)
  5358. {
  5359. if(pInfo[playerid][pAdminLevel] >= 1)
  5360. {
  5361. new targetid,reason[105],string[128];
  5362. if(sscanf(params, "us[105]", targetid,reason)) return SendClientMessage(playerid,-1,""chat" /mute [playerid] [reason]");
  5363. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  5364.  
  5365. pInfo[targetid][IsPlayerMuted] = 1;
  5366.  
  5367. format(string,sizeof(string),""chat""COL_LIGHTBLUE" %s %s muted %s [Reason: %s]", GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),reason);
  5368. SendMessageToAllAdmins(string,-1);
  5369.  
  5370. format(string,sizeof(string),""chat""COL_LIGHTBLUE" %s %s muted you for [Reason %s]",GetAdminName(playerid), PlayerName(playerid),reason);
  5371. SendClientMessage(targetid,-1,string);
  5372. }
  5373. else {
  5374. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  5375. }
  5376. }
  5377. else if(pInfo[playerid][pLogged] == 0)
  5378. {
  5379. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  5380. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  5381. }
  5382. return 1;
  5383. }
  5384.  
  5385. CMD:unmute(playerid,params[])
  5386. {
  5387. if(pInfo[playerid][pLogged] == 1)
  5388. {
  5389. if(pInfo[playerid][pAdminLevel] >= 1)
  5390. {
  5391. new targetid,string[128];
  5392. if(sscanf(params, "u", targetid)) return SendClientMessage(playerid,-1,""chat" /unmute [playerid]");
  5393. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  5394.  
  5395. if(pInfo[targetid][IsPlayerMuted] == 1)
  5396. {
  5397. format(string,sizeof(string),""chat""COL_LIGHTBLUE" %s %s unmuted you",GetAdminName(playerid),PlayerName(playerid));
  5398. SendClientMessage(targetid,-1,string);
  5399. format(string,sizeof(string),""chat" You unmuted %s",PlayerName(targetid));
  5400. SendClientMessage(playerid,-1,string);
  5401. pInfo[targetid][IsPlayerMuted] = 0;
  5402. }
  5403. else
  5404. {
  5405. SendClientMessage(playerid,-1,""chat" Player isn't muted");
  5406. }
  5407. }
  5408. else {
  5409. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  5410. }
  5411. }
  5412. else if(pInfo[playerid][pLogged] == 0)
  5413. {
  5414. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  5415. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  5416. }
  5417. return 1;
  5418. }
  5419.  
  5420. CMD:kick(playerid,params[])
  5421. {
  5422. if(pInfo[playerid][pLogged] == 1)
  5423. {
  5424. if(pInfo[playerid][pAdminLevel] >= 1)
  5425. {
  5426. new targetid,reason[105],string[256];
  5427. if(sscanf(params, "us[105]", targetid,reason)) return SendClientMessage(playerid,-1,""chat" /kick [playerid] [reason]");
  5428. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  5429. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s has kicked %s [Reason: %s]",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),reason);
  5430. SCMTA(-1,string);
  5431. printf("%s %s has kicked %s [Reason: %s]",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),reason);
  5432.  
  5433. }
  5434. else {
  5435. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  5436. }
  5437. }
  5438. else if(pInfo[playerid][pLogged] == 0)
  5439. {
  5440. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  5441. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  5442. }
  5443. return 1;
  5444. }
  5445.  
  5446. public TimeOnServer(playerid)
  5447. {
  5448. pInfo[playerid][pSec] ++;
  5449. if(pInfo[playerid][pSec] >= 60)
  5450. {
  5451. pInfo[playerid][pMin]++;
  5452. pInfo[playerid][pSec]=0;
  5453. }
  5454. if(pInfo[playerid][pMin] >= 60)
  5455. {
  5456. pInfo[playerid][pMin]=0;
  5457. pInfo[playerid][pHour]++;
  5458. }
  5459. return 1;
  5460. }
  5461.  
  5462. function RandomMessages()
  5463. {
  5464. new randomMsg = random(sizeof(randomMessages));
  5465. SendClientMessageToAll(-1, randomMessages[randomMsg]);
  5466. }
  5467.  
  5468. public LoadUser_data(playerid,name[],value[])
  5469. {
  5470. INI_String("pPassword", pInfo[playerid][pPassword], 129);
  5471. INI_Int("pLogged", pInfo[playerid][pLogged]);
  5472. INI_Int("pXP",pInfo[playerid][pXP]);
  5473. INI_Int("pKills",pInfo[playerid][pKills]);
  5474. INI_Int("pDeaths",pInfo[playerid][pDeaths]);
  5475. INI_Int("pRank",pInfo[playerid][pRank]);
  5476. INI_Int("pEvac",pInfo[playerid][pEvac]);
  5477. INI_Int("pAdminLevel",pInfo[playerid][pAdminLevel]);
  5478. INI_Int("pAdminDuty",pInfo[playerid][pAdminDuty]);
  5479. INI_Int("pVipLevel",pInfo[playerid][pVipLevel]);
  5480. INI_Int("pHour",pInfo[playerid][pHour]);
  5481. INI_Int("pMin",pInfo[playerid][pMin]);
  5482. INI_Int("pSec",pInfo[playerid][pSec]);
  5483. INI_Int("pMapsPlayed",pInfo[playerid][pMapsPlayed]);
  5484. INI_Int("pCoins",pInfo[playerid][pCoins]);
  5485. INI_Int("pBanned",pInfo[playerid][pBanned]);
  5486. INI_Int("gLeader",pInfo[playerid][gLeader]);
  5487. INI_Int("gMember",pInfo[playerid][gMember]);
  5488. return 1;
  5489. }
  5490.  
  5491. stock ClearChat()
  5492. {
  5493. for(new a = 0; a < 20; a++) SendClientMessageToAll(-1, " ");
  5494. return 1;
  5495. }
  5496.  
  5497. stock frename(oldname[],newname[]) {
  5498. if (!fexist(oldname)) return false;
  5499. fremove(newname);
  5500. if (!fcopy(oldname,newname)) return false;
  5501. fremove(oldname);
  5502. return true;
  5503. }
  5504.  
  5505. stock fcopy(oldname[],newname[]) {
  5506. new File:ohnd,File:nhnd;
  5507. if (!fexist(oldname)) return false;
  5508. ohnd=fopen(oldname,io_read);
  5509. nhnd=fopen(newname,io_write);
  5510. new buf2[1];
  5511. new i;
  5512. for (i=flength(ohnd);i>0;i--) {
  5513. fputchar(nhnd, fgetchar(ohnd, buf2[0],false),false);
  5514. }
  5515. fclose(ohnd);
  5516. fclose(nhnd);
  5517. return true;
  5518. }
  5519.  
  5520. stock SendMessageToAdmins(color,const string[])
  5521. {
  5522. for(new i = 0; i < MAX_PLAYERS; i++)
  5523. if(IsPlayerConnected(i) == 1)
  5524. if(pInfo[i][pAdminLevel] >= 1 || IsPlayerAdmin(i))
  5525. SendClientMessage(i, color, string);
  5526. return 1;
  5527. }
  5528.  
  5529. stock ShowCoinDialog(playerid)
  5530. {
  5531. new str[64];
  5532. ResetCoinVars(playerid);
  5533. format(str,sizeof(str),""COL_RED"You have %i coins",pInfo[playerid][pCoins]);
  5534. if(team[playerid] == TEAM_HUMAN)
  5535. {
  5536. ShowPlayerDialog(playerid,DIALOG_COINS,DIALOG_STYLE_LIST,str,"Buy XP with Coins\nBuy Weapons with Coins\n\
  5537. Buy Classes with Coins\n\
  5538. Enable Kick Back (100 Coins)\n\
  5539. S.W.A.T Armour Object (1 Coins)\n","Select","No, Play");
  5540. }
  5541. return 1;
  5542. }
  5543.  
  5544. stock ResetVars(playerid)
  5545. {
  5546. pInfo[playerid][pPassword] = 0;
  5547. pInfo[playerid][pLogged] = 0;
  5548. pInfo[playerid][pXP] = 0;
  5549. pInfo[playerid][pKills] = 0;
  5550. pInfo[playerid][pDeaths] = 0;
  5551. pInfo[playerid][pRank] = 0;
  5552. pInfo[playerid][pEvac] = 0;
  5553. pInfo[playerid][pAdminLevel] = 0;
  5554. pInfo[playerid][pAdminDuty] = 0;
  5555. pInfo[playerid][pBanned] = 0;
  5556. pInfo[playerid][pVipLevel] = 0;
  5557. pInfo[playerid][gLeader] = 0;
  5558. pInfo[playerid][gMember] = 0;
  5559. pInfo[playerid][pHour] = 0;
  5560. pInfo[playerid][pMin] = 0;
  5561. pInfo[playerid][pSec] = 0;
  5562. pInfo[playerid][pMapsPlayed] = 0;
  5563. pInfo[playerid][pCoins] = 0;
  5564. pInfo[playerid][pLogged] = 0;
  5565. pInfo[playerid][pWarnings] = 0;
  5566. pInfo[playerid][pPM] = 0;
  5567. pInfo[playerid][IsPlayerMuted] = 0;
  5568. pInfo[playerid][Killstreak] = 0;
  5569. pInfo[playerid][pHumanClass] = 0;
  5570. pInfo[playerid][pZombieClass] = 0;
  5571. pInfo[playerid][IsPlayerInfected] = 0;
  5572. pInfo[playerid][Boxes] = 0;
  5573. pInfo[playerid][BoxesAdvanced] = 0;
  5574. pInfo[playerid][SkinChanges] = 0;
  5575. pInfo[playerid][ArmourChanges] = 0;
  5576. pInfo[playerid][pVipKickBack] = 0;
  5577. pInfo[playerid][pVipFlash] = 0;
  5578. pInfo[playerid][pVipBoxes] = 0;
  5579. pInfo[playerid][pLadders] = 0;
  5580. pInfo[playerid][pFakeKills] = 0;
  5581. pInfo[playerid][pAmmoBoxes] = 0;
  5582. pInfo[playerid][pKickBackCoin] = 0;
  5583. pInfo[playerid][pDamageShotgunCoin] = 0;
  5584. pInfo[playerid][pDamageDeagleCoin] = 0;
  5585. pInfo[playerid][pDamageMP5Coin] = 0;
  5586. pInfo[playerid][pDoctorShield] = 0;
  5587. pInfo[playerid][pRenamed] = 0;
  5588. Abilitys[playerid][HighJumpScout] = 0;
  5589. Abilitys[playerid][HighJumpZombie] = 0;
  5590. Abilitys[playerid][StomperPushing] = 0;
  5591. Abilitys[playerid][WitchAttack] = 0;
  5592. Abilitys[playerid][ScreamerZombieAb] = 0;
  5593. Abilitys[playerid][InfectionNormal] = 0;
  5594. Abilitys[playerid][InfectionMutated] = 0;
  5595. Abilitys[playerid][ShoutCooldown] = 0;
  5596. Abilitys[playerid][HealCoolDown] = 0;
  5597. Abilitys[playerid][ScreamerZombieAb2] = 0;
  5598. Abilitys[playerid][WitchAttack2] = 0;
  5599. Abilitys[playerid][InfectionFleshEater] = 0;
  5600. KillTimer(playedtimer[playerid]);
  5601. CurePlayer(playerid);
  5602. KillTimer(pInfo[playerid][IsPlayerInfectedTimer]);
  5603. SetPVarInt(playerid, "SPS Messages Sent", 0);
  5604. SetPVarInt(playerid, "SPS Muted", 0);
  5605. SetPVarInt(playerid, "SPS Spam Warnings", 0);
  5606. //SPS_Reset_PVars();
  5607. return 1;
  5608. }
  5609.  
  5610. stock ResetCoinVars(playerid)
  5611. {
  5612. pInfo[playerid][pKickBackCoin] = 0;
  5613. pInfo[playerid][pDamageShotgunCoin] = 0;
  5614. pInfo[playerid][pDamageDeagleCoin] = 0;
  5615. pInfo[playerid][pDamageMP5Coin] = 0;
  5616. return 1;
  5617. }
  5618.  
  5619. stock ConnectVars(playerid)
  5620. {
  5621. TextDrawShowForPlayer(playerid, ServerIntroOne[playerid]);
  5622. TextDrawShowForPlayer(playerid, ServerIntroTwo[playerid]);
  5623. pInfo[playerid][pHumanClass] = CIVILIAN;
  5624. pInfo[playerid][pZombieClass] = STANDARDZOMBIE;
  5625. team[playerid] = 0;
  5626. return 1;
  5627. }
  5628.  
  5629. stock SaveStats(playerid)
  5630. {
  5631. new INI:File = INI_Open(UserPath(playerid));
  5632. INI_SetTag(File,"data");
  5633. INI_WriteInt(File,"pXP",pInfo[playerid][pXP]);
  5634. INI_WriteInt(File,"pKills",pInfo[playerid][pKills]);
  5635. INI_WriteInt(File,"pDeaths",pInfo[playerid][pDeaths]);
  5636. INI_WriteInt(File,"pRank",pInfo[playerid][pRank]);
  5637. INI_WriteInt(File,"pEvac",pInfo[playerid][pEvac]);
  5638. INI_WriteInt(File,"pAdminLevel",pInfo[playerid][pAdminLevel]);
  5639. INI_WriteInt(File,"pAdminDuty",pInfo[playerid][pAdminDuty]);
  5640. INI_WriteInt(File,"pVipLevel",pInfo[playerid][pVipLevel]);
  5641. INI_WriteInt(File,"pHour",pInfo[playerid][pHour]);
  5642. INI_WriteInt(File,"pMin",pInfo[playerid][pMin]);
  5643. INI_WriteInt(File,"pSec",pInfo[playerid][pSec]);
  5644. INI_WriteInt(File,"pMapsPlayed",pInfo[playerid][pMapsPlayed]);
  5645. INI_WriteInt(File,"pCoins",pInfo[playerid][pCoins]);
  5646. INI_WriteInt(File,"pBanned",pInfo[playerid][pBanned]);
  5647. INI_WriteInt(File,"gLeader",pInfo[playerid][gLeader]);
  5648. INI_WriteInt(File,"gMember",pInfo[playerid][gMember]);
  5649. INI_WriteInt(File,"pLogged",pInfo[playerid][pLogged]);
  5650. INI_Close(File);
  5651. return 1;
  5652. }
  5653.  
  5654. stock PlayerName(playerid)
  5655. {
  5656. new CName[24];
  5657. GetPlayerName(playerid, CName, 24);
  5658. return CName;
  5659. }
  5660.  
  5661. stock UserPath(playerid)
  5662. {
  5663. new str[128],name[MAX_PLAYER_NAME];
  5664. GetPlayerName(playerid,name,sizeof(name));
  5665. format(str,sizeof(str),PATH,name);
  5666. return str;
  5667. }
  5668.  
  5669. stock BanPlayer(playerid,reason[],admin[])
  5670. {
  5671. new str[128];
  5672. BanEx(playerid,reason);
  5673. format(str,sizeof(str),"You have been currently banned from this server.\nUser: %s\nReason: %s\nAdmin %s\n",PlayerName(playerid),reason,admin);
  5674. ShowPlayerDialog(playerid,DIALOG_BANNED,DIALOG_STYLE_MSGBOX,"You have been banned!",str,"Leave","");
  5675. return 1;
  5676. }
  5677.  
  5678. GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance)
  5679. {
  5680. new Float:a;
  5681. GetPlayerPos(playerid, x, y, a);
  5682. GetPlayerFacingAngle(playerid, a);
  5683. if (GetPlayerVehicleID(playerid)) {
  5684. GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
  5685. }
  5686. x += (distance * floatsin(-a, degrees));
  5687. y += (distance * floatcos(-a, degrees));
  5688. }
  5689.  
  5690. stock SetPlayerPosEx( playerid, Float: posx, Float: posy, Float: posz, interior, virtualworld )
  5691. {
  5692. if( GetPlayerState( playerid ) == 2 )
  5693. {
  5694. SetPlayerVirtualWorld( playerid, virtualworld );
  5695. SetVehicleVirtualWorld( GetPlayerVehicleID( playerid ), virtualworld );
  5696. LinkVehicleToInterior( GetPlayerVehicleID( playerid ), interior );
  5697. SetPlayerInterior( playerid, interior );
  5698. SetVehiclePos( GetPlayerVehicleID( playerid ), posx, posy, posz );
  5699. return 1;
  5700. }
  5701. else
  5702. {
  5703. SetPlayerVirtualWorld( playerid, virtualworld );
  5704. SetPlayerInterior( playerid, interior );
  5705. SetPlayerPos( playerid, posx, posy, posz );
  5706. return 1;
  5707. }
  5708. }
  5709.  
  5710. stock SendMessageToAllAdmins(message[], color)
  5711. {
  5712. foreach(Player, i)
  5713. {
  5714. if(pInfo[i][pAdminLevel] >= 1 || IsPlayerAdmin(i))
  5715. {
  5716. SendClientMessage(i, color, message);
  5717. }
  5718. }
  5719. return 1;
  5720. }
  5721.  
  5722. stock SendZMessage(message[], color)
  5723. {
  5724. foreach(Player, i)
  5725. {
  5726. if(team[i] == TEAM_ZOMBIE)
  5727. {
  5728. SendClientMessage(i, color, message);
  5729. }
  5730. }
  5731. return 1;
  5732. }
  5733.  
  5734. stock SendHMessage(message[], color)
  5735. {
  5736. foreach(Player, i)
  5737. {
  5738. if(team[i] == TEAM_HUMAN)
  5739. {
  5740. SendClientMessage(i, color, message);
  5741. }
  5742. }
  5743. return 1;
  5744. }
  5745.  
  5746. stock SendXPError(playerid,xp)
  5747. {
  5748. new string[128];
  5749. format(string,sizeof(string),""chat""COL_PINK" You need atleast %i XP to use this class or command",xp);
  5750. SendClientMessage(playerid,-1,string);
  5751. return 1;
  5752. }
  5753.  
  5754. stock SendCoinError(playerid,coin)
  5755. {
  5756. new string[128];
  5757. format(string,sizeof(string),""chat""COL_PINK" You need %i coins to use this feature!",coin);
  5758. SendClientMessage(playerid,-1,string);
  5759. return 1;
  5760. }
  5761.  
  5762. stock SendVipError(playerid,viplevel)
  5763. {
  5764. new string[128];
  5765. format(string,sizeof(string),""chat""COL_PINK" You need vip package %i to use this command!",viplevel);
  5766. SendClientMessage(playerid,-1,string);
  5767. return 1;
  5768. }
  5769.  
  5770. stock SendHEAVYSHOTGUNError(playerid,viplevel)
  5771. {
  5772. new string[128];
  5773. format(string,sizeof(string),""chat""COL_PINK" You cannot use this item when you are Heavy Shotgun class",viplevel);
  5774. SendClientMessage(playerid,-1,string);
  5775. return 1;
  5776. }
  5777.  
  5778. stock GivePlayerXP(playerid,xp)
  5779. {
  5780. new string[128];
  5781. pInfo[playerid][pXP] += xp;
  5782. format(string,sizeof(string),"~n~~n~~n~~n~~n~~y~+%i",xp);
  5783. GameTextForPlayer(playerid,string,3500,5);
  5784. return 1;
  5785. }
  5786.  
  5787. stock GetMapCount()
  5788. {
  5789. new mcount = 0, file[128];
  5790. for(new i = 0; i < MAX_MAP_FILES; i++)
  5791. {
  5792. format(file, sizeof(file), "/Maps/%d.ini", i);
  5793. if(fexist(file))
  5794. {
  5795. mcount ++;
  5796. }
  5797. }
  5798. return mcount;
  5799. }
  5800.  
  5801. stock GetFreeMapID()
  5802. {
  5803. new file[32], id = 0;
  5804. for(new i = 0; i < MAX_MAP_FILES; i++)
  5805. {
  5806. format(file, sizeof(file), "/Maps/%d.ini", i);
  5807. if(fexists(file)) continue;
  5808. id = i;
  5809. break;
  5810. }
  5811. return id;
  5812. }
  5813.  
  5814. stock NoMapCheck()
  5815. {
  5816. new tcount = 0, file[128];
  5817. for(new i = 0; i < MAX_MAP_FILES; i++)
  5818. {
  5819. format(file, sizeof(file), "/Maps/%d.ini", i);
  5820. if(fexist(file))
  5821. {
  5822. tcount ++;
  5823. }
  5824. }
  5825. if(tcount == 0)
  5826. {
  5827. print("_____________________________________________________________");
  5828. print("WARNING: The server has detected there are no map files!");
  5829. print("currently installed. The server has been set to");
  5830. print("automatically shut down in 25000/ MS. (25 Seconds)");
  5831. print("_____________________________________________________________");
  5832. SetTimer("No_Maps", 25000, false);
  5833. return 1;
  5834. }
  5835. return 1;
  5836. }
  5837.  
  5838. function No_Maps() return SendRconCommand("restart");
  5839.  
  5840. public load_Map_basic(Mapid, name[], value[])
  5841. {
  5842. if(strcmp(name, "FSMapName", true) == 0)
  5843. {
  5844. strmid(Map[FSMapName], value, false, strlen(value), 128);
  5845. LoadFilterScript(Map[FSMapName]);
  5846. }
  5847.  
  5848. /*printf("[Debug] Name: %s - Value: %s", name, value); For Debug Purposes*/
  5849.  
  5850. if(strcmp(name, "MapName", true) == 0)
  5851. {
  5852. new mpname[50];
  5853. strmid(Map[MapName], value, false, strlen(value), 128);
  5854. format(mpname, sizeof(mpname), "mapname %s", Map[MapName]);
  5855. SendRconCommand(mpname);
  5856. }
  5857.  
  5858. if(strcmp(name, "HumanSpawnX", true) == 0) Map[HumanSpawnX] = floatstr(value);
  5859. if(strcmp(name, "HumanSpawnY", true) == 0) Map[HumanSpawnY] = floatstr(value);
  5860. if(strcmp(name, "HumanSpawnZ", true) == 0) Map[HumanSpawnZ] = floatstr(value);
  5861. if(strcmp(name, "HumanSpawn2X", true) == 0) Map[HumanSpawn2X] = floatstr(value);
  5862. if(strcmp(name, "HumanSpawn2Y", true) == 0) Map[HumanSpawn2Y] = floatstr(value);
  5863. if(strcmp(name, "HumanSpawn2Z", true) == 0) Map[HumanSpawn2Z] = floatstr(value);
  5864. if(strcmp(name, "ZombieSpawnX", true) == 0) Map[ZombieSpawnX] = floatstr(value);
  5865. if(strcmp(name, "ZombieSpawnY", true) == 0) Map[ZombieSpawnY] = floatstr(value);
  5866. if(strcmp(name, "ZombieSpawnZ", true) == 0) Map[ZombieSpawnZ] = floatstr(value);
  5867. if(strcmp(name, "Interior", true) == 0) Map[Interior] = strval(value);
  5868. if(strcmp(name, "GateX", true) == 0) Map[GateX] = floatstr(value);
  5869. if(strcmp(name, "GateY", true) == 0) Map[GateY] = floatstr(value);
  5870. if(strcmp(name, "GateZ", true) == 0) Map[GateZ] = floatstr(value);
  5871. if(strcmp(name, "CPx", true) == 0) Map[CPx] = floatstr(value);
  5872. if(strcmp(name, "CPy", true) == 0) Map[CPy] = floatstr(value);
  5873. if(strcmp(name, "CPz", true) == 0) Map[CPz] = floatstr(value);
  5874. if(strcmp(name, "GaterX", true) == 0) Map[GaterX] = floatstr(value);
  5875. if(strcmp(name, "GaterY", true) == 0) Map[GaterY] = floatstr(value);
  5876. if(strcmp(name, "GaterZ", true) == 0) Map[GaterZ] = floatstr(value);
  5877. if(strcmp(name, "MoveGate", true) == 0) Map[MoveGate] = strval(value);
  5878. if(strcmp(name, "GateID", true) == 0) Map[GateID] = strval(value);
  5879. if(strcmp(name, "AllowWater", true) == 0) Map[AllowWater] = strval(value);
  5880. if(strcmp(name, "EvacType", true) == 0) Map[EvacType] = strval(value);
  5881. if(strcmp(name, "Weather", true) == 0)
  5882. {
  5883. Map[Weather] = strval(value);
  5884. SetWeather(Map[Weather]);
  5885. }
  5886.  
  5887. if(strcmp(name, "Time", true) == 0)
  5888. {
  5889. Map[Time] = strval(value);
  5890. SetWorldTime(Map[Time]);
  5891. printf("Map ID %d's Information Has Been Loaded.", Mapid);
  5892. }
  5893. return 1;
  5894. }
  5895.  
  5896. stock LoadMap(Mapid)
  5897. {
  5898. new Map_file[64];
  5899. format(Map_file, sizeof(Map_file), "/Maps/%d.ini", Mapid);
  5900. if(fexist(Map_file))
  5901. {
  5902. printf("loading Map %s", Map_file);
  5903. INI_ParseFile(Map_file, "load_Map_%s", .bExtra = true, .extra = Mapid);
  5904. return 1;
  5905. }
  5906. return 0;
  5907. }
  5908.  
  5909. stock LoadNewMap()
  5910. {
  5911. new file[64];
  5912. mapid %= MAX_MAP_FILES;
  5913. format(file, sizeof(file), "/Maps/%d.ini", mapid);
  5914. if(!fexist(file)) return printf("[NOTICE] File Bugged.");
  5915. LastMapStarted = mapid;
  5916. mapid++;
  5917. return mapid-1;
  5918. }
  5919.  
  5920. stock ClearObjects()
  5921. {
  5922. for(new i; i<MAX_OBJECTS; i++)
  5923. {
  5924. if(IsValidObject(i)) DestroyObject(i);
  5925. }
  5926. }
  5927.  
  5928. stock DestroyAllVehicle()
  5929. {
  5930. for(new i=1;i<=MAX_VEHICLES;i++)
  5931. {
  5932. DestroyVehicle(i);
  5933. }
  5934. return 1;
  5935. }
  5936.  
  5937. stock GetRandomMap()
  5938. {
  5939. new file[64];
  5940. new i = 0, count = 0, Maps[MAX_MAP_FILES], Mapid;
  5941. for( ; i != MAX_MAP_FILES; ++i)
  5942. {
  5943. if(LastMapStarted == i) continue;
  5944. format(file, sizeof(file), "/Maps/%d.ini", i);
  5945. if(fexist(file))
  5946. {
  5947. Maps[count] = i;
  5948. count++;
  5949. }
  5950. }
  5951. if(count == 0)
  5952. {
  5953. return NoMapCheck();
  5954. }
  5955. Mapid = Maps[random(count)];
  5956.  
  5957. format(file, sizeof(file), "/Maps/%d.ini", Mapid);
  5958. if(fexist(file))
  5959. {
  5960. LastMapStarted = Mapid;
  5961. return Mapid;
  5962. }
  5963. else return printf("[NOTICE] File Bugged.");
  5964. }
  5965.  
  5966. stock LoadFilterScript(filename[])
  5967. {
  5968. new string[128];
  5969. format(string, sizeof(string), "loadfs %s", filename);
  5970. SendRconCommand(string);
  5971. return 1;
  5972. }
  5973.  
  5974. stock UnloadFilterScript(filename[])
  5975. {
  5976. new string[128];
  5977. format(string, sizeof(string), "unloadfs %s", filename);
  5978. SendRconCommand(string);
  5979. return 1;
  5980. }
  5981.  
  5982. stock HumanSetup(playerid)
  5983. {
  5984. SetPlayerTeam(playerid,TEAM_HUMAN);
  5985. SetPlayerHealth(playerid,100.0);
  5986. team[playerid] = TEAM_HUMAN;
  5987. SetPlayerColor(playerid,COLOR_HUMAN);
  5988. return 1;
  5989. }
  5990.  
  5991. stock HumanSetup2(playerid)
  5992. {
  5993. SetPlayerTeam(playerid,TEAM_HUMAN);
  5994. SetPlayerHealth(playerid,100.0);
  5995. team[playerid] = TEAM_HUMAN;
  5996. SetPlayerColor(playerid,COLOR_HUMAN);
  5997. SpawnPlayer(playerid);
  5998. return 1;
  5999. }
  6000.  
  6001. stock ZombieSetup(playerid)
  6002. {
  6003. SetPlayerTeam(playerid,TEAM_ZOMBIE);
  6004. team[playerid] = TEAM_ZOMBIE;
  6005. SetPlayerColor(playerid,COLOR_ZOMBIE);
  6006. return 1;
  6007. }
  6008.  
  6009. stock ZombieSetup2(playerid)
  6010. {
  6011. SetPlayerTeam(playerid,TEAM_ZOMBIE);
  6012. team[playerid] = TEAM_ZOMBIE;
  6013. SetPlayerColor(playerid,COLOR_ZOMBIE);
  6014. SpawnPlayer(playerid);
  6015. return 1;
  6016. }
  6017.  
  6018. public Float:GetDistanceBetweenPlayers(p1,p2)
  6019. {
  6020. new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
  6021. if(!IsPlayerConnected(p1) || !IsPlayerConnected(p2)) {
  6022. return -1.00;
  6023. }
  6024. GetPlayerPos(p1,x1,y1,z1);
  6025. GetPlayerPos(p2,x2,y2,z2);
  6026. return floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
  6027. }
  6028.  
  6029. public GetClosestPlayer(p1)
  6030. {
  6031. new x,Float:dis,Float:dis2,player;
  6032. player = -1;
  6033. dis = 99999.99;
  6034. for (x=0;x<MAX_PLAYERS;x++) {
  6035. if(IsPlayerConnected(x)) {
  6036. if(x != p1) {
  6037. dis2 = GetDistanceBetweenPlayers(x,p1);
  6038. if(dis2 < dis && dis2 != -1.00) {
  6039. dis = dis2;
  6040. player = x;
  6041. }
  6042. }
  6043. }
  6044. }
  6045. return player;
  6046. }
  6047.  
  6048. stock IsPlayerInWater(playerid)
  6049. {
  6050. new animlib[32],tmp[32];
  6051. GetAnimationName(GetPlayerAnimationIndex(playerid),animlib,32,tmp,32);
  6052. if( !strcmp(animlib, "SWIM") && !IsPlayerInAnyVehicle(playerid) ) return true;
  6053. return false;
  6054. }
  6055.  
  6056. GetTeamPlayersAlive(teamid)
  6057. {
  6058. new count;
  6059. for(new i; i < playersAliveCount; i++)
  6060. {
  6061. if(IsPlayerConnected(i) && team[i] == teamid) count++;
  6062. }
  6063. return count;
  6064. }
  6065.  
  6066. stock OneZombie()
  6067. {
  6068. new count = 0;
  6069. new Random = Iter_Random(Player);
  6070. foreach(Player, i)
  6071. {
  6072. if(team[i] == TEAM_HUMAN) count++;
  6073. if(count == Iter_Count(Player))
  6074. {
  6075. ZombieSetup(Random);
  6076. }
  6077. }
  6078. return 1;
  6079. }
  6080.  
  6081. public RandomZombie() return Half();
  6082.  
  6083. stock Half()
  6084. {
  6085. new Humans;
  6086. switch(random(4))
  6087. {
  6088. case 0:
  6089. {
  6090. foreach(Player, i)
  6091. {
  6092. if(Humans < 1)
  6093. {
  6094. HumanSetup(i);
  6095. printf("Selected humans");
  6096. Humans ++;
  6097. }
  6098. else
  6099. {
  6100. ZombieSetup2(i);
  6101. printf("Selected zombies");
  6102. Humans = 0;
  6103. }
  6104. }
  6105. }
  6106. case 1:
  6107. {
  6108. foreach(Player, i)
  6109. {
  6110. if(Humans < 2)
  6111. {
  6112. HumanSetup(i);
  6113. printf("Selected humans");
  6114. Humans ++;
  6115. }
  6116. else
  6117. {
  6118. ZombieSetup2(i);
  6119. printf("Selected zombies");
  6120. Humans = 0;
  6121. }
  6122. }
  6123. }
  6124. case 2:
  6125. {
  6126. foreach(Player, i)
  6127. {
  6128. if(Humans < 3)
  6129. {
  6130. HumanSetup(i);
  6131. printf("Selected humans");
  6132. Humans ++;
  6133. }
  6134. else
  6135. {
  6136. ZombieSetup2(i);
  6137. printf("Selected zombies");
  6138. Humans = 0;
  6139. }
  6140. }
  6141. }
  6142. case 3:
  6143. {
  6144. foreach(Player, i)
  6145. {
  6146. if(Humans < 4)
  6147. {
  6148. HumanSetup(i);
  6149. printf("Selected humans");
  6150. Humans ++;
  6151. }
  6152. else
  6153. {
  6154. ZombieSetup2(i);
  6155. printf("Selected zombies");
  6156. Humans = 0;
  6157. }
  6158. }
  6159. }
  6160. }
  6161. printf("Finished Selecting teams");
  6162. return 1;
  6163. }
  6164.  
  6165. stock EvenTeams(playerid)
  6166. {
  6167. new Humans, Zombies, rand = switch(random(25));
  6168.  
  6169. switch(random(25))
  6170. {
  6171. case 0:
  6172. {
  6173. switch(random(4))
  6174. {
  6175. case 0:
  6176. {
  6177. foreach(Player, i)
  6178. {
  6179. ZombieSetup2(i);
  6180. Zombies ++;
  6181. }
  6182. }
  6183. case 1:
  6184. {
  6185. foreach(Player, i)
  6186. {
  6187. HumanSetup2(i);
  6188. Humans ++;
  6189. }
  6190. }
  6191. case 2:
  6192. {
  6193. foreach(Player, i)
  6194. {
  6195. ZombieSetup2(i);
  6196. Zombies ++;
  6197. }
  6198. }
  6199. case 3:
  6200. {
  6201. foreach(Player, i)
  6202. {
  6203. HumanSetup2(i);
  6204. Humans ++;
  6205. }
  6206. }
  6207. }
  6208. }
  6209.  
  6210. case 1:
  6211. {
  6212. switch(random(4))
  6213. {
  6214. case 0:
  6215. {
  6216. foreach(Player, i)
  6217. {
  6218. ZombieSetup2(i);
  6219. Zombies ++;
  6220. }
  6221. }
  6222. case 1:
  6223. {
  6224. foreach(Player, i)
  6225. {
  6226. HumanSetup2(i);
  6227. Humans ++;
  6228. }
  6229. }
  6230. case 2:
  6231. {
  6232. foreach(Player, i)
  6233. {
  6234. ZombieSetup2(i);
  6235. Zombies ++;
  6236. }
  6237. }
  6238. case 3:
  6239. {
  6240. foreach(Player, i)
  6241. {
  6242. HumanSetup2(i);
  6243. Humans ++;
  6244. }
  6245. }
  6246. }
  6247. }
  6248.  
  6249. case 2:
  6250. {
  6251. switch(random(4))
  6252. {
  6253. case 0:
  6254. {
  6255. foreach(Player, i)
  6256. {
  6257. ZombieSetup2(i);
  6258. Zombies ++;
  6259. }
  6260. }
  6261. case 1:
  6262. {
  6263. foreach(Player, i)
  6264. {
  6265. HumanSetup2(i);
  6266. Humans ++;
  6267. }
  6268. }
  6269. case 2:
  6270. {
  6271. foreach(Player, i)
  6272. {
  6273. ZombieSetup2(i);
  6274. Zombies ++;
  6275. }
  6276. }
  6277. case 3:
  6278. {
  6279. foreach(Player, i)
  6280. {
  6281. HumanSetup2(i);
  6282. Humans ++;
  6283. }
  6284. }
  6285. }
  6286. }
  6287.  
  6288. case 3:
  6289. {
  6290. switch(random(4))
  6291. {
  6292. case 0:
  6293. {
  6294. foreach(Player, i)
  6295. {
  6296. ZombieSetup2(i);
  6297. Zombies ++;
  6298. }
  6299. }
  6300. case 1:
  6301. {
  6302. foreach(Player, i)
  6303. {
  6304. HumanSetup2(i);
  6305. Humans ++;
  6306. }
  6307. }
  6308. case 2:
  6309. {
  6310. foreach(Player, i)
  6311. {
  6312. ZombieSetup2(i);
  6313. Zombies ++;
  6314. }
  6315. }
  6316. case 3:
  6317. {
  6318. foreach(Player, i)
  6319. {
  6320. ZombieSetup2(i);
  6321. Zombies ++;
  6322. }
  6323. }
  6324. }
  6325. }
  6326.  
  6327. case 4:
  6328. {
  6329. switch(random(4))
  6330. {
  6331. case 0:
  6332. {
  6333. foreach(Player, i)
  6334. {
  6335. ZombieSetup2(i);
  6336. Zombies ++;
  6337. }
  6338. }
  6339. case 1:
  6340. {
  6341. foreach(Player, i)
  6342. {
  6343. ZombieSetup2(i);
  6344. Zombies ++;
  6345. }
  6346. }
  6347. case 2:
  6348. {
  6349. foreach(Player, i)
  6350. {
  6351. ZombieSetup2(i);
  6352. Zombies ++;
  6353. }
  6354. }
  6355. case 3:
  6356. {
  6357. foreach(Player, i)
  6358. {
  6359. HumanSetup2(i);
  6360. Humans ++;
  6361. }
  6362. }
  6363. }
  6364. }
  6365.  
  6366. case 6:
  6367. {
  6368. switch(random(4))
  6369. {
  6370. case 0:
  6371. {
  6372. foreach(Player, i)
  6373. {
  6374. ZombieSetup2(i);
  6375. Zombies ++;
  6376. }
  6377. }
  6378. case 1:
  6379. {
  6380. foreach(Player, i)
  6381. {
  6382. HumanSetup2(i);
  6383. Humans ++;
  6384. }
  6385. }
  6386. case 2:
  6387. {
  6388. foreach(Player, i)
  6389. {
  6390. ZombieSetup2(i);
  6391. Zombies ++;
  6392. }
  6393. }
  6394. case 3:
  6395. {
  6396. foreach(Player, i)
  6397. {
  6398. ZombieSetup2(i);
  6399. Zombies ++;
  6400. }
  6401. }
  6402. }
  6403. }
  6404.  
  6405. case 7..9:
  6406. {
  6407. switch(random(4))
  6408. {
  6409. case 0:
  6410. {
  6411. foreach(Player, i)
  6412. {
  6413. ZombieSetup2(i);
  6414. Zombies ++;
  6415. }
  6416. }
  6417. case 1:
  6418. {
  6419. foreach(Player, i)
  6420. {
  6421. HumanSetup2(i);
  6422. Humans ++;
  6423. }
  6424. }
  6425. case 2:
  6426. {
  6427. foreach(Player, i)
  6428. {
  6429. ZombieSetup2(i);
  6430. Zombies ++;
  6431. }
  6432. }
  6433. case 3:
  6434. {
  6435. foreach(Player, i)
  6436. {
  6437. HumanSetup2(i);
  6438. Humans ++;
  6439. }
  6440. }
  6441. }
  6442. }
  6443.  
  6444. case 9..11:
  6445. {
  6446. switch(random(4))
  6447. {
  6448. case 0:
  6449. {
  6450. foreach(Player, i)
  6451. {
  6452. ZombieSetup2(i);
  6453. Zombies ++;
  6454. }
  6455. }
  6456. case 1:
  6457. {
  6458. foreach(Player, i)
  6459. {
  6460. HumanSetup2(i);
  6461. Humans ++;
  6462. }
  6463. }
  6464. case 2:
  6465. {
  6466. foreach(Player, i)
  6467. {
  6468. ZombieSetup2(i);
  6469. Zombies ++;
  6470. }
  6471. }
  6472. case 3:
  6473. {
  6474. foreach(Player, i)
  6475. {
  6476. HumanSetup2(i);
  6477. Humans ++;
  6478. }
  6479. }
  6480. }
  6481. }
  6482.  
  6483. case 11..16:
  6484. {
  6485. switch(random(4))
  6486. {
  6487. case 0:
  6488. {
  6489. foreach(Player, i)
  6490. {
  6491. ZombieSetup2(i);
  6492. Zombies ++;
  6493. }
  6494. }
  6495. case 1:
  6496. {
  6497. foreach(Player, i)
  6498. {
  6499. HumanSetup2(i);
  6500. Humans ++;
  6501. }
  6502. }
  6503. case 2:
  6504. {
  6505. foreach(Player, i)
  6506. {
  6507. ZombieSetup2(i);
  6508. Zombies ++;
  6509. }
  6510. }
  6511. case 3:
  6512. {
  6513. foreach(Player, i)
  6514. {
  6515. HumanSetup2(i);
  6516. Humans ++;
  6517. }
  6518. }
  6519. }
  6520. }
  6521.  
  6522. case 16..20:
  6523. {
  6524. switch(random(4))
  6525. {
  6526. case 0:
  6527. {
  6528. foreach(Player, i)
  6529. {
  6530. ZombieSetup2(i);
  6531. Zombies ++;
  6532. }
  6533. }
  6534. case 1:
  6535. {
  6536. foreach(Player, i)
  6537. {
  6538. HumanSetup2(i);
  6539. Humans ++;
  6540. }
  6541. }
  6542. case 2:
  6543. {
  6544. foreach(Player, i)
  6545. {
  6546. ZombieSetup2(i);
  6547. Zombies ++;
  6548. }
  6549. }
  6550. case 3:
  6551. {
  6552. foreach(Player, i)
  6553. {
  6554. HumanSetup2(i);
  6555. Humans ++;
  6556. }
  6557. }
  6558. }
  6559. }
  6560.  
  6561. case 20..25:
  6562. {
  6563. switch(random(4))
  6564. {
  6565. case 0:
  6566. {
  6567. foreach(Player, i)
  6568. {
  6569. ZombieSetup2(i);
  6570. Zombies ++;
  6571. }
  6572. }
  6573. case 1:
  6574. {
  6575. foreach(Player, i)
  6576. {
  6577. HumanSetup2(i);
  6578. Humans ++;
  6579. }
  6580. }
  6581. case 2:
  6582. {
  6583. foreach(Player, i)
  6584. {
  6585. ZombieSetup2(i);
  6586. Zombies ++;
  6587. }
  6588. }
  6589. case 3:
  6590. {
  6591. foreach(Player, i)
  6592. {
  6593. HumanSetup2(i);
  6594. Humans ++;
  6595. }
  6596. }
  6597. }
  6598. }
  6599. }
  6600.  
  6601. return 1;
  6602. }
  6603.  
  6604. stock DefaultTextdraws()
  6605. {
  6606.  
  6607. TimeLeft = TextDrawCreate(65.000000, 430.000000, "~r~180");
  6608. TextDrawBackgroundColor(TimeLeft, 255);
  6609. TextDrawFont(TimeLeft, 2);
  6610. TextDrawLetterSize(TimeLeft, 0.509998, 1.299998);
  6611. TextDrawColor(TimeLeft, -1351084033);
  6612. TextDrawSetOutline(TimeLeft, 0);
  6613. TextDrawSetProportional(TimeLeft, 1);
  6614. TextDrawSetShadow(TimeLeft, 1);
  6615.  
  6616. Textdraw0 = TextDrawCreate(641.000000, 430.000000, " "); //Xp Textdraw
  6617. TextDrawBackgroundColor(Textdraw0, -3407617);
  6618. TextDrawFont(Textdraw0, 1);
  6619. TextDrawLetterSize(Textdraw0, 0.990000, 1.399999);
  6620. TextDrawColor(Textdraw0, -1);
  6621. TextDrawSetOutline(Textdraw0, 0);
  6622. TextDrawSetProportional(Textdraw0, 1);
  6623. TextDrawSetShadow(Textdraw0, 1);
  6624. TextDrawUseBox(Textdraw0, 1);
  6625. TextDrawBoxColor(Textdraw0, 0000055);
  6626. TextDrawTextSize(Textdraw0, -1.000000, 1077.000000);
  6627. TextDrawSetSelectable(Textdraw0, 0);
  6628.  
  6629. Textdraw5 = TextDrawCreate(596.000000, 98.000000, "XP"); //Used below xp bar
  6630. TextDrawBackgroundColor(Textdraw5, 255);
  6631. TextDrawFont(Textdraw5, 3);
  6632. TextDrawLetterSize(Textdraw5, 0.340000, 0.600000);
  6633. TextDrawColor(Textdraw5, 1312325375);
  6634. TextDrawSetOutline(Textdraw5, 1);
  6635. TextDrawSetProportional(Textdraw5, 1);
  6636. TextDrawSetSelectable(Textdraw5, 0);
  6637.  
  6638. Textdraw7 = TextDrawCreate(485.000000, 17.000000, "."); //Used below xp bar or below Server Name xD
  6639. TextDrawBackgroundColor(Textdraw7, 255);
  6640. TextDrawFont(Textdraw7, 1);
  6641. TextDrawLetterSize(Textdraw7, 14.220012, 0.699999);
  6642. TextDrawColor(Textdraw7, -1728048375);
  6643. TextDrawSetOutline(Textdraw7, 0);
  6644. TextDrawSetProportional(Textdraw7, 1);
  6645. TextDrawSetShadow(Textdraw7, 1);
  6646. TextDrawSetSelectable(Textdraw7, 0);
  6647. Textdraw8 = TextDrawCreate(496.000000, 1.000000, "SickAssApocalypse"); //On the top Left
  6648. TextDrawBackgroundColor(Textdraw8, 255);
  6649. TextDrawFont(Textdraw8, 0);
  6650. TextDrawLetterSize(Textdraw8, 0.639, 1.899);
  6651. TextDrawColor(Textdraw8, -1728048385);
  6652. TextDrawSetOutline(Textdraw8, 0);
  6653. TextDrawSetProportional(Textdraw8, 1);
  6654. TextDrawSetShadow(Textdraw8, 1);
  6655. TextDrawSetSelectable(Textdraw8, 0);
  6656.  
  6657. Textdraw9 = TextDrawCreate(496.000000, 93.000000, "."); //Used below xp bar or below Server Name xD
  6658. TextDrawBackgroundColor(Textdraw9, 255);
  6659. TextDrawFont(Textdraw9, 3);
  6660. TextDrawLetterSize(Textdraw9, 11.770002, 0.899999);
  6661. TextDrawColor(Textdraw9, 1312325375);
  6662. TextDrawSetOutline(Textdraw9, 0);
  6663. TextDrawSetProportional(Textdraw9, 1);
  6664. TextDrawSetShadow(Textdraw9, 1);
  6665. TextDrawSetSelectable(Textdraw9, 0);
  6666.  
  6667. Textdraw4 = TextDrawCreate(612.000000, 81.000000, "_"); //Used to hide money bar
  6668. TextDrawBackgroundColor(Textdraw4, 255);
  6669. TextDrawFont(Textdraw4, 1);
  6670. TextDrawLetterSize(Textdraw4, -6.289993, 1.599997);
  6671. TextDrawColor(Textdraw4, -1);
  6672. TextDrawSetOutline(Textdraw4, 0);
  6673. TextDrawSetProportional(Textdraw4, 1);
  6674. TextDrawSetShadow(Textdraw4, 1);
  6675. TextDrawUseBox(Textdraw4, 1);
  6676. TextDrawBoxColor(Textdraw4, 255);
  6677. TextDrawTextSize(Textdraw4, 493.000000, 228.000000);
  6678. TextDrawSetSelectable(Textdraw4, 0);
  6679.  
  6680. Textdraw1 = TextDrawCreate(6.000000, 428.000000, "TimeLeft:");
  6681. TextDrawBackgroundColor(Textdraw1, 255);
  6682. TextDrawFont(Textdraw1, 2);
  6683. TextDrawLetterSize(Textdraw1, 0.269999, 1.600000);
  6684. TextDrawColor(Textdraw1, -1);
  6685. TextDrawSetOutline(Textdraw1, 0);
  6686. TextDrawSetProportional(Textdraw1, 1);
  6687. TextDrawSetShadow(Textdraw1, 1);
  6688. TextDrawSetSelectable(Textdraw1, 0);
  6689.  
  6690. Textdraw2 = TextDrawCreate(424.000000, 428.000000, "Map Name:");
  6691. TextDrawBackgroundColor(Textdraw2, 255);
  6692. TextDrawFont(Textdraw2, 2);
  6693. TextDrawLetterSize(Textdraw2, 0.300000, 1.600000);
  6694. TextDrawColor(Textdraw2, -1);
  6695. TextDrawSetOutline(Textdraw2, 0);
  6696. TextDrawSetProportional(Textdraw2, 1);
  6697. TextDrawSetShadow(Textdraw2, 1);
  6698. TextDrawSetSelectable(Textdraw2, 0);
  6699.  
  6700. ChatMsg = TextDrawCreate(0.000000, 4.000000, "~r~Chat:");
  6701. TextDrawBackgroundColor(ChatMsg, 255);
  6702. TextDrawFont(ChatMsg, 1);
  6703. TextDrawLetterSize(ChatMsg, 0.310000, 1.399999);
  6704. TextDrawColor(ChatMsg, -1);
  6705. TextDrawSetOutline(ChatMsg, 0);
  6706. TextDrawSetProportional(ChatMsg, 1);
  6707. TextDrawSetShadow(ChatMsg, 1);
  6708.  
  6709. AliveInfo = TextDrawCreate(125.000000, 428.000000, "Humans Alive:");
  6710. TextDrawBackgroundColor(AliveInfo, 255);
  6711. TextDrawFont(AliveInfo, 2);
  6712. TextDrawLetterSize(AliveInfo, 0.300000, 1.600000);
  6713. TextDrawColor(AliveInfo, -1);
  6714. TextDrawSetOutline(AliveInfo, 0);
  6715. TextDrawSetProportional(AliveInfo, 1);
  6716. TextDrawSetShadow(AliveInfo, 1);
  6717.  
  6718. AliveInfo2 = TextDrawCreate(275.000000, 428.000000, "Zombies Alive:");
  6719. TextDrawBackgroundColor(AliveInfo2, 255);
  6720. TextDrawFont(AliveInfo2, 2);
  6721. TextDrawLetterSize(AliveInfo2, 0.299999, 1.600000);
  6722. TextDrawColor(AliveInfo2, -1);
  6723. TextDrawSetOutline(AliveInfo2, 0);
  6724. TextDrawSetProportional(AliveInfo2, 1);
  6725. TextDrawSetShadow(AliveInfo2, 1);
  6726. TextDrawSetSelectable(AliveInfo2, 0);
  6727.  
  6728. XP = TextDrawCreate(502.000000, 11.000000, "~n~");
  6729. TextDrawBackgroundColor(XP, 255);
  6730. TextDrawFont(XP, 2);
  6731. TextDrawLetterSize(XP, 0.270000, 1.000000);
  6732. TextDrawColor(XP, 16777215);
  6733. TextDrawSetOutline(XP, 0);
  6734. TextDrawSetProportional(XP, 1);
  6735. TextDrawSetShadow(XP, 1);
  6736.  
  6737. CurrentMap = TextDrawCreate(424.000000, 428.000000, "~r~Map: Loading");
  6738. TextDrawBackgroundColor(CurrentMap, 255);
  6739. TextDrawFont(CurrentMap, 2);
  6740. TextDrawLetterSize(CurrentMap, 0.300000, 1.600000);
  6741. TextDrawColor(CurrentMap, -1);
  6742. TextDrawSetOutline(CurrentMap, 0);
  6743. TextDrawSetProportional(CurrentMap, 1);
  6744. TextDrawSetShadow(CurrentMap, 1);
  6745.  
  6746. for(new i; i < MAX_PLAYERS; i ++)
  6747. {
  6748. Infected[i] = TextDrawCreate(2.000000, 1.000000, "~n~");
  6749. TextDrawBackgroundColor(Infected[i], 255);
  6750. TextDrawFont(Infected[i], 1);
  6751. TextDrawLetterSize(Infected[i], 0.500000, 50.000000);
  6752. TextDrawColor(Infected[i], -1);
  6753. TextDrawSetOutline(Infected[i], 0);
  6754. TextDrawSetProportional(Infected[i], 1);
  6755. TextDrawSetShadow(Infected[i], 1);
  6756. TextDrawUseBox(Infected[i], 1);
  6757. TextDrawBoxColor(Infected[i], 1174405190);
  6758. TextDrawTextSize(Infected[i], 640.000000, 0.000000);
  6759.  
  6760. iKilled[i] = TextDrawCreate(237.000000, 418.000000, "Loading");
  6761. TextDrawBackgroundColor(iKilled[i], 255);
  6762. TextDrawFont(iKilled[i], 2);
  6763. TextDrawLetterSize(iKilled[i], 0.200000, 1.000000);
  6764. TextDrawColor(iKilled[i], -1);
  6765. TextDrawSetOutline(iKilled[i], 0);
  6766. TextDrawSetProportional(iKilled[i], 1);
  6767. TextDrawSetShadow(iKilled[i], 1);
  6768.  
  6769. myXP[i] = TextDrawCreate(497.000000, 74.000000, "00000000000");
  6770. TextDrawBackgroundColor(myXP[i], 255);
  6771. TextDrawFont(myXP[i], 3);
  6772. TextDrawLetterSize(myXP[i], 0.609999, 2.799997);
  6773. TextDrawColor(myXP[i], 1312325375);
  6774. TextDrawSetProportional(myXP[i], 1);
  6775. TextDrawSetShadow(myXP[i], 1);
  6776.  
  6777. ServerIntroTwo[i] = TextDrawCreate(287.000000, 120.000000, "/help /class /class2 /hradio /radio /credits /stats /pstats /cmds~n~~r~ Make sure you register on our forum: ~y~ www.sickactionstunters.webs.com!");
  6778. TextDrawBackgroundColor(ServerIntroTwo[i], 255);
  6779. TextDrawFont(ServerIntroTwo[i], 1);
  6780. TextDrawLetterSize(ServerIntroTwo[i], 0.220000, 1.200000);
  6781. TextDrawColor(ServerIntroTwo[i], -1);
  6782. TextDrawSetOutline(ServerIntroTwo[i], 0);
  6783. TextDrawSetProportional(ServerIntroTwo[i], 1);
  6784. TextDrawSetShadow(ServerIntroTwo[i], 1);
  6785.  
  6786. }
  6787. return 1;
  6788. }
  6789.  
  6790. stock UpdateAliveInfo()
  6791. {
  6792. new string[128];
  6793. format(string,sizeof(string),"HUMANS ALIVE: ~r~%02d",GetTeamPlayersAlive(TEAM_HUMAN));
  6794. TextDrawSetString(AliveInfo,string);
  6795. return 1;
  6796. }
  6797.  
  6798. stock UpdateAliveInfo2()
  6799. {
  6800. new string[128];
  6801. format(string,sizeof(string),"ZOMBIES ALIVE: ~r~%02d",GetTeamPlayersAlive(TEAM_ZOMBIE));
  6802. TextDrawSetString(AliveInfo2,string);
  6803. return 1;
  6804. }
  6805.  
  6806. stock UpdateXPTextdraw(playerid)
  6807. {
  6808. new string[128];
  6809. format(string,sizeof(string),"%09d",pInfo[playerid][pXP]);
  6810. TextDrawSetString(myXP[playerid],string);
  6811. return 1;
  6812. }
  6813.  
  6814. stock UpdateMapName()
  6815. {
  6816. new string[128];
  6817. format(string,sizeof(string),"Map Name: ~r~%s",Map[MapName]);
  6818. TextDrawSetString(CurrentMap,string);
  6819. return 1;
  6820. }
  6821.  
  6822. stock setClass(playerid)
  6823. {
  6824. if(team[playerid] == TEAM_HUMAN)
  6825. {
  6826. ResetPlayerWeapons(playerid);
  6827. switch(pInfo[playerid][pHumanClass])
  6828. {
  6829. case CIVILIAN:
  6830. {
  6831. GivePlayerWeapon(playerid,23,100);
  6832. GivePlayerWeapon(playerid,25,50);
  6833. switch(random(14))
  6834. {
  6835. case 0: SetPlayerSkin(playerid,69);
  6836. case 1: SetPlayerSkin(playerid,14);
  6837. case 2: SetPlayerSkin(playerid,261);
  6838. case 3: SetPlayerSkin(playerid,2);
  6839. case 4: SetPlayerSkin(playerid,107);
  6840. case 5: SetPlayerSkin(playerid,11);
  6841. case 6: SetPlayerSkin(playerid,125);
  6842. case 7: SetPlayerSkin(playerid,6);
  6843. case 8: SetPlayerSkin(playerid,299);
  6844. case 9: SetPlayerSkin(playerid,261);
  6845. case 10: SetPlayerSkin(playerid,43);
  6846. case 11: SetPlayerSkin(playerid,124);
  6847. case 12: SetPlayerSkin(playerid,11);
  6848. case 13: SetPlayerSkin(playerid,12);
  6849. case 14: SetPlayerSkin(playerid,13);
  6850. }
  6851. }
  6852.  
  6853. case POLICEMAN:
  6854. {
  6855. GivePlayerWeapon(playerid,24,100);
  6856. GivePlayerWeapon(playerid,25,100);
  6857. switch(random(6))
  6858. {
  6859. case 0: SetPlayerSkin(playerid,280);
  6860. case 1: SetPlayerSkin(playerid,281);
  6861. case 2: SetPlayerSkin(playerid,282);
  6862. case 3: SetPlayerSkin(playerid,283);
  6863. case 4: SetPlayerSkin(playerid,284);
  6864. case 5: SetPlayerSkin(playerid,166);
  6865. case 6: SetPlayerSkin(playerid,165);
  6866. }
  6867. }
  6868. case TECG:
  6869. {
  6870. GivePlayerWeapon(playerid,32,2000);
  6871. SetPlayerArmour(playerid,90.0);
  6872. SetPlayerSkin(playerid,90);
  6873. SetPlayerHealth(playerid,200);
  6874. }
  6875. case BULL:
  6876. {
  6877. GivePlayerWeapon(playerid,26,2000);
  6878. SetPlayerArmour(playerid,90.0);
  6879. SetPlayerSkin(playerid,188);
  6880. SetPlayerHealth(playerid,200);
  6881. }
  6882. case MEDIC:
  6883. {
  6884. GivePlayerWeapon(playerid,23,350);
  6885. GivePlayerWeapon(playerid,25,150);
  6886. SetPlayerArmour(playerid,50);
  6887. switch(random(3))
  6888. {
  6889. case 0: SetPlayerSkin(playerid,274);
  6890. case 1: SetPlayerSkin(playerid,275);
  6891. case 2: SetPlayerSkin(playerid,276);
  6892. }
  6893. }
  6894.  
  6895. case SCOUT:
  6896. {
  6897. GivePlayerWeapon(playerid,34,40);
  6898. GivePlayerWeapon(playerid,23,400);
  6899. switch(random(3))
  6900. {
  6901. case 0: SetPlayerSkin(playerid,230);
  6902. case 1: SetPlayerSkin(playerid,252);
  6903. case 2: SetPlayerSkin(playerid,141);
  6904. }
  6905. }
  6906.  
  6907. case HEAVYMEDIC:
  6908. {
  6909. GivePlayerWeapon(playerid,24,150);
  6910. GivePlayerWeapon(playerid,25,200);
  6911. SetPlayerArmour(playerid,95);
  6912. SetPlayerSkin(playerid,274);
  6913. }
  6914.  
  6915. case FARMER:
  6916. {
  6917. GivePlayerWeapon(playerid,24,200);
  6918. GivePlayerWeapon(playerid,30,100);
  6919. GivePlayerWeapon(playerid,33,40);
  6920. SetPlayerArmour(playerid,60);
  6921. SetPlayerSkin(playerid,161);
  6922. }
  6923.  
  6924. case ENGINEER:
  6925. {
  6926. GivePlayerWeapon(playerid,23,450);
  6927. GivePlayerWeapon(playerid,25,250);
  6928. SetPlayerArmour(playerid,50);
  6929. SetPlayerSkin(playerid,27);
  6930. }
  6931.  
  6932. case SWAT:
  6933. {
  6934. GivePlayerWeapon(playerid,29,300);
  6935. GivePlayerWeapon(playerid,24,100);
  6936. SetPlayerArmour(playerid,95);
  6937. SetPlayerSkin(playerid,285);
  6938. }
  6939.  
  6940. case FBI:
  6941. {
  6942. GivePlayerWeapon(playerid,29,500);
  6943. GivePlayerWeapon(playerid,24,700);
  6944. GivePlayerWeapon(playerid,25,1000);
  6945. GivePlayerWeapon(playerid,31,1000);
  6946. SetPlayerArmour(playerid,95);
  6947. SetPlayerAttachedObject( playerid,1,18978,2,0.065999,0.012999,0.000000,16.099998,81.499969,81.000000,1.000000,1.000000,1.000000);
  6948. SetPlayerSkin(playerid,286);
  6949. }
  6950.  
  6951. case HEAVYSHOTGUN:
  6952. {
  6953. GivePlayerWeapon(playerid,25,300);
  6954. GivePlayerWeapon(playerid,24,100);
  6955. SetPlayerArmour(playerid,50);
  6956. SetPlayerSkin(playerid,25);
  6957. }
  6958.  
  6959. case ADVANCEDMEDIC:
  6960. {
  6961. GivePlayerWeapon(playerid,31,100);
  6962. GivePlayerWeapon(playerid,24,150);
  6963. GivePlayerWeapon(playerid,25,350);
  6964. SetPlayerSkin(playerid,275);
  6965. SetPlayerArmour(playerid,95);
  6966. }
  6967.  
  6968. case ADVANCEDENGINEER:
  6969. {
  6970. GivePlayerWeapon(playerid,24,150);
  6971. GivePlayerWeapon(playerid,31,500);
  6972. SetPlayerArmour(playerid,95);
  6973. SetPlayerSkin(playerid,260);
  6974. }
  6975.  
  6976. case FEDERALAGENT:
  6977. {
  6978. GivePlayerWeapon(playerid,31,1000);
  6979. GivePlayerWeapon(playerid,24,500);
  6980. GivePlayerWeapon(playerid,25,400);
  6981. SetPlayerArmour(playerid,95);
  6982. SetPlayerSkin(playerid,163);
  6983. }
  6984.  
  6985. case KICKBACK:
  6986. {
  6987. GivePlayerWeapon(playerid,23,500);
  6988. GivePlayerWeapon(playerid,25,450);
  6989. GivePlayerWeapon(playerid,29,200);
  6990. SetPlayerSkin(playerid,149);
  6991. }
  6992.  
  6993. case ADVANCEDSCOUT:
  6994. {
  6995. GivePlayerWeapon(playerid,34,150);
  6996. GivePlayerWeapon(playerid,24,550);
  6997. SetPlayerArmour(playerid,50);
  6998. SetPlayerSkin(playerid,29);
  6999. }
  7000.  
  7001. case COWBOY:
  7002. {
  7003. GivePlayerWeapon(playerid,22,500);
  7004. GivePlayerWeapon(playerid,33,200);
  7005. SetPlayerArmour(playerid,80);
  7006. SetPlayerSkin(playerid,33);
  7007. switch(random(5))
  7008. {
  7009. case 0: SetPlayerSkin(playerid,34);
  7010. case 1: SetPlayerSkin(playerid,33);
  7011. case 2: SetPlayerSkin(playerid,161);
  7012. case 3: SetPlayerSkin(playerid,201);
  7013. case 4: SetPlayerSkin(playerid,198);
  7014. }
  7015. }
  7016.  
  7017. case ASSASSIN:
  7018. {
  7019. GivePlayerWeapon(playerid,8,1);
  7020. SetPlayerArmour(playerid,60);
  7021. SetPlayerSkin(playerid,123);
  7022. }
  7023.  
  7024. case PIMP:
  7025. {
  7026. GivePlayerWeapon(playerid,10,1);
  7027. GivePlayerWeapon(playerid,32,700);
  7028. SetPlayerArmour(playerid,50);
  7029. SetPlayerSkin(playerid,76);
  7030. }
  7031.  
  7032. case EXPERIENCEDSCOUT:
  7033. {
  7034. GivePlayerWeapon(playerid,34,500);
  7035. GivePlayerWeapon(playerid,23,500);
  7036. SetPlayerArmour(playerid,60);
  7037. SetPlayerSkin(playerid,23);
  7038. }
  7039.  
  7040. case SCIENTIST:
  7041. {
  7042. GivePlayerWeapon(playerid,23,299);
  7043. SetPlayerArmour(playerid,35);
  7044. SetPlayerSkin(playerid,240);
  7045. }
  7046.  
  7047. case TRAPMASTER:
  7048. {
  7049. GivePlayerWeapon(playerid,27,180);
  7050. GivePlayerWeapon(playerid,30,500);
  7051. SetPlayerArmour(playerid,40);
  7052. switch(random(2))
  7053. {
  7054. case 0: SetPlayerSkin(playerid,115);
  7055. case 1: SetPlayerSkin(playerid,271);
  7056. }
  7057. }
  7058.  
  7059. case VIPENGINEER:
  7060. {
  7061. GivePlayerWeapon(playerid,31,1000);
  7062. GivePlayerWeapon(playerid,25,2000);
  7063. GivePlayerWeapon(playerid,24,500);
  7064. SetPlayerArmour(playerid,30.0);
  7065. SetPlayerSkin(playerid,16);
  7066. }
  7067.  
  7068. case VIPMEDIC:
  7069. {
  7070. GivePlayerWeapon(playerid,31,1000);
  7071. GivePlayerWeapon(playerid,24,500);
  7072. SetPlayerArmour(playerid,70.0);
  7073. SetPlayerSkin(playerid,71);
  7074. }
  7075.  
  7076. case VIPSCOUT:
  7077. {
  7078. GivePlayerWeapon(playerid,34,130);
  7079. GivePlayerWeapon(playerid,24,500);
  7080. SetPlayerArmour(playerid,30.0);
  7081. SetPlayerSkin(playerid,294);
  7082. }
  7083. case HITMAN:
  7084. {
  7085. GivePlayerWeapon(playerid,30,1000);
  7086. GivePlayerWeapon(playerid,33,1000);
  7087. SetPlayerArmour(playerid,90.0);
  7088. SetPlayerSkin(playerid,249);
  7089. }
  7090.  
  7091. case E_ENGINEER:
  7092. {
  7093. GivePlayerWeapon(playerid,24,200);
  7094. GivePlayerWeapon(playerid,25,100);
  7095. SetPlayerArmour(playerid,80.0);
  7096. SetPlayerSkin(playerid,260);
  7097. }
  7098.  
  7099. case SOLDIER:
  7100. {
  7101. GivePlayerWeapon(playerid,30,300);
  7102. GivePlayerWeapon(playerid,24,80);
  7103. SetPlayerArmour(playerid,70.0);
  7104. SetPlayerSkin(playerid,287);
  7105. }
  7106.  
  7107. case DOCTOR:
  7108. {
  7109. GivePlayerWeapon(playerid,23,150);
  7110. SetPlayerArmour(playerid,60.0);
  7111. SetPlayerSkin(playerid,70);
  7112. }
  7113. case WEAPONSDEALER:
  7114. {
  7115. GivePlayerWeapon(playerid,24,250);
  7116. GivePlayerWeapon(playerid,29,500);
  7117. SetPlayerArmour(playerid,50.0);
  7118. SetPlayerSkin(playerid,28);
  7119. }
  7120. case SHOTGUNSPECIAL:
  7121. {
  7122. GivePlayerWeapon(playerid,25,500);
  7123. SetPlayerArmour(playerid,50.0);
  7124. SetPlayerSkin(playerid,67);
  7125. }
  7126. case BUDDY:
  7127. {
  7128. GivePlayerWeapon(playerid,14,1);
  7129. GivePlayerWeapon(playerid,22,100);
  7130. SetPlayerArmour(playerid,90.0);
  7131. SetPlayerSkin(playerid,141);
  7132. }
  7133. case AKICK:
  7134. {
  7135. GivePlayerWeapon(playerid,27,2000);
  7136. SetPlayerArmour(playerid,90.00);
  7137. SetPlayerSkin(playerid,121);
  7138. SetPlayerHealth(playerid,200);
  7139. }
  7140. case BOXER:
  7141. {
  7142. GivePlayerWeapon(playerid,5,1);
  7143. SetPlayerArmour(playerid,50.00);
  7144. SetPlayerAttachedObject( playerid,1,18978,2,0.065999,0.012999,0.000000,16.099998,81.499969,81.000000,1.000000,1.000000,1.000000);
  7145. SetPlayerSkin(playerid,81);
  7146. }
  7147. case GHOST:
  7148. {
  7149. GivePlayerWeapon(playerid,25,500);
  7150. GivePlayerWeapon(playerid,24,4000);
  7151. SetPlayerArmour(playerid,90.00);
  7152. // PutPlayerInVehicle(playerid,520);
  7153. SetPlayerAttachedObject( playerid, 0, 18693, 5, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
  7154. SetPlayerAttachedObject( playerid, 1, 18693, 6, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
  7155. SetPlayerAttachedObject( playerid, 2, 18703, 6, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
  7156. SetPlayerAttachedObject( playerid, 3, 18703, 5, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
  7157. SetPlayerAttachedObject( playerid,1,18978,2,0.065999,0.012999,0.000000,16.099998,81.499969,81.000000,1.000000,1.000000,1.000000);
  7158. SetPlayerSkin(playerid,17);
  7159. }
  7160. case BOMBER:
  7161. {
  7162. GivePlayerWeapon(playerid,35,4);
  7163. GivePlayerWeapon(playerid,31,1000);
  7164. GivePlayerWeapon(playerid,24,4000);
  7165. SetPlayerArmour(playerid,50.00);
  7166. SetPlayerSkin(playerid,122);
  7167. }
  7168. case MASTER:
  7169. {
  7170. GivePlayerWeapon(playerid,29,1000);
  7171. SetPlayerArmour(playerid,90.00);
  7172. SetPlayerSkin(playerid,47);
  7173. }
  7174. case SMOKEUP:
  7175. {
  7176. GivePlayerWeapon(playerid,24,250);
  7177. GivePlayerWeapon(playerid,37,500);
  7178. GivePlayerWeapon(playerid,29,1000);
  7179. GivePlayerWeapon(playerid,31,1000);
  7180. SetPlayerArmour(playerid,95.00);
  7181. SetPlayerAttachedObject( playerid, 0, 18693, 5, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
  7182. SetPlayerAttachedObject( playerid, 1, 18693, 6, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
  7183. SetPlayerAttachedObject( playerid, 2, 18703, 6, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
  7184. SetPlayerAttachedObject( playerid, 3, 18703, 5, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
  7185. SetPlayerAttachedObject( playerid,1,18978,2,0.065999,0.012999,0.000000,16.099998,81.499969,81.000000,1.000000,1.000000,1.000000);
  7186. SetPlayerSkin(playerid,170);
  7187. }
  7188. }
  7189. }
  7190.  
  7191. if(team[playerid] == TEAM_ZOMBIE)
  7192. {
  7193. ResetPlayerWeapons(playerid);
  7194. GivePlayerWeapon(playerid,9,1);
  7195. SetPlayerArmour(playerid,0);
  7196. switch(pInfo[playerid][pZombieClass])
  7197. {
  7198. case STANDARDZOMBIE: SetPlayerSkin(playerid,181);
  7199. case MUTATEDZOMBIE: SetPlayerSkin(playerid,1);
  7200. case FASTZOMBIE:
  7201. {
  7202. SetPlayerSkin(playerid,162);
  7203. SetPlayerAttachedObject(playerid, 0, 1549, 1, 0.0199, -0.1169, -0.1920, 0.0000, 94.1000, 0.0000, 1.0000, 1.0000, 1.0000, 0, 0); // "FASTZOMBIE" by Fahad. (Skin:3)
  7204. SetPlayerAttachedObject(playerid, 1, 1549, 1, 0.0239, -0.1239, 0.1379, 0.0000, 79.5000, 0.0000, 1.0000, 1.0000, 1.0000, 0, 0); // "FASTZOMBIE" by Fahad. (Skin:3)
  7205. SetPlayerAttachedObject(playerid, 2, 2404, 1, 0.3019, -0.0670, 1.3139, 0.0000, 0.0000, 0.0000, 1.0000, 1.0000, 1.0000, 0, 0); // "FASTZOMBIE" by Fahad. (Skin:3)
  7206. SetPlayerAttachedObject(playerid, 3, 2404, 1, 0.3109, -0.0750, -1.3500, 0.0000, 0.0000, 0.0000, 1.0000, 1.0000, 1.0000, 0, 0); // "FASTZOMBIE" by Fahad. (Skin:3)
  7207. SetPlayerAttachedObject(playerid, 4, 2061, 5, 0.3469, 0.0140, -0.0769, 0.0000, 105.2997, 3.9000, 0.3439, 1.0000, 2.2309, 0, 0); // "FASTZOMBIE" by Fahad. (Skin:3)
  7208. }
  7209. case REAPERZOMBIE: SetPlayerSkin(playerid,157);
  7210. case WITCHZOMBIE: SetPlayerSkin(playerid,196);
  7211. case BOOMERZOMBIE: SetPlayerSkin(playerid,264),SetPlayerHealth(playerid,15);
  7212. case STOMPERZOMBIE: SetPlayerSkin(playerid,239);
  7213. case SCREAMERZOMBIE: SetPlayerSkin(playerid,212);
  7214. case FIREBREATHER:
  7215. {
  7216. switch(random(10))
  7217. {
  7218. case 0: SetPlayerSkin(playerid,152);
  7219. case 1: SetPlayerSkin(playerid,178);
  7220. case 2: SetPlayerSkin(playerid,237);
  7221. case 3: SetPlayerSkin(playerid,238);
  7222. case 4: SetPlayerSkin(playerid,246);
  7223. case 5: SetPlayerSkin(playerid,256);
  7224. case 6: SetPlayerSkin(playerid,257);
  7225. case 7: SetPlayerSkin(playerid,64);
  7226. case 8: SetPlayerSkin(playerid,63);
  7227. case 9: SetPlayerSkin(playerid,87);
  7228.  
  7229. }
  7230. SetPlayerAttachedObject(playerid, 0, 6865, 2, 0.0559, -0.0299, 0.0069, 0.4999, 82.9999, -132.0999, 0.1350, 0.1270, 0.0849, 0, 0); // "FIREBREATHER" by Fahad. (Skin:257)
  7231. SetPlayerAttachedObject(playerid, 1, 1610, 6, -0.1350, 0.0019, -0.0480, -4.6999, 69.9000, -0.6999, 0.4299, 0.4239, 2.3980, 0, 0); // "FIREBREATHER" by Fahad. (Skin:257)
  7232. SetPlayerAttachedObject(playerid, 2, 2041, 5, 0.1759, -0.0789, -0.0339, 129.7997, 0.0000, 98.1000, 1.0000, 1.0000, 1.0000, 0, 0); // "FIREBREATHER" by Fahad. (Skin:257)
  7233. SetPlayerAttachedObject(playerid, 3, 3884, 1, -0.4959, 0.0069, 0.0070, -88.8999, 89.8999, 83.1999, 0.5329, 0.5809, 0.3529, 0, 0); // "FIREBREATHER" by Fahad. (Skin:257)
  7234. SetPlayerAttachedObject(playerid, 4, 2901, 9, 0.0000, -0.0070, 0.0000, 0.0000, 0.0000, 0.0000, 0.4079, 0.8639, 0.6269, 0, 0); // "FIREBREATHER" by Fahad. (Skin:257)
  7235. SetPlayerAttachedObject(playerid, 5, 2901, 10, 0.0000, 0.0339, 0.0000, 0.0000, 0.0000, 0.0000, 0.3849, 0.6760, 0.6759, 0, 0); // "FIREBREATHER" by Fahad. (Skin:257)
  7236. SetPlayerAttachedObject(playerid, 6, 2060, 1, -0.2379, 0.0000, 0.0000, 95.5000, -2.4999, 0.0000, 1.0909, 0.9480, 1.0000, 0, 0); // "FIREBREATHER" by Fahad. (Skin:257)
  7237.  
  7238. }
  7239. case ADVANCEDMUTATED: SetPlayerSkin(playerid,15);
  7240. case HEAVYSCREAMER: SetPlayerSkin(playerid,134);
  7241. case FLESHEATER: SetPlayerSkin(playerid,213);
  7242. case ADVANCEDWITCH:
  7243. {
  7244. SetPlayerSkin(playerid,198);
  7245. SetPlayerAttachedObject(playerid, 0, 1254, 2, 0.0789, -0.0359, 0.0149, 0.0000, 87.5000, -2.0999, 1.3489, 1.3969, 1.2609, 0, 0); //
  7246. SetPlayerAttachedObject(playerid, 1, 3092, 1, 0.0000, -0.2249, 0.0000, 5.7999, 85.2000, 167.7000, 1.0000, 1.0000, 1.0000, 0, 0); //
  7247. SetPlayerAttachedObject(playerid, 2, 1319, 9, -0.2219, 0.0000, 0.0000, 0.0000, 88.0000, 0.1999, 1.8190, 2.3880, 0.7570, 0, 0); //
  7248. SetPlayerAttachedObject(playerid, 3, 1319, 10, -0.2509, 0.0359, 0.0000, 0.0000, 88.3000, -3.5999, 1.7950, 2.4869, 0.7079, 0, 0); //
  7249. SetPlayerAttachedObject(playerid, 4, 2238, 6, 0.3359, 0.0000, 0.0230, 0.0000, 86.7999, 0.0000, 1.0000, 1.0000, 1.0000, 0, 0); //
  7250. SetPlayerAttachedObject(playerid, 5, 2901, 1, 0.0749, 0.0000, 0.0429, 0.0000, 0.0000, 0.0000, 0.4650, 1.0000, 1.0559, 0, 0); //
  7251. }
  7252. case ADVANCEDBOOMER:
  7253. {
  7254. SetPlayerSkin(playerid,259);
  7255. SetPlayerAttachedObject(playerid, 0, 3379, 1, 0.0000, -0.7129, -0.1800, -76.0999, 2.1999, 88.4999, 1.0000, 1.0000, 1.0000, 0, 0); //
  7256. SetPlayerAttachedObject(playerid, 1, 1636, 5, 0.2059, 0.0260, 0.0000, 0.0000, 3.5999, -83.9999, 1.0000, 1.0000, 1.0000, 0, 0); //
  7257. SetPlayerAttachedObject(playerid, 2, 1214, 1, 0.2189, 0.0469, 0.0000, 0.0000, 86.6000, -2.2999, 0.8099, 0.8249, 0.3369, 0, 0); //
  7258. SetPlayerAttachedObject(playerid, 3, 1636, 6, 0.1659, 0.0000, 0.0559, 0.0000, -19.1000, -95.5000, 1.0000, 1.0000, 1.0000, 0, 0); //
  7259. SetPlayerAttachedObject(playerid, 4, 2429, 1, 0.4629, 0.2370, 0.2269, 0.0000, -93.3999, 0.6000, 1.0000, 1.0000, 1.0000, 0, 0); //
  7260. SetPlayerAttachedObject(playerid, 5, 1211, 9, -0.1699, -0.0020, 0.0000, -75.7000, 93.0000, -3.5999, 2.1409, 1.0000, 0.8489, 0, 0); //
  7261. SetPlayerAttachedObject(playerid, 6, 1211, 10, -0.1979, 0.0000, 0.0000, 0.0000, 87.0000, 73.2999, 1.6749, 1.0000, 0.9079, 0, 0); //
  7262. }
  7263. case NEMESIS:
  7264. {
  7265. SetPlayerSkin(playerid,241);
  7266. SetPlayerAttachedObject(playerid, 0, 19314, 2, 0.1089, 0.0000, 0.0000, -5.4999, -8.3000, -2.8999, 1.0000, 1.0000, 1.0000, 0, 0);
  7267. SetPlayerAttachedObject(playerid, 1, 19515, 1, 0.0740, 0.0509, 0.0000, 0.0000, 0.0000, 0.0000, 1.0000, 1.0000, 1.0000, 0, 0);
  7268. SetPlayerAttachedObject(playerid, 2, 19514, 2, 0.1000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 1.0000, 1.0000, 1.0000, 0, 0);
  7269. SetPlayerAttachedObject(playerid, 3, 2041, 6, 0.1790, 0.0000, 0.0819, 4.2999, -0.8999, 82.6000, 1.0000, 1.0000, 1.0000, 0, 0);
  7270. SetPlayerAttachedObject(playerid, 4, 2041, 5, 0.2440, 0.0179, -0.0419, 134.5999, 0.0000, 84.9000, 1.0000, 1.0000, 1.0000, 0, 0);
  7271. SetPlayerAttachedObject(playerid, 5, 2590, 1, -0.5350, -0.1229, -0.1779, 0.0000, -107.1999, 3.4999, 1.0000, 1.0000, 1.0000, 0, 0);
  7272. SetPlayerAttachedObject(playerid, 6, 2589, 1, -4.7890, -0.0979, 0.3429, 0.0000, -86.7000, 0.0000, 1.0000, 1.0000, 1.0000, 0, 0);
  7273. SetPlayerHealth(playerid,200);
  7274. }
  7275. case HZOMBIE:
  7276. {
  7277. SetPlayerSkin(playerid,32);
  7278. }
  7279. case SLENDER:
  7280. {
  7281. SetPlayerSkin(playerid,100);
  7282. SetPlayerHealth(playerid,200);
  7283. }
  7284. case DSNIPE:
  7285. {
  7286. SetPlayerSkin(playerid,210);
  7287. GivePlayerWeapon(playerid,34,100);
  7288. }
  7289. case KZOM:
  7290. {
  7291. SetPlayerSkin(playerid,142);
  7292. }
  7293. case GZOM:
  7294. {
  7295. SetPlayerSkin(playerid,33);
  7296. SetPlayerColor(playerid,0xFFFFFF00);
  7297. }
  7298. case ADVSTOMPER:
  7299. {
  7300. SetPlayerSkin(playerid,239);
  7301. }
  7302. case ADVSCREAMER:
  7303. {
  7304. SetPlayerSkin(playerid,132);
  7305. }
  7306. }
  7307. }
  7308. return 1;
  7309. }
  7310.  
  7311. function ScreamerClearAnim(i) return ClearAnimations(i);
  7312.  
  7313. stock InfectPlayerStandard(playerid)
  7314. {
  7315. if(team[playerid] == TEAM_HUMAN)
  7316. {
  7317. if(pInfo[playerid][IsPlayerInfected] == 0)
  7318. {
  7319. pInfo[playerid][IsPlayerInfectedTimer] = SetTimerEx("StandardInfection",2000,1,"i",playerid);
  7320. SetPlayerColor(playerid,COLOR_PINK);
  7321. TextDrawShowForPlayer(playerid,Infected[playerid]);
  7322. pInfo[playerid][IsPlayerInfected] = 1;
  7323. }
  7324. }
  7325. return 1;
  7326. }
  7327.  
  7328. stock InfectPlayerMutated(playerid)
  7329. {
  7330. if(team[playerid] == TEAM_HUMAN)
  7331. {
  7332. if(pInfo[playerid][IsPlayerInfected] == 0)
  7333. {
  7334. pInfo[playerid][IsPlayerInfectedTimer] = SetTimerEx("MutatedInfection",1500,1,"i",playerid);
  7335. SetPlayerColor(playerid,COLOR_PINK);
  7336. TextDrawShowForPlayer(playerid,Infected[playerid]);
  7337. pInfo[playerid][IsPlayerInfected] = 1;
  7338. }
  7339. }
  7340. return 1;
  7341. }
  7342.  
  7343. stock InfectPlayerFleshEater(playerid)
  7344. {
  7345. if(team[playerid] == TEAM_HUMAN)
  7346. {
  7347. if(pInfo[playerid][IsPlayerInfected] == 0)
  7348. {
  7349. pInfo[playerid][IsPlayerInfectedTimer] = SetTimerEx("FleshEaterInfection",1500,1,"i",playerid);
  7350. SetPlayerColor(playerid,COLOR_PINK);
  7351. TextDrawShowForPlayer(playerid,Infected[playerid]);
  7352. pInfo[playerid][IsPlayerInfected] = 1;
  7353. }
  7354. }
  7355. return 1;
  7356. }
  7357.  
  7358. stock CurePlayer(playerid)
  7359. {
  7360. if(pInfo[playerid][IsPlayerInfected] == 1)
  7361. {
  7362. KillTimer(pInfo[playerid][IsPlayerInfectedTimer]);
  7363. pInfo[playerid][IsPlayerInfected] = 0;
  7364. SetPlayerColor(playerid,COLOR_HUMAN);
  7365. ApplyAnimation(playerid,"MEDIC","CPR",4.1,0,1,1,1,1);
  7366. SetPlayerDrunkLevel(playerid,0);
  7367. TextDrawHideForPlayer(playerid,Infected[playerid]);
  7368. }
  7369. return 1;
  7370. }
  7371.  
  7372. function StandardInfection(playerid)
  7373. {
  7374. GameTextForPlayer(playerid,"~n~~n~~n~~n~~r~Infected",1000,5);
  7375. new Float:health;
  7376. GetPlayerHealth(playerid, health);
  7377. SetPlayerHealth(playerid, health - 2.5);
  7378. }
  7379.  
  7380. function MutatedInfection(playerid)
  7381. {
  7382. SetPlayerDrunkLevel(playerid,6000);
  7383. GameTextForPlayer(playerid,"~n~~n~~n~~n~~r~Infected",1000,5);
  7384. new Float:health;
  7385. GetPlayerHealth(playerid, health);
  7386. SetPlayerHealth(playerid, health - 4.5);
  7387. return 1;
  7388. }
  7389.  
  7390. function FleshEaterInfection(playerid)
  7391. {
  7392. SetPlayerDrunkLevel(playerid,7500);
  7393. GameTextForPlayer(playerid,"~n~~n~~n~~n~~r~Flesh Eater Infection",1000,5);
  7394. new Float:health;
  7395. GetPlayerHealth(playerid, health);
  7396. SetPlayerHealth(playerid, health - 10.0);
  7397. return 1;
  7398. }
  7399.  
  7400. stock CheckToStartMap()
  7401. {
  7402. if(Map[IsStarted] == 0)
  7403. {
  7404. LoadMap(LoadNewMap());
  7405. StartMap();
  7406. Map[IsStarted] = 1;
  7407. }
  7408. return 1;
  7409. }
  7410.  
  7411. stock ChangeCameraView(playerid)
  7412. {
  7413. new Float:px,Float:py,Float:pz,Float:pa;
  7414. GetPlayerPos(playerid, px, py, pz);
  7415. GetPlayerFacingAngle(playerid, pa);
  7416. SetPlayerCameraPos(playerid, px, py, pz+6.0);
  7417. SetPlayerCameraLookAt(playerid, px, py, pz);
  7418.  
  7419. return 1;
  7420. }
  7421.  
  7422. stock SendPlayerMaxAmmo( playerid )
  7423. {
  7424. new slot, weap, ammo;
  7425.  
  7426. for ( slot = 0; slot < 14; slot++ ) {
  7427. GetPlayerWeaponData( playerid, slot, weap, ammo );
  7428. if ( IsValidWeapon( weap ) ) {
  7429. GivePlayerWeapon( playerid, weap, 99999 );
  7430. }
  7431. }
  7432. return 1;
  7433. }
  7434.  
  7435. stock IsValidWeapon( weaponid )
  7436. {
  7437. if ( weaponid > 0 && weaponid < 19 || weaponid > 21 && weaponid < 47 ) return 1;
  7438. return 0;
  7439. }
  7440.  
  7441. stock GetXPName()
  7442. {
  7443. new str[64];
  7444. switch(Map[XPType])
  7445. {
  7446. case 1: str = "~y~Normal ~w~XP";
  7447. case 2: str = "~g~Double ~w~XP";
  7448. case 3: str = "~b~Triple ~w~XP";
  7449. case 4: str = "~r~Super ~w~XP";
  7450. }
  7451. return str;
  7452. }
  7453.  
  7454. stock NeedXP(playerid,xprequires)
  7455. {
  7456. if(pInfo[playerid][pXP] == xprequires) return 1;
  7457. return 1;
  7458. }
  7459.  
  7460. stock NeedKills(playerid,killrequires)
  7461. {
  7462. if(pInfo[playerid][pKills] == killrequires) return 1;
  7463. return 1;
  7464. }
  7465.  
  7466. stock CheckToLevelOrRankUp(killerid)
  7467. {
  7468. new str[256];
  7469.  
  7470. if(pInfo[killerid][pKills] == 10) { pInfo[killerid][pRank] = 1,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Private 1",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7471. if(pInfo[killerid][pKills] == 50) { pInfo[killerid][pRank] = 2,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Private I 2",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7472. if(pInfo[killerid][pKills] == 100) { pInfo[killerid][pRank] = 3,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Private II 3",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7473. if(pInfo[killerid][pKills] == 150) { pInfo[killerid][pRank] = 4,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Specialist 4",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7474. if(pInfo[killerid][pKills] == 200) { pInfo[killerid][pRank] = 5,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Corporal 5",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7475. if(pInfo[killerid][pKills] == 250) { pInfo[killerid][pRank] = 6,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Corporal I 6",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7476. if(pInfo[killerid][pKills] == 300) { pInfo[killerid][pRank] = 7,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Corporal II 7",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7477. if(pInfo[killerid][pKills] == 350) { pInfo[killerid][pRank] = 8,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Sergeant 8",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7478. if(pInfo[killerid][pKills] == 400) { pInfo[killerid][pRank] = 9,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Sergeant I 9",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7479. if(pInfo[killerid][pKills] == 450) { pInfo[killerid][pRank] = 10,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Sergeant II 10",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7480. if(pInfo[killerid][pKills] == 500) { pInfo[killerid][pRank] = 11,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Commander 1 1",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7481. if(pInfo[killerid][pKills] == 550) { pInfo[killerid][pRank] = 12,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Commander I 12",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7482. if(pInfo[killerid][pKills] == 600) { pInfo[killerid][pRank] = 13,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Commander II 13",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7483. if(pInfo[killerid][pKills] == 650) { pInfo[killerid][pRank] = 14,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Killer 14",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7484. if(pInfo[killerid][pKills] == 700) { pInfo[killerid][pRank] = 15,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Killer I 15",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7485. if(pInfo[killerid][pKills] == 750) { pInfo[killerid][pRank] = 16,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Killer II 16",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7486. if(pInfo[killerid][pKills] == 800) { pInfo[killerid][pRank] = 17,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Major 1 7",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7487. if(pInfo[killerid][pKills] == 850) { pInfo[killerid][pRank] = 18,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Major I 18",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7488. if(pInfo[killerid][pKills] == 900) { pInfo[killerid][pRank] = 19,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Major II 19",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7489. if(pInfo[killerid][pKills] == 950) { pInfo[killerid][pRank] = 20,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Doctor 20",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7490. if(pInfo[killerid][pKills] == 1000) { pInfo[killerid][pRank] = 21,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Doctor I 21",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7491. if(pInfo[killerid][pKills] == 1500) { pInfo[killerid][pRank] = 22,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Doctor II 22",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7492. if(pInfo[killerid][pKills] == 2000) { pInfo[killerid][pRank] = 23,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Colonel 23",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7493. if(pInfo[killerid][pKills] == 2500) { pInfo[killerid][pRank] = 24,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Colonel I 24",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7494. if(pInfo[killerid][pKills] == 3000) { pInfo[killerid][pRank] = 25,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Colonel II 25",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7495. if(pInfo[killerid][pKills] == 3500) { pInfo[killerid][pRank] = 26,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Sniper 26",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7496. if(pInfo[killerid][pKills] == 4000) { pInfo[killerid][pRank] = 27,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Sniper I 27",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7497. if(pInfo[killerid][pKills] == 4500) { pInfo[killerid][pRank] = 28,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Sniper II 28",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7498. if(pInfo[killerid][pKills] == 5000) { pInfo[killerid][pRank] = 29,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Survivor 29",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7499. if(pInfo[killerid][pKills] == 5500) { pInfo[killerid][pRank] = 30,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Survivor I 30",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7500. if(pInfo[killerid][pKills] == 6000) { pInfo[killerid][pRank] = 31,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Survivor II 31",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7501. if(pInfo[killerid][pKills] == 6500) { pInfo[killerid][pRank] = 32,format(str,sizeof(str),""chat""COL_PINK" %s has hit the max rank Final-list 32",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  7502. return 1;
  7503. }
  7504.  
  7505. function HideiKilled(playerid)
  7506. {
  7507. TextDrawHideForPlayer(playerid, iKilled[playerid]);
  7508. return 1;
  7509. }
  7510.  
  7511. function C4Explode(playerid)
  7512. {
  7513. new Float:X,Float:Y,Float:Z;
  7514. new Float:hp;
  7515. GetObjectPos(c4Obj[playerid],X,Y,Z);
  7516. foreach(Player,i)
  7517. {
  7518. if(IsPlayerInRangeOfPoint(i, 3.5,X,Y,Z))
  7519. {
  7520. if(team[i] == TEAM_ZOMBIE)
  7521. {
  7522. GetPlayerHealth(i,hp);
  7523. SetPlayerHealth(i,hp-35);
  7524. }
  7525. }
  7526. }
  7527. CreateExplosion(X,Y,Z,1,10.0);
  7528. DestroyObject(c4Obj[playerid]);
  7529. return 1;
  7530. }
  7531.  
  7532. function NemesisSmoke(playerid)
  7533. {
  7534. RemovePlayerAttachedObject(playerid,7);
  7535. return 1;
  7536. }
  7537.  
  7538. stock CreateEvacMaps()
  7539. {
  7540. if(Map[EvacType] == 1)
  7541. {
  7542. CreateObject(19257,-1429.09,-981.20,193.10,3.28,0.00,5.47);
  7543. CreateObject(19257,-1395.39,-948.29,197.89,5.46,357.79,30.09);
  7544. CreateObject(19257,-1486.69,-954.70,191.69,13.12,1.12,280.79);
  7545. CreateObject(790,-1490.30,-948.90,188.10,0.00,0.00,41.56);
  7546. CreateObject(790,-1396.19,-955.59,197.00,0.00,0.00,196.38);
  7547. CreateObject(790,-1435.79,-984.19,189.60,0.00,0.00,127.25);
  7548. CreateObject(2060,-1433.19,-985.50,192.80,0.00,0.00,0.00);
  7549. CreateObject(2060,-1432.19,-985.40,192.69,0.00,0.00,0.00);
  7550. CreateObject(2060,-1431.09,-985.20,192.60,0.00,0.00,0.00);
  7551. CreateObject(2060,-1430.19,-984.90,192.50,0.00,0.00,0.00);
  7552. CreateObject(2060,-1429.19,-984.79,192.50,0.00,0.00,0.00);
  7553. CreateObject(2060,-1428.09,-984.70,192.50,0.00,0.00,0.00);
  7554. CreateObject(2060,-1427.09,-984.59,192.50,0.00,0.00,0.00);
  7555. CreateObject(2060,-1426.09,-984.50,192.39,0.00,0.00,0.00);
  7556. CreateObject(2060,-1425.00,-984.40,192.39,0.00,0.00,0.00);
  7557. CreateObject(2060,-1424.09,-984.29,192.39,0.00,0.00,0.00);
  7558. CreateObject(2060,-1424.30,-984.29,192.69,0.00,0.00,0.00);
  7559. CreateObject(2060,-1425.50,-984.50,192.69,0.00,0.00,0.00);
  7560. CreateObject(2060,-1426.50,-984.59,192.69,0.00,0.00,0.00);
  7561. CreateObject(2060,-1427.50,-984.59,192.69,0.00,0.00,0.00);
  7562. CreateObject(2060,-1428.40,-984.90,192.80,0.00,0.00,0.00);
  7563. CreateObject(2060,-1429.40,-985.00,192.80,0.00,0.00,0.00);
  7564. CreateObject(2060,-1430.50,-985.00,192.80,0.00,0.00,0.00);
  7565. CreateObject(2060,-1431.50,-985.29,192.89,0.00,0.00,0.00);
  7566. CreateObject(2060,-1432.50,-985.59,193.00,0.00,0.00,0.00);
  7567. CreateObject(2060,-1433.19,-985.29,193.10,0.00,0.00,0.00);
  7568. CreateObject(2060,-1431.90,-985.40,193.30,0.00,0.00,0.00);
  7569. CreateObject(2060,-1431.80,-985.00,193.19,0.00,0.00,0.00);
  7570. CreateObject(2060,-1430.90,-984.90,193.19,0.00,0.00,0.00);
  7571. CreateObject(2060,-1429.90,-984.79,193.19,0.00,0.00,0.00);
  7572. CreateObject(2060,-1428.90,-984.70,193.19,0.00,0.00,0.00);
  7573. CreateObject(2060,-1427.90,-984.59,193.19,0.00,0.00,0.00);
  7574. CreateObject(2060,-1427.00,-984.59,193.10,0.00,0.00,0.00);
  7575. CreateObject(2060,-1425.90,-984.50,193.10,0.00,0.00,0.00);
  7576. CreateObject(2060,-1424.80,-984.40,193.00,0.00,0.00,0.00);
  7577. CreateObject(2060,-1424.09,-984.29,193.00,0.00,0.00,0.00);
  7578. CreateObject(2060,-1433.09,-984.70,193.19,0.00,0.00,0.00);
  7579. CreateObject(2060,-1431.90,-984.40,193.19,0.00,0.00,0.00);
  7580. CreateObject(2060,-1430.69,-984.29,193.10,0.00,0.00,0.00);
  7581. CreateObject(2060,-1429.50,-984.50,193.50,0.00,0.00,0.00);
  7582. CreateObject(2060,-1428.50,-984.09,193.10,0.00,0.00,0.00);
  7583. CreateObject(2060,-1427.00,-984.40,193.39,0.00,0.00,0.00);
  7584. CreateObject(2060,-1425.80,-984.00,193.19,0.00,0.00,0.00);
  7585. CreateObject(2060,-1424.59,-983.79,193.19,0.00,0.00,0.00);
  7586. CreateObject(2060,-1427.19,-983.70,193.19,0.00,0.00,0.00);
  7587. CreateObject(2060,-1425.69,-983.09,193.30,0.00,0.00,0.00);
  7588. CreateObject(2060,-1424.50,-983.09,193.30,0.00,0.00,0.00);
  7589. CreateObject(2060,-1425.69,-983.59,193.19,0.00,0.00,0.00);
  7590. CreateObject(2060,-1432.09,-983.79,193.30,0.00,0.00,0.00);
  7591. CreateObject(2060,-1430.50,-983.79,193.30,0.00,0.00,0.00);
  7592. CreateObject(2060,-1429.30,-983.90,193.19,0.00,0.00,0.00);
  7593. CreateObject(2060,-1429.00,-983.50,194.39,0.00,0.00,5.47);
  7594. CreateObject(2060,-1394.30,-950.09,199.00,0.00,0.00,211.35);
  7595. CreateObject(2060,-1489.59,-953.09,191.89,0.00,0.00,284.11);
  7596. CreateObject(2060,-1489.40,-954.20,191.80,0.00,0.00,284.11);
  7597. CreateObject(2060,-1489.19,-955.20,191.80,0.00,0.00,284.11);
  7598. CreateObject(2060,-1489.00,-956.00,191.80,0.00,0.00,284.11);
  7599. CreateObject(2060,-1488.80,-957.09,191.80,0.00,0.00,284.11);
  7600. CreateObject(2060,-1489.80,-952.59,192.19,0.00,0.00,284.11);
  7601. CreateObject(2060,-1489.50,-953.59,192.19,0.00,0.00,284.11);
  7602. CreateObject(2060,-1489.30,-954.59,192.10,0.00,0.00,284.11);
  7603. CreateObject(2060,-1489.09,-955.70,192.10,0.00,0.00,284.11);
  7604. CreateObject(2060,-1488.90,-956.79,192.10,0.00,0.00,284.11);
  7605. CreateObject(2060,-1489.09,-955.09,192.60,0.00,0.00,284.11);
  7606. CreateObject(3884,-1395.19,-948.40,201.60,0.00,1.09,212.76);
  7607. CreateObject(3095,-1455.59,-922.40,200.50,0.00,358.90,269.99);
  7608. CreateObject(3885,-1454.69,-923.29,202.19,0.00,0.00,0.00);
  7609. CreateObject(3885,-1429.19,-981.40,197.00,4.37,0.00,0.00);
  7610. CreateObject(3885,-1487.19,-954.79,195.10,0.00,353.43,358.90);
  7611. CreateObject(3885,-1395.30,-948.40,201.80,5.47,1.09,359.89);
  7612. CreateObject(3884,-1454.30,-923.29,202.10,0.00,0.00,359.25);
  7613. CreateObject(3884,-1429.30,-981.29,196.80,0.00,0.00,182.98);
  7614. CreateObject(3884,-1487.00,-954.90,195.10,352.33,1.10,98.38);
  7615. CreateObject(3279,-1480.50,-961.20,192.30,358.90,356.71,92.34);
  7616. CreateObject(3279,-1382.09,-941.19,198.00,0.00,0.00,213.32);
  7617. CreateObject(3279,-1416.29,-975.59,194.19,358.90,356.70,92.41);
  7618. CreateObject(987,-1444.29,-983.50,192.50,0.00,0.00,0.00);
  7619. CreateObject(987,-1456.19,-983.59,192.50,0.00,0.00,0.00);
  7620. CreateObject(987,-1468.19,-983.59,192.60,0.00,0.00,0.00);
  7621. CreateObject(987,-1479.39,-979.59,192.60,0.00,0.00,340.25);
  7622. CreateObject(987,-1483.90,-968.40,191.10,0.00,0.00,293.06);
  7623. CreateObject(987,-1487.09,-958.19,191.10,0.00,0.00,288.67);
  7624. CreateObject(987,-1489.90,-939.79,191.69,0.00,0.00,277.72);
  7625. CreateObject(987,-1491.50,-928.09,191.69,0.00,0.00,277.71);
  7626. CreateObject(987,-1483.59,-918.69,194.50,1.08,6.56,230.32);
  7627. CreateObject(987,-1473.50,-913.50,197.69,1.08,6.56,208.31);
  7628. CreateObject(987,-1462.30,-912.20,200.60,359.99,359.99,187.59);
  7629. CreateObject(987,-1473.50,-913.50,200.60,1.08,6.56,208.31);
  7630. CreateObject(987,-1483.90,-919.09,199.19,1.08,6.56,230.32);
  7631. CreateObject(987,-1491.50,-928.09,198.00,0.00,0.00,277.71);
  7632. CreateObject(987,-1489.90,-939.79,198.00,0.00,0.00,277.72);
  7633. CreateObject(987,-1487.09,-958.20,196.80,0.00,0.00,288.67);
  7634. CreateObject(987,-1483.90,-968.40,196.69,0.00,0.00,293.06);
  7635. CreateObject(987,-1479.40,-979.59,196.69,0.00,0.00,340.25);
  7636. CreateObject(987,-1468.19,-983.59,196.60,0.00,0.00,0.00);
  7637. CreateObject(987,-1456.19,-983.59,196.60,0.00,0.00,0.00);
  7638. CreateObject(987,-1444.30,-983.50,196.60,0.00,0.00,0.00);
  7639. CreateObject(987,-1450.50,-910.59,200.60,359.98,359.98,187.59);
  7640. CreateObject(987,-1438.69,-909.09,200.39,359.98,359.98,187.59);
  7641. CreateObject(987,-1427.30,-909.20,196.39,359.98,359.98,180.42);
  7642. CreateObject(987,-1427.30,-909.20,200.10,359.98,359.98,180.41);
  7643. CreateObject(987,-1415.69,-909.20,194.50,359.98,359.98,180.41);
  7644. CreateObject(987,-1415.50,-909.09,200.10,359.98,359.98,180.41);
  7645. CreateObject(987,-1404.00,-909.09,190.69,359.98,359.98,180.41);
  7646. CreateObject(987,-1404.00,-909.09,195.89,359.98,359.98,180.41);
  7647. CreateObject(987,-1404.00,-909.09,200.10,359.98,359.98,180.41);
  7648. CreateObject(987,-1392.30,-909.00,189.00,359.98,359.98,180.41);
  7649. CreateObject(987,-1392.30,-909.00,194.00,359.98,359.98,180.41);
  7650. CreateObject(987,-1392.30,-909.00,200.00,359.98,359.98,180.41);
  7651. CreateObject(987,-1380.30,-908.90,186.10,359.98,359.98,180.41);
  7652. CreateObject(987,-1380.30,-908.90,192.39,359.98,359.98,180.41);
  7653. CreateObject(987,-1380.30,-908.90,197.10,359.98,359.98,180.41);
  7654. CreateObject(987,-1380.30,-908.90,200.00,359.98,359.98,180.41);
  7655. CreateObject(987,-1373.40,-918.40,186.10,359.98,359.98,125.45);
  7656. CreateObject(987,-1373.40,-918.40,191.19,359.97,359.97,125.44);
  7657. CreateObject(987,-1373.40,-918.40,196.39,359.97,359.97,125.44);
  7658. CreateObject(987,-1373.40,-918.40,200.00,359.97,359.97,125.44);
  7659. CreateObject(987,-1374.80,-930.09,190.50,359.97,5.45,83.73);
  7660. CreateObject(987,-1374.90,-929.70,195.00,359.97,2.16,83.73);
  7661. CreateObject(987,-1374.90,-929.70,200.50,359.97,2.16,83.72);
  7662. CreateObject(987,-1376.00,-941.59,194.19,359.97,5.44,83.73);
  7663. CreateObject(987,-1376.09,-941.20,199.10,359.97,3.25,83.73);
  7664. CreateObject(987,-1376.09,-941.20,201.19,359.97,3.25,83.72);
  7665. CreateObject(987,-1380.09,-952.20,197.39,357.78,358.87,69.37);
  7666. CreateObject(987,-1380.09,-952.20,201.00,357.78,358.87,69.37);
  7667. CreateObject(987,-1391.09,-979.00,191.80,357.78,358.87,37.37);
  7668. CreateObject(987,-1426.09,-981.50,192.50,0.00,0.00,0.00);
  7669. CreateObject(987,-1414.09,-981.50,192.00,0.00,0.00,0.00);
  7670. CreateObject(987,-1402.80,-981.40,192.00,0.00,0.00,12.04);
  7671. CreateObject(987,-1426.09,-981.50,196.39,0.00,0.00,0.00);
  7672. CreateObject(987,-1414.09,-981.50,196.39,0.00,0.00,0.00);
  7673. CreateObject(987,-1402.80,-981.40,196.39,0.00,0.00,12.04);
  7674. CreateObject(987,-1391.09,-979.00,196.39,357.78,358.86,37.37);
  7675. CreateObject(11488,-1437.40,-952.59,200.10,0.00,0.00,346.86);
  7676. CreateObject(2745,-1394.59,-949.70,198.39,0.00,0.00,29.67);
  7677. CreateObject(3265,-1380.19,-962.79,196.39,0.00,0.00,85.73);
  7678. CreateObject(3265,-1489.50,-958.20,193.60,0.00,0.00,277.62);
  7679. CreateObject(3265,-1423.89,-983.19,193.10,0.00,0.00,1.12);
  7680. CreateObject(2745,-1429.09,-982.90,193.69,0.00,0.00,14.33);
  7681. CreateObject(2745,-1488.80,-955.00,192.00,0.00,0.00,280.90);
  7682. CreateObject(2892,-1381.50,-966.59,196.10,4.36,4.39,359.66);
  7683. CreateObject(987,-1381.69,-962.00,196.60,357.78,358.87,80.32);
  7684. CreateObject(18850,-1425.80,-925.59,195.10,0.00,0.00,0.00);
  7685. AddStaticVehicleEx(432,-1434.40,-947.09,201.10,262.15,-1,-1,50);
  7686. AddStaticVehicleEx(433,-1445.09,-963.79,202.00,0.00,-1,-1,50);
  7687. AddStaticVehicleEx(433,-1450.69,-963.09,202.69,0.00,-1,-1,50);
  7688. CreateObject(2985,-1394.40,-950.09,198.30,0.00,0.00,305.03);
  7689. CreateObject(2985,-1488.80,-955.00,191.80,358.94,16.42,193.21);
  7690. CreateObject(2985,-1429.09,-983.19,193.60,358.94,16.42,276.75);
  7691. AddStaticVehicleEx(471,-1467.09,-944.40,203.69,262.10,-1,-1,50);
  7692. AddStaticVehicleEx(470,-1435.00,-958.70,201.10,270.90,-1,-1,50);
  7693. AddStaticVehicleEx(470,-1435.19,-953.40,201.10,270.90,-1,-1,50);
  7694. CreateObject(1596,-1425.40,-968.20,205.19,0.00,0.00,3.43);
  7695. CreateObject(1596,-1459.30,-926.59,203.00,0.00,0.00,329.33);
  7696. CreateObject(1596,-1437.00,-967.00,205.19,0.00,0.00,271.08);
  7697. AddStaticVehicleEx(548,-1427.90,-925.59,210.30,269.81,-1,-1,50);
  7698. CreateObject(3030,-1414.09,-937.09,207.39,0.00,0.00,0.00);
  7699. CreateObject(3030,-1427.19,-978.40,194.60,358.91,353.35,229.40);
  7700. CreateObject(3030,-1484.79,-951.69,193.39,0.00,0.00,52.66);
  7701. CreateObject(3030,-1395.29,-945.59,199.19,19.70,0.00,172.40);
  7702. CreateObject(3030,-1429.30,-966.70,202.69,358.91,353.35,284.36);
  7703. CreateObject(3763,-1471.90,-919.29,233.80,0.00,0.00,0.00);
  7704. CreateObject(3932,-1467.80,-945.09,204.69,0.00,0.00,353.43);
  7705. CreateObject(3932,-1460.00,-939.59,203.39,357.81,357.80,267.61);
  7706. CreateObject(3066,-1433.00,-963.59,200.89,358.83,1.09,269.87);
  7707. CreateObject(3046,-1424.69,-967.40,200.19,0.00,0.00,0.00);
  7708. CreateObject(3046,-1425.90,-967.40,200.19,0.00,0.00,0.00);
  7709. CreateObject(3046,-1427.00,-967.29,200.19,0.00,0.00,0.00);
  7710. CreateObject(3046,-1428.00,-967.29,200.30,0.00,0.00,0.00);
  7711. CreateObject(2973,-1436.09,-967.00,200.00,0.00,0.00,0.00);
  7712. CreateObject(2973,-1432.30,-966.79,200.00,0.00,0.00,0.00);
  7713. CreateObject(2973,-1429.30,-967.00,199.89,0.00,0.00,0.00);
  7714. CreateObject(930,-1470.00,-947.29,203.50,0.00,0.00,0.00);
  7715. CreateObject(930,-1468.69,-947.40,203.60,0.00,0.00,356.71);
  7716. CreateObject(2669,-1430.09,-932.59,201.80,0.00,0.00,0.00);
  7717. CreateObject(2068,-1433.59,-931.90,201.39,273.24,0.00,59.27);
  7718. CreateObject(2068,-1429.40,-927.59,201.39,273.24,0.00,4.26);
  7719. CreateObject(2068,-1423.69,-929.00,201.00,273.24,0.00,329.12);
  7720. CreateObject(2068,-1419.50,-932.29,201.00,273.24,0.00,320.35);
  7721. CreateObject(2068,-1431.40,-928.59,201.39,273.24,0.00,33.97);
  7722. CreateObject(16782,-1430.09,-930.29,201.89,0.00,0.00,268.82);
  7723. CreateObject(3877,-1399.00,-947.20,203.10,0.00,0.00,0.00);
  7724. CreateObject(3877,-1451.80,-926.09,202.80,0.00,0.00,0.00);
  7725. CreateObject(3877,-1484.09,-956.79,197.30,0.00,0.00,0.00);
  7726. CreateObject(3877,-1431.90,-978.70,198.30,0.00,0.00,0.00);
  7727. CreateObject(790,-1470.50,-976.50,191.60,0.00,0.00,127.25);
  7728. CreateObject(790,-1467.19,-981.79,191.60,0.00,0.00,127.25);
  7729. CreateObject(790,-1470.30,-956.09,190.69,0.00,0.00,231.63);
  7730. CreateObject(790,-1471.40,-936.59,190.69,0.00,0.00,269.00);
  7731. CreateObject(790,-1381.09,-922.90,192.50,0.00,358.90,272.22);
  7732. CreateObject(790,-1389.50,-933.00,192.50,0.00,358.90,206.26);
  7733. CreateObject(1554,-1466.09,-947.79,203.10,0.00,0.00,0.00);
  7734. CreateObject(1554,-1467.09,-947.59,203.19,0.00,0.00,0.00);
  7735. CreateObject(1554,-1467.80,-947.20,203.19,0.00,0.00,0.00);
  7736. CreateObject(1213,-1381.40,-963.59,196.60,0.00,0.00,0.00);
  7737. CreateObject(1213,-1381.50,-966.50,196.19,0.00,0.00,0.00);
  7738. CreateObject(1213,-1381.50,-968.29,196.00,0.00,0.00,0.00);
  7739. CreateObject(1213,-1381.50,-969.90,196.00,0.00,0.00,0.00);
  7740. CreateObject(5821,-1443.80,-928.59,203.19,0.00,0.00,358.90);
  7741. CreateObject(967,-1381.59,-971.00,195.60,0.00,0.00,0.00);
  7742. CreateObject(2985,-1381.19,-971.00,195.89,0.00,6.56,1.09);
  7743. CreateObject(2745,-1381.40,-971.00,196.19,0.00,0.00,94.52);
  7744. CreateObject(1250,-1381.90,-962.59,197.50,0.00,0.00,0.00);
  7745. CreateObject(1374,-1382.00,-963.29,197.89,0.00,0.00,182.48);
  7746. CreateObject(18762,-1382.09,-962.50,195.00,0.00,0.00,0.00);
  7747. CreateObject(17055,-1463.19,-961.59,202.60,13.13,1.12,330.07);
  7748. CreateObject(16662,-1418.09,-928.79,201.30,0.00,0.00,288.25);
  7749. CreateObject(18765,-1418.19,-929.29,198.69,270.11,180.00,133.86);
  7750. CreateObject(18765,-1425.30,-925.09,198.69,270.11,179.99,165.61);
  7751. CreateObject(18765,-1431.19,-923.40,198.69,270.00,175.62,160.18);
  7752. CreateObject(3807,-1424.90,-933.70,200.10,359.61,290.76,8.75);
  7753. CreateObject(3791,-1458.69,-937.70,202.30,0.00,8.75,0.00);
  7754. CreateObject(3791,-1458.80,-939.29,202.30,0.00,8.75,0.00);
  7755. CreateObject(3791,-1458.90,-940.90,202.30,0.00,8.75,0.00);
  7756. CreateObject(3795,-1461.59,-939.90,202.80,0.00,0.00,85.73);
  7757. CreateObject(18765,-1435.40,-926.90,198.69,270.11,179.99,246.85);
  7758. //Objects:209,Vehicles:7
  7759. }
  7760.  
  7761. if(Map[EvacType] == 2)
  7762. {
  7763. Map[AllowWater] = 1;
  7764. CreateObject(10794,3051.59,494.00,4.50,0.00,0.00,44.98);
  7765. CreateObject(10793,2999.39,441.50,29.60,0.00,0.00,44.99);
  7766. CreateObject(10795,3050.50,492.89,14.50,0.00,0.00,44.99);
  7767. CreateObject(1691,3018.39,504.29,0.69,0.00,274.30,330.28);
  7768. CreateObject(18762,3028.80,497.20,0.60,0.00,91.17,354.48);
  7769. CreateObject(18762,3030.00,499.60,0.60,0.00,91.16,310.61);
  7770. CreateObject(18762,3026.80,503.00,0.69,0.00,91.16,316.08);
  7771. CreateObject(18762,3024.19,497.79,0.60,0.00,88.97,351.49);
  7772. CreateObject(18762,3023.39,505.79,0.80,0.00,91.15,324.84);
  7773. CreateObject(18762,3019.69,498.89,0.60,0.00,91.17,339.45);
  7774. CreateObject(18762,3017.89,501.70,0.69,0.00,91.17,245.05);
  7775. CreateObject(18762,3020.00,505.79,0.80,0.00,91.17,240.16);
  7776. CreateObject(18765,3023.80,502.20,-4.69,0.01,88.98,56.17);
  7777. CreateObject(18762,3024.60,498.20,-0.30,0.00,91.17,341.64);
  7778. CreateObject(18762,3022.00,499.70,-0.20,0.00,91.17,326.14);
  7779. CreateObject(18762,3020.30,500.79,-0.20,0.00,91.17,326.14);
  7780. CreateObject(18762,3019.89,500.10,-0.20,0.00,91.17,326.14);
  7781. CreateObject(18762,3019.69,499.79,-0.20,0.00,91.17,340.37);
  7782. CreateObject(18762,3029.80,498.89,-0.20,0.00,91.17,314.10);
  7783. CreateObject(18762,3029.19,498.60,-0.20,0.00,91.17,314.09);
  7784. CreateObject(18762,3029.10,497.70,-0.20,0.00,91.17,345.85);
  7785. CreateObject(18762,3029.30,498.10,-0.20,0.00,91.17,339.28);
  7786. CreateObject(18762,3033.10,496.00,0.50,0.00,91.16,310.61);
  7787. CreateObject(18762,3033.30,496.70,0.50,0.00,91.17,354.47);
  7788. CreateObject(18762,3020.60,499.79,-0.20,0.00,91.17,326.14);
  7789. CreateObject(11245,3019.89,507.79,2.90,0.00,312.80,147.30);
  7790. CreateObject(2983,3022.19,504.10,0.80,318.43,2.92,229.23);
  7791. CreateObject(3350,3022.80,504.79,-0.40,0.00,0.00,47.22);
  7792. CreateObject(2985,3031.19,497.39,0.40,0.00,355.62,327.07);
  7793. CreateObject(2207,3021.89,503.10,0.30,0.00,0.00,46.13);
  7794. CreateObject(2985,3020.60,498.60,0.40,0.00,355.61,260.07);
  7795. CreateObject(2985,3025.19,504.60,0.50,0.00,355.61,48.50);
  7796. CreateObject(9831,3016.69,505.70,0.30,43.79,0.00,63.68);
  7797. CreateObject(18762,3031.30,502.00,0.60,0.00,91.16,46.12);
  7798. CreateObject(18762,3032.00,501.29,0.60,0.00,91.15,46.12);
  7799. CreateObject(18762,3032.69,500.70,0.60,0.00,91.15,46.12);
  7800. CreateObject(18850,3023.39,466.29,7.19,0.00,0.00,314.92);
  7801. AddStaticVehicleEx(548,3023.89,466.20,22.39,224.77,-1,-1,50);
  7802. CreateObject(3884,3103.10,546.00,20.39,0.00,0.00,25.75);
  7803. CreateObject(3277,3055.39,479.00,13.80,0.00,0.00,0.00);
  7804. CreateObject(3277,3103.60,546.40,20.50,0.00,0.00,156.13);
  7805. CreateObject(3884,3055.50,479.29,13.60,0.00,0.00,181.88);
  7806. CreateObject(3877,2999.10,463.89,28.79,0.00,0.00,45.03);
  7807. CreateObject(3877,3021.59,441.09,28.79,0.00,0.00,45.03);
  7808. CreateObject(3877,3098.39,547.90,20.50,0.00,0.00,45.03);
  7809. CreateObject(3877,3060.19,479.39,15.39,0.00,0.00,45.03);
  7810. CreateObject(3066,3080.19,500.29,14.80,0.00,0.00,314.96);
  7811. CreateObject(3066,3089.30,509.50,14.80,0.00,0.00,314.96);
  7812. CreateObject(3066,3097.80,517.79,14.80,0.00,0.00,314.96);
  7813. AddStaticVehicleEx(470,3041.89,496.00,14.89,43.94,-1,-1,50);
  7814. AddStaticVehicleEx(470,3049.60,488.39,14.89,43.93,-1,-1,50);
  7815. CreateObject(13489,3029.69,491.60,15.69,0.00,0.00,314.96);
  7816. CreateObject(8885,3114.60,539.90,17.20,0.00,0.00,57.22);
  7817. CreateObject(11237,3082.39,524.79,20.39,0.00,0.00,46.20);
  7818. CreateObject(3791,3044.30,465.50,14.19,0.00,0.00,0.00);
  7819. CreateObject(3791,3047.80,467.60,14.19,0.00,0.00,45.14);
  7820. CreateObject(3791,3046.50,468.79,14.19,0.00,0.00,45.14);
  7821. CreateObject(3791,3050.80,471.10,14.19,0.00,0.00,45.14);
  7822. CreateObject(3791,3049.50,472.10,14.19,0.00,0.00,45.14);
  7823. CreateObject(3791,3045.39,470.20,14.19,0.00,0.00,45.14);
  7824. CreateObject(3791,3048.19,473.29,14.19,0.00,0.00,45.14);
  7825. AddStaticVehicleEx(595,3003.89,494.09,0.00,174.11,-1,-1,50);
  7826. CreateObject(7981,3111.10,552.09,18.79,0.00,0.00,46.20);
  7827. CreateObject(3877,3105.19,541.50,20.60,0.00,0.00,45.03);
  7828. CreateObject(1682,3115.60,556.40,30.29,0.00,0.00,317.07);
  7829. CreateObject(2061,3108.00,562.70,14.10,0.00,0.00,0.00);
  7830. CreateObject(2061,3108.30,562.50,14.10,0.00,0.00,0.00);
  7831. CreateObject(2061,3108.50,562.29,14.10,0.00,0.00,0.00);
  7832. CreateObject(2061,3108.60,562.09,14.10,0.00,0.00,0.00);
  7833. CreateObject(2061,3108.89,562.00,14.10,0.00,0.00,0.00);
  7834. CreateObject(2061,3109.00,561.79,14.10,0.00,0.00,0.00);
  7835. CreateObject(2061,3109.19,561.59,14.10,0.00,0.00,0.00);
  7836. CreateObject(2061,3109.39,561.50,14.10,0.00,0.00,0.00);
  7837. CreateObject(2061,3109.50,561.29,14.10,0.00,0.00,0.00);
  7838. CreateObject(2061,3107.89,562.29,14.10,0.00,0.00,0.00);
  7839. CreateObject(2061,3108.10,562.09,14.10,0.00,0.00,0.00);
  7840. CreateObject(2061,3108.19,561.90,14.10,0.00,0.00,0.00);
  7841. CreateObject(2061,3108.50,561.79,14.10,0.00,0.00,0.00);
  7842. CreateObject(2061,3108.69,561.50,14.10,0.00,0.00,0.00);
  7843. CreateObject(2061,3108.89,561.29,14.10,0.00,0.00,0.00);
  7844. CreateObject(2061,3109.10,561.09,14.10,0.00,0.00,0.00);
  7845. CreateObject(1213,3017.10,500.00,0.89,0.00,0.00,0.00);
  7846. CreateObject(1691,3139.89,580.90,26.00,0.00,277.58,223.67);
  7847. CreateObject(3258,3115.80,561.29,21.89,0.00,82.33,42.81);
  7848. CreateObject(3258,3118.50,558.50,21.89,0.00,82.33,42.80);
  7849. CreateObject(16782,3011.60,452.79,23.50,0.00,0.00,47.33);
  7850. CreateObject(18683,3141.00,580.20,26.20,0.00,0.00,0.00);
  7851. CreateObject(18683,3138.80,583.00,26.20,0.00,0.00,0.00);
  7852. //Objects:84,Vehicles:4
  7853.  
  7854. }
  7855.  
  7856. if(Map[EvacType] == 3)
  7857. {
  7858. CreateObject(14548,257.00,2510.10,123.50,13.13,0.00,270.90);
  7859. CreateObject(16782,227.10,2512.80,123.09,0.00,0.00,0.00);
  7860. CreateObject(5156,252.30,2507.39,118.80,8.75,1.10,92.13);
  7861. CreateObject(3256,246.30,2488.30,117.59,0.00,281.89,0.00);
  7862. CreateObject(3256,247.89,2466.10,118.00,0.00,282.98,0.00);
  7863. CreateObject(3256,247.69,2442.50,118.00,0.00,282.98,0.00);
  7864. CreateObject(3256,245.10,2531.30,116.90,359.99,284.08,0.00);
  7865. CreateObject(3256,243.39,2554.39,116.90,0.00,281.89,0.00);
  7866. CreateObject(3256,241.50,2573.80,116.90,0.00,280.79,0.00);
  7867. CreateObject(2117,231.69,2514.00,121.40,0.00,0.00,0.00);
  7868. CreateObject(2117,233.69,2514.00,121.40,0.00,0.00,0.00);
  7869. CreateObject(1753,239.69,2513.89,121.50,0.00,0.00,0.00);
  7870. CreateObject(1753,242.89,2512.50,121.50,0.00,1.09,269.85);
  7871. CreateObject(15037,241.00,2506.50,121.90,0.00,0.00,94.52);
  7872. CreateObject(2063,261.20,2505.69,122.40,0.00,0.00,180.83);
  7873. CreateObject(2063,264.89,2505.80,122.40,0.00,0.00,180.82);
  7874. CreateObject(2063,268.70,2505.89,122.40,0.00,0.00,180.82);
  7875. CreateObject(2606,234.19,2514.39,122.40,0.00,0.00,0.00);
  7876. CreateObject(2616,227.19,2506.60,122.50,0.00,0.00,91.06);
  7877. CreateObject(2611,229.10,2514.30,122.69,6.56,358.89,0.12);
  7878. CreateObject(2053,231.39,2513.69,122.30,0.00,0.00,0.00);
  7879. CreateObject(2053,231.39,2514.10,122.30,0.00,0.00,0.00);
  7880. CreateObject(2053,231.60,2514.19,122.30,0.00,0.00,0.00);
  7881. CreateObject(2053,231.60,2514.00,122.30,0.00,0.00,0.00);
  7882. CreateObject(2053,231.60,2513.69,122.30,0.00,0.00,0.00);
  7883. CreateObject(2053,231.80,2513.69,122.30,0.00,0.00,0.00);
  7884. CreateObject(2053,231.80,2514.19,122.30,0.00,0.00,0.00);
  7885. CreateObject(2053,231.89,2514.00,122.30,0.00,0.00,0.00);
  7886. CreateObject(2202,229.80,2513.80,121.40,0.00,0.00,0.00);
  7887. CreateObject(1714,234.30,2512.80,121.40,0.00,0.00,225.90);
  7888. CreateObject(1714,237.10,2506.89,121.40,0.00,0.00,60.58);
  7889. CreateObject(2763,240.60,2511.89,121.90,0.00,0.00,0.00);
  7890. CreateObject(3383,232.50,2505.60,121.40,0.00,0.00,0.00);
  7891. CreateObject(11631,237.80,2506.10,122.69,0.00,0.00,180.90);
  7892. CreateObject(3111,233.60,2505.69,122.50,0.00,0.00,0.00);
  7893. CreateObject(3031,228.39,2505.60,123.00,0.00,0.00,47.22);
  7894. CreateObject(3017,230.80,2505.89,122.59,0.00,0.00,269.02);
  7895. CreateObject(2919,257.79,2506.19,122.19,0.00,0.00,0.00);
  7896. CreateObject(1808,236.30,2514.19,121.40,0.00,0.00,0.00);
  7897. CreateObject(2827,240.50,2512.10,122.30,0.00,0.00,0.00);
  7898. CreateObject(2683,240.89,2511.89,122.40,0.00,0.00,0.00);
  7899. CreateObject(2683,240.80,2511.60,122.40,0.00,0.00,0.00);
  7900. CreateObject(2683,240.39,2511.69,122.40,0.00,0.00,0.00);
  7901. CreateObject(3791,254.19,2506.39,122.00,0.00,0.00,0.00);
  7902. CreateObject(3791,250.89,2506.30,121.90,0.00,0.00,0.00);
  7903. CreateObject(3791,254.10,2507.80,122.00,0.00,0.00,0.00);
  7904. CreateObject(3791,271.89,2506.30,122.00,0.00,0.00,0.00);
  7905. CreateObject(2886,226.69,2510.89,123.09,0.00,0.00,0.00);
  7906. AddStaticVehicleEx(470,274.50,2513.50,122.59,272.98,-1,-1,50);
  7907. AddStaticVehicleEx(470,267.00,2513.10,122.59,270.79,-1,-1,50);
  7908. CreateObject(3066,252.50,2513.50,122.50,0.00,0.00,272.11);
  7909. CreateObject(3046,259.39,2513.89,121.90,0.00,0.00,0.00);
  7910. CreateObject(3046,260.39,2513.80,121.90,0.00,0.00,0.00);
  7911. CreateObject(3046,261.29,2513.80,121.90,0.00,0.00,0.00);
  7912. CreateObject(3046,262.20,2513.80,121.90,0.00,0.00,0.00);
  7913. CreateObject(3046,263.00,2514.00,121.90,0.00,0.00,0.00);
  7914. CreateObject(3013,260.60,2505.80,123.40,0.00,0.00,0.00);
  7915. CreateObject(3013,261.39,2505.69,123.30,0.00,0.00,0.00);
  7916. CreateObject(3013,262.00,2505.80,123.30,0.00,0.00,0.00);
  7917. CreateObject(3013,265.39,2506.00,123.00,0.00,0.00,0.00);
  7918. CreateObject(3013,264.50,2505.89,122.59,0.00,0.00,0.00);
  7919. CreateObject(3013,265.60,2505.89,122.19,0.00,0.00,0.00);
  7920. CreateObject(3013,269.10,2506.10,123.00,0.00,0.00,0.00);
  7921. CreateObject(3013,268.10,2505.89,123.30,0.00,0.00,0.00);
  7922. CreateObject(3013,268.00,2506.00,122.50,0.00,0.00,0.00);
  7923. CreateObject(2973,247.50,2506.10,121.50,0.00,0.00,0.00);
  7924. CreateObject(964,274.60,2506.19,121.50,0.00,0.00,0.00);
  7925. CreateObject(964,246.50,2513.89,121.50,0.00,0.00,0.00);
  7926. CreateObject(964,244.50,2513.89,121.50,0.00,0.00,0.00);
  7927. CreateObject(964,237.89,2513.69,121.50,0.00,0.00,0.00);
  7928. CreateObject(964,235.50,2505.69,121.40,0.00,0.00,0.00);
  7929. CreateObject(2041,262.10,2505.80,122.50,0.00,0.00,178.64);
  7930. CreateObject(1242,269.70,2506.00,122.00,0.00,0.00,0.00);
  7931. CreateObject(1242,268.89,2505.89,122.00,0.00,0.00,0.00);
  7932. CreateObject(1242,267.89,2505.89,122.00,0.00,0.00,0.00);
  7933. CreateObject(2035,269.10,2506.00,122.40,1.09,3.28,359.93);
  7934. CreateObject(2035,265.39,2505.80,122.40,1.08,1.09,359.97);
  7935. CreateObject(2035,260.60,2505.80,122.40,1.08,359.53,0.00);
  7936. CreateObject(2036,264.70,2505.89,123.30,0.00,0.00,0.00);
  7937. CreateObject(2044,264.79,2506.00,122.90,0.00,0.00,0.00);
  7938. CreateObject(2045,261.60,2505.80,122.80,0.00,0.00,269.88);
  7939. //
  7940.  
  7941. }
  7942. return 1;
  7943. }
  7944.  
  7945. stock SpawnVars(playerid)
  7946. {
  7947. TextDrawHideForPlayer(playerid, ServerIntroOne[playerid]);
  7948. TextDrawHideForPlayer(playerid, ServerIntroTwo[playerid]);
  7949. ShowTextdrawsAfterConnect(playerid);
  7950.  
  7951. return 1;
  7952. }
  7953.  
  7954. stock sendClassMessage(playerid)
  7955. {
  7956. new string[128];
  7957. if(team[playerid] == TEAM_HUMAN) format(string,sizeof(string),""chat""COL_YELLOW" You spawned as %s type /class or /class2 to change your class",GetClassName(playerid));
  7958. if(team[playerid] == TEAM_ZOMBIE) format(string,sizeof(string),""chat""COL_YELLOW" You spawned as %s type /class or /class2 to change your class",GetClassName(playerid));
  7959. SendClientMessage(playerid,-1,string);
  7960. return 1;
  7961. }
  7962.  
  7963. stock ShowTextdrawsAfterConnect(playerid)
  7964. {
  7965. TextDrawShowForPlayer(playerid, TimeLeft);
  7966. TextDrawShowForPlayer(playerid, Textdraw0);
  7967. TextDrawShowForPlayer(playerid, Textdraw1);
  7968. TextDrawShowForPlayer(playerid, Textdraw2);
  7969. TextDrawShowForPlayer(playerid, Textdraw4);
  7970. TextDrawShowForPlayer(playerid, Textdraw5);
  7971. TextDrawShowForPlayer(playerid, Textdraw7);
  7972. TextDrawShowForPlayer(playerid, Textdraw8);
  7973. TextDrawShowForPlayer(playerid, Textdraw9);
  7974. TextDrawShowForPlayer(playerid, AliveInfo);
  7975. TextDrawShowForPlayer(playerid, AliveInfo2);
  7976. TextDrawShowForPlayer(playerid, remadeText);
  7977. TextDrawShowForPlayer(playerid, remadeText2);
  7978. TextDrawShowForPlayer(playerid, CurrentMap);
  7979. TextDrawShowForPlayer(playerid, XP);
  7980. TextDrawShowForPlayer(playerid, myXP[playerid]);
  7981. TextDrawShowForPlayer(playerid, EventText);
  7982. TextDrawShowForPlayer(playerid, ChatMsg);
  7983. return 1;
  7984. }
  7985.  
  7986. stock hideTextdrawsAfterConnect(playerid)
  7987. {
  7988. TextDrawHideForPlayer(playerid, TimeLeft);
  7989. TextDrawHideForPlayer(playerid, Textdraw0);
  7990. TextDrawHideForPlayer(playerid, Textdraw1);
  7991. TextDrawHideForPlayer(playerid, Textdraw2);
  7992. TextDrawHideForPlayer(playerid, Textdraw4);
  7993. TextDrawHideForPlayer(playerid, Textdraw5);
  7994. TextDrawHideForPlayer(playerid, Textdraw7);
  7995. TextDrawHideForPlayer(playerid, Textdraw8);
  7996. TextDrawHideForPlayer(playerid, Textdraw9);
  7997. TextDrawHideForPlayer(playerid, AliveInfo);
  7998. TextDrawHideForPlayer(playerid, AliveInfo2);
  7999. TextDrawHideForPlayer(playerid, remadeText);
  8000. TextDrawHideForPlayer(playerid, remadeText2);
  8001. TextDrawHideForPlayer(playerid, CurrentMap);
  8002. TextDrawHideForPlayer(playerid, XP);
  8003. TextDrawHideForPlayer(playerid, myXP[playerid]);
  8004. TextDrawHideForPlayer(playerid, EventText);
  8005. TextDrawHideForPlayer(playerid, ChatMsg);
  8006. return 1;
  8007. }
  8008.  
  8009. stock GetClassName(playerid)
  8010. {
  8011. new classname[64];
  8012. if(team[playerid] == TEAM_HUMAN)
  8013. {
  8014. switch(pInfo[playerid][pHumanClass])
  8015. {
  8016. case CIVILIAN: classname = "Civilian";
  8017. case POLICEMAN: classname = "Police man";
  8018. case MEDIC: classname = "Medic";
  8019. case SCOUT: classname = "Scout";
  8020. case HEAVYMEDIC: classname = "Heavy Medic";
  8021. case FARMER: classname = "Farmer";
  8022. case ENGINEER: classname = "Engineer";
  8023. case SWAT: classname = "S.W.A.T";
  8024. case HEAVYSHOTGUN: classname = "Heavy Shoutgun";
  8025. case ADVANCEDMEDIC: classname = "Advanced Medic";
  8026. case ADVANCEDENGINEER: classname = "Advanced Engineer";
  8027. case FEDERALAGENT: classname = "Federal Agent";
  8028. case KICKBACK: classname = "Kick Back";
  8029. case ADVANCEDSCOUT: classname = "Advanced Scout";
  8030. case COWBOY: classname = "Cowboy";
  8031. case ASSASSIN: classname = "Assassin";
  8032. case PIMP: classname = "Pimp";
  8033. case EXPERIENCEDSCOUT: classname = "Experienced Scout";
  8034. case SCIENTIST: classname = "Scientist";
  8035. case TRAPMASTER: classname = "Trap Master";
  8036. case VIPENGINEER: classname = "V.I.P Engineer";
  8037. case VIPMEDIC: classname = "V.I.P Medic";
  8038. case VIPSCOUT: classname = "V.I.P Scout";
  8039. case E_ENGINEER: classname = "Experienced Engineer";
  8040. case DOCTOR: classname = "Doctor";
  8041. case FBI: classname = "FBI";
  8042. case WEAPONSDEALER: classname = "Heavy Soldier";
  8043. case SMOKEUP: classname = "Smoke Up";
  8044. case BOXER: classname = "Boxer";
  8045. case BOMBER: classname = "BomberMan";
  8046. case MASTER: classname = "Mp5 Master";
  8047. case GHOST: classname = "Ghost Rider";
  8048. case SHOTGUNSPECIAL: classname = "Shotgun Specialist";
  8049. case BUDDY: classname = "Hey Buddy";
  8050. case AKICK: classname = "Advanced KickBack";
  8051. case TECG: classname = "Tec Girl";
  8052. case BULL: classname = "Bulls Eye";
  8053. case HITMAN: classname = "HitMan";
  8054.  
  8055. }
  8056. }
  8057.  
  8058. if(team[playerid] == TEAM_ZOMBIE)
  8059. {
  8060. switch(pInfo[playerid][pZombieClass])
  8061. {
  8062. case STANDARDZOMBIE: classname = "Standard Zombie";
  8063. case MUTATEDZOMBIE: classname = "Mutated Zombie";
  8064. case FASTZOMBIE: classname = "Fast Zombie";
  8065. case REAPERZOMBIE: classname = "Reaper Zombie";
  8066. case WITCHZOMBIE: classname = "Witch Zombie";
  8067. case BOOMERZOMBIE: classname = "Boomer Zombie";
  8068. case STOMPERZOMBIE: classname = "Stomper Zombie";
  8069. case SCREAMERZOMBIE: classname = "Screamer Zombie";
  8070. case FIREBREATHER: classname = "Fire Breather";
  8071. case ADVANCEDMUTATED: classname = "Advanced Mutated";
  8072. case HEAVYSCREAMER: classname = "Heavy Screamer";
  8073. case FLESHEATER: classname = "Flesh Eater";
  8074. case ADVANCEDWITCH: classname = "Advanced Witch";
  8075. case ADVSCREAMER: classname = "Advanced Screamer";
  8076. case ADVANCEDBOOMER: classname = "Advanced Boomer";
  8077. case NEMESIS: classname = "Nemesis";
  8078. case HZOMBIE: classname = "Zombie Medic";
  8079. case SLENDER: classname = "SlenderMan";
  8080. case KZOM: classname = "Killer Zombie";
  8081. case GZOM: classname = "Ghost Zombie";
  8082. case DSNIPE: classname = "Dark Sniper";
  8083. }
  8084. }
  8085. return classname;
  8086. }
  8087.  
  8088. stock GetAdminName(playerid)
  8089. {
  8090. new adminname[128];
  8091. switch(pInfo[playerid][pAdminLevel])
  8092. {
  8093. case 0: adminname = "Newbie/Regular";
  8094. case 1: adminname = "Trial Moderator";
  8095. case 2: adminname = "Moderator";
  8096. case 3: adminname = "Sr.Moderator";
  8097. case 4: adminname = "Management";
  8098. case 5: adminname = "Head Admin";
  8099. case 10: adminname = "Owner/SR.Manager/Founder";
  8100. }
  8101. return adminname;
  8102. }
  8103.  
  8104. function SPS_Reset_PVars()
  8105. {
  8106. for(new i=0; i < MAX_PLAYERS; i++)
  8107. {
  8108. if(GetPVarType(i, "SPS Muted") != PLAYER_VARTYPE_NONE) {
  8109. SetPVarInt(i, "SPS Muted", 0);
  8110. }
  8111. if(GetPVarType(i, "SPS Messages Sent") != PLAYER_VARTYPE_NONE) {
  8112. SetPVarInt(i, "SPS Messages Sent", 0);
  8113. }
  8114. if(GetPVarType(i, "SPS Spam Warnings") != PLAYER_VARTYPE_NONE) {
  8115. SetPVarInt(i, "SPS Spam Warnings", 0);
  8116. }
  8117. }
  8118. return 1;
  8119. }
  8120.  
  8121. function SPS_Remove_Messages_Limit(playerid)
  8122. {
  8123. if(GetPVarInt(playerid, "SPS Spam Warnings") == 1)
  8124. {
  8125. new string[128], pName[MAX_PLAYER_NAME];
  8126. GetPlayerName(playerid, pName, sizeof(pName));
  8127.  
  8128. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" Player %s has been muted for %i minutes because of flooding the chat.", pName, PLAYER_MUTE_TIME_MINUTES);
  8129. for(new i=0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && i != playerid) SendClientMessage(i, -1, string);
  8130.  
  8131. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" You have been muted for %i minutes because of flooding the chat.", PLAYER_MUTE_TIME_MINUTES);
  8132. SendClientMessage(playerid, -1, string);
  8133.  
  8134. SetTimerEx("SPS_Unmute_Player", (PLAYER_MUTE_TIME_MINUTES * 60000), 0, "i", playerid);
  8135. SetPVarInt(playerid, "SPS Muted", 1);
  8136.  
  8137. CallRemoteFunction("OnPlayerGetMuted", "i", playerid);
  8138. }
  8139. SetPVarInt(playerid, "SPS Messages Sent", 0);
  8140. SetPVarInt(playerid, "SPS Spam Warnings", 0);
  8141. return 1;
  8142. }
  8143. function SPS_Unmute_Player(playerid)
  8144. {
  8145. SendClientMessage(playerid, -1, ""chat""COL_LIGHTBLUE" You have been automatically unmuted.");
  8146. SetPVarInt(playerid, "SPS Muted", 0);
  8147. return 1;
  8148. }
  8149. stock DoctorShield()
  8150. {
  8151. new Float:X,Float:Y,Float:Z,Float:hp,str[128];
  8152. GetObjectPos(DocShield,X,Y,Z);
  8153. foreach(Player,i)
  8154. {
  8155. if(IsPlayerInRangeOfPoint(i,4.5,X,Y,Z))
  8156. {
  8157. if(team[i] == TEAM_HUMAN)
  8158. {
  8159. GetPlayerHealth(i,hp);
  8160. if(hp < 80)
  8161. {
  8162. SetPlayerHealth(i,hp+3.5);
  8163. format(str,sizeof(str),"~n~~n~~n~~n~~g~GETTING HEALED BY DOCTOR SHIELD~w~ (NEW HP: %.2f HP)",hp);
  8164. GameTextForPlayer(i,str,1000,5);
  8165. }
  8166. else
  8167. {
  8168. GameTextForPlayer(i,"~n~~n~~n~~n~~r~YOU HAVE ENOUGH HP TO SURVIVE",1000,5);
  8169. }
  8170. }
  8171. }
  8172. }
  8173. return 1;
  8174. }
  8175.  
  8176. stock TrapMasterTrap()
  8177. {
  8178. new Float:X,Float:Y,Float:Z;
  8179. GetObjectPos(Trap,X,Y,Z);
  8180. foreach(Player,i)
  8181. {
  8182. if(IsPlayerInRangeOfPoint(i,2.5,X,Y,Z))
  8183. {
  8184. if(team[i] == TEAM_ZOMBIE)
  8185. {
  8186. CreateExplosion(X,Y,Z,3,40.0);
  8187. DestroyObject(Trap);
  8188. }
  8189. }
  8190. }
  8191. return 1;
  8192. }
  8193.  
  8194. stock LoadStaticObjectsFromFile(filename[])
  8195. {
  8196. new File:file_ptr, line[256], modelid, Float:SpawnX, Float:SpawnY, Float:SpawnZ, Float:SpawnRotX, Float:SpawnRotY, Float:SpawnRotZ, objects_loaded;
  8197. file_ptr = fopen(filename, io_read);
  8198. if(!file_ptr) return printf("ERROR! Failed To Load Objects From The File %s (File Doesn't Exist In Scriptfiles Directory)!", filename);
  8199. while(fread(file_ptr, line) > 0)
  8200. {
  8201. sscanf(line, "dffffff", modelid, SpawnX, SpawnY, SpawnZ, SpawnRotX, SpawnRotY, SpawnRotZ);
  8202. CreateObject(modelid, SpawnX, SpawnY, SpawnZ, SpawnRotX, SpawnRotY, SpawnRotZ);
  8203. objects_loaded++;
  8204. }
  8205. fclose(file_ptr);
  8206. printf("Loaded %d objects from: %s", objects_loaded, filename);
  8207. return objects_loaded;
  8208. }
  8209.  
  8210. stock LoadStaticVehiclesFromFile(const filename[])
  8211. {
  8212. new File:file_ptr;
  8213. new line[256];
  8214. new var_from_line[64];
  8215. new vehicletype;
  8216. new Float:SpawnX;
  8217. new Float:SpawnY;
  8218. new Float:SpawnZ;
  8219. new Float:SpawnRot;
  8220. new Color1, Color2;
  8221. new index;
  8222. new vehicles_loaded;
  8223.  
  8224. file_ptr = fopen(filename,filemode:io_read);
  8225. if(!file_ptr) return 0;
  8226.  
  8227. vehicles_loaded = 0;
  8228.  
  8229. while(fread(file_ptr,line,256) > 0)
  8230. {
  8231. index = 0;
  8232. index = token_by_delim(line,var_from_line,',',index);
  8233. if(index == (-1)) continue;
  8234. vehicletype = strval(var_from_line);
  8235. if(vehicletype < 400 || vehicletype > 611) continue;
  8236. index = token_by_delim(line,var_from_line,',',index+1);
  8237. if(index == (-1)) continue;
  8238. SpawnX = floatstr(var_from_line);
  8239.  
  8240. index = token_by_delim(line,var_from_line,',',index+1);
  8241. if(index == (-1)) continue;
  8242. SpawnY = floatstr(var_from_line);
  8243.  
  8244. index = token_by_delim(line,var_from_line,',',index+1);
  8245. if(index == (-1)) continue;
  8246. SpawnZ = floatstr(var_from_line);
  8247.  
  8248. index = token_by_delim(line,var_from_line,',',index+1);
  8249. if(index == (-1)) continue;
  8250. SpawnRot = floatstr(var_from_line);
  8251. index = token_by_delim(line,var_from_line,',',index+1);
  8252. if(index == (-1)) continue;
  8253. Color1 = strval(var_from_line);
  8254.  
  8255. index = token_by_delim(line,var_from_line,';',index+1);
  8256. Color2 = strval(var_from_line);
  8257.  
  8258. CreateVehicle(vehicletype,SpawnX,SpawnY,SpawnZ+1,SpawnRot,Color1,Color2,15);
  8259.  
  8260. AddStaticVehicle(vehicletype,SpawnX,SpawnY,SpawnZ+1,SpawnRot,Color1,Color2);
  8261. vehicles_loaded++;
  8262. }
  8263. fclose(file_ptr);
  8264. printf("Loaded %d vehicles from: %s",vehicles_loaded,filename);
  8265. return vehicles_loaded;
  8266. }
  8267.  
  8268. stock token_by_delim(const string[], return_str[], delim, start_index)
  8269. {
  8270. new x=0;
  8271. while(string[start_index] != EOS && string[start_index] != delim) {
  8272. return_str[x] = string[start_index];
  8273. x++;
  8274. start_index++;
  8275. }
  8276. return_str[x] = EOS;
  8277. if(string[start_index] == EOS) start_index = (-1);
  8278. return start_index;
  8279. }
  8280.  
  8281. stock udb_hash(buf[])
  8282. {
  8283. new length=strlen(buf);
  8284. new s1 = 1;
  8285. new s2 = 0;
  8286. new n;
  8287. for (n=0; n<length; n++)
  8288. {
  8289. s1 = (s1 + buf[n]) % 65521;
  8290. s2 = (s2 + s1) % 65521;
  8291. }
  8292. return (s2 << 16) + s1;
  8293. }
Add Comment
Please, Sign In to add comment