Guest User

Untitled

a guest
Mar 18th, 2018
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 379.81 KB | None | 0 0
  1. /*
  2. To all old/new/expired/any old developers, owners of this script, Thank you..
  3. If I missed your name in CMD:Credits please post it in the thread :P
  4. Zombie Apocalypse by KevY and other old developers
  5. Thanks to all of the old developers and me(ZombieNest) = KevY
  6. This gamemode still has some bugs but it works fine and it has new classes
  7. Also VIP Classes more, Samurai's etc..
  8. If you like it, I'll really appreciate it and don't forget to remove the credits bro..
  9. If you are editing the script with permission you can't remove any credits, Just add your name.
  10. Also new admin commands..
  11. F3atures
  12. -New VIP Levels
  13. -New Admin Commands
  14. -New Classes
  15. -New VIP Classes
  16. -New Connect Song
  17. -New nightmare mode
  18. -Vampire and Nemesis class(Only in nightmare mode)
  19. -Fully protected server
  20. -Registered
  21. -Player Textdraws
  22. -New HP Bar Textdraw
  23. -Admin Classes(Depending Levels)
  24. -Custom Songs/Music/Sounds
  25. -Tons of features
  26. So please if you find any bugs, PM me at skype @ kevin.hendrews or write at the thread
  27. */
  28.  
  29.  
  30. native WP_Hash(buffer[], len, const str[]);
  31.  
  32. #include <a_samp>
  33. #include <zcmd>
  34. #include <sscanf2>
  35. #include <streamer>
  36. #include <foreach>
  37. #include <YSI\y_ini>
  38. #include <KickBan>
  39. #include <irc>
  40. #include <Dini>
  41.  
  42. // Defines
  43. #define function%0(%1) forward%0(%1);public%0(%1)
  44. #define NON_IMMUNE 69,14,261,2,107,11,125,6,299,43,12,13,280,230,274,27,25,95,260,149,29,161,76,23,115,287,67,200,204
  45. #define MAX_MAPTIME 250
  46. #define MAX_RESTART_TIME 10000
  47. #define MAX_MAPUPDATE_TIME 1450
  48. #define MAX_SHOW_CP_TIME 1000
  49. #define MAX_END_TIME 60000
  50. #define MAX_BALANCERUPDATE_TIME 6000
  51. #define MAX_MAP_FILES 50
  52. #define SCM SendClientMessage
  53. #define SCMTA SendClientMessageToAll
  54. #define COLOR_GRAD5 0xE3E3E3FF
  55. #define GRAD5 0xE3E3E3FF
  56. #define KEY_AIM KEY_HANDBRAKE
  57.  
  58. #define Grey 0xC0C0C0FF // Defining the color 'Grey'
  59. // Reaction Test Script
  60. #define Loop(%0,%1) for(new %0 = 0; %0 != %1; %0++)
  61. #define PURPLE 0xAFAFAFAA // Don't care this is Grey
  62. #define GREEN 0x33CCFFAA // Don't care this is Light Blue
  63. #define TIME 180000 //180000
  64. #define GOD (Float:0x7F800000)
  65.  
  66. #define COLOR_POWDERBLUE 0xB0E0E6FF
  67. #define COLOR_PURPLE 0x800080FF
  68. // Reaction Test Script
  69.  
  70. new String[128], Float:SpecX[MAX_PLAYERS], Float:SpecY[MAX_PLAYERS], Float:SpecZ[MAX_PLAYERS], vWorld[MAX_PLAYERS], Inter[MAX_PLAYERS];
  71. new IsSpecing[MAX_PLAYERS], Name[MAX_PLAYER_NAME], IsBeingSpeced[MAX_PLAYERS],spectatorid[MAX_PLAYERS];
  72. new saidhi[MAX_PLAYERS];
  73. new rcused[MAX_PLAYERS];
  74. new vampiresucked[MAX_PLAYERS];
  75. new nightmare;
  76. new isInvisible[MAX_PLAYERS];
  77. new AutoSprint[MAX_PLAYERS];
  78. new PlayerText:ftxd[MAX_PLAYERS];
  79. new PlayerText:stxd[MAX_PLAYERS];
  80. new PlayerText:ttxd[MAX_PLAYERS];
  81. new PlayerText:frtxd[MAX_PLAYERS];
  82. new PlayerText:fhtxd[MAX_PLAYERS];
  83. new PlayerText:sitxd[MAX_PLAYERS];
  84. new PlayerText:sntxd[MAX_PLAYERS];
  85. new JustSpawned[MAX_PLAYERS];
  86.  
  87. forward OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost, weaponid);
  88. forward ExplosionM1(playerid);
  89. forward ExplosionM2(playerid);
  90. forward ExplosionM3(playerid);
  91. forward ExplosionM4(playerid);
  92. forward ExplosionM5(playerid);
  93. forward ExplosionM6(playerid);
  94. forward PlayerGotConnected(playerid);
  95.  
  96. #define PRESSED(%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
  97. #define RELEASED(%0)(((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
  98. #define HOLDING(%0) ((newkeys & (%0)) == (%0))
  99. #define PATH "/Data/pAccounts/%s.dtf"
  100. #define NAME "WORK IN PROGRESS"
  101. #define SCRIPT "Reloaded"
  102. #define SCRIPTER "KevY"
  103. #define SITE "SOON"
  104. #define chat "•º•{FFFFFF}»"
  105. #define PLAYER_MUTE_TIME_MINUTES (1)
  106.  
  107. #define DIALOG_REGISTER 0
  108. #define DIALOG_LOGIN 1
  109. #define DIALOG_RADIO 2
  110. #define DIALOG_KICK 3
  111. #define DIALOG_TOP 4
  112. #define DIALOG_WARN 5
  113. #define DIALOG_BANNED 6
  114. #define DIALOG_CMDS 7
  115. #define DIALOG_HELP 8
  116. #define DIALOG_HOWTOXP 9
  117. #define DIALOG_ACMDS 10
  118. #define DIALOG_RULES 11
  119. #define DIALOG_CLASS 12
  120. #define DIALOG_CLASS2 13
  121. #define DIALOG_CLASS_2 14
  122. #define DIALOG_CLASS_2_2 15
  123. #define DIALOG_CLASS_3 16
  124. #define DIALOG_CLASS_3_3 17
  125. #define DIALOG_ADMINS 18
  126. #define DIALOG_VIPS 19
  127. #define DIALOG_REPORT 20
  128. #define DIALOG_REPORT_2 21
  129. #define DIALOG_SHOUT 22
  130. #define DIALOG_VIPINFO 23
  131. #define DIALOG_VIP 24
  132. #define DIALOG_VIP_CLASS 25
  133. #define DIALOG_COINS 26
  134. #define DIALOG_BUY_WEAPONS 27
  135. #define DIALOG_BUY_CLASSES 28
  136. #define DIALOG_XP 30
  137. #define DIALOG_RADIO_1 31
  138. #define DIALOG_VIP2 32
  139. #define DIALOG_ACLASS 33
  140. #define DIALOG_VIP_ZCLASS 34
  141. #define DIALOG_CLASS_4_1 991
  142. #define DIALOG_CLASS_4_2 992
  143. #define DIALOG_CLASS4 990
  144.  
  145. #define TEAM_ZOMBIE 0
  146. #define TEAM_HUMAN 1
  147.  
  148. #define ENDCHAT_01 0
  149.  
  150. #define COLOR_HUMAN 0x33CCFFAA
  151. #define COLOR_ZOMBIE 0x9ACD3244
  152. #define COLOR_ADUTY 0xFF0000AA
  153.  
  154. #define COLOR_GREY 0xAFAFAFAA
  155. #define ROSA 0xFF66FFAA
  156. #define BLU_CHIARO 0x00BFFFAA
  157. #define COLOR_GREY 0xAFAFAFAA
  158. #define COLOR_GREEN 0x33AA33AA
  159. #define COLOR_RED 0xFF0000AA
  160. #define COLOR_YELLOW 0xFFFF00AA
  161. #define COLOR_WHITE 0xFFFFFFAA
  162. #define COLOR_BLUE 0x0000BBAA
  163. #define COLOR_LIGHTBLUE 0x33CCFFAA
  164. #define COLOR_ORANGE 0xFF9900AA
  165. #define COLOR_LIME 0x10F441AA
  166. #define COLOR_MAGENTA 0xFF00FFFF
  167. #define COLOR_NAVY 0x000080AA
  168. #define COLOR_AQUA 0xFF000000
  169. #define COLOR_CRIMSON 0xDC143CAA
  170. #define COLOR_FLBLUE 0x6495EDAA
  171. #define COLOR_BISQUE 0xFFE4C4AA
  172. #define COLOR_BLACK 0x000000AA
  173. #define COLOR_CHARTREUSE 0x7FFF00AA
  174. #define COLOR_BROWN 0xA52A2AAA
  175. #define COLOR_CORAL 0xFF7F50AA
  176. #define COLOR_GOLD 0xB8860BAA
  177. #define COLOR_GREENYELLOW 0xADFF2FAA
  178. #define COLOR_INDIGO 0x4B00B0AA
  179. #define COLOR_IVORY 0xFFFF82AA
  180. #define COLOR_LAWNGREEN 0x7CFC00AA
  181. #define COLOR_SEAGREEN 0x20B2AAAA
  182. #define COLOR_LIMEGREEN 0x32CD32AA //<--- Dark lime
  183. #define COLOR_MIDNIGHTBLUE 0X191970AA
  184. #define COLOR_MAROON 0x800000AA
  185. #define COLOR_OLIVE 0x808000AA
  186. #define COLOR_ORANGERED 0xFF4500AA
  187. #define COLOR_PINK 0xFFC0CBAA // - Light light pink
  188. #define COLOR_SPRINGGREEN 0x00FF7FAA
  189. #define COLOR_TOMATO 0xFF6347AA // - Tomato >:/ sounds wrong lol... well... :P
  190. #define COLOR_YELLOWGREEN 0x9ACD32AA //- like military green
  191. #define COLOR_MEDIUMAQUA 0x83BFBFAA
  192. #define COLOR_MEDIUMMAGENTA 0x8B008BAA // dark magenta ^^
  193.  
  194. // Human Classes (New Classes were ADDED)
  195. #define CIVILIAN 1501
  196. #define POLICEMAN 1502
  197. #define MEDIC 1503
  198. #define SCOUT 1504
  199. #define HEAVYMEDIC 1505
  200. #define FARMER 1506
  201. #define ENGINEER 1507
  202. #define SWAT 1508
  203. #define HEAVYSHOTGUN 1509
  204. #define ADVANCEDMEDIC 1510
  205. #define ADVANCEDENGINEER 1511
  206. #define FEDERALAGENT 1512
  207. #define KICKBACK 1513
  208. #define ADVANCEDSCOUT 1514
  209. #define COWBOY 1515
  210. #define ASSASSIN 1516
  211. #define TRAPMASTER 1517
  212. #define VIPENGINEER 1518
  213. #define VIPMEDIC 1519
  214. #define VIPSCOUT 1520
  215. #define E_ENGINEER 1521
  216. #define SOLDIER 1522
  217. #define DOCTOR 1523
  218. #define FBI 1524
  219. #define SCIENTIST 1525
  220. #define EXPERIENCEDSCOUT 1526
  221. #define PIMP 1527
  222. #define WEAPONSDEALER 1528
  223. #define SMOKEUP 1529
  224. #define SHOTGUNSPECIAL 1530
  225. #define BOXER 1231
  226. #define BOMBER 1232
  227. #define MASTER 1233
  228. #define GHOST 1234
  229. #define BUDDY 1235
  230. #define AKICK 1236
  231. #define TECG 1237
  232. #define BULL 1238
  233. #define MARINE 1239
  234. #define SAMURAI 1240
  235. #define VIPSAMURAI 1241
  236. #define STARS 1242
  237. #define INVISIBLA 1243
  238. #define MAFIASOBB 1244
  239. #define GENERAL 1245
  240. #define MARTIALCOACH 1246
  241. #define SUPERHUMAN 1247
  242.  
  243.  
  244. // Zombie Classes (New classes)
  245. #define STANDARDZOMBIE 2501
  246. #define MUTATEDZOMBIE 2502
  247. #define FASTZOMBIE 2503
  248. #define REAPERZOMBIE 2504
  249. #define WITCHZOMBIE 2505
  250. #define BOOMERZOMBIE 2506
  251. #define STOMPERZOMBIE 2507
  252. #define SCREAMERZOMBIE 2508
  253. #define FIREBREATHER 2509
  254. #define ADVANCEDMUTATED 2510
  255. #define HEAVYSCREAMER 2511
  256. #define FLESHEATER 2512
  257. #define ADVANCEDWITCH 2513
  258. #define ADVANCEDBOOMER 2514
  259. #define NEMESIS 2515
  260. #define ADVSTOMPER 2516
  261. #define ADVSCREAMER 2517
  262. #define HZOMBIE 2518
  263. #define SLENDER 2519
  264. #define KZOM 2520
  265. #define VAMPIRE 2522
  266. #define RELITE 2523
  267. #define LEECH 2524
  268.  
  269. #define COL_WHITE "{FFFFFF}"
  270. #define COL_GREY "{C3C3C3}"
  271. #define COL_GREEN "{37DB45}"
  272. #define COL_RED "{FF3333}"
  273. #define COL_YELLOW "{F3FF02}"
  274. #define COL_ORANGE "{F9B857}"
  275. #define COL_BLUE "{0049FF}"
  276. #define COL_PINK "{FF00EA}"
  277. #define COL_LIGHTBLUE "{00C0FF}"
  278. #define COL_LGREEN "{C9FFAB}"
  279.  
  280.  
  281. forward NoSpawnKill(playerid);
  282.  
  283. // Variables
  284. new time;
  285. new mapvar;
  286. new balvar;
  287. new mapid;
  288. new gateobj;
  289. new playerOnline;
  290. new playersAliveCount;
  291. new DocShield;
  292. new Trap;
  293. new meatDrops[MAX_PLAYERS];
  294. new ammoDrops[MAX_PLAYERS];
  295. new LastMapStarted = -1;
  296. new PlayerPressedJump[MAX_PLAYERS];
  297.  
  298. new playedtimer[MAX_PLAYERS];
  299. new team[MAX_PLAYERS];
  300. new c4Obj[MAX_PLAYERS];
  301. new smokemachine[MAX_PLAYERS];
  302. new PlayerShotPlayer[MAX_PLAYERS][MAX_PLAYERS];
  303.  
  304. new Text:EventText;
  305. new Text:CurrentMap;
  306. new Text:remadeText;
  307. new Text:remadeText2;
  308. new Text:AliveInfo;
  309. new Text:AliveInfo2;
  310. new Text:ChatMsg;
  311. new Text:TimeLeft;
  312. new Text:XP;
  313. new Text:Infected[MAX_PLAYERS];
  314. new Text:iKilled[MAX_PLAYERS];
  315. new Text:myXP[MAX_PLAYERS];
  316. new Text:ServerIntroOne[MAX_PLAYERS];
  317. new Text:ServerIntroTwo[MAX_PLAYERS];
  318. new shoutstring[256];
  319. new Text:Textdraw0;
  320. new Text:Textdraw1;
  321. new Text:Textdraw2;
  322. new Text:Textdraw4;
  323. new Text:Textdraw5;
  324. new Text:Textdraw7;
  325. new Text:Textdraw8;
  326. new Text:Textdraw9;
  327. new Text:MapStatBox;
  328.  
  329. enum mapinfo
  330. {
  331. MapName[128],
  332. FSMapName[128],
  333. Float:HumanSpawnX,
  334. Float:HumanSpawnY,
  335. Float:HumanSpawnZ,
  336. Float:HumanSpawn2X,
  337. Float:HumanSpawn2Y,
  338. Float:HumanSpawn2Z,
  339. Float:ZombieSpawnX,
  340. Float:ZombieSpawnY,
  341. Float:ZombieSpawnZ,
  342. Float:GateX,
  343. Float:GateY,
  344. Float:GateZ,
  345. Float:GaterX,
  346. Float:GaterY,
  347. Float:GaterZ,
  348. Float:CPx,
  349. Float:CPy,
  350. Float:CPz,
  351. GateID,
  352. MoveGate,
  353. AllowWater,
  354. Interior,
  355. Weather,
  356. Time,
  357. EvacType,
  358. IsStarted,
  359. XPType,
  360. };
  361. new Map[mapinfo];
  362.  
  363. enum playerinfo
  364. {
  365. pPassword[129],
  366. pXP,
  367. ReadCmds,
  368. pKills,
  369. pDeaths,
  370. pRank,
  371. pEvac,
  372. pAdminLevel,
  373. pAdminDuty,
  374. pBanned,
  375. gLeader,
  376. gMember,
  377. pStarMember,
  378. pStarLeader,
  379. pVIPLevel,
  380. pHour,
  381. pMin,
  382. pSec,
  383. pMapsPlayed,
  384. pCoins,
  385. pLogged,
  386. pWarnings,
  387. FirstPS,
  388. pPM,
  389. IsPlayerMuted,
  390. Killstreak,
  391. pHumanClass,
  392. pZombieClass,
  393. IsPlayerInfected,
  394. IsPlayerInfectedTimer,
  395. Boxes,
  396. BoxesAdvanced,
  397. SkinChanges,
  398. ArmourChanges,
  399. C4,
  400. traps,
  401. pVIPKickBack,
  402. pVIPFlash,
  403. pVIPBoxes,
  404. pLadders,
  405. pFakeKills,
  406. pAmmoBoxes,
  407. pKickBackCoin,
  408. pDamageShotgunCoin,
  409. pDamageDeagleCoin,
  410. pDamageMP5Coin,
  411. pDoctorShield,
  412. pRenamed,
  413. pTrapMasterTrap,
  414. pScientistCure,
  415. Frozen
  416. };
  417. new pInfo[MAX_PLAYERS][playerinfo];
  418.  
  419. enum aname
  420. {
  421. HighJumpScout,
  422. HighJumpZombie,
  423. StomperPushing,
  424. WitchAttack,
  425. ScreamerZombieAb,
  426. ScreamerZombieAb2,
  427. InfectionNormal,
  428. InfectionMutated,
  429. ShoutCooldown,
  430. HealCoolDown,
  431. FireBreatherCooldown,
  432. NemesisCooldown,
  433. AdvancedMutatedCooldown,
  434. WitchAttack2,
  435. InfectionFleshEater
  436. }
  437. new Abilitys[MAX_PLAYERS][aname];
  438.  
  439. new randomMessages[][] =
  440. {
  441. ""chat""COL_BLUE" [†] "COL_WHITE"Earn XP by killing the enemy team or using your ability and donating for double XP!",
  442. ""chat""COL_BLUE" [†] "COL_WHITE"Are you lost are you new? try out the command '/help' and /vinfo",
  443. ""chat""COL_BLUE" [†] "COL_WHITE"Got bugged? Cant move a single cm? try out /rbug",
  444. //""chat""COL_BLUE" [Wass up] "COL_WHITE"Good news We are offering free vip level 1 now!! For more info type /vhelp and /vinfo",
  445. ""chat""COL_RED" [†] "COL_WHITE"Remember to report hackers and rule breakers with /report <id> <reason>",
  446. ""chat""COL_BLUE" [†] "COL_WHITE"Remember to read the rules to prevent you from getting banned /rules",
  447. ""chat""COL_BLUE" [†] "COL_WHITE"Remember to use /ss command to save your stats to avoid losing XP",
  448. ""chat""COL_BLUE" [†] "COL_WHITE"Got bugged? Cant move a single cm? try out /rbug",
  449. //""chat""COL_BLUE" [Wass up] "COL_WHITE"Good news We are offering free vip level 1 now!! For more info type /vhelp and /vinfo",
  450. ""chat""COL_BLUE" [†] "COL_WHITE"Having problem with objects ? Try out /robj to remove them (only for humans)",
  451. ""chat""COL_RED" [†] "COL_WHITE"Do NOT attack your team mates or you will be punished!",
  452. ""chat""COL_RED" [†] "COL_WHITE"Report hackers and rule breakers with /report <id> <reason> , DO NOT SAY IT IN MAIN CHAT",
  453. //""chat""COL_BLUE" [Wass up] "COL_WHITE"Good news We are offering free vip level 1 now!! For more info type /vhelp",
  454. ""chat""COL_LGREEN" [†] "COL_WHITE"To get VIP you should donate for the packages",
  455. ""chat""COL_BLUE" [†] "COL_WHITE"Always respect other players if you want to be hero in front of them",
  456. ""chat""COL_BLUE" [†] "COL_WHITE"Need help? Try out /help",
  457. ""chat""COL_BLUE" [†] "COL_WHITE"Having problem with objects ? Try out /robj to remove them (only for humans)",
  458. //""chat""COL_BLUE" [Wass up] "COL_WHITE"Good news We are offering free vip level 1 now!! For more info type /vhelp and /vinfo",
  459. ""chat""COL_ORANGE" [†] "COL_WHITE"If you find a bug please report it on our forum "COL_ORANGE" "SITE"",
  460. ""chat""COL_LGREEN" [†] "COL_WHITE"You can buy weapons, classes, objects,etc "COL_WHITE" ' /buy ' command",
  461. ""chat""COL_BLUE" [†] "COL_WHITE"Got bugged? Cant move a single cm? try out /rbug",
  462. ""chat""COL_BLUE" [†] "COL_WHITE"Use /radio for super epic songs!",
  463. ""chat""COL_BLUE" [†] "COL_WHITE"Use /radio for super epic songs!",
  464. ""chat""COL_BLUE" [†] "COL_WHITE"Use /radio for super epic songs!",
  465. ""chat""COL_YELLOW" [†] "COL_WHITE"We did an aditional class menu "COL_WHITE" ' /class3 ' "COL_WHITE" make sure you check it out!",
  466. ""chat""COL_BLUE" [†] "COL_WHITE"Having problem with objects ? Try out /robj to remove them (only for humans)",
  467. //""chat""COL_BLUE" [Whats up] "COL_WHITE"Good news We are offering free vip level 1 now!! For more info type /vhelp",
  468. ""chat""COL_RED" [†] "COL_WHITE"Do NOT spawn kill zombies, else you will be punished and even banned if you keep doing it!",
  469. ""chat""COL_BLUE" [†] "COL_WHITE"Earn xp and unlock new classes. Try out /class2 and /class3!!",
  470. ""chat""COL_BLUE" [†] "COL_WHITE"Got bugged? Cant move a single cm? try out /rbug",
  471. ""chat""COL_ORANGE" [†] "COL_WHITE"/report all the hackers",
  472. ""chat""COL_BLUE" [†] "COL_WHITE"Need help? try out /help or ask any online admin",
  473. //""chat""COL_BLUE" [Wass up] "COL_WHITE"Good news We are offering free vip level 1 now!! For more info type /vhelp and /vinfo",
  474. ""chat""COL_YELLOW" [†] "COL_WHITE"Remember to use /ss command to save your stats to avoid losing XP"
  475. };
  476.  
  477. forward load_Map_basic(Mapid, name[], value[]);
  478. forward LoadUser_data(playerid,name[],value[]);
  479. forward TimeOnServer(playerid);
  480. forward Float:GetDistanceBetweenPlayers(p1,p2);
  481. forward GetClosestPlayer(p1);
  482. forward RandomZombie();
  483.  
  484. main()
  485. {
  486. print("\n----------------------------------");
  487. print(""NAME" Loaded with version of "SCRIPT"");
  488. print("----------------------------------\n");
  489. }
  490.  
  491. function StartMap()
  492. {
  493. ClearChat();
  494. foreach(Player,i)
  495. {
  496. SetCameraBehindPlayer(i);
  497. ClearAnimations(i);
  498. HumanSetup(i);
  499. SpawnPlayer(i);
  500. CurePlayer(i);
  501. SetPlayerDrunkLevel(i,0);
  502. DisablePlayerCheckpoint(i);
  503. pInfo[i][Boxes] = 4;
  504. pInfo[i][BoxesAdvanced] = 4;
  505. pInfo[i][SkinChanges] = 1;
  506. pInfo[i][ArmourChanges] = 1;
  507. pInfo[i][pVIPBoxes] = 4;
  508. pInfo[i][pLadders] = 2;
  509. pInfo[i][pFakeKills] = 0;
  510. pInfo[i][pAmmoBoxes] = 10;
  511. pInfo[i][C4] = 1;
  512. pInfo[i][pTrapMasterTrap] = 1;
  513. pInfo[i][pScientistCure] = 1;
  514. pInfo[i][pDoctorShield] = 1;
  515. pInfo[i][pMapsPlayed]++;
  516. TextDrawHideForPlayer(i, ServerIntroOne[i]);
  517. TextDrawHideForPlayer(i, ServerIntroTwo[i]);
  518. DestroyPickup(meatDrops[i]);
  519. DestroyPickup(ammoDrops[i]);
  520. DestroyObject(DocShield);
  521. DestroyObject(Trap);
  522. TogglePlayerControllable(i,1);
  523. }
  524.  
  525. time = MAX_MAPTIME;
  526.  
  527. SetWeather(Map[Weather]);
  528. SetWorldTime(Map[Time]);
  529. UpdateMapName();
  530. SendClientMessageToAll(-1,""chat""COL_LGREEN" [†]"COL_WHITE" Chat Cleared "COL_YELLOW"[Reason: Switched Maps]");
  531. new rmap = random(20);
  532. mapid = rmap;
  533.  
  534. SetTimer("RandomZombie",1000,false);
  535. gateobj = CreateObject(Map[GateID],Map[GateX],Map[GateY],Map[GateZ],Map[GaterX],Map[GaterY],Map[GaterZ],500.0);
  536. mapvar = SetTimer("OnMapUpdate",MAX_MAPUPDATE_TIME,true);
  537. balvar = SetTimer("OnMapBalance",MAX_BALANCERUPDATE_TIME,true);
  538. return 1;
  539. }
  540.  
  541. function EndMap(playerid)
  542. {
  543. ClearObjects();
  544. DestroyAllVehicle();
  545. UnloadFilterScript(Map[FSMapName]);
  546. LoadMap(LoadNewMap());
  547. LoadFilterScript(Map[FSMapName]);
  548.  
  549. SetTimer("StartMap",MAX_RESTART_TIME,false);
  550. GameTextForAll("~n~~n~~n~~n~~n~~g~Loading~w~ next map",3500,5);
  551.  
  552. foreach(Player,i)
  553. {
  554. ChangeCameraView(i);
  555. TogglePlayerControllable(i,0);
  556. TextDrawShowForPlayer(i, ServerIntroOne[i]);
  557. TextDrawShowForPlayer(i, ServerIntroTwo[i]);
  558.  
  559. if(pInfo[i][pAdminDuty] == 1)
  560. {
  561. pInfo[i][pAdminDuty] = 0;
  562. }
  563. }
  564. SendClientMessageToAll(-1,""chat""COL_YELLOW" Initalizing the map..");
  565. rcused[playerid] = 0;
  566. pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = CIVILIAN,setClass(playerid);
  567. return 1;
  568. }
  569.  
  570. function OnMapUpdate()
  571. {
  572. time -= 1;
  573.  
  574. new str[64];
  575. format(str,sizeof(str),"~r~%d",time);
  576. TextDrawSetString(Textdraw1,str);
  577.  
  578. if(time <= 0) TextDrawSetString(Textdraw1,"~b~Evac has reached!"),KillTimer(mapvar),KillTimer(balvar),SetTimer("ShowCheckpoint",MAX_SHOW_CP_TIME,false),SendClientMessageToAll(COLOR_GRAD5,""COL_LGREEN"EVAC: Evacuation bus has arrived!, Get into the marker to go to the evac!");
  579. return 1;
  580. }
  581.  
  582. function ShowCheckpoint()
  583. {
  584. CreateEvacMaps();
  585. MoveObject(gateobj,Map[GateX],Map[GateY],Map[MoveGate],3.0);
  586. foreach(Player,i) SetPlayerCheckpoint(i,Map[CPx],Map[CPy],Map[CPz],6.0);
  587. SetTimer("EndMap",MAX_END_TIME,false);
  588. return 1;
  589. }
  590.  
  591. function OnMapBalance()
  592. {
  593. if(playerOnline >= 2)
  594. {
  595. if(GetTeamPlayersAlive(TEAM_HUMAN) == 0)
  596. {
  597. KillTimer(balvar);
  598. KillTimer(mapvar);
  599. TextDrawSetString(Textdraw1,"~r~Zombies won!");
  600. SendClientMessageToAll(COLOR_RED, "Seems like all humans are dead?! Well done zombies!");
  601. SetTimer("EndMap",4000,false);
  602. foreach(Player,i)
  603. {
  604. if(team[i] == TEAM_ZOMBIE)
  605. {
  606. pInfo[i][pXP] += 350;
  607. GivePlayerXP(i,350);
  608. }
  609. }
  610. }
  611. }
  612. return 1;
  613. }
  614.  
  615. public ExplosionM1(playerid)
  616. {
  617. new Float:x, Float:y, Float:z;
  618. GetPlayerPos(playerid, x, y, z);
  619. CreateExplosion(x, y, z, 8, 10);
  620. return 1;
  621. }
  622.  
  623. public ExplosionM2(playerid)
  624. {
  625. new Float:x, Float:y, Float:z;
  626. GetPlayerPos(playerid, x, y, z);
  627. CreateExplosion(x, y, z, 8, 10);
  628. return 1;
  629. }
  630.  
  631. public ExplosionM3(playerid)
  632. {
  633. new Float:x, Float:y, Float:z;
  634. GetPlayerPos(playerid, x, y, z);
  635. CreateExplosion(x, y, z, 8, 10);
  636. return 1;
  637. }
  638.  
  639. public ExplosionM4(playerid)
  640. {
  641. new Float:x, Float:y, Float:z;
  642. GetPlayerPos(playerid, x, y, z);
  643. CreateExplosion(x, y, z, 8, 10);
  644. return 1;
  645. }
  646.  
  647. public ExplosionM5(playerid)
  648. {
  649. new Float:x, Float:y, Float:z;
  650. GetPlayerPos(playerid, x, y, z);
  651. CreateExplosion(x, y, z, 8, 10);
  652. return 1;
  653. }
  654.  
  655. public ExplosionM6(playerid)
  656. {
  657. new Float:x, Float:y, Float:z;
  658. GetPlayerPos(playerid, x, y, z);
  659. CreateExplosion(x, y, z, 8, 30);
  660. return 1;
  661. }
  662.  
  663. public OnPlayerEnterCheckpoint(playerid)
  664. {
  665. if(team[playerid] == TEAM_HUMAN)
  666. {
  667. new string[256];
  668. if(Map[EvacType] == 1)
  669. {
  670. SetPlayerInterior(playerid,0);
  671. SetPlayerPos(playerid,-1408.2051,-970.8841,198.9738);
  672. format(string,sizeof(string), ""chat""COL_LIGHTBLUE" %s made it to evacuation point and has received 1 coin!",PlayerName(playerid));
  673. SendClientMessageToAll(-1,string);
  674. DisablePlayerCheckpoint(playerid);
  675. CurePlayer(playerid);
  676. GivePlayerXP(playerid,500);
  677. pInfo[playerid][pEvac]++;
  678. pInfo[playerid][pCoins]++;
  679. SetPlayerColor(playerid,COLOR_YELLOW);
  680. }
  681.  
  682. if(Map[EvacType] == 2)
  683. {
  684. SetPlayerPos(playerid,3024.4983,447.9744,14.7813);
  685. SetPlayerInterior(playerid,0);
  686. format(string,sizeof(string), ""chat""COL_LIGHTBLUE" %s made it to the water evacuation point and has received 1 coin!",PlayerName(playerid));
  687. SendClientMessageToAll(-1,string);
  688. DisablePlayerCheckpoint(playerid);
  689. CurePlayer(playerid);
  690. GivePlayerXP(playerid,500);
  691. pInfo[playerid][pEvac]++;
  692. pInfo[playerid][pCoins]++;
  693. SetPlayerColor(playerid,COLOR_YELLOW);
  694. }
  695.  
  696. if(Map[EvacType] == 3)
  697. {
  698. SetPlayerPos(playerid,285.5,2510.30004882817,121.5);
  699. SetPlayerInterior(playerid,0);
  700. format(string,sizeof(string), ""chat""COL_LIGHTBLUE" %s made it to the helicopter evacuation point and has received 1 coin!",PlayerName(playerid));
  701. SendClientMessageToAll(-1,string);
  702. DisablePlayerCheckpoint(playerid);
  703. CurePlayer(playerid);
  704. GivePlayerXP(playerid,500);
  705. pInfo[playerid][pEvac]++;
  706. pInfo[playerid][pCoins]++;
  707. SetPlayerColor(playerid,COLOR_YELLOW);
  708. }
  709.  
  710. if(Map[EvacType] == 4)
  711. {
  712. SetPlayerPos(playerid,1456.3000488281,-1126,427.10000610352);///By Fahad
  713. SetPlayerInterior(playerid,0);
  714. format(string,sizeof(string), ""chat""COL_LIGHTBLUE" %s made it to the Parachute evacuation point and has received 1 coin!",PlayerName(playerid));
  715. SendClientMessageToAll(-1,string);
  716. DisablePlayerCheckpoint(playerid);
  717. CurePlayer(playerid);
  718. GivePlayerXP(playerid,5500);
  719. pInfo[playerid][pEvac]++;
  720. pInfo[playerid][pCoins]++;
  721. SetPlayerColor(playerid,COLOR_YELLOW);
  722.  
  723. }
  724. }
  725. return 1;
  726. }
  727.  
  728. public OnPlayerPickUpPickup(playerid, pickupid)
  729. {
  730. new string[256];
  731. DestroyPickup(meatDrops[playerid]);
  732. if(team[playerid] == TEAM_ZOMBIE)
  733. {
  734. if(pInfo[playerid][pZombieClass] == BOOMERZOMBIE) { SetPlayerHealth(playerid,50); }
  735. else { SetPlayerHealth(playerid,100.0); }
  736. }
  737.  
  738. if(team[playerid] == TEAM_HUMAN)
  739. {
  740. 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)
  741. {
  742. switch(pInfo[playerid][pHumanClass])
  743. {
  744. case ENGINEER: pInfo[playerid][Boxes]++,GameTextForPlayer(playerid,"~g~Found~w~: 1 Box",4000,5),DestroyPickup(meatDrops[playerid]);
  745. case ADVANCEDENGINEER: pInfo[playerid][BoxesAdvanced] += 2,GameTextForPlayer(playerid,"~g~Found~w~: 2 Boxes",4000,5),DestroyPickup(meatDrops[playerid]);
  746. case VIPENGINEER: pInfo[playerid][pVIPBoxes] += 3,GameTextForPlayer(playerid,"~g~Found~w~: 3 Boxes",4000,5),DestroyPickup(meatDrops[playerid]);
  747. case E_ENGINEER: pInfo[playerid][pLadders] += 1,GameTextForPlayer(playerid,"~g~Found~w~: 1 Ladders",4000,5),DestroyPickup(meatDrops[playerid]);
  748. case TRAPMASTER: pInfo[playerid][pTrapMasterTrap] += 1,GameTextForPlayer(playerid,"~g~Found~w~: 1 trap",4000,5),DestroyPickup(meatDrops[playerid]);
  749. case BOMBER: pInfo[playerid][pXP] += 10,GameTextForPlayer(playerid,"~g~Found~w~: 10 xp",4000,5),DestroyPickup(meatDrops[playerid]);
  750. }
  751. }
  752. else
  753. {
  754. if(pInfo[playerid][IsPlayerInfected] == 0)
  755. {
  756. new slot, weap, ammo;
  757. for ( slot = 0; slot < 14; slot++ )
  758. {
  759. GetPlayerWeaponData(playerid,slot,weap,ammo);
  760. if(IsValidWeapon(weap))
  761. {
  762. new randomselect = random(2);
  763. switch(randomselect)
  764. {
  765. case 0:
  766. {
  767. new randomammo = random(50);
  768. GivePlayerWeapon(playerid,weap,randomammo);
  769. format(string,sizeof(string),"~g~Found~w~: %d ammo",randomammo);
  770. GameTextForPlayer(playerid,string,4000,5);
  771. DestroyPickup(meatDrops[playerid]);
  772. }
  773. case 1:
  774. {
  775. new randomxp = random(35);
  776. format(string,sizeof(string),"~g~Found~w~: %d XP",randomxp);
  777. GameTextForPlayer(playerid,string,4000,5);
  778. pInfo[playerid][pXP] += randomxp;
  779. DestroyPickup(meatDrops[playerid]);
  780. }
  781. }
  782. }
  783. }
  784. }
  785. }
  786. }
  787.  
  788. return 1;
  789. }
  790.  
  791. public OnGameModeInit()
  792. {
  793. UsePlayerPedAnims();
  794. SetGameModeText("Zombie Apocalypse "SCRIPT"");
  795. SendRconCommand("weburl """);
  796.  
  797. AddPlayerClass(181, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  798. AllowInteriorWeapons(1);
  799. DisableInteriorEnterExits();
  800. SetTimer("RandomMessages",50000,true);
  801. SetTimer("OnServerUpdate", 1000, true);
  802.  
  803. SetTeamCount(2);
  804.  
  805. Map[IsStarted] = 0;
  806. Map[XPType] = 0;
  807. mapid = 0;
  808. SetWorldTime(0);
  809. SetWeather(12);
  810. DefaultTextdraws();
  811.  
  812. SetTimer("HG",1000,1);
  813. return 1;
  814. }
  815.  
  816. function OnServerUpdate()
  817. {
  818. foreach(Player, i)
  819. {
  820. if(GetPlayerMoney(i) >= 1) return ResetPlayerMoney(i);
  821. SetPlayerScore(i,pInfo[i][pXP]);
  822. UpdateXPTextdraw(i);
  823.  
  824. if(GetPlayerSpecialAction(i) == SPECIAL_ACTION_USEJETPACK)
  825. {
  826. new Admin[24] = "Anti-cheat";
  827. new reason3[128] = "Jetpack";
  828. BanPlayer(i,reason3,Admin);
  829. }
  830.  
  831. new Float:armor;
  832. GetPlayerArmour(i,armor);
  833. if(armor >= 97.0)
  834. {
  835. new Admin[24] = "Anti-cheat";
  836. new reason3[128] = "Armour Hack (Exceeded over 97.0)";
  837. BanPlayer(i,reason3,Admin);
  838. }
  839.  
  840. if(team[i] == TEAM_ZOMBIE)
  841. {
  842. switch(GetPlayerWeapon(i))
  843. {
  844. 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:
  845. {
  846. ResetPlayerWeapons(i);
  847. GivePlayerWeapon(i,9,1);
  848. }
  849. }
  850. }
  851.  
  852. if(team[i] == TEAM_ZOMBIE)
  853. {
  854. if(armor > 0.0)
  855. {
  856. SetPlayerArmour(i,0.0);
  857. }
  858. }
  859.  
  860. if(IsPlayerInAnyVehicle(i))
  861. {
  862. if(pInfo[i][pAdminLevel] == 0)
  863. {
  864. Kick(i);
  865. }
  866. }
  867.  
  868. if(pInfo[i][pVIPFlash] == 1)
  869. {
  870. switch(random(5))
  871. {
  872. case 0: SetPlayerColor(i,COLOR_BLUE);
  873. case 1: SetPlayerColor(i,COLOR_YELLOW);
  874. case 2: SetPlayerColor(i,COLOR_RED);
  875. case 3: SetPlayerColor(i,COLOR_PINK);
  876. case 4: SetPlayerColor(i,COLOR_ORANGE);
  877. }
  878. }
  879. DoctorShield();
  880. TrapMasterTrap();
  881. UpdateAliveInfo();
  882. UpdateAliveInfo2();
  883. }
  884. return 1;
  885. }
  886.  
  887. public OnGameModeExit()
  888. {
  889. TextDrawHideForAll(TimeLeft);
  890. TextDrawDestroy(TimeLeft);
  891. TextDrawDestroy(Textdraw0);
  892. TextDrawHideForAll(Textdraw0);
  893. TextDrawDestroy(Textdraw4);
  894. TextDrawHideForAll(Textdraw4);
  895. TextDrawDestroy(Textdraw5);
  896. TextDrawHideForAll(Textdraw5);
  897. TextDrawDestroy(Textdraw7);
  898. TextDrawHideForAll(Textdraw7);
  899. TextDrawDestroy(Textdraw8);
  900. TextDrawHideForAll(Textdraw8);
  901. TextDrawDestroy(Textdraw9);
  902. TextDrawHideForAll(Textdraw9);
  903. TextDrawDestroy(Textdraw1);
  904. TextDrawDestroy(Textdraw2);
  905. TextDrawHideForAll(Textdraw2);
  906. TextDrawHideForAll(Textdraw1);
  907. TextDrawHideForAll(AliveInfo);
  908. TextDrawDestroy(AliveInfo);
  909. TextDrawHideForAll(AliveInfo2);
  910. TextDrawDestroy(AliveInfo2);
  911. TextDrawHideForAll(remadeText);
  912. TextDrawDestroy(remadeText);
  913. TextDrawHideForAll(remadeText2);
  914. TextDrawDestroy(remadeText2);
  915. TextDrawHideForAll(CurrentMap);
  916. TextDrawHideForAll(ChatMsg);
  917. TextDrawDestroy(CurrentMap);
  918. TextDrawHideForAll(XP);
  919. TextDrawDestroy(XP);
  920. TextDrawHideForAll(EventText);
  921. TextDrawDestroy(EventText);
  922.  
  923. for(new i; i < MAX_PLAYERS; i ++)
  924. {
  925. TextDrawHideForAll(Infected[i]);
  926. TextDrawHideForAll(iKilled[i]);
  927. TextDrawDestroy(iKilled[i]);
  928. TextDrawHideForAll(myXP[i]);
  929. TextDrawDestroy(myXP[i]);
  930. TextDrawHideForAll(ServerIntroOne[i]);
  931. TextDrawDestroy(ServerIntroOne[i]);
  932. TextDrawHideForAll(ServerIntroTwo[i]);
  933. TextDrawDestroy(ServerIntroTwo[i]);
  934. }
  935. return 1;
  936. }
  937.  
  938. public OnPlayerRequestClass(playerid, classid)
  939. {
  940. SetPlayerPos(playerid, 661.6200,-820.1381,86.5092);
  941. SetPlayerFacingAngle(playerid, 227.2857);
  942. SetPlayerCameraLookAt(playerid, 661.6200,-820.1381,86.5092);
  943. SetPlayerCameraPos(playerid, 673.1569,-826.9614,80.5580);
  944. CreateObject(2780,658.29999,-814.70001,85.6,0.0,0.0,0.0);
  945. RemoveBuildingForPlayer(playerid, 705, 658.20313, -818.14062, 85.13281, 0.0);
  946. SetPlayerWeather(playerid, 7);
  947. SetPlayerTime(playerid, 0, 0);
  948. if(classid == 0)
  949. {
  950. SetPlayerTeam(playerid,TEAM_ZOMBIE);
  951. team[playerid] = TEAM_ZOMBIE;
  952. }
  953. return 1;
  954. }
  955.  
  956. public OnPlayerRequestSpawn(playerid) //7:1
  957. {
  958. if(pInfo[playerid][pLogged] == 0 && pInfo[playerid][pAdminLevel] >= 1)
  959. {
  960. SendClientMessage(playerid,COLOR_RED,"You must be logged in.");
  961. Kick(playerid);
  962. }
  963.  
  964. if(pInfo[playerid][pLogged] == 0)
  965. {
  966. new string[128];
  967. GameTextForPlayer(playerid,"~r~YOU MUST LOGIN TO PLAY",1000,4);
  968. if(fexist(UserPath(playerid)))
  969. {
  970. INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
  971. format(string,sizeof(string),""chat" Welcome back %s",PlayerName(playerid));
  972. ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,string,""chat" Our system have detected your username registered please login","Login","Quit");
  973. }
  974. else
  975. {
  976. format(string,sizeof(string),""chat" Hello %s to "NAME"",PlayerName(playerid));
  977. ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,string,""chat" Welcome to "NAME" you'll be forced to register please click register!","Register","Quit");
  978. }
  979. }
  980. return 1;
  981. }
  982.  
  983. stock PossibleHHCheck(playerid)
  984. {
  985. new Float:hp, Float:posx, Float:posy, Float:posz, hhstr[128];
  986. GetPlayerHealth(playerid, Float:hp);
  987. SetPlayerHealth(playerid, 105);
  988. GetPlayerPos(playerid, Float:posx, Float:posy, Float:posz);
  989. CreateExplosion(Float:posx, Float:posy, Float:posz, 12, 2.0);
  990. SetPlayerHealth(playerid, Float:hp-35);
  991. if(Float:hp >= 80)
  992. {
  993. format(hhstr, sizeof(hhstr), ""COL_RED"%s[%d] seems to be possible health hacking! ( PossibleHHCheck(playerid) )",PlayerName(playerid), playerid);
  994. SendMessageToAllAdmins(hhstr);
  995. SendMessageToAllAdmins(""COL_RED"Please spectate him as possible, The results was old hp still! - The results are not fine sometimes! use /nuke instead");
  996. return 1;
  997. }
  998. else
  999. {
  1000. format(hhstr, sizeof(hhstr), ""COL_RED"%s[%d] dosent seems to be possible health hacking! Reverting his old hp! ( PossibleHHCheck(playerid) ) - May be hacking! Results are not correct sometimes, Use /nuke",PlayerName(playerid), playerid);
  1001. SendMessageToAllAdmins(hhstr);
  1002. SetPlayerHealth(playerid, Float:hp+50);
  1003. }
  1004. return 1;
  1005. }
  1006.  
  1007.  
  1008. stock ShowIntroTXD(playerid)
  1009. {
  1010. PlayerTextDrawShow(playerid, ftxd[playerid]);
  1011. PlayerTextDrawShow(playerid, stxd[playerid]);
  1012. PlayerTextDrawShow(playerid, ttxd[playerid]);
  1013. PlayerTextDrawShow(playerid, frtxd[playerid]);
  1014. PlayerTextDrawShow(playerid, fhtxd[playerid]);
  1015. PlayerTextDrawShow(playerid, sitxd[playerid]);
  1016. PlayerTextDrawShow(playerid, sntxd[playerid]);
  1017. return 1;
  1018. }
  1019.  
  1020. stock HideIntroTXD(playerid)
  1021. {
  1022. PlayerTextDrawHide(playerid, ftxd[playerid]);
  1023. PlayerTextDrawHide(playerid, stxd[playerid]);
  1024. PlayerTextDrawHide(playerid, ttxd[playerid]);
  1025. PlayerTextDrawHide(playerid, frtxd[playerid]);
  1026. PlayerTextDrawHide(playerid, fhtxd[playerid]);
  1027. PlayerTextDrawHide(playerid, sitxd[playerid]);
  1028. PlayerTextDrawHide(playerid, sntxd[playerid]);
  1029. return 1;
  1030. }
  1031.  
  1032. public OnPlayerConnect(playerid)
  1033. {
  1034. ftxd[playerid] = CreatePlayerTextDraw(playerid, 0.000000, 0.000000, "loadsc0:loadsc0");
  1035. PlayerTextDrawLetterSize(playerid, ftxd[playerid], 0.000000, 0.000000);
  1036. PlayerTextDrawTextSize(playerid, ftxd[playerid], 640.000000, 448.000000);
  1037. PlayerTextDrawAlignment(playerid, ftxd[playerid], 1);
  1038. PlayerTextDrawColor(playerid, ftxd[playerid], -1);
  1039. PlayerTextDrawSetShadow(playerid, ftxd[playerid], 0);
  1040. PlayerTextDrawSetOutline(playerid, ftxd[playerid], 0);
  1041. PlayerTextDrawFont(playerid, ftxd[playerid], 4);
  1042.  
  1043. stxd[playerid] = CreatePlayerTextDraw(playerid, 233.207519, 264.133392, "~r~Zombie ~y~Apocalypse");
  1044. PlayerTextDrawLetterSize(playerid, stxd[playerid], 0.843207, 5.660001);
  1045. PlayerTextDrawAlignment(playerid, stxd[playerid], 1);
  1046. PlayerTextDrawColor(playerid, stxd[playerid], -1);
  1047. PlayerTextDrawSetShadow(playerid, stxd[playerid], -108);
  1048. PlayerTextDrawSetOutline(playerid, stxd[playerid], 0);
  1049. PlayerTextDrawBackgroundColor(playerid, stxd[playerid], 51);
  1050. PlayerTextDrawFont(playerid, stxd[playerid], 0);
  1051. PlayerTextDrawSetProportional(playerid, stxd[playerid], 1);
  1052.  
  1053. ttxd[playerid] = CreatePlayerTextDraw(playerid, 26.415096, 328.533325, "LD_SPAC:white");
  1054. PlayerTextDrawLetterSize(playerid, ttxd[playerid], 0.000000, 0.000000);
  1055. PlayerTextDrawTextSize(playerid, ttxd[playerid], 593.207580, 98.000000);
  1056. PlayerTextDrawAlignment(playerid, ttxd[playerid], 1);
  1057. PlayerTextDrawColor(playerid, ttxd[playerid], 255);
  1058. PlayerTextDrawSetShadow(playerid, ttxd[playerid], 0);
  1059. PlayerTextDrawSetOutline(playerid, ttxd[playerid], 0);
  1060. PlayerTextDrawFont(playerid, ttxd[playerid], 4);
  1061.  
  1062. frtxd[playerid] = CreatePlayerTextDraw(playerid, 85.283012, 344.399963, "Hello and Welcome to Grand Theft Auto San Andreas Zombie Apocalypse! ~n~Before playing here you should agree that you are 18+");
  1063. PlayerTextDrawLetterSize(playerid, frtxd[playerid], 0.202452, 1.319999);
  1064. PlayerTextDrawAlignment(playerid, frtxd[playerid], 1);
  1065. PlayerTextDrawColor(playerid, frtxd[playerid], -1);
  1066. PlayerTextDrawSetShadow(playerid, frtxd[playerid], 0);
  1067. PlayerTextDrawSetOutline(playerid, frtxd[playerid], 1);
  1068. PlayerTextDrawBackgroundColor(playerid, frtxd[playerid], 51);
  1069. PlayerTextDrawFont(playerid, frtxd[playerid], 2);
  1070. PlayerTextDrawSetProportional(playerid, frtxd[playerid], 1);
  1071.  
  1072. fhtxd[playerid] = CreatePlayerTextDraw(playerid, 85.282882, 369.600036, "By playing over here you agree that you are 18+~n~ This server has adult content, If you are lower age use /q~n~");
  1073. PlayerTextDrawLetterSize(playerid, fhtxd[playerid], 0.302830, 0.890667);
  1074. PlayerTextDrawAlignment(playerid, fhtxd[playerid], 1);
  1075. PlayerTextDrawColor(playerid, fhtxd[playerid], -1);
  1076. PlayerTextDrawSetShadow(playerid, fhtxd[playerid], 0);
  1077. PlayerTextDrawSetOutline(playerid, fhtxd[playerid], 1);
  1078. PlayerTextDrawBackgroundColor(playerid, fhtxd[playerid], 51);
  1079. PlayerTextDrawFont(playerid, fhtxd[playerid], 2);
  1080. PlayerTextDrawSetProportional(playerid, fhtxd[playerid], 1);
  1081.  
  1082. sitxd[playerid] = CreatePlayerTextDraw(playerid, 86.037750, 386.400115, "If you fail to accept the rules then you will be banned from here~n~No usage of any cleo/function mods are allowed here!");
  1083. PlayerTextDrawLetterSize(playerid, sitxd[playerid], 0.335283, 0.844000);
  1084. PlayerTextDrawAlignment(playerid, sitxd[playerid], 1);
  1085. PlayerTextDrawColor(playerid, sitxd[playerid], -1);
  1086. PlayerTextDrawSetShadow(playerid, sitxd[playerid], 0);
  1087. PlayerTextDrawSetOutline(playerid, sitxd[playerid], 1);
  1088. PlayerTextDrawBackgroundColor(playerid, sitxd[playerid], 51);
  1089. PlayerTextDrawFont(playerid, sitxd[playerid], 2);
  1090. PlayerTextDrawSetProportional(playerid, sitxd[playerid], 1);
  1091.  
  1092. sntxd[playerid] = CreatePlayerTextDraw(playerid, 150.943328, 402.266876, "~y~Thank you for reading - You will continue in some seconds");
  1093. PlayerTextDrawLetterSize(playerid, sntxd[playerid], 0.446980, 2.626667);
  1094. PlayerTextDrawAlignment(playerid, sntxd[playerid], 1);
  1095. PlayerTextDrawColor(playerid, sntxd[playerid], -1);
  1096. PlayerTextDrawSetShadow(playerid, sntxd[playerid], 0);
  1097. PlayerTextDrawSetOutline(playerid, sntxd[playerid], 1);
  1098. PlayerTextDrawBackgroundColor(playerid, sntxd[playerid], 51);
  1099. PlayerTextDrawFont(playerid, sntxd[playerid], 3);
  1100. PlayerTextDrawSetProportional(playerid, sntxd[playerid], 1);
  1101. ShowIntroTXD(playerid);
  1102. for(new i = 0; i < 1; i++) SendClientMessage(playerid, 0x00000000,"Take the time to read the message!");
  1103. if(pInfo[playerid][pAdminDuty] == 1)
  1104. {
  1105. pInfo[playerid][pAdminDuty] = 0;
  1106. }
  1107.  
  1108. //SendDeathMessage(playerid, playerid, 200);
  1109. SetPlayerWeather(playerid, 8);
  1110. JustSpawned[playerid] = 0;
  1111. AutoSprint[playerid] = 0;
  1112. SendClientMessage(playerid, -1, "Please take the 7.5 seconds given to you to read the message down there!");
  1113.  
  1114. PlayerPressedJump[playerid] = 0;
  1115. playerOnline++;
  1116. ResetVars(playerid);
  1117. ConnectVars(playerid);
  1118. SetTimerEx("PlayerGotConnected", 7500, false, "i", playerid);
  1119.  
  1120. new c2string[128], playerip[16];
  1121. GetPlayerIp(playerid, playerip, sizeof(playerip));
  1122. format(c2string, sizeof(c2string), ""chat" Player %s[%d] has joined the server "COL_RED"(IP: %s)", PlayerName(playerid), playerid, playerip);
  1123. SendMessageToAllAdmins(c2string);
  1124.  
  1125. if(pInfo[playerid][pAdminLevel] <= 0)
  1126. {
  1127. new c2string2[128];
  1128. format(c2string2, sizeof(c2string2), ""chat"%s[%d] has joined the server", PlayerName(playerid), playerid);
  1129. SendClientMessageToAll(COLOR_WHITE, c2string2);
  1130. }
  1131.  
  1132. if(pInfo[playerid][pBanned] >= 1)
  1133. {
  1134. new constring[128];
  1135. GetPlayerIp(playerid, playerip, sizeof(playerip));
  1136. format(constring, sizeof(constring), ""chat" %s You are banned from the server, please make an unban appeal", PlayerName(playerid));
  1137. SendClientMessage(playerid,-1,constring);
  1138.  
  1139. Kick(playerid);
  1140. }
  1141.  
  1142. return 1;
  1143. }
  1144.  
  1145. public PlayerGotConnected(playerid)
  1146. {
  1147. HideIntroTXD(playerid);
  1148. HideIntroTXD(playerid);
  1149. new string[128];
  1150. if(fexist(UserPath(playerid)))
  1151. {
  1152. INI_ParseFile(UserPath(playerid), "LoadUser_data", .bExtra = true, .extra = playerid);
  1153. format(string,sizeof(string),""chat" Welcome back %s",PlayerName(playerid));
  1154. ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,string,""chat" We have detected this username as registered\nPlease login.","Login","Quit");
  1155. }
  1156. else
  1157. {
  1158. format(string,sizeof(string),""chat" Hello %s",PlayerName(playerid));
  1159. ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,string,""chat" Welcome to "NAME" you are being forced to register","Register","Quit");
  1160. }
  1161. return 1;
  1162. }
  1163.  
  1164.  
  1165. forward PressJump(playerid);
  1166. public PressJump(playerid)
  1167. {
  1168. PlayerPressedJump[playerid] = 0; // Reset the variable
  1169. ClearAnimations(playerid);
  1170. return 1;
  1171. }
  1172. forward PressJumpReset(playerid);
  1173. public PressJumpReset(playerid)
  1174. {
  1175. PlayerPressedJump[playerid] = 0; // Reset the variable
  1176. return 1;
  1177. }
  1178.  
  1179. forward HG();
  1180. public HG()
  1181. {
  1182. for(new i=0; i<MAX_PLAYERS; i++)
  1183. {
  1184. if(IsPlayerConnected(i))
  1185. {
  1186. if(IsPlayerInRangeOfPoint(i, 7, Map[ZombieSpawnX], Map[ZombieSpawnY], Map[ZombieSpawnZ]))
  1187. {
  1188. if(GetPlayerTeam(i) == TEAM_ZOMBIE) return 0;
  1189. else
  1190. {
  1191. GameTextForPlayer(i,"~W~Be careful you are in\n~r~Zombie Spawn Area!!", 1000, 5);
  1192. }
  1193. }
  1194. }
  1195. }
  1196. return 1;
  1197. }
  1198.  
  1199. public OnPlayerDisconnect(playerid, reason)
  1200. {
  1201. new constring[128];
  1202. format(constring, sizeof(constring), ""chat""COL_ORANGE"[Left] "COL_WHITE"%s has left the server.", PlayerName(playerid));
  1203. SendClientMessageToAll(-1,constring);
  1204. //SendDeathMessage(playerid, playerid, 201);
  1205.  
  1206. if(pInfo[playerid][pLogged] == 1) { SaveStats(playerid); } else return 0;
  1207. ResetVars(playerid);
  1208. playersAliveCount--;
  1209. playerOnline--;
  1210. if(playerOnline == 0) return SendRconCommand("mapname Getting Info from Database"),KillTimer(mapvar),KillTimer(balvar),Map[IsStarted] = 0;
  1211. return 1;
  1212. }
  1213.  
  1214. public OnPlayerSpawn(playerid)
  1215. {
  1216. JustSpawned[playerid] = 1;
  1217. rcused[playerid] = 0;
  1218. if(IsSpecing[playerid] == 1)
  1219. {
  1220. SetPlayerPos(playerid,SpecX[playerid],SpecY[playerid],SpecZ[playerid]);// Remember earlier we stored the positions in these variables, now we're gonna get them from the variables.
  1221. SetPlayerInterior(playerid,Inter[playerid]);//Setting the player's interior to when they typed '/spec'
  1222. SetPlayerVirtualWorld(playerid,vWorld[playerid]);//Setting the player's virtual world to when they typed '/spec'
  1223. IsSpecing[playerid] = 0;//Just saying you're free to use '/spec' again YAY :D
  1224. IsBeingSpeced[spectatorid[playerid]] = 0;//Just saying that the player who was being spectated, is not free from your stalking >:D7
  1225. SetWeather(Map[Weather]);
  1226. SetWorldTime(Map[Time]);
  1227.  
  1228. if(team[playerid] == TEAM_HUMAN)
  1229. {
  1230. HumanSetup(playerid);
  1231. SpawnPlayer(playerid);
  1232. }
  1233. else if(team[playerid] == TEAM_ZOMBIE)
  1234. {
  1235. ZombieSetup(playerid);
  1236. SpawnPlayer(playerid);
  1237. }
  1238. }
  1239. else
  1240. {
  1241. playersAliveCount++;
  1242. CheckToStartMap();
  1243. SetPlayerInterior(playerid,Map[Interior]);
  1244.  
  1245. SetTimerEx("NoSpawnKill",7000,0,"i",playerid);
  1246.  
  1247. if(team[playerid] == TEAM_ZOMBIE)
  1248. {
  1249. ZombieSetup(playerid);
  1250. SetPlayerPos(playerid,Map[ZombieSpawnX],Map[ZombieSpawnY],Map[ZombieSpawnZ]);
  1251. }
  1252.  
  1253. if(pInfo[playerid][Frozen] == 1) //Get the info outta the enum and check if the player is still frozen
  1254. {
  1255. TogglePlayerControllable(playerid,0); //Won't let the player move
  1256. SendClientMessage(playerid,COLOR_RED,"WARNING: You are still frozen!"); //Send him a message
  1257. }
  1258.  
  1259. if(team[playerid] == TEAM_HUMAN)
  1260. {
  1261. HumanSetup(playerid);
  1262. switch(random(2))
  1263. {
  1264. case 0: SetPlayerPos(playerid,Map[HumanSpawnX],Map[HumanSpawnY],Map[HumanSpawnZ]);
  1265. case 1: SetPlayerPos(playerid,Map[HumanSpawn2X],Map[HumanSpawn2Y],Map[HumanSpawn2Z]);
  1266. }
  1267. }
  1268. sendClassMessage(playerid);
  1269. setClass(playerid);
  1270. SpawnVars(playerid);
  1271. }
  1272. return 1;
  1273. }
  1274.  
  1275. public NoSpawnKill(playerid)
  1276. {
  1277. JustSpawned[playerid] = 0;
  1278.  
  1279. if(pInfo[playerid][pZombieClass] == BOOMERZOMBIE) { SetPlayerHealth(playerid,20); }
  1280. if(pInfo[playerid][pZombieClass] == NEMESIS) { SetPlayerHealth(playerid,200); }
  1281. return 1;
  1282. }
  1283.  
  1284. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  1285. {
  1286. switch(dialogid)
  1287. {
  1288. case DIALOG_REGISTER:
  1289. {
  1290. if(!response)
  1291. {
  1292. ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_MSGBOX,"Kicked",""chat" You must register to play at "NAME"","Close","");
  1293. Kick(playerid);
  1294. }
  1295. if(response)
  1296. {
  1297. new str[256],IP[16],buf[129];
  1298. GetPlayerIp(playerid, IP, sizeof(IP));
  1299. if(!strlen(inputtext))
  1300. {
  1301. format(str,sizeof(str),""chat"Welcome %s to "NAME"",PlayerName(playerid));
  1302. ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,str,""chat" Welcome to "NAME" you'll be forced to register please click register!","Register","Quit");
  1303. }
  1304.  
  1305. new INI:File = INI_Open(UserPath(playerid));
  1306. WP_Hash(buf, sizeof(buf), inputtext);
  1307. INI_SetTag(File,"data");
  1308. INI_WriteString(File, "pPassword", buf);
  1309. INI_WriteInt(File,"pXP",0);
  1310. INI_WriteInt(File,"pKills",0);
  1311. INI_WriteInt(File,"pDeaths",0);
  1312. INI_WriteInt(File,"pRank",0);
  1313. INI_WriteInt(File,"pEvac",0);
  1314. INI_WriteInt(File,"pAdminLevel",0);
  1315. INI_WriteInt(File,"pAdminDuty",0);
  1316. INI_WriteInt(File,"pVIPLevel",0);
  1317. INI_WriteInt(File,"pStarMember",0);
  1318. INI_WriteInt(File,"pStarLeader",0);
  1319. INI_WriteInt(File,"pHour",0);
  1320. INI_WriteInt(File,"pMin",0);
  1321. INI_WriteInt(File,"pSec",0);
  1322. INI_WriteInt(File,"pMapsPlayed",0);
  1323. INI_WriteInt(File,"pCoins",0);
  1324. INI_WriteString(File,"pIP",IP);
  1325. INI_WriteInt(File,"pBanned",0);
  1326. INI_WriteInt(File,"gLeader",0);
  1327. INI_WriteInt(File,"gMember",0);
  1328. INI_Close(File);
  1329.  
  1330. playedtimer[playerid] = SetTimerEx("TimeOnServer", 1000, 1, "i", playerid);
  1331. pInfo[playerid][pLogged] = 1;
  1332. }
  1333. }
  1334.  
  1335. case DIALOG_LOGIN:
  1336. {
  1337. if(!response)
  1338. {
  1339. ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_MSGBOX,"Kicked",""chat" You must login to play at "NAME"","Close","");
  1340. Kick(playerid);
  1341. }
  1342. if(response)
  1343. {
  1344. new buf[129];
  1345. WP_Hash(buf, sizeof(buf), inputtext);
  1346. if(!strcmp(buf,pInfo[playerid][pPassword]))
  1347. {
  1348. INI_ParseFile(UserPath(playerid), "LoadUser_data", .bExtra = true, .extra = playerid);
  1349. pInfo[playerid][pLogged] = 1;
  1350. playedtimer[playerid] = SetTimerEx("TimeOnServer", 1000, 1, "i", playerid);
  1351. SendClientMessage(playerid,-1,""chat""COL_LGREEN" Logged in!");
  1352. printf("%s",pInfo[playerid][pPassword]);
  1353. }
  1354. else
  1355. {
  1356. new string[256];
  1357. format(string,sizeof(string),""chat" Welcome back %s",PlayerName(playerid));
  1358. ShowPlayerDialog(playerid, DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,string,""chat" Our system have detected your username registered please login","Login","Quit");
  1359. }
  1360. return 1;
  1361. }
  1362. }
  1363.  
  1364. case DIALOG_RADIO:
  1365. {
  1366. if(response)
  1367. {
  1368. switch(listitem)
  1369. {
  1370. case 0: PlayAudioStreamForPlayer(playerid,"http://k007.kiwi6.com/hotlink/u4m8ki8f9q/Nico_and_Vinz_-_Am_i_Wrong.mp3");
  1371. case 1: PlayAudioStreamForPlayer(playerid,"http://k007.kiwi6.com/hotlink/uuy0l2kaz3/Katy_Perry_-_Dark_Horse.mp3");
  1372. case 2: PlayAudioStreamForPlayer(playerid,"http://k007.kiwi6.com/hotlink/84q5c4rv2n/11_Rita_Ora_-_I_Will_Never_Let_You_Down.mp3");
  1373. case 3: PlayAudioStreamForPlayer(playerid,"http://k007.kiwi6.com/hotlink/u3x6limii6/ReturnOfTheGod-VD.mp3");
  1374. case 4: PlayAudioStreamForPlayer(playerid,"http://k007.kiwi6.com/hotlink/14afougxxu/392894-black-widow-feat-rita-ora-iggy-azalea.mp3");
  1375. case 5: PlayAudioStreamForPlayer(playerid,"http://k007.kiwi6.com/hotlink/efejqz0vuj/Eminem_-_Rap_God.mp3");
  1376. case 6: PlayAudioStreamForPlayer(playerid,"http://relay2.181.fm:8070");
  1377. case 7: PlayAudioStreamForPlayer(playerid,"http://relay.181.fm:8070");
  1378. case 8: StopAudioStreamForPlayer(playerid), SendClientMessage(playerid,COLOR_GRAD5,"Radio Stopped");
  1379. }
  1380. }
  1381. }
  1382.  
  1383. case DIALOG_CLASS:
  1384. {
  1385. if(response)
  1386. {
  1387. switch(listitem)
  1388. {
  1389. case 0:
  1390. {
  1391. if(team[playerid] == TEAM_HUMAN)
  1392. {
  1393. new string[2500];
  1394. strcat(string,"{008080}Civillian - 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\
  1395. {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");
  1396. strcat(string,"{008080}Soldier - AK47,Deagle - 6500 XP\n{008080}Box Builder - Silenced Pistol,Shotgun,Armour,Build Boxes - 7500 XP\n{008080}S.W.A.T - MP5,Deagle,Armour,Immunity - 15,000 XP\n\
  1397. {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");
  1398. strcat(string,"{008080}Advanced Box Builder - Deagle,M4,Armour,Build Boxes - 30,000 XP\n{008080}Experienced Box Builder - Powerfull Guns,Armour - Build Ladders - 95,000 XP\n\
  1399. {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\
  1400. {008080}Kick Back - Silenced Pistol,Shotgun,MP5 - 400000 XP\n{008080}Doctor - Silenced Pistol - Heal,Cure,Shield Heal,Half Immunity - Rank 22");
  1401. ShowPlayerDialog(playerid,DIALOG_CLASS_2,DIALOG_STYLE_LIST,"Class Selection (Human)",string,"Choose Class","Close Page");
  1402. }
  1403. else return SendClientMessage(playerid,-1,""chat" You must be a human to use human classes!");
  1404. }
  1405. case 1:
  1406. {
  1407. if(team[playerid] == TEAM_ZOMBIE)
  1408. {
  1409. new string[1000];
  1410. 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\
  1411. {41A317}Reaper Zombie - More damage with chainsaw - 10,000 XP\n{41A317}Witch Zombie - LALT 75 Damage - 18,000 XP\n");
  1412. strcat(string,"{41A317}Boomer Zombie - Explodes on death and infect - 20,000 XP\n\
  1413. {41A317}Stomper Zombie - LALT Throw all around you - 25,000 XP\n{41A317}Screamer - LALT Drop everyone down - 35000 XP\n\
  1414. {41A317}Advanced Mutated - LALT Infect all around - 65,000 XP\n{41A317}Heavy Screamer - LALT Throw all +5hp - 70,000 XP\n");
  1415. 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");
  1416.  
  1417. ShowPlayerDialog(playerid,DIALOG_CLASS_3,DIALOG_STYLE_LIST,"Class Selection (Zombie)",string,"Choose Class","Next Page");
  1418. }
  1419. else return SendClientMessage(playerid,-1,""chat" You must be a zombie to use zombie classes!");
  1420. }
  1421.  
  1422. case 2: SendClientMessage(playerid,-1,""chat""COL_LGREEN" ");
  1423. }
  1424. }
  1425. }
  1426.  
  1427. case DIALOG_CLASS2:
  1428. {
  1429. if(response)
  1430. {
  1431. switch(listitem)
  1432. {
  1433. case 0:
  1434. {
  1435. if(team[playerid] == TEAM_HUMAN)
  1436. {
  1437. new string[3600];
  1438. strcat(string,"{008080}Pimp - Dildo, deals 15 damage 15000 XP\n{008080}Heavy Soldier - Can Give 25 Armour Point - 150000\n");
  1439. strcat(string,"{008080}Assassin - County Rifle, UZI, C4 - 300.000 XP\n{008080}Cowboy - 2 colt pistols, extra damage, armour, 250.000XP\n");
  1440. 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");
  1441. 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");
  1442. 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");
  1443. strcat(string,"{008080}Mp5 Master - Extreme damage with Mp5 - 500000xp\n{008080}Ghost Rider - Can Burn Zombies - 600000xp\n{008080}Samurai - One hit katana kill, 15 Armour - 650000xp\n{008080}Hey Buddy - Gives 70 Damage - 150000xp\n{008080}Advanced KickBack - Gives Extreme KickBack - 900000\n{008080}Tec Master - Gives 30 damage with Tec|200hp - 900000\n{008080}Bulls Eye - Gives high damage|sawnoff - 27 rank needed\n");
  1444. strcat(string,"{008080}S.T.A.R.S - Gives high dmg on guns, Heal nearest players, SWAT Skin - S.T.A.R.S Membership needed\n{008080}Martial Arts Coach - More damage on hands, Throw zombies away - 780000xp\n{008080}Explosion Master - Create explosions upon a player, Damage - 1200000xp");
  1445. ShowPlayerDialog(playerid,DIALOG_CLASS_2_2,DIALOG_STYLE_LIST,"Class Selection (Human)",string,"Choose Class","Close Page");
  1446. }
  1447. else return SendClientMessage(playerid,-1,""chat" You must be a human to use human classes!");
  1448. }
  1449.  
  1450. case 1:
  1451. {
  1452. if(team[playerid] == TEAM_ZOMBIE)
  1453. {
  1454. new string[1000];
  1455. strcat(string,"{41A317}Advanced Stomper - 150 HP , Stomps humans away - 200.000 XP\n");
  1456. 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");
  1457. 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}Fat Zombie - Cant be kickback - 600000\n{41A317}Vampire - Can suck life and choke - 900000");
  1458. ShowPlayerDialog(playerid,DIALOG_CLASS_3_3,DIALOG_STYLE_LIST,"Class Selection (Zombie)",string,"Choose Class","Close Page");
  1459. }
  1460. else return SendClientMessage(playerid,-1,""chat" You must be a zombie to use zombie classes!");
  1461. }
  1462.  
  1463. }
  1464. }
  1465. }
  1466.  
  1467. case DIALOG_CLASS4:
  1468. {
  1469. if(response)
  1470. {
  1471. switch(listitem)
  1472. {
  1473. case 0:
  1474. {
  1475. if(team[playerid] == TEAM_HUMAN)
  1476. {
  1477. new string[3900];
  1478. strcat(string,"{008080}General - General Bullets(Extra Damage) and military fences - 2 million xp\nMafiaso Bad Boys - Steal XP and gangster weapons - 2.2 million xp");
  1479. ShowPlayerDialog(playerid,DIALOG_CLASS_4_1,DIALOG_STYLE_LIST,"Class Selection (Human)",string,"Select","Close");
  1480. }
  1481. else return SendClientMessage(playerid,-1,""chat" You must be a human to use human classes!");
  1482. }
  1483.  
  1484. case 1:
  1485. {
  1486. if(team[playerid] == TEAM_ZOMBIE)
  1487. {
  1488. new string[1000];
  1489. strcat(string,"{41A317}Sorry unforunately there are no zombie classes\nIf you want then go suggesting fast!!!!!");
  1490. ShowPlayerDialog(playerid,DIALOG_CLASS_4_2,DIALOG_STYLE_LIST,"Class Selection (Zombie)",string,"Select","Close");
  1491. }
  1492. else return SendClientMessage(playerid,-1,""chat" You must be a zombie to use zombie classes!");
  1493. }
  1494.  
  1495. }
  1496. }
  1497. }
  1498.  
  1499. case DIALOG_CLASS_2:
  1500. {
  1501. if(response)
  1502. {
  1503. if(pInfo[playerid][SkinChanges] >= 1)
  1504. {
  1505. switch(listitem)
  1506. {
  1507. 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); }
  1508. 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); }
  1509. 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); }
  1510. 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); }
  1511. 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); }
  1512. 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); }
  1513. 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); }
  1514. 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); }
  1515. 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); }
  1516. 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); }
  1517. 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); }
  1518. 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); }
  1519. case 12: if(pInfo[playerid][pXP] >= 95000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = E_ENGINEER,setClass(playerid); else { SendXPError(playerid,35000); }
  1520. 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); }
  1521. 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); }
  1522. 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); }
  1523. 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"); }
  1524. }
  1525. }
  1526. else return SendClientMessage(playerid,-1,""chat""COL_RED" You ran out of skin changes mate! What do you think you are? Shape Shifter?");
  1527. }
  1528. }
  1529. case DIALOG_CLASS_2_2:
  1530. {
  1531. if(response)
  1532. {
  1533. if(pInfo[playerid][SkinChanges] >= 1)
  1534. {
  1535. switch(listitem)
  1536. {
  1537. 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); }
  1538. 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); }
  1539. 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); }
  1540. 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); }
  1541. 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); }
  1542. 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); }
  1543. 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); }
  1544. 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); }
  1545. 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); }
  1546. 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"); }
  1547. 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"); }
  1548. 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!"); }
  1549. 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!"); }
  1550. 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!"); }
  1551. case 14: if(pInfo[playerid][pXP] >= 650000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = SAMURAI,setClass(playerid); else { SendClientMessage(playerid,-1,""chat""COL_PINK" You need 650000 xp to use this class!"); }
  1552. case 15: 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!"); }
  1553. case 16: 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!"); }
  1554. case 17: if(pInfo[playerid][pXP] >= 1000000) 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!"); }
  1555. case 18: 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!"); }
  1556. case 19: if(pInfo[playerid][pStarMember] >= 1) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = STARS,setClass(playerid); else { SendClientMessage(playerid,-1,""chat""COL_PINK" You must be a member of S.T.A.R.S clan to use this!"); }
  1557. case 20: if(pInfo[playerid][pXP] >= 780000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = MARTIALCOACH,setClass(playerid); else { SendClientMessage(playerid,-1,""chat""COL_PINK" You must have atleast 780,000 xp!"); }
  1558. case 21: if(pInfo[playerid][pXP] >= 1200000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = SUPERHUMAN,setClass(playerid); else { SendClientMessage(playerid,-1,""chat""COL_PINK" You must have atleast 1,200,000(1.2m) xp!"); }
  1559. }
  1560. }
  1561. else return SendClientMessage(playerid,-1,""chat""COL_RED" You ran out of skin changes mate!");
  1562. }
  1563. }
  1564.  
  1565. case DIALOG_CLASS_3:
  1566. {
  1567. if(response)
  1568. {
  1569. switch(listitem)
  1570. {
  1571. case 0: if(pInfo[playerid][pXP] >= 0) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = STANDARDZOMBIE,setClass(playerid); else { SendXPError(playerid,0); }
  1572. case 1: if(pInfo[playerid][pXP] >= 500) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = MUTATEDZOMBIE,setClass(playerid); else { SendXPError(playerid,500); }
  1573. case 2: if(pInfo[playerid][pXP] >= 5000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = FASTZOMBIE,setClass(playerid); else { SendXPError(playerid,5000); }
  1574. case 3: if(pInfo[playerid][pXP] >= 10000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = REAPERZOMBIE,setClass(playerid); else { SendXPError(playerid,10000); }
  1575. case 4: if(pInfo[playerid][pXP] >= 18000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = WITCHZOMBIE,setClass(playerid); else { SendXPError(playerid,18000); }
  1576. case 5: if(pInfo[playerid][pXP] >= 20000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = BOOMERZOMBIE,setClass(playerid); else { SendXPError(playerid,20000); }
  1577. case 6: if(pInfo[playerid][pXP] >= 25000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = STOMPERZOMBIE,setClass(playerid); else { SendXPError(playerid,25000); }
  1578. case 7: if(pInfo[playerid][pXP] >= 35000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = SCREAMERZOMBIE,setClass(playerid); else { SendXPError(playerid,35000); }
  1579. case 8: if(pInfo[playerid][pXP] >= 65000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = ADVANCEDMUTATED,setClass(playerid); else { SendXPError(playerid,65000); }
  1580. case 9: if(pInfo[playerid][pXP] >= 70000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = HEAVYSCREAMER,setClass(playerid); else { SendXPError(playerid,70000); }
  1581. case 10: if(pInfo[playerid][pXP] >= 100000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = FLESHEATER,setClass(playerid); else { SendXPError(playerid,100000); }
  1582. case 11: if(pInfo[playerid][pXP] >= 150000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = ADVANCEDWITCH,setClass(playerid); else { SendXPError(playerid,150000); }
  1583. case 12: if(pInfo[playerid][pXP] >= 500000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = ADVANCEDBOOMER,setClass(playerid); else { SendXPError(playerid,500000); }
  1584. }
  1585. }
  1586. }
  1587.  
  1588. case DIALOG_CLASS_3_3:
  1589. {
  1590. if(response)
  1591. {
  1592. switch(listitem)
  1593. {
  1594. case 0: if(pInfo[playerid][pXP] >= 200000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = ADVSTOMPER,setClass(playerid); else { SendXPError(playerid,200000); }
  1595. case 1: if(pInfo[playerid][pXP] >= 350000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = FIREBREATHER,setClass(playerid); else { SendXPError(playerid,350000); }
  1596. case 2: if(pInfo[playerid][pXP] >= 400000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = ADVSCREAMER,setClass(playerid); else { SendXPError(playerid,400000); }
  1597. case 3: if(pInfo[playerid][pXP] >= 500000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = ADVANCEDBOOMER,setClass(playerid); else { SendXPError(playerid,500000); }
  1598. case 4:
  1599. {
  1600. if(pInfo[playerid][pXP] >= 500000)
  1601. {
  1602. if(nightmare == 0) return SCM(playerid, -1, "Nightmare mode isn't enabled!!");
  1603. pInfo[playerid][pZombieClass] = 0;
  1604. pInfo[playerid][pZombieClass] = NEMESIS;
  1605. setClass(playerid);
  1606. }
  1607. else
  1608. {
  1609. SendXPError(playerid,500000);
  1610. }
  1611. }
  1612. case 5: if(pInfo[playerid][pXP] >= 550000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = HZOMBIE,setClass(playerid); else { SendXPError(playerid,550000); }
  1613. case 6: if(pInfo[playerid][pXP] >= 700000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = SLENDER,setClass(playerid); else { SendXPError(playerid,700000); }
  1614. case 7: if(pInfo[playerid][pXP] >= 600000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = KZOM,setClass(playerid); else { SendXPError(playerid,600000); }
  1615. case 8:
  1616. {
  1617. if(pInfo[playerid][pXP] >= 900000)
  1618. {
  1619. if(nightmare == 0) return SCM(playerid, -1, "Nightmare mode isn't enabled!!");
  1620. pInfo[playerid][pZombieClass] = 0;
  1621. pInfo[playerid][pZombieClass] = VAMPIRE;
  1622. setClass(playerid);
  1623. }
  1624. else
  1625. {
  1626. SendXPError(playerid,900000);
  1627. }
  1628. }
  1629. }
  1630. }
  1631. }
  1632.  
  1633. case DIALOG_SHOUT:
  1634. {
  1635. if(response)
  1636. {
  1637. switch(listitem)
  1638. {
  1639. case 0: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s shouts MEDIC!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
  1640. case 1: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s shouts BOOMER INCOMING!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
  1641. case 2: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s shouts SCREAMER INCOMING!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
  1642. case 3: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s shouts STOMPER INCOMING!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
  1643. case 4: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s shouts it's clear!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
  1644. case 5: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s shouts Zombies Nearby!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
  1645. case 6: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s shouts ZOMBIES INCOMING!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
  1646. case 7: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s shouts Need assistance!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
  1647. case 8: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s shouts Need backup!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
  1648. case 9: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s shouts NIGHTMARE is Gonna come! Stick guys!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
  1649. case 10: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s shouts Kickback is needed here! IMPORTANT!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
  1650. }
  1651. }
  1652. }
  1653.  
  1654. case DIALOG_VIP:
  1655. {
  1656. if(response)
  1657. {
  1658. if(pInfo[playerid][ArmourChanges] >= 1)
  1659. {
  1660. switch(listitem)
  1661. {
  1662. 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); }
  1663. case 1: if(pInfo[playerid][pVIPLevel] >= 1) GivePlayerWeapon(playerid,31,150),GivePlayerWeapon(playerid,24,100),GivePlayerWeapon(playerid,25,600); else { SendVIPError(playerid,1); }
  1664. 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 Marine (LVL 5)\n{C35817}Ultimate Samurai(LVL 6)","Select","Close"); else { SendVIPError(playerid,3); }
  1665. 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); }
  1666. 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); }
  1667. 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); }
  1668. 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); }
  1669. 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); }
  1670.  
  1671. }
  1672. }
  1673. else return SendClientMessage(playerid,-1,""chat""COL_RED" You ran out of armours mate! What do you think I am ? Ammunation?");
  1674. }
  1675. }
  1676. case DIALOG_ACLASS:
  1677. {
  1678. if(response)
  1679. {
  1680. switch(listitem)
  1681. {
  1682. case 0: if(pInfo[playerid][pAdminLevel] >= 3) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = INVISIBLA,setClass(playerid); else { SendClientMessage(playerid,-1,""chat""COL_PINK" You must be Head Admin or more to use this!"); }
  1683. }
  1684. }
  1685. }
  1686. case DIALOG_CLASS_4_1:
  1687. {
  1688. if(response)
  1689. {
  1690. switch(listitem)
  1691. {
  1692. case 0: if(pInfo[playerid][pXP] >= 2000000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = GENERAL,setClass(playerid), pInfo[playerid][BoxesAdvanced] = 50; else { SendClientMessage(playerid,-1,""chat""COL_PINK" You must have 2 million xp before using this!"); }
  1693. case 1: if(pInfo[playerid][pXP] >= 2200000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = MAFIASOBB,setClass(playerid); else { SendClientMessage(playerid,-1,""chat""COL_PINK" You must have 2.2 million xp before using this!"); }
  1694. }
  1695. }
  1696. }
  1697. case DIALOG_CLASS_4_2:
  1698. {
  1699. if(response)
  1700. {
  1701. switch(listitem)
  1702. {
  1703. case 0: if(pInfo[playerid][pXP] >= 1700000) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = LEECH,setClass(playerid); else { SendClientMessage(playerid,-1,""chat""COL_PINK" You must have 1.7 million xp before using this!"); }
  1704. }
  1705. }
  1706. }
  1707. case DIALOG_VIP2:
  1708. {
  1709. if(response)
  1710. {
  1711. if(pInfo[playerid][ArmourChanges] >= 1)
  1712. {
  1713. switch(listitem)
  1714. {
  1715. case 0: if(pInfo[playerid][pVIPLevel] >= 4) SetPlayerColor(playerid,-1); else { SendVIPError(playerid,4); }
  1716. case 1: if(pInfo[playerid][pVIPLevel] >= 1) SetPlayerColor(playerid,COLOR_PURPLE); else { SendVIPError(playerid,1); }
  1717. case 2: if(pInfo[playerid][pVIPLevel] >= 6) pInfo[playerid][SkinChanges] -= 1, SetPlayerArmour(playerid,95.0),SendClientMessage(playerid,-1,""chat""COL_LGREEN" You've got 95.0 of VIP Armour"); else { SendVIPError(playerid,6); }
  1718. case 3: if(pInfo[playerid][pVIPLevel] >= 2) pInfo[playerid][SkinChanges] -= 1, SetPlayerArmour(playerid,50.0),SendClientMessage(playerid,-1,""chat""COL_LGREEN" You've got 50.0 of VIP Armour"); else { SendVIPError(playerid,4); }
  1719. case 4: if(pInfo[playerid][pVIPLevel] >= 3) ShowPlayerDialog(playerid,DIALOG_VIP_ZCLASS,DIALOG_STYLE_LIST,"VIP Classes (Zombie)","{C35817}Resurrected Elite(LVL 6+)","Select","Close"); else { SendVIPError(playerid,3); }
  1720.  
  1721. }
  1722. }
  1723. else return SendClientMessage(playerid,-1,""chat""COL_RED" You ran out of armours mate! What do you think I am ? Ammunation?");
  1724. }
  1725. }
  1726.  
  1727. case DIALOG_VIP_CLASS:
  1728. {
  1729. if(response)
  1730. {
  1731. if(team[playerid] == TEAM_HUMAN)
  1732. {
  1733. switch(listitem)
  1734. {
  1735. case 0: if(pInfo[playerid][pVIPLevel] >= 3) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = VIPENGINEER,setClass(playerid); else { SendVIPError(playerid,3); }
  1736. case 1: if(pInfo[playerid][pVIPLevel] >= 4) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = VIPMEDIC,setClass(playerid); else { SendVIPError(playerid,4); }
  1737. case 2: if(pInfo[playerid][pVIPLevel] >= 4) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = VIPSCOUT,setClass(playerid); else { SendVIPError(playerid,4); }
  1738. case 3: if(pInfo[playerid][pVIPLevel] >= 5) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = MARINE,setClass(playerid); else { SendVIPError(playerid,5); }
  1739. case 4: if(pInfo[playerid][pVIPLevel] >= 6) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = VIPSAMURAI,setClass(playerid); else { SendVIPError(playerid,6); }
  1740.  
  1741.  
  1742. }
  1743. }
  1744. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You must be a human to use VIP classes!");
  1745. }
  1746. }
  1747.  
  1748. case DIALOG_VIP_ZCLASS:
  1749. {
  1750. if(response)
  1751. {
  1752. if(team[playerid] == TEAM_ZOMBIE)
  1753. {
  1754. switch(listitem)
  1755. {
  1756. //DSHORTCUT123123
  1757. case 0: if(pInfo[playerid][pVIPLevel] >= 6) pInfo[playerid][pZombieClass] = 0,pInfo[playerid][pZombieClass] = RELITE,setClass(playerid); else { SendVIPError(playerid,6); }
  1758.  
  1759. }
  1760. }
  1761. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You must be a zombie to use Zombie VIP classes!");
  1762. }
  1763. }
  1764.  
  1765. case DIALOG_COINS:
  1766. {
  1767. if(response)
  1768. {
  1769. if(team[playerid] == TEAM_HUMAN)
  1770. {
  1771. switch(listitem)
  1772. {
  1773. case 0:
  1774. {
  1775. ShowPlayerDialog(playerid, DIALOG_XP, DIALOG_STYLE_LIST, "XP Shop", "1000XP 10 Coins\n5000XP 25 Coins\n10000XP 75 Coins", "Select", "Close");
  1776. }
  1777. case 1:
  1778. {
  1779. 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)
  1780. {
  1781. SendClientMessage(playerid,-1,""chat""COL_RED" Your class can't buy weapons... ");
  1782. }
  1783. else
  1784. {
  1785. 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); }
  1786. }
  1787. }
  1788. 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 Box Builder\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); }
  1789. case 3: if(pInfo[playerid][pCoins] >= 100) pInfo[playerid][pCoins] -= 100,pInfo[playerid][pVIPKickBack] = 1; else { SendCoinError(playerid,100); }
  1790. 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); }
  1791. }
  1792. }
  1793. }
  1794. }
  1795. case DIALOG_XP:
  1796. {
  1797. if(response)
  1798. {
  1799. if(team[playerid] == TEAM_HUMAN)
  1800. {
  1801. switch(listitem)
  1802. {
  1803. case 0: if(pInfo[playerid][pCoins] >= 10) pInfo[playerid][pCoins] -= 10,GivePlayerXP(playerid,1000); else { SendCoinError(playerid,10); }
  1804. case 1: if(pInfo[playerid][pCoins] >= 25) pInfo[playerid][pCoins] -= 50,GivePlayerXP(playerid,5000); else { SendCoinError(playerid,25); }
  1805. case 2: if(pInfo[playerid][pCoins] >= 75) pInfo[playerid][pCoins] -= 100,GivePlayerXP(playerid,10000); else { SendCoinError(playerid,75); }
  1806. }
  1807. }
  1808. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You must be a human to buy weapons");
  1809. }
  1810. }
  1811.  
  1812. case DIALOG_BUY_WEAPONS:
  1813. {
  1814. if(response)
  1815. {
  1816. if(team[playerid] == TEAM_HUMAN)
  1817. {
  1818. switch(listitem)
  1819. {
  1820. case 0: if(pInfo[playerid][pCoins] >= 5) pInfo[playerid][pCoins] -= 5,GivePlayerWeapon(playerid,24,199); else { SendCoinError(playerid,5); }
  1821. case 1: if(pInfo[playerid][pCoins] >= 10) pInfo[playerid][pCoins] -= 10,GivePlayerWeapon(playerid,25,199); else { SendCoinError(playerid,10); }
  1822. case 2: if(pInfo[playerid][pCoins] >= 15) pInfo[playerid][pCoins] -= 15,GivePlayerWeapon(playerid,29,300); else { SendCoinError(playerid,15); }
  1823. case 3: if(pInfo[playerid][pCoins] >= 20) pInfo[playerid][pCoins] -= 20,GivePlayerWeapon(playerid,30,300); else { SendCoinError(playerid,20); }
  1824. case 4: if(pInfo[playerid][pCoins] >= 20) pInfo[playerid][pCoins] -= 20,GivePlayerWeapon(playerid,31,300); else { SendCoinError(playerid,20); }
  1825. case 5: if(pInfo[playerid][pCoins] >= 25) pInfo[playerid][pCoins] -= 25,GivePlayerWeapon(playerid,34,150); else { SendCoinError(playerid,25); }
  1826. }
  1827. }
  1828. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You must be a human to buy weapons");
  1829. }
  1830. }
  1831.  
  1832. case DIALOG_BUY_CLASSES:
  1833. {
  1834. if(response)
  1835. {
  1836. if(team[playerid] == TEAM_HUMAN)
  1837. {
  1838. if(pInfo[playerid][SkinChanges] >= 1)
  1839. {
  1840. switch(listitem)
  1841. {
  1842. 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); }
  1843. 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); }
  1844. 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); }
  1845. 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); }
  1846. 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); }
  1847. 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); }
  1848. 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); }
  1849. 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); }
  1850. 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); }
  1851. 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); }
  1852. }
  1853. }
  1854. else return SendClientMessage(playerid,-1,""chat""COL_RED" You are not allowed to change your class anymore!");
  1855. }
  1856. else return SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You must be a human to buy weapons");
  1857. }
  1858. }
  1859. }
  1860. return 1;
  1861. }
  1862.  
  1863. public OnPlayerDeath(playerid, killerid, reason)
  1864. {
  1865. new Float:posxx[3];
  1866. SetPlayerVirtualWorld(playerid,0);
  1867. isInvisible[playerid] = 0;
  1868. pInfo[playerid][pHumanClass] = 0,pInfo[playerid][SkinChanges] -= 1,pInfo[playerid][pHumanClass] = CIVILIAN,setClass(playerid);
  1869. SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, 99999);
  1870. SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, 99999);
  1871. GetPlayerPos(playerid, posxx[0], posxx[1], posxx[2]);
  1872. SetPlayerPos(playerid, posxx[0], posxx[1], posxx[2]+4);
  1873. if(team[playerid] == TEAM_ZOMBIE && team[killerid] == TEAM_ZOMBIE)
  1874. {
  1875. switch(GetPlayerWeapon(playerid))
  1876. {
  1877. case 45:
  1878. {
  1879. new reasonillegalweapons[128];
  1880. new Admin[24] = "Anti-cheat";
  1881. format(reasonillegalweapons,sizeof(reasonillegalweapons),"Weapon hack %i",GetPlayerWeapon(playerid));
  1882. BanPlayer(playerid,reasonillegalweapons,Admin);
  1883. }
  1884. case 9:
  1885. {
  1886. if(GetDistanceBetweenPlayers(playerid,killerid) >= 6.0)
  1887. {
  1888. //printf("%s has been kicked for fake killing - On Player Death", PlayerName(playerid));
  1889. //Kick(playerid);
  1890. }
  1891. }
  1892. 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:
  1893. {
  1894. //pInfo[playerid][pFakeKills] += 1;
  1895. }
  1896. }
  1897. if(pInfo[playerid][pLadders] >= 5)
  1898. {
  1899. //SendClientMessage(playerid,COLOR_RED,"You have been banned for fake killing");
  1900.  
  1901. //pInfo[playerid][pBanned] = 1;
  1902.  
  1903. //new Admin[24] = "Anti-cheat-FakeKills";
  1904. //new reasonFake[128] = "Fake Killing - On Player Death - FakeKills";
  1905. //BanPlayer(playerid,reasonFake,Admin);
  1906. }
  1907.  
  1908. }
  1909.  
  1910. if(pInfo[playerid][pDeaths] >= 10000000 && pInfo[playerid][pKills] == 0)
  1911. {
  1912. //new Admin[24] = "Anti-cheat";
  1913. //new reason3[128] = "Fake illing - On Player Death";
  1914. //BanPlayer(playerid,reason3,Admin);
  1915.  
  1916. pInfo[killerid][pKills] -= 20;
  1917. pInfo[playerid][Killstreak] = 0;
  1918. pInfo[killerid][pCoins] -= 4;
  1919.  
  1920. switch(Map[XPType])
  1921. {
  1922. case 1:
  1923. {
  1924. pInfo[killerid][pXP] -= 300;
  1925. }
  1926. case 2:
  1927. {
  1928. pInfo[killerid][pXP] -= 500;
  1929. }
  1930. case 3:
  1931. {
  1932. pInfo[killerid][pXP] -= 700;
  1933. }
  1934. case 4:
  1935. {
  1936. pInfo[killerid][pXP] -= 900;
  1937. }
  1938. }
  1939. }
  1940.  
  1941. if(pInfo[playerid][pLogged] == 1)
  1942. {
  1943. new string[256],gunname[32];
  1944. SaveStats(playerid);
  1945. SendDeathMessage(killerid, playerid, reason);
  1946. playersAliveCount--;
  1947.  
  1948. pInfo[playerid][pDeaths]++;
  1949. pInfo[playerid][Killstreak] = 0;
  1950.  
  1951. if(IsBeingSpeced[playerid] == 1)//If the player being spectated, dies, then turn off the spec mode for the spectator.
  1952. {
  1953. foreach(Player,i)
  1954. {
  1955. if(spectatorid[i] == playerid)
  1956. {
  1957. 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)
  1958. if(team[i] == TEAM_HUMAN)
  1959. {
  1960. HumanSetup(i);
  1961. SpawnPlayer(i);
  1962. }
  1963. else if(team[i] == TEAM_ZOMBIE)
  1964. {
  1965. ZombieSetup(i);
  1966. SpawnPlayer(i);
  1967. }
  1968. }
  1969. }
  1970. }
  1971.  
  1972. if(pInfo[playerid][IsPlayerInfected] == 1)
  1973. {
  1974. ZombieSetup(playerid);
  1975. CurePlayer(playerid);
  1976. }
  1977.  
  1978. if(team[playerid] == TEAM_ZOMBIE)
  1979. {
  1980. ZombieSetup(playerid);
  1981. }
  1982.  
  1983. pInfo[killerid][pKills]++;
  1984. pInfo[killerid][Killstreak]++;
  1985. pInfo[playerid][pDeaths]++;
  1986. pInfo[playerid][Killstreak] = 0;
  1987.  
  1988. switch(Map[XPType])
  1989. {
  1990. case 1:
  1991. {
  1992. switch(random(2))
  1993. {
  1994. case 0: GivePlayerXP(killerid,20);
  1995. case 1: GivePlayerXP(killerid,20);
  1996. }
  1997. }
  1998. case 2:
  1999. {
  2000. switch(random(2))
  2001. {
  2002. case 0: GivePlayerXP(killerid,20);
  2003. case 1: GivePlayerXP(killerid,30);
  2004. }
  2005. }
  2006. case 3:
  2007. {
  2008. switch(random(2))
  2009. {
  2010. case 0: GivePlayerXP(killerid,30);
  2011. case 1: GivePlayerXP(killerid,40);
  2012. }
  2013. }
  2014. case 4:
  2015. {
  2016. switch(random(2))
  2017. {
  2018. case 0: GivePlayerXP(killerid,40);
  2019. case 1: GivePlayerXP(killerid,50);
  2020. }
  2021. }
  2022. }
  2023.  
  2024. if(pInfo[killerid][pVIPLevel] >= 1)
  2025. {
  2026. switch(Map[XPType])
  2027. {
  2028. case 1:
  2029. {
  2030. switch(random(2))
  2031. {
  2032. case 0: GivePlayerXP(killerid,35),SendClientMessage(killerid,-1,""chat" Earned 15 XP from VIP Double XP! + normal xp 20 = 35 xp total");
  2033. case 1: GivePlayerXP(killerid,35),SendClientMessage(killerid,-1,""chat" Earned 15 XP from VIP Double XP! + normal xp 20 = 35 xp total");
  2034. }
  2035. }
  2036.  
  2037. case 2:
  2038. {
  2039. switch(random(2))
  2040. {
  2041. case 0: GivePlayerXP(killerid,25),SendClientMessage(killerid,-1,""chat" Earned 25 XP from VIP Double XP! + double xp 20 = 45 xp total");
  2042. case 1: GivePlayerXP(killerid,35),SendClientMessage(killerid,-1,""chat" Earned 35 XP from VIP Double XP! + double xp 30 = 65 xp total");
  2043. }
  2044. }
  2045.  
  2046. case 3:
  2047. {
  2048. switch(random(2))
  2049. {
  2050. case 0: GivePlayerXP(killerid,35),SendClientMessage(killerid,-1,""chat" Earned 35 XP from VIP Double XP! + triple xp 30 = 65 xp total");
  2051. case 1: GivePlayerXP(killerid,45),SendClientMessage(killerid,-1,""chat" Earned 45 XP from VIP Double XP! + triple xp 40 = 85 xp total");
  2052. }
  2053. }
  2054. case 4:
  2055. {
  2056. switch(random(2))
  2057. {
  2058. case 0: GivePlayerXP(killerid,55),SendClientMessage(killerid,-1,""chat" Earned 55 XP from VIP Double XP! + quad xp 40 = 95 xp total");
  2059. case 1: GivePlayerXP(killerid,65),SendClientMessage(killerid,-1,""chat" Earned 65 XP from VIP Double XP! + quad xp 50 = 115 xp total");
  2060. }
  2061. }
  2062. }
  2063. }
  2064.  
  2065. if(team[killerid] == TEAM_ZOMBIE)
  2066. {
  2067. if(reason == 9)
  2068. {
  2069. ZombieSetup(playerid);
  2070. }
  2071. }
  2072.  
  2073. KillTimer(pInfo[playerid][IsPlayerInfectedTimer]);
  2074. GetWeaponName(reason,gunname,sizeof(gunname));
  2075. format(string,sizeof(string),"You have killed~r~ %s~w~ with an %s",PlayerName(playerid),gunname);
  2076. TextDrawSetString(iKilled[killerid],string);
  2077. TextDrawShowForPlayer(killerid, iKilled[killerid]);
  2078. SetTimerEx("HideiKilled", 3000, 0, "i", killerid);
  2079.  
  2080. if(killerid != INVALID_PLAYER_ID)
  2081. {
  2082. if(!PlayerShotPlayer[killerid][playerid])
  2083. {
  2084. //new Admin[24] = "Anti-cheat";
  2085. //new reason3[128] = "Fake illing";
  2086. //BanPlayer(playerid,reason3,Admin);
  2087. }
  2088. }
  2089.  
  2090. foreach(Player,i)
  2091. {
  2092. PlayerShotPlayer[i][playerid] = 0;
  2093. }
  2094. new Float:x,Float:y,Float:z;
  2095.  
  2096. if(team[playerid] == TEAM_ZOMBIE)
  2097. {
  2098. GetPlayerPos(playerid,Float:x,Float:y,Float:z);
  2099. meatDrops[playerid] = CreatePickup(2805,19,Float:x,Float:y,Float:z,0);
  2100.  
  2101. if(pInfo[playerid][pZombieClass] == BOOMERZOMBIE)
  2102. {
  2103. GetPlayerPos(playerid,Float:x,Float:y,Float:z);
  2104. CreateExplosion(Float:x,Float:y,Float:z,0,6.0);
  2105.  
  2106. foreach(Player,i)
  2107. {
  2108. GetClosestPlayer(i);
  2109. if(IsPlayerConnected(i))
  2110. {
  2111. switch(GetPlayerSkin(i))
  2112. {
  2113. case NON_IMMUNE:
  2114. {
  2115. if(IsPlayerInRangeOfPoint(i,7.0,Float:x,Float:y,Float:z))
  2116. {
  2117. if(pInfo[i][IsPlayerInfected] == 0)
  2118. {
  2119. if(pInfo[i][pAdminDuty] == 0)
  2120. {
  2121. InfectPlayerStandard(i);
  2122. }
  2123. else if(pInfo[i][pAdminDuty] == 1)
  2124. {
  2125. SendClientMessage(playerid,COLOR_RED,"That player can't be infected because is on admin duty!");
  2126. }
  2127. }
  2128. }
  2129. }
  2130. }
  2131. }
  2132. }
  2133. }
  2134. }
  2135.  
  2136. new kstring[256];
  2137. switch(pInfo[killerid][Killstreak])
  2138. {
  2139. 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;
  2140. 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;
  2141. 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;
  2142. 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;
  2143. 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;
  2144. 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;
  2145. 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;
  2146. 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;
  2147. 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;
  2148. 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;
  2149. 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;
  2150. 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;
  2151. 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;
  2152. 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;
  2153. 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;
  2154. 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;
  2155. 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;
  2156. 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;
  2157. 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;
  2158. 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;
  2159. 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;
  2160. 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;
  2161. 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;
  2162. }
  2163.  
  2164. if(team[killerid] == TEAM_HUMAN)
  2165. {
  2166. if(pInfo[killerid][pAdminLevel] >= 1) return 0;
  2167. if(GetPlayerSkin(killerid) == 0)
  2168. {
  2169. new Admin[24] = "Anti-cheat";
  2170. new reason3[128] = "Skin Hack (SI 0)";
  2171. BanPlayer(killerid,reason3,Admin);
  2172. }
  2173. }
  2174.  
  2175. hideTextdrawsAfterConnect(playerid);
  2176. CheckToLevelOrRankUp(killerid);
  2177. }
  2178.  
  2179. return 1;
  2180. }
  2181.  
  2182. public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
  2183. {
  2184. PlayerShotPlayer[issuerid][playerid] = 1;
  2185.  
  2186. if(team[issuerid] == TEAM_HUMAN)
  2187. {
  2188. if(team[playerid] == TEAM_ZOMBIE)
  2189. {
  2190. if(JustSpawned[playerid] == 1)
  2191. {
  2192. SetPlayerHealth(issuerid, 0.0);
  2193. new string[128];
  2194. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s has been killed for spawn attacking a zombie!", PlayerName(playerid));
  2195. SendClientMessageToAll(-1, string);
  2196. }
  2197. }
  2198. }
  2199. if(team[issuerid] == TEAM_HUMAN)
  2200. {
  2201. if(pInfo[issuerid][pHumanClass] == KICKBACK || pInfo[issuerid][pVIPKickBack] == 1 || pInfo[issuerid][pKickBackCoin])
  2202. {
  2203. if(team[playerid] == TEAM_ZOMBIE)
  2204. {
  2205. if(weaponid == 23 || weaponid == 25 || weaponid == 24 || weaponid == 34 || weaponid == 31 || weaponid == 29)
  2206. {
  2207. new Float:x,Float:y,Float:z,Float:angle;
  2208. GetPlayerFacingAngle(playerid,Float:angle);
  2209. GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
  2210.  
  2211. SetPlayerVelocity(playerid,Float:x+0.1,Float:y+0.1,Float:z+0.2);
  2212. SetPlayerFacingAngle(playerid,Float:angle);
  2213. }
  2214. }
  2215. }
  2216. }
  2217. if(team[issuerid] == TEAM_HUMAN)
  2218. {
  2219. if(pInfo[issuerid][pHumanClass] == SUPERHUMAN)
  2220. {
  2221. if(weaponid == 8)
  2222. {
  2223. SetPlayerHealth(playerid, 0.0);
  2224. }
  2225. }
  2226. }
  2227. if(team[issuerid] == TEAM_HUMAN)
  2228. {
  2229. if(pInfo[issuerid][pHumanClass] == SUPERHUMAN)
  2230. {
  2231. if(weaponid == 24)
  2232. {
  2233. SetPlayerHealth(playerid, 70.0);
  2234. }
  2235. }
  2236. }
  2237. if(team[issuerid] == TEAM_HUMAN)
  2238. {
  2239. if(pInfo[issuerid][pHumanClass] == SUPERHUMAN)
  2240. {
  2241. if(weaponid == 26)
  2242. {
  2243. SetPlayerHealth(playerid, 10.0);
  2244. }
  2245. }
  2246. }
  2247. if(team[issuerid] == TEAM_HUMAN)
  2248. {
  2249. if(pInfo[issuerid][pHumanClass] == SUPERHUMAN)
  2250. {
  2251. if(weaponid == 31)
  2252. {
  2253. SetPlayerHealth(playerid, 5.0);
  2254. }
  2255. }
  2256. }
  2257. if(team[issuerid] == TEAM_HUMAN)
  2258. {
  2259. if(pInfo[issuerid][pHumanClass] == INVISIBLA)
  2260. {
  2261. if(team[playerid] == TEAM_ZOMBIE)
  2262. {
  2263. if(weaponid == 23)
  2264. {
  2265. SetPlayerHealth(playerid,100.0);
  2266. new Float:x,Float:y,Float:z,Float:angle;
  2267. SetPlayerHealth(playerid,100.0);
  2268. SetPlayerHealth(playerid,100.0);
  2269. GetPlayerFacingAngle(playerid,Float:angle);
  2270. SetPlayerHealth(playerid,100.0);
  2271. GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
  2272. SetPlayerHealth(playerid,100.0);
  2273. SetPlayerVelocity(playerid,Float:x+1.3,Float:y+1.2,Float:z+0.9);
  2274. SetPlayerHealth(playerid,100.0);
  2275. SetPlayerFacingAngle(playerid,Float:angle);
  2276. SetPlayerHealth(playerid,100.0);
  2277. SetPlayerHealth(playerid,100.0);
  2278. }
  2279. }
  2280. }
  2281. }
  2282.  
  2283. if(team[issuerid] == TEAM_HUMAN)
  2284. {
  2285. if(pInfo[issuerid][pHumanClass] == KICKBACK || pInfo[issuerid][pVIPKickBack] == 1 || pInfo[issuerid][pKickBackCoin] || pInfo[issuerid][pHumanClass] == AKICK)
  2286. {
  2287. if(pInfo[issuerid][pZombieClass] == KZOM)
  2288. {
  2289. if(weaponid == 23 || weaponid == 25 || weaponid == 24 || weaponid == 34 || weaponid == 31 || weaponid == 29 || weaponid == 27)
  2290. {
  2291. new Float:x,Float:y,Float:z,Float:angle;
  2292. GetPlayerFacingAngle(playerid,Float:angle);
  2293. GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
  2294.  
  2295. SetPlayerVelocity(playerid,Float:x+0.0,Float:y+0.0,Float:z+0.0);
  2296. SetPlayerFacingAngle(playerid,Float:angle);
  2297. }
  2298. }
  2299. }
  2300. }
  2301.  
  2302. if(team[issuerid] == TEAM_HUMAN)
  2303. {
  2304. if(pInfo[issuerid][pHumanClass] == VIPSAMURAI)
  2305. {
  2306. if(team[playerid] == TEAM_ZOMBIE)
  2307. {
  2308. if(weaponid == 8)
  2309. {
  2310. new Float:hp;
  2311. GetPlayerHealth(playerid,hp);
  2312. SetPlayerHealth(playerid, hp - 125);
  2313. }
  2314. }
  2315. }
  2316. }
  2317. if(team[issuerid] == TEAM_HUMAN)
  2318. {
  2319. if(pInfo[issuerid][pHumanClass] == GENERAL)
  2320. {
  2321. if(team[playerid] == TEAM_ZOMBIE)
  2322. {
  2323. if(weaponid == 31)
  2324. {
  2325. new Float:hp;
  2326. GetPlayerHealth(playerid,hp);
  2327. SetPlayerHealth(playerid, hp - 10);
  2328. }
  2329. }
  2330. }
  2331. }
  2332. if(team[issuerid] == TEAM_ZOMBIE)
  2333. {
  2334. if(pInfo[issuerid][pZombieClass] == LEECH)
  2335. {
  2336. if(team[playerid] == TEAM_HUMAN)
  2337. {
  2338. if(weaponid == 9)
  2339. {
  2340. new Float:hp;
  2341. GetPlayerHealth(playerid,hp);
  2342. SetPlayerHealth(playerid, hp - 17.5);
  2343. }
  2344. }
  2345. }
  2346. }
  2347. if(team[issuerid] == TEAM_HUMAN)
  2348. {
  2349. if(pInfo[issuerid][pHumanClass] == GENERAL)
  2350. {
  2351. if(team[playerid] == TEAM_ZOMBIE)
  2352. {
  2353. if(weaponid == 29)
  2354. {
  2355. new Float:hp;
  2356. GetPlayerHealth(playerid,hp);
  2357. SetPlayerHealth(playerid, hp - 3);
  2358. }
  2359. }
  2360. }
  2361. }
  2362. if(team[issuerid] == TEAM_HUMAN)
  2363. {
  2364. if(pInfo[issuerid][pHumanClass] == GENERAL)
  2365. {
  2366. if(team[playerid] == TEAM_ZOMBIE)
  2367. {
  2368. if(weaponid == 34)
  2369. {
  2370. new Float:hp;
  2371. GetPlayerHealth(playerid,hp);
  2372. SetPlayerHealth(playerid, hp - 60);
  2373. }
  2374. }
  2375. }
  2376. }
  2377. if(team[issuerid] == TEAM_HUMAN)
  2378. {
  2379. if(pInfo[issuerid][pHumanClass] == VIPSAMURAI)
  2380. {
  2381. if(team[playerid] == TEAM_ZOMBIE)
  2382. {
  2383. if(weaponid == 27)
  2384. {
  2385. new Float:hp;
  2386. GetPlayerHealth(playerid,hp);
  2387. SetPlayerHealth(playerid, hp - 40);
  2388. // - 40;
  2389. }
  2390. }
  2391. }
  2392. }
  2393. if(team[issuerid] == TEAM_HUMAN)
  2394. {
  2395. if(pInfo[issuerid][pHumanClass] == MARINE)
  2396. {
  2397. if(team[playerid] == TEAM_ZOMBIE)
  2398. {
  2399. if(weaponid == 27)
  2400. {
  2401. new Float:hp;
  2402. GetPlayerHealth(playerid,hp);
  2403. SetPlayerHealth(playerid, hp - 25);
  2404. // - 25;
  2405. }
  2406. }
  2407. }
  2408. }
  2409. if(team[issuerid] == TEAM_HUMAN)
  2410. {
  2411. if(pInfo[issuerid][pHumanClass] == MARINE)
  2412. {
  2413. if(team[playerid] == TEAM_ZOMBIE)
  2414. {
  2415. if(weaponid == 24)
  2416. {
  2417. new Float:hp;
  2418. GetPlayerHealth(playerid,hp);
  2419. SetPlayerHealth(playerid, hp - 30);
  2420. // - 50;
  2421. }
  2422. }
  2423. }
  2424. }
  2425. if(team[issuerid] == TEAM_HUMAN)
  2426. {
  2427. if(pInfo[issuerid][pHumanClass] == STARS)
  2428. {
  2429. if(team[playerid] == TEAM_ZOMBIE)
  2430. {
  2431. if(weaponid == 24)
  2432. {
  2433. new Float:hp;
  2434. GetPlayerHealth(playerid,hp);
  2435. SetPlayerHealth(playerid, hp - 75);
  2436. // - 70;
  2437. }
  2438. }
  2439. }
  2440. }
  2441. if(team[issuerid] == TEAM_HUMAN)
  2442. {
  2443. if(pInfo[issuerid][pHumanClass] == STARS)
  2444. {
  2445. if(team[playerid] == TEAM_ZOMBIE)
  2446. {
  2447. if(weaponid == 31)
  2448. {
  2449. new Float:hp;
  2450. GetPlayerHealth(playerid,hp);
  2451. SetPlayerHealth(playerid, hp - 5);
  2452. //
  2453. }
  2454. }
  2455. }
  2456. }
  2457. if(team[issuerid] == TEAM_HUMAN)
  2458. {
  2459. if(pInfo[issuerid][pHumanClass] == STARS)
  2460. {
  2461. if(team[playerid] == TEAM_ZOMBIE)
  2462. {
  2463. if(weaponid == 29)
  2464. {
  2465. new Float:hp;
  2466. GetPlayerHealth(playerid,hp);
  2467. SetPlayerHealth(playerid, hp - 4);
  2468. //
  2469. }
  2470. }
  2471. }
  2472. }
  2473. if(team[issuerid] == TEAM_HUMAN)
  2474. {
  2475. if(pInfo[issuerid][pHumanClass] == SAMURAI)
  2476. {
  2477. if(team[playerid] == TEAM_ZOMBIE)
  2478. {
  2479. if(weaponid == 8)
  2480. {
  2481. new Float:hp;
  2482. GetPlayerHealth(playerid,hp);
  2483. SetPlayerHealth(playerid, hp - 100);
  2484. // - 100;
  2485. }
  2486. }
  2487. }
  2488. }
  2489.  
  2490. if(team[issuerid] == TEAM_HUMAN)
  2491. {
  2492. if(pInfo[issuerid][pHumanClass] == AKICK)
  2493. {
  2494. if(team[playerid] == TEAM_ZOMBIE)
  2495. {
  2496. if(weaponid == 27)
  2497. {
  2498. new Float:x,Float:y,Float:z,Float:angle;
  2499. GetPlayerFacingAngle(playerid,Float:angle);
  2500. GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
  2501.  
  2502. SetPlayerVelocity(playerid,Float:x+0.4,Float:y+0.5,Float:z+0.9);
  2503. SetPlayerFacingAngle(playerid,Float:angle);
  2504. GetPlayerFacingAngle(playerid,Float:angle);
  2505. GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
  2506. SetPlayerVelocity(playerid,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  2507. SetPlayerFacingAngle(playerid,Float:angle);
  2508. GetPlayerFacingAngle(playerid,Float:angle);
  2509. GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
  2510. SetPlayerVelocity(playerid,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  2511. SetPlayerFacingAngle(playerid,Float:angle);
  2512. }
  2513. }
  2514. }
  2515. }
  2516.  
  2517. if(team[issuerid] == TEAM_HUMAN)
  2518. {
  2519. if(pInfo[issuerid][pHumanClass] == MARTIALCOACH)
  2520. {
  2521. if(team[playerid] == TEAM_ZOMBIE)
  2522. {
  2523. if(weaponid == 0)
  2524. {
  2525. new Float:hp;
  2526. GetPlayerHealth(playerid, Float:hp);
  2527. SetPlayerHealth(playerid, hp-50);
  2528. }
  2529. }
  2530. }
  2531. }
  2532.  
  2533. if(team[issuerid] == TEAM_HUMAN)
  2534. {
  2535. if(pInfo[issuerid][pHumanClass] == AKICK)
  2536. {
  2537. if(team[playerid] == TEAM_ZOMBIE)
  2538. {
  2539. if(weaponid == 24)
  2540. {
  2541. new Float:x,Float:y,Float:z,Float:angle;
  2542. GetPlayerFacingAngle(playerid,Float:angle);
  2543. GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
  2544.  
  2545. SetPlayerVelocity(playerid,Float:x+0.4,Float:y+0.5,Float:z+0.9);
  2546. SetPlayerFacingAngle(playerid,Float:angle);
  2547. GetPlayerFacingAngle(playerid,Float:angle);
  2548. GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
  2549. SetPlayerVelocity(playerid,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  2550. SetPlayerFacingAngle(playerid,Float:angle);
  2551. GetPlayerFacingAngle(playerid,Float:angle);
  2552. GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
  2553. SetPlayerVelocity(playerid,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  2554. SetPlayerFacingAngle(playerid,Float:angle);
  2555. }
  2556. }
  2557. }
  2558. }
  2559.  
  2560. if(team[issuerid] == TEAM_HUMAN)
  2561. {
  2562. if(pInfo[issuerid][pHumanClass] == VIPSCOUT || pInfo[issuerid][pHumanClass] == MASTER || pInfo[issuerid][pHumanClass] == BUDDY || pInfo[issuerid][pHumanClass] == MARINE)
  2563. {
  2564. if(team[playerid] == TEAM_ZOMBIE)
  2565. {
  2566. if(weaponid == 34 || weaponid == 29 || weaponid == 14 || weaponid == 33 || weaponid == 30)
  2567. {
  2568. new Float:hp;
  2569. GetPlayerHealth(playerid,hp);
  2570. SetPlayerHealth(playerid, hp - 40);
  2571. // - 40;
  2572. }
  2573. }
  2574. }
  2575. }
  2576. if(team[issuerid] == TEAM_ZOMBIE)
  2577. {
  2578. if(pInfo[issuerid][pZombieClass] == VAMPIRE)
  2579. {
  2580. if(team[playerid] == TEAM_HUMAN)
  2581. {
  2582. if(weaponid == 9)
  2583. {
  2584. new Float:hp;
  2585. GetPlayerHealth(playerid,hp);
  2586. SetPlayerHealth(playerid, hp - 20);
  2587. // - 20
  2588. }
  2589. }
  2590. }
  2591. }
  2592.  
  2593. if(team[issuerid] == TEAM_ZOMBIE)
  2594. {
  2595. if(pInfo[issuerid][pZombieClass] == RELITE)
  2596. {
  2597. if(team[playerid] == TEAM_HUMAN)
  2598. {
  2599. if(weaponid == 9)
  2600. {
  2601. new Float:hp;
  2602. GetPlayerHealth(playerid,hp);
  2603. SetPlayerHealth(playerid, hp - 60);
  2604. }
  2605. }
  2606. }
  2607. }
  2608.  
  2609. if(team[issuerid] == TEAM_HUMAN)
  2610. {
  2611. if(pInfo[issuerid][pHumanClass] == COWBOY)
  2612. {
  2613. if(team[playerid] == TEAM_ZOMBIE)
  2614. {
  2615. if(weaponid == 22)
  2616. {
  2617. new Float:hp;
  2618. GetPlayerHealth(playerid,hp);
  2619. SetPlayerHealth(playerid, hp - 20);
  2620. // - 20;
  2621. }
  2622. }
  2623. }
  2624. }
  2625.  
  2626. if(team[issuerid] == TEAM_HUMAN)
  2627. {
  2628. if(pInfo[issuerid][pHumanClass] == ASSASSIN)
  2629. {
  2630. if(team[playerid] == TEAM_ZOMBIE)
  2631. {
  2632. if(weaponid == 28)
  2633. {
  2634. new Float:hp;
  2635. GetPlayerHealth(playerid,hp);
  2636. SetPlayerHealth(playerid, hp - 40);
  2637. // - 25;
  2638. }
  2639. }
  2640. }
  2641. }
  2642. if(team[issuerid] == TEAM_HUMAN)
  2643. {
  2644. if(pInfo[issuerid][pHumanClass] == PIMP)
  2645. {
  2646. if(team[playerid] == TEAM_ZOMBIE)
  2647. {
  2648. if(weaponid == 10)
  2649. {
  2650. new Float:hp;
  2651. GetPlayerHealth(playerid,hp);
  2652. SetPlayerHealth(playerid, hp - 20);
  2653. // - 20;
  2654. }
  2655. }
  2656. }
  2657. }
  2658. if(team[issuerid] == TEAM_HUMAN)
  2659. {
  2660. if(pInfo[issuerid][pHumanClass] == EXPERIENCEDSCOUT)
  2661. {
  2662. if(team[playerid] == TEAM_ZOMBIE)
  2663. {
  2664. if(weaponid == 34 || weaponid == 23 )
  2665. {
  2666. new Float:hp;
  2667. GetPlayerHealth(playerid,hp);
  2668. SetPlayerHealth(playerid, hp - 80);
  2669. // - 80;
  2670. }
  2671. }
  2672. }
  2673. }
  2674. if(team[issuerid] == TEAM_HUMAN)
  2675. {
  2676. if(pInfo[issuerid][pHumanClass] == SCOUT || pInfo[issuerid][pHumanClass] == HEAVYSHOTGUN || pInfo[issuerid][pHumanClass] == KICKBACK || pInfo[issuerid][pDamageShotgunCoin] == 1 || pInfo[issuerid][pHumanClass] == BOXER)
  2677. {
  2678. if(team[playerid] == TEAM_ZOMBIE)
  2679. {
  2680. if(weaponid == 25)
  2681. {
  2682. new Float:hp;
  2683. GetPlayerHealth(playerid,hp);
  2684. SetPlayerHealth(playerid, hp - 35);
  2685. // - 35;
  2686. }
  2687. if(weaponid == 0)
  2688. {
  2689. new Float:hp;
  2690. GetPlayerHealth(playerid,hp);
  2691. SetPlayerHealth(playerid, hp - 100);
  2692. // - 100;
  2693. }
  2694. if(weaponid == 34)
  2695. {
  2696. new Float:hp;
  2697. GetPlayerHealth(playerid,hp);
  2698. SetPlayerHealth(playerid, hp - 35);
  2699. // - 35;
  2700. }
  2701. }
  2702. }
  2703. }
  2704.  
  2705. if(team[issuerid] == TEAM_HUMAN)
  2706. {
  2707. if(pInfo[issuerid][pHumanClass] == TECG)
  2708. {
  2709. if(team[playerid] == TEAM_ZOMBIE)
  2710. {
  2711. if(weaponid == 32)
  2712. {
  2713. new Float:hp;
  2714. GetPlayerHealth(playerid,hp);
  2715. SetPlayerHealth(playerid, hp - 30);
  2716. // - 30;
  2717. }
  2718. }
  2719. }
  2720. }
  2721.  
  2722. if(team[issuerid] == TEAM_HUMAN)
  2723. {
  2724. if(pInfo[issuerid][pHumanClass] == BULL)
  2725. {
  2726. if(team[playerid] == TEAM_ZOMBIE)
  2727. {
  2728. if(weaponid == 26)
  2729. {
  2730. new Float:hp;
  2731. GetPlayerHealth(playerid,hp);
  2732. SetPlayerHealth(playerid, hp - 20);
  2733. }
  2734. }
  2735. }
  2736. }
  2737.  
  2738. if(team[issuerid] == TEAM_HUMAN)
  2739. {
  2740. if(pInfo[issuerid][pHumanClass] == SHOTGUNSPECIAL)
  2741. {
  2742. if(team[playerid] == TEAM_ZOMBIE)
  2743. {
  2744. if(weaponid == 25)
  2745. {
  2746. new Float:hp;
  2747. GetPlayerHealth(playerid,hp);
  2748. SetPlayerHealth(playerid, hp - 50);
  2749. // - 50;
  2750. }
  2751. }
  2752. }
  2753. }
  2754. return 1;
  2755. }
  2756.  
  2757. public OnPlayerText(playerid, text[])
  2758. {
  2759. if(GetPVarInt(playerid, "SPS Muted") == 0)
  2760. {
  2761. SetPVarInt(playerid, "SPS Messages Sent", GetPVarInt(playerid, "SPS Messages Sent") + 1);
  2762. SetTimerEx("SPS_Remove_Messages_Limit", 1500, 0, "i", playerid);
  2763.  
  2764. if(GetPVarInt(playerid, "SPS Messages Sent") >= 4)
  2765. {
  2766. if(!(((GetPVarInt(playerid, "SPS Spam Warnings") + 2) == 3)))
  2767. {
  2768. SendClientMessage(playerid, -1, ""chat""COL_LIGHTBLUE" Please, do not spam.");
  2769. }
  2770. SetPVarInt(playerid, "SPS Spam Warnings", GetPVarInt(playerid, "SPS Spam Warnings") + 1);
  2771. }
  2772.  
  2773. if(pInfo[playerid][pLogged] == 1)
  2774. {
  2775. new stringbig[356];
  2776. if(pInfo[playerid][IsPlayerMuted] == 1) {
  2777. SendClientMessage(playerid,-1,""chat" You are muted");
  2778. return 0;
  2779. }
  2780. if(team[playerid] == TEAM_HUMAN)
  2781. {
  2782. format(stringbig,sizeof(stringbig),""COL_WHITE"[Human](%d): {FFFFFF}%s",playerid, text);
  2783. SendPlayerMessageToAll(playerid,stringbig);
  2784. }
  2785. if(team[playerid] == TEAM_ZOMBIE)
  2786. {
  2787. format(stringbig,sizeof(stringbig),""COL_WHITE"[Zombie](%d): {FFFFFF}%s",playerid, text);
  2788. SendPlayerMessageToAll(playerid,stringbig);
  2789. }
  2790. {
  2791. SendClientMessage(99,-1,"ha");
  2792. }
  2793. }
  2794. }
  2795. else
  2796. {
  2797. SendClientMessage(playerid, -1, ""chat""COL_LIGHTBLUE" You are muted, you can't talk.");
  2798. return 0;
  2799. }
  2800. return 0;
  2801. }
  2802.  
  2803. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  2804. {
  2805. if(pInfo[playerid][pAdminLevel] >= 5)
  2806. {
  2807. SendClientMessage(playerid,-1,""chat" "COL_GREEN"{1569C7}Welcome To Vehicle");
  2808. }
  2809. else
  2810. {
  2811. new Float:posxx[3];
  2812. GetPlayerPos(playerid, posxx[0], posxx[1], posxx[2]);
  2813. SetPlayerPos(playerid, posxx[0], posxx[1], posxx[2]+2);
  2814. }
  2815. return 1;
  2816. }
  2817.  
  2818. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  2819. {
  2820. if(PRESSED(KEY_FIRE))
  2821. {
  2822. switch(GetPlayerWeapon(playerid))
  2823. {
  2824. case 15,16,17,18,36,38,39,41,42,43,44,45:
  2825. {
  2826. new reason[128];
  2827. new Admin[24] = "Anti-cheat";
  2828. format(reason,sizeof(reason),"Weapon hack %i",GetPlayerWeapon(playerid));
  2829. BanPlayer(playerid,reason,Admin);
  2830. }
  2831. }
  2832. }
  2833.  
  2834. if(PRESSED(KEY_SPRINT))
  2835. {
  2836. if(AutoSprint[playerid] == 1)
  2837. {
  2838. ApplyAnimation(playerid,"PED","Sprint_wuzi",4.0,1,1,1,1,1);
  2839. }
  2840. }
  2841.  
  2842. if(PRESSED(KEY_FIRE))
  2843. {
  2844. if(team[playerid] == TEAM_HUMAN)
  2845. {
  2846. switch(GetPlayerWeapon(playerid))
  2847. {
  2848. 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);
  2849. }
  2850. }
  2851. }
  2852.  
  2853.  
  2854. if(PRESSED(KEY_YES))
  2855. {
  2856. if(team[playerid] == TEAM_HUMAN)
  2857. {
  2858. if(gettime() - 8 < Abilitys[playerid][ShoutCooldown]) return GameTextForPlayer(playerid,"~w~ Cannot shout wait 8 seconds!",1000,5);
  2859. {
  2860. 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\nGhosty Nightmare!\nKickback Assitance!\nHelp","Select","Cancel");
  2861. PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  2862. Abilitys[playerid][ShoutCooldown] = gettime();
  2863. }
  2864. }
  2865. }
  2866. if(PRESSED(KEY_WALK))
  2867. {
  2868. if(team[playerid] == TEAM_HUMAN)
  2869. {
  2870. if(pInfo[playerid][pHumanClass] == E_ENGINEER)
  2871. {
  2872. new Float:pz, Float:x, Float:y, Float:z;
  2873. GetPlayerFacingAngle(playerid, pz);
  2874. GetPlayerPos(playerid, Float:x, Float:y, Float:z);
  2875.  
  2876. if(pInfo[playerid][pLadders] >= 1)
  2877. {
  2878. new string[128];
  2879. pInfo[playerid][pLadders] -= 1;
  2880. GetXYInFrontOfPlayer(playerid, Float:x,Float:y, 1.0);
  2881. CreateObject(1437,Float:x,Float:y,Float:z,-30.0,0.0,pz,500.0);
  2882. format(string,sizeof(string),""chat" You have %i ladders left",pInfo[playerid][pLadders]);
  2883. SendClientMessage(playerid,-1,string);
  2884. PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  2885. }
  2886. else return SendClientMessage(playerid,-1,""chat" You ran out of Ladders!");
  2887. }
  2888. }
  2889. }
  2890. if(PRESSED(KEY_WALK))
  2891. {
  2892. if(team[playerid] == TEAM_HUMAN)
  2893. {
  2894. if(pInfo[playerid][pHumanClass] == MARTIALCOACH)
  2895. {
  2896. if(gettime() - 10 < Abilitys[playerid][StomperPushing]) return GameTextForPlayer(playerid,"~w~ Still recovering 10 sec",1000,5);
  2897. {
  2898. new Float:x,Float:y,Float:z,Float:Angle;
  2899. GetPlayerPos(playerid,Float:x,Float:y,Float:z);
  2900. GetPlayerFacingAngle(playerid,Float:Angle);
  2901. foreach(Player,i)
  2902. {
  2903. if(team[i] == TEAM_ZOMBIE)
  2904. {
  2905. if(GetDistanceBetweenPlayers(playerid,i) < 12.0)
  2906. {
  2907. GetClosestPlayer(i);
  2908. new Float:x, Float:y, Float:z, Float:angle;
  2909. GetPlayerFacingAngle(i,Float:angle);
  2910. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  2911. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.9);
  2912. SetPlayerFacingAngle(i,Float:angle);
  2913. GetPlayerFacingAngle(i,Float:angle);
  2914. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  2915. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  2916. SetPlayerFacingAngle(i,Float:angle);
  2917. GetPlayerFacingAngle(i,Float:angle);
  2918. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  2919. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  2920. GetPlayerFacingAngle(i,Float:angle);
  2921. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  2922. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.9);
  2923. SetPlayerFacingAngle(i,Float:angle);
  2924. GetPlayerFacingAngle(i,Float:angle);
  2925. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  2926. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  2927. SetPlayerFacingAngle(i,Float:angle);
  2928. GetPlayerFacingAngle(i,Float:angle);
  2929. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  2930. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  2931. GetPlayerFacingAngle(i,Float:angle);
  2932. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  2933. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.9);
  2934. SetPlayerFacingAngle(i,Float:angle);
  2935. GetPlayerFacingAngle(i,Float:angle);
  2936. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  2937. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  2938. SetPlayerFacingAngle(i,Float:angle);
  2939. GetPlayerFacingAngle(i,Float:angle);
  2940. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  2941. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  2942. GetPlayerFacingAngle(i,Float:angle);
  2943. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  2944. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.9);
  2945. SetPlayerFacingAngle(i,Float:angle);
  2946. GetPlayerFacingAngle(i,Float:angle);
  2947. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  2948. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  2949. SetPlayerFacingAngle(i,Float:angle);
  2950. GetPlayerFacingAngle(i,Float:angle);
  2951. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  2952. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  2953. GetPlayerFacingAngle(i,Float:angle);
  2954. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  2955. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.9);
  2956. SetPlayerFacingAngle(i,Float:angle);
  2957. GetPlayerFacingAngle(i,Float:angle);
  2958. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  2959. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  2960. SetPlayerFacingAngle(i,Float:angle);
  2961. GetPlayerFacingAngle(i,Float:angle);
  2962. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  2963. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  2964. GetPlayerFacingAngle(i,Float:angle);
  2965. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  2966. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.9);
  2967. SetPlayerFacingAngle(i,Float:angle);
  2968. GetPlayerFacingAngle(i,Float:angle);
  2969. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  2970. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  2971. SetPlayerFacingAngle(i,Float:angle);
  2972. GetPlayerFacingAngle(i,Float:angle);
  2973. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  2974. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  2975. GetPlayerFacingAngle(i,Float:angle);
  2976. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  2977. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.9);
  2978. SetPlayerFacingAngle(i,Float:angle);
  2979. GetPlayerFacingAngle(i,Float:angle);
  2980. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  2981. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  2982. SetPlayerFacingAngle(i,Float:angle);
  2983. GetPlayerFacingAngle(i,Float:angle);
  2984. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  2985. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  2986. GetPlayerFacingAngle(i,Float:angle);
  2987. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  2988. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.9);
  2989. SetPlayerFacingAngle(i,Float:angle);
  2990. GetPlayerFacingAngle(i,Float:angle);
  2991. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  2992. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  2993. SetPlayerFacingAngle(i,Float:angle);
  2994. GetPlayerFacingAngle(i,Float:angle);
  2995. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  2996. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  2997. GetPlayerFacingAngle(i,Float:angle);
  2998. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  2999. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.9);
  3000. SetPlayerFacingAngle(i,Float:angle);
  3001. GetPlayerFacingAngle(i,Float:angle);
  3002. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3003. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  3004. SetPlayerFacingAngle(i,Float:angle);
  3005. GetPlayerFacingAngle(i,Float:angle);
  3006. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3007. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  3008. GetPlayerFacingAngle(i,Float:angle);
  3009. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3010. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.9);
  3011. SetPlayerFacingAngle(i,Float:angle);
  3012. GetPlayerFacingAngle(i,Float:angle);
  3013. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3014. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  3015. SetPlayerFacingAngle(i,Float:angle);
  3016. GetPlayerFacingAngle(i,Float:angle);
  3017. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3018. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  3019. GetPlayerFacingAngle(i,Float:angle);
  3020. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3021. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.9);
  3022. SetPlayerFacingAngle(i,Float:angle);
  3023. GetPlayerFacingAngle(i,Float:angle);
  3024. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3025. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  3026. SetPlayerFacingAngle(i,Float:angle);
  3027. GetPlayerFacingAngle(i,Float:angle);
  3028. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3029. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  3030. GetPlayerFacingAngle(i,Float:angle);
  3031. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3032. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.9);
  3033. SetPlayerFacingAngle(i,Float:angle);
  3034. GetPlayerFacingAngle(i,Float:angle);
  3035. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3036. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  3037. SetPlayerFacingAngle(i,Float:angle);
  3038. GetPlayerFacingAngle(i,Float:angle);
  3039. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3040. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  3041. GetPlayerFacingAngle(i,Float:angle);
  3042. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3043. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.9);
  3044. SetPlayerFacingAngle(i,Float:angle);
  3045. GetPlayerFacingAngle(i,Float:angle);
  3046. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3047. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  3048. SetPlayerFacingAngle(i,Float:angle);
  3049. GetPlayerFacingAngle(i,Float:angle);
  3050. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3051. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  3052. GetPlayerFacingAngle(i,Float:angle);
  3053. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3054. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.9);
  3055. SetPlayerFacingAngle(i,Float:angle);
  3056. GetPlayerFacingAngle(i,Float:angle);
  3057. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3058. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  3059. SetPlayerFacingAngle(i,Float:angle);
  3060. GetPlayerFacingAngle(i,Float:angle);
  3061. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3062. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  3063. GetPlayerFacingAngle(i,Float:angle);
  3064. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3065. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.9);
  3066. SetPlayerFacingAngle(i,Float:angle);
  3067. GetPlayerFacingAngle(i,Float:angle);
  3068. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3069. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  3070. SetPlayerFacingAngle(i,Float:angle);
  3071. GetPlayerFacingAngle(i,Float:angle);
  3072. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3073. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  3074. GetPlayerFacingAngle(i,Float:angle);
  3075. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3076. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.9);
  3077. SetPlayerFacingAngle(i,Float:angle);
  3078. GetPlayerFacingAngle(i,Float:angle);
  3079. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3080. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  3081. SetPlayerFacingAngle(i,Float:angle);
  3082. GetPlayerFacingAngle(i,Float:angle);
  3083. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3084. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  3085. GetPlayerFacingAngle(i,Float:angle);
  3086. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3087. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.9);
  3088. SetPlayerFacingAngle(i,Float:angle);
  3089. GetPlayerFacingAngle(i,Float:angle);
  3090. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3091. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  3092. SetPlayerFacingAngle(i,Float:angle);
  3093. GetPlayerFacingAngle(i,Float:angle);
  3094. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3095. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  3096. GetPlayerFacingAngle(i,Float:angle);
  3097. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3098. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.9);
  3099. SetPlayerFacingAngle(i,Float:angle);
  3100. GetPlayerFacingAngle(i,Float:angle);
  3101. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3102. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  3103. SetPlayerFacingAngle(i,Float:angle);
  3104. GetPlayerFacingAngle(i,Float:angle);
  3105. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3106. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  3107. GetPlayerFacingAngle(i,Float:angle);
  3108. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3109. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.9);
  3110. SetPlayerFacingAngle(i,Float:angle);
  3111. GetPlayerFacingAngle(i,Float:angle);
  3112. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3113. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  3114. SetPlayerFacingAngle(i,Float:angle);
  3115. GetPlayerFacingAngle(i,Float:angle);
  3116. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3117. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  3118. GetPlayerFacingAngle(i,Float:angle);
  3119. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3120. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.9);
  3121. SetPlayerFacingAngle(i,Float:angle);
  3122. GetPlayerFacingAngle(i,Float:angle);
  3123. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3124. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  3125. SetPlayerFacingAngle(i,Float:angle);
  3126. GetPlayerFacingAngle(i,Float:angle);
  3127. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3128. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  3129. SetPlayerFacingAngle(i,Float:angle);
  3130. SetTimerEx("RangePush", 4000, 0, "i", i);
  3131. GivePlayerXP(playerid,150);
  3132. GameTextForPlayer(i,"~r~Range Pushed", 10000, 5);
  3133. Abilitys[playerid][StomperPushing] = gettime();
  3134. }
  3135. }
  3136. }
  3137. }
  3138. }
  3139. }
  3140. }
  3141. if(PRESSED(KEY_WALK))
  3142. {
  3143. if(team[playerid] == TEAM_HUMAN)
  3144. {
  3145. if(pInfo[playerid][pHumanClass] == INVISIBLA)
  3146. {
  3147. if(pInfo[playerid][pAdminLevel] >= 5)
  3148. {
  3149.  
  3150. if(isInvisible[playerid] == 0)
  3151. {
  3152. if(gettime() - 6 < Abilitys[playerid][StomperPushing]) return GameTextForPlayer(playerid,"~w~ Still recovering for 6 sec",1000,5);
  3153. {
  3154. new string[128];
  3155. format(string,sizeof(string),""chat" You are invisible now.");
  3156. SendClientMessage(playerid,-1,string);
  3157. PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  3158. SetPlayerVirtualWorld(playerid,215);
  3159. isInvisible[playerid] = 1;
  3160. format(string,sizeof(string),""chat" %s is now invisible.", PlayerName(playerid));
  3161. SendClientMessageToAll(-1,string);
  3162. Abilitys[playerid][StomperPushing] = gettime();
  3163. }
  3164. }
  3165. else if(isInvisible[playerid] == 1)
  3166. {
  3167. if(gettime() - 6 < Abilitys[playerid][StomperPushing]) return GameTextForPlayer(playerid,"~w~ Still recovering for 6 sec",1000,5);
  3168. {
  3169. new string[128];
  3170. format(string,sizeof(string),""chat" You are no more invisible now.");
  3171. SendClientMessage(playerid,-1,string);
  3172. PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  3173. SetPlayerVirtualWorld(playerid,0);
  3174. isInvisible[playerid] = 0;
  3175. format(string,sizeof(string),""chat" %s is no more invisible.", PlayerName(playerid));
  3176. SendClientMessageToAll(-1,string);
  3177. Abilitys[playerid][StomperPushing] = gettime();
  3178. }
  3179. }
  3180. else return SendClientMessage(playerid,-1,"You are not Head Admin or +");
  3181. }
  3182. }
  3183. }
  3184. }
  3185. if(PRESSED(KEY_WALK))
  3186. {
  3187. if(team[playerid] == TEAM_HUMAN)
  3188. {
  3189. if(pInfo[playerid][pHumanClass] == VIPENGINEER)
  3190. {
  3191. new Float:pz, Float:x, Float:y, Float:z;
  3192. GetPlayerFacingAngle(playerid, pz);
  3193. GetPlayerPos(playerid, Float:x, Float:y, Float:z);
  3194.  
  3195. if(pInfo[playerid][pVIPBoxes] >= 1)
  3196. {
  3197. new string[128];
  3198. pInfo[playerid][pVIPBoxes] -= 1;
  3199. GetXYInFrontOfPlayer(playerid, Float:x,Float:y, 1.0);
  3200. CreateObject(1558,Float:x,Float:y,Float:z,0.0,0.0,pz,500.0);
  3201. format(string,sizeof(string),""chat" You have %i Crates left",pInfo[playerid][pVIPBoxes]);
  3202. SendClientMessage(playerid,-1,string);
  3203. PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  3204. }
  3205. else return SendClientMessage(playerid,-1,""chat" You ran out of Crates!");
  3206. }
  3207. }
  3208. }
  3209. if(PRESSED(KEY_WALK))
  3210. {
  3211. if(team[playerid] == TEAM_HUMAN)
  3212. {
  3213. if(pInfo[playerid][pHumanClass] == ENGINEER)
  3214. {
  3215. new Float:pz, Float:x, Float:y, Float:z;
  3216. GetPlayerFacingAngle(playerid, pz);
  3217. GetPlayerPos(playerid, Float:x, Float:y, Float:z);
  3218.  
  3219. if(pInfo[playerid][Boxes] >= 1)
  3220. {
  3221. new string[128];
  3222. pInfo[playerid][Boxes] -= 1;
  3223. GetXYInFrontOfPlayer(playerid, Float:x,Float:y, 1.0);
  3224. CreateObject(1421,Float:x,Float:y,Float:z,0.0,0.0,pz,500.0);
  3225. format(string,sizeof(string),""chat" You have %i boxes left",pInfo[playerid][Boxes]);
  3226. SendClientMessage(playerid,-1,string);
  3227. PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  3228. }
  3229. else return SendClientMessage(playerid,-1,""chat" You ran out of boxes!");
  3230. }
  3231. }
  3232. }
  3233. if(PRESSED(KEY_WALK))
  3234. {
  3235. if(team[playerid] == TEAM_HUMAN)
  3236. {
  3237. if(pInfo[playerid][pHumanClass] == GENERAL)
  3238. {
  3239. new Float:pz, Float:x, Float:y, Float:z;
  3240. GetPlayerFacingAngle(playerid, pz);
  3241. GetPlayerPos(playerid, Float:x, Float:y, Float:z);
  3242.  
  3243. if(pInfo[playerid][BoxesAdvanced] >= 1)
  3244. {
  3245. new string[128];
  3246. pInfo[playerid][BoxesAdvanced] -= 1;
  3247. GetXYInFrontOfPlayer(playerid, Float:x,Float:y, 1.0);
  3248. CreateObject(19313,Float:x,Float:y,Float:z,0.0,0.0,pz,500.0);
  3249. format(string,sizeof(string),""chat" You have %i military fences left",pInfo[playerid][BoxesAdvanced]);
  3250. SendClientMessage(playerid,-1,string);
  3251. PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  3252. }
  3253. else return SendClientMessage(playerid,-1,""chat" You ran out of fences!");
  3254. }
  3255. }
  3256. }
  3257. if(PRESSED(KEY_WALK))
  3258. {
  3259. if(team[playerid] == TEAM_HUMAN)
  3260. {
  3261. if(pInfo[playerid][pHumanClass] == ADVANCEDENGINEER)
  3262. {
  3263. new Float:pz, Float:x, Float:y, Float:z;
  3264. GetPlayerFacingAngle(playerid, pz);
  3265. GetPlayerPos(playerid, Float:x, Float:y, Float:z);
  3266.  
  3267. if(pInfo[playerid][BoxesAdvanced] >= 1)
  3268. {
  3269. new string[128];
  3270. pInfo[playerid][BoxesAdvanced] -= 1;
  3271. GetXYInFrontOfPlayer(playerid, Float:x,Float:y, 1.0);
  3272. CreateObject(1421,Float:x,Float:y,Float:z,0.0,0.0,pz,500.0);
  3273. format(string,sizeof(string),""chat" You have %i boxes left",pInfo[playerid][BoxesAdvanced]);
  3274. SendClientMessage(playerid,-1,string);
  3275. PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  3276. }
  3277. else return SendClientMessage(playerid,-1,""chat" You ran out of boxes!");
  3278. }
  3279. }
  3280. }
  3281. if(PRESSED(KEY_WALK))
  3282. {
  3283. if(team[playerid] == TEAM_HUMAN)
  3284. {
  3285. if(pInfo[playerid][pHumanClass] == DOCTOR)
  3286. {
  3287. new Float:pz, Float:x, Float:y, Float:z;
  3288. GetPlayerFacingAngle(playerid, pz);
  3289. GetPlayerPos(playerid, Float:x, Float:y, Float:z);
  3290.  
  3291. if(pInfo[playerid][pDoctorShield] >= 1)
  3292. {
  3293. new string[128];
  3294. pInfo[playerid][pDoctorShield] -= 1;
  3295. GetXYInFrontOfPlayer(playerid, Float:x,Float:y, 1.0);
  3296. DocShield = CreateObject(3534,Float:x,Float:y,Float:z,0.0,0.0,pz,500.0);
  3297. format(string,sizeof(string),""chat" You have %i Doctor shields left",pInfo[playerid][pDoctorShield]);
  3298. SendClientMessage(playerid,-1,string);
  3299. PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  3300. }
  3301. else return SendClientMessage(playerid,-1,""chat" You ran out of shields!");
  3302. }
  3303. }
  3304. }
  3305. if(PRESSED(KEY_WALK))
  3306. {
  3307. if(team[playerid] == TEAM_HUMAN)
  3308. {
  3309. if(pInfo[playerid][pHumanClass] == ASSASSIN)
  3310. {
  3311. new Float:pz, Float:x, Float:y, Float:z;
  3312. GetPlayerFacingAngle(playerid, pz);
  3313. GetPlayerPos(playerid, Float:x, Float:y, Float:z);
  3314.  
  3315. if(pInfo[playerid][C4] >= 1)
  3316. {
  3317. new string[128];
  3318. pInfo[playerid][C4] -= 1;
  3319. GetXYInFrontOfPlayer(playerid, Float:x,Float:y, 1.0);
  3320. ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 2000);
  3321. c4Obj[playerid] = CreateObject(1654,Float:x,Float:y,Float:z-1,0.0,0.0,pz,500.0);
  3322. format(string,sizeof(string),""chat" You have %i C4's left",pInfo[playerid][C4]);
  3323. SendClientMessage(playerid,-1,string);
  3324.  
  3325. GameTextForPlayer(playerid,"~n~~n~~n~~n~~g~Planted c4 exploded in 10 seconds",3500,5);
  3326. SetTimerEx("C4Explode",10000,0,"i",playerid);
  3327. GivePlayerXP(playerid,5);
  3328. PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  3329. }
  3330. else return SendClientMessage(playerid,-1,""chat" You ran out of c4's!");
  3331. }
  3332. }
  3333. }
  3334. if(PRESSED(KEY_WALK))
  3335. {
  3336. if(team[playerid] == TEAM_HUMAN)
  3337. {
  3338. if(pInfo[playerid][pHumanClass] == TRAPMASTER)
  3339. {
  3340. new Float:pz, Float:x, Float:y, Float:z;
  3341. GetPlayerFacingAngle(playerid, pz);
  3342. GetPlayerPos(playerid, Float:x, Float:y, Float:z);
  3343.  
  3344. if(pInfo[playerid][pTrapMasterTrap] >= 1)
  3345. {
  3346. new string[128];
  3347. pInfo[playerid][pTrapMasterTrap] -= 1;
  3348. GetXYInFrontOfPlayer(playerid, Float:x,Float:y, 1.0);
  3349. ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 2000);
  3350. Trap = CreateObject(19315,Float:x,Float:y,Float:z-1,0.0,0.0,pz,500.0);
  3351. format(string,sizeof(string),""chat" You have %i traps left",pInfo[playerid][traps]);
  3352. SendClientMessage(playerid,-1,string);
  3353. }
  3354. else return SendClientMessage(playerid,-1,""chat" You ran out of traps!");
  3355. }
  3356.  
  3357. }
  3358.  
  3359. }
  3360. if(PRESSED(KEY_WALK))
  3361. {
  3362. if(team[playerid] == TEAM_HUMAN)
  3363. {
  3364. if(pInfo[playerid][pHumanClass] == SCIENTIST)
  3365. {
  3366. new Float:x,Float:y,Float:z,Float:Angle;
  3367. GetPlayerPos(playerid,Float:x,Float:y,Float:z);
  3368. GetPlayerFacingAngle(playerid,Float:Angle);
  3369.  
  3370. new targetid = GetClosestPlayer(playerid);
  3371. if(team[targetid] == TEAM_ZOMBIE)
  3372. {
  3373. foreach(Player,i)
  3374. {
  3375. if(GetDistanceBetweenPlayers(targetid,i) <= 6.0)
  3376. {
  3377. if (pInfo[playerid][pScientistCure] >= 1)
  3378. {
  3379. GetClosestPlayer(i);
  3380. GetPlayerFacingAngle(i,Float:Angle);
  3381. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3382. GivePlayerXP(playerid, 500);
  3383.  
  3384. new string[128], string2[128], revivedstring[128];
  3385. HumanSetup(targetid);
  3386. SpawnPlayer(targetid);
  3387.  
  3388. SetPlayerPos(targetid,Float:x,Float:y,Float:z);
  3389. SetPlayerFacingAngle(targetid,Float:Angle);
  3390.  
  3391. pInfo[playerid][pScientistCure] -= 1;
  3392.  
  3393. format(string,sizeof(string),""chat" You have revived %s",PlayerName(targetid));
  3394. SendClientMessage(playerid,-1,string);
  3395.  
  3396. format(string2,sizeof(string2),""chat" You have beed revived by %s",PlayerName(playerid));
  3397. SendClientMessage(targetid,-1,string2);
  3398.  
  3399. format(revivedstring,sizeof(revivedstring), ""chat""COL_PINK" %s has been revived by %s",PlayerName(targetid),PlayerName(playerid));
  3400. SendClientMessageToAll(-1,revivedstring);
  3401. }
  3402. }
  3403. }
  3404. }
  3405. }
  3406. }
  3407. }
  3408. if(PRESSED(KEY_WALK))
  3409. {
  3410. if(team[playerid] == TEAM_ZOMBIE)
  3411. {
  3412. if(pInfo[playerid][pZombieClass] == ADVSTOMPER || pInfo[playerid][pZombieClass] == KZOM)
  3413. {
  3414. if(gettime() - 6 < Abilitys[playerid][StomperPushing]) return GameTextForPlayer(playerid,"~w~ Still recovering",1000,5);
  3415. {
  3416. new Float:x,Float:y,Float:z,Float:Angle;
  3417. GetPlayerPos(playerid,Float:x,Float:y,Float:z);
  3418. GetPlayerFacingAngle(playerid,Float:Angle);
  3419. foreach(Player,i)
  3420. {
  3421. switch(GetPlayerSkin(i))
  3422. {
  3423. case NON_IMMUNE,100:
  3424. {
  3425. if(GetDistanceBetweenPlayers(playerid,i) < 8.0)
  3426. {
  3427. GetClosestPlayer(i);
  3428. GetPlayerFacingAngle(i,Float:Angle);
  3429. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3430. SetPlayerVelocity(i,Float:x+0.3,Float:y+0.3,Float:z+0.2);
  3431. SetPlayerFacingAngle(i,Float:Angle);
  3432. GivePlayerXP(playerid,20);
  3433. Abilitys[playerid][StomperPushing] = gettime();
  3434. }
  3435. }
  3436. }
  3437. }
  3438. }
  3439. }
  3440. }
  3441. }
  3442. if(PRESSED(KEY_WALK))
  3443. {
  3444. if(team[playerid] == TEAM_ZOMBIE)
  3445. {
  3446. if(pInfo[playerid][pZombieClass] == STOMPERZOMBIE)
  3447. {
  3448. if(gettime() - 6 < Abilitys[playerid][StomperPushing]) return GameTextForPlayer(playerid,"~w~ Still recovering",1000,5);
  3449. {
  3450. new Float:x,Float:y,Float:z,Float:Angle;
  3451. GetPlayerPos(playerid,Float:x,Float:y,Float:z);
  3452. GetPlayerFacingAngle(playerid,Float:Angle);
  3453. foreach(Player,i)
  3454. {
  3455. switch(GetPlayerSkin(i))
  3456. {
  3457. case NON_IMMUNE,163,70:
  3458. {
  3459. if(GetDistanceBetweenPlayers(playerid,i) < 6.0)
  3460. {
  3461. GetClosestPlayer(i);
  3462. GetPlayerFacingAngle(i,Float:Angle);
  3463. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3464. SetPlayerVelocity(i,Float:x+0.3,Float:y+0.3,Float:z+0.2);
  3465. SetPlayerFacingAngle(i,Float:Angle);
  3466. GivePlayerXP(playerid,20);
  3467. Abilitys[playerid][StomperPushing] = gettime();
  3468. }
  3469. }
  3470. }
  3471. }
  3472. }
  3473. }
  3474. }
  3475. }
  3476. if(PRESSED(KEY_FIRE))
  3477. {
  3478. if(team[playerid] == TEAM_HUMAN)
  3479. {
  3480. if(pInfo[playerid][pHumanClass] == BOXER)
  3481. {
  3482. if(gettime() - 1 < Abilitys[playerid][StomperPushing]) return GameTextForPlayer(playerid,"~r~ Still recovering",1000,5);
  3483. {
  3484. new Float:x,Float:y,Float:z,Float:Angle;
  3485. GetPlayerPos(playerid,Float:x,Float:y,Float:z);
  3486. GetPlayerFacingAngle(playerid,Float:Angle);
  3487. foreach(Player,i)
  3488. {
  3489. switch(GetPlayerSkin(i))
  3490. {
  3491. case TEAM_ZOMBIE:
  3492. {
  3493. if(GetDistanceBetweenPlayers(playerid,i) < 2.0)
  3494. {
  3495. GetClosestPlayer(i);
  3496. GetPlayerFacingAngle(i,Float:Angle);
  3497. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  3498. SetPlayerVelocity(i,Float:x+0.3,Float:y+0.3,Float:z+0.2);
  3499. SetPlayerFacingAngle(i,Float:Angle);
  3500. GivePlayerXP(playerid,10);
  3501. Abilitys[playerid][StomperPushing] = gettime();
  3502. }
  3503. }
  3504. }
  3505. }
  3506. }
  3507. }
  3508. }
  3509. }
  3510. if(PRESSED(KEY_WALK))
  3511. {
  3512. if(team[playerid] == TEAM_ZOMBIE)
  3513. {
  3514. if(pInfo[playerid][pZombieClass] == FIREBREATHER)
  3515. {
  3516. if(gettime() - 15 < Abilitys[playerid][FireBreatherCooldown]) return GameTextForPlayer(playerid,"~w~ Still recovering",1000,5);
  3517. {
  3518. new Float:pz, Float:x, Float:y, Float:z;
  3519. GetPlayerFacingAngle(playerid, pz);
  3520. GetPlayerPos(playerid, Float:x, Float:y, Float:z);
  3521. GetXYInFrontOfPlayer(playerid, Float:x,Float:y,12.0);
  3522. CreateExplosion(Float:x, Float:y, Float:z,1,40);
  3523. GivePlayerXP(playerid,25);
  3524. Abilitys[playerid][FireBreatherCooldown] = gettime();
  3525. SendClientMessage(playerid,COLOR_GREEN,"You took a deep breath and burned everything in your way!");
  3526. }
  3527. }
  3528. }
  3529. }
  3530. if(PRESSED(KEY_WALK))
  3531. {
  3532. if(team[playerid] == TEAM_HUMAN)
  3533. {
  3534. if(pInfo[playerid][pHumanClass] == STARS)
  3535. {
  3536. if(gettime() - 15 < Abilitys[playerid][ScreamerZombieAb2]) return GameTextForPlayer(playerid,"~w~ Still recovering 15sec",1000,5);
  3537. {
  3538. foreach(Player,i)
  3539. {
  3540. if(GetDistanceBetweenPlayers(playerid,i) < 8.0)
  3541. {
  3542. new Float:hp;
  3543. GetClosestPlayer(i);
  3544. GameTextForPlayer(i,"~n~~n~~n~~n~~g~Healed by a STARS Member",3500,5);
  3545. GivePlayerXP(playerid,20);
  3546. GetPlayerHealth(i,hp);
  3547. SetPlayerHealth(i,hp+25);
  3548. Abilitys[playerid][ScreamerZombieAb2] = gettime();
  3549. }
  3550. }
  3551. }
  3552. }
  3553. }
  3554. }
  3555. if(PRESSED(KEY_WALK))
  3556. {
  3557. if(team[playerid] == TEAM_HUMAN)
  3558. {
  3559. if(pInfo[playerid][pHumanClass] == GHOST)
  3560. {
  3561. if(gettime() - 20 < Abilitys[playerid][FireBreatherCooldown]) return GameTextForPlayer(playerid,"~r~ Still recovering",1000,5);
  3562. {
  3563. new Float:pz, Float:x, Float:y, Float:z;
  3564. GetPlayerFacingAngle(playerid, pz);
  3565. GetPlayerPos(playerid, Float:x, Float:y, Float:z);
  3566. GetXYInFrontOfPlayer(playerid, Float:x,Float:y,12.0);
  3567. CreateExplosion(Float:x, Float:y, Float:z,1,40);
  3568. GivePlayerXP(playerid,50);
  3569. Abilitys[playerid][FireBreatherCooldown] = gettime();
  3570. SendClientMessage(playerid,COLOR_GREEN,"I AM GHOST RIDER BABY!!!");
  3571. }
  3572. }
  3573. }
  3574. }
  3575. if(PRESSED(KEY_WALK))
  3576. {
  3577. if(team[playerid] == TEAM_ZOMBIE)
  3578. {
  3579. if(pInfo[playerid][pZombieClass] == NEMESIS)
  3580. {
  3581. new Float:pz, Float:x, Float:y, Float:z;
  3582. new targetid = GetClosestPlayer(playerid);
  3583. GetPlayerFacingAngle(playerid, pz);
  3584. GetPlayerPos(playerid, Float:x, Float:y, Float:z);
  3585. if(GetDistanceBetweenPlayers(playerid,targetid) < 10.0)
  3586. {
  3587. if(gettime() - 30 < Abilitys[playerid][NemesisCooldown]) return GameTextForPlayer(playerid,"~r~ You must wait 30 seconds",1000,5);
  3588. {
  3589. if(team[targetid] == TEAM_HUMAN)
  3590. {
  3591.  
  3592. GivePlayerXP(playerid,100);
  3593.  
  3594. Abilitys[playerid][NemesisCooldown] = gettime();
  3595.  
  3596. SendClientMessage(playerid,COLOR_GREEN,"Smoke 'em baby!!!");
  3597.  
  3598. SetPlayerPos(targetid,Float:x+1,Float:y+1,Float:z);
  3599. ApplyAnimation(targetid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
  3600. ApplyAnimation(targetid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0); //Apply it twice!
  3601. TogglePlayerControllable(targetid, 0);
  3602. SetTimerEx("ClearAnims", 2000, 0, "i", targetid);
  3603.  
  3604. new nemesisstring[128];
  3605. format(nemesisstring,sizeof(nemesisstring),""chat" You have been attacked by Nemesis %s",PlayerName(playerid));
  3606. SendClientMessage(targetid,-1,nemesisstring);
  3607. }
  3608. }
  3609. }
  3610. }
  3611. }
  3612. }
  3613. if(PRESSED(KEY_WALK))
  3614. {
  3615. if(team[playerid] == TEAM_ZOMBIE)
  3616. {
  3617. if(pInfo[playerid][pZombieClass] == VAMPIRE)
  3618. {
  3619. new targetid123 = GetClosestPlayer(playerid);
  3620. if(GetDistanceBetweenPlayers(playerid,targetid123) < 7.5)
  3621. {
  3622. if(gettime() - 20 < Abilitys[playerid][NemesisCooldown]) return GameTextForPlayer(playerid,"~r~ You must wait 20 seconds",1000,5);
  3623. {
  3624. if(team[targetid123] == TEAM_HUMAN)
  3625. {
  3626.  
  3627. GivePlayerXP(playerid,100);
  3628.  
  3629. Abilitys[playerid][NemesisCooldown] = gettime();
  3630.  
  3631. SendClientMessage(targetid123,COLOR_GREEN,"Cmon' Baby, Yo gettin sux");
  3632. vampiresucked[targetid123] = 1;
  3633.  
  3634. ApplyAnimation(targetid123, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
  3635. ApplyAnimation(targetid123, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0); //Apply it twice!
  3636. TogglePlayerControllable(targetid123, 1);
  3637. SetTimerEx("ClearAnims", 3000, 0, "i", targetid123);
  3638. new Float:hp;
  3639. GetPlayerHealth(targetid123, hp);
  3640. SetPlayerHealth(targetid123, hp-20);
  3641. GetPlayerHealth(playerid, hp);
  3642. SetPlayerHealth(playerid, hp+20);
  3643. SetTimerEx("vampireoff", 8000, 0, "i", targetid123);
  3644. new nemesisstring[128];
  3645. format(nemesisstring,sizeof(nemesisstring),""chat" You have been attacked by a vampire, You are now bleeding, It will stop in 7 seconds");
  3646. SendClientMessage(targetid123,-1,nemesisstring);
  3647. SendClientMessage(playerid,-1,"You have attacked the player using your powers, He will now loose hp whenever he moves");
  3648. }
  3649. }
  3650. }
  3651. }
  3652. }
  3653. }
  3654. if(PRESSED(KEY_WALK))
  3655. {
  3656. if(team[playerid] == TEAM_ZOMBIE)
  3657. {
  3658. if(pInfo[playerid][pZombieClass] == ADVANCEDMUTATED)
  3659. {
  3660. if(gettime() - 10 < Abilitys[playerid][AdvancedMutatedCooldown]) return GameTextForPlayer(playerid,"~w~ Still recovering",1000,5);
  3661. {
  3662. foreach(Player,i)
  3663. {
  3664. switch(GetPlayerSkin(i))
  3665. {
  3666. case NON_IMMUNE:
  3667. {
  3668. if(GetDistanceBetweenPlayers(playerid,i) < 6.5)
  3669. {
  3670. if(pInfo[i][IsPlayerInfected] == 0)
  3671. {
  3672. if(pInfo[i][pAdminDuty] == 0)
  3673. {
  3674. InfectPlayerStandard(i);
  3675. GivePlayerXP(playerid,20);
  3676. Abilitys[playerid][AdvancedMutatedCooldown] = gettime();
  3677. }
  3678. else if(pInfo[i][pAdminDuty] == 1)
  3679. {
  3680. SendClientMessage(playerid,COLOR_RED,"That player can't be infected because is on admin duty!");
  3681. }
  3682. }
  3683. }
  3684. }
  3685. }
  3686. }
  3687. }
  3688. }
  3689. }
  3690. }
  3691. if(PRESSED(KEY_AIM))
  3692. {
  3693. if(team[playerid] == TEAM_ZOMBIE)
  3694. {
  3695. if(pInfo[playerid][pZombieClass] == RELITE)
  3696. {
  3697. if(gettime() - 6 < Abilitys[playerid][AdvancedMutatedCooldown]) return GameTextForPlayer(playerid,"~w~ Still recovering 6 seconds",1000,5);
  3698. {
  3699. foreach(Player,i)
  3700. {
  3701. if(GetDistanceBetweenPlayers(playerid,i) < 6.5)
  3702. {
  3703. if(pInfo[i][IsPlayerInfected] == 0)
  3704. {
  3705. if(pInfo[i][pAdminDuty] == 0)
  3706. {
  3707. InfectPlayerStandard(i);
  3708. GivePlayerXP(playerid,20);
  3709. Abilitys[playerid][AdvancedMutatedCooldown] = gettime();
  3710. }
  3711. else if(pInfo[i][pAdminDuty] == 1)
  3712. {
  3713. SendClientMessage(playerid,COLOR_RED,"That player can't be infected because is on admin duty!");
  3714. }
  3715. }
  3716. }
  3717. }
  3718. }
  3719. }
  3720. }
  3721. }
  3722. if(PRESSED(KEY_WALK))
  3723. {
  3724. if(team[playerid] == TEAM_HUMAN)
  3725. {
  3726. if(pInfo[playerid][pHumanClass] == SUPERHUMAN)
  3727. {
  3728. if(gettime() - 6 < Abilitys[playerid][AdvancedMutatedCooldown]) return GameTextForPlayer(playerid,"~w~ Still recovering 6 seconds",1000,5);
  3729. {
  3730. foreach(Player,i)
  3731. {
  3732. if(team[i] == TEAM_ZOMBIE)
  3733. {
  3734. if(GetDistanceBetweenPlayers(playerid,i) < 40.0)
  3735. {
  3736. if(gettime() - 8 < Abilitys[playerid][ShoutCooldown]) return GameTextForPlayer(playerid,"~w~ Cannot explode more! wait 8 seconds~n~ to do again!",1000,5);
  3737. {
  3738. PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  3739. new Float:x, Float:y, Float:z;
  3740. GetPlayerPos(i, Float:x, Float:y, Float:z);
  3741. CreateExplosion(x, y, z, 8, 10);
  3742. SendClientMessageToAll(-1, ""chat" Everyone get away from the exploding zombie or kill him before you die!");
  3743. SetTimerEx("ExplosionM1", 6000, 0, "i", i);
  3744. SetTimerEx("ExplosionM2", 7000, 0, "i", i);
  3745. SetTimerEx("ExplosionM3", 8000, 0, "i", i);
  3746. SetTimerEx("ExplosionM4", 9000, 0, "i", i);
  3747. SetTimerEx("ExplosionM5", 10000, 0, "i", i);
  3748. SetTimerEx("ExplosionM6", 11000, 0, "i", i);
  3749. Abilitys[playerid][ShoutCooldown] = gettime();
  3750. }
  3751. }
  3752. }
  3753. }
  3754. }
  3755. }
  3756. }
  3757. }
  3758. if(PRESSED(KEY_WALK))
  3759. {
  3760. if(team[playerid] == TEAM_ZOMBIE)
  3761. {
  3762. if(pInfo[playerid][pZombieClass] == RELITE)
  3763. {
  3764. if(gettime() - 6 < Abilitys[playerid][HighJumpZombie]) return GameTextForPlayer(playerid,"~w~ Still recovering 6seconds",1000,5);
  3765. {
  3766. new Float:x,Float:y,Float:z;
  3767. GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
  3768. SetPlayerVelocity(playerid,Float:x,Float:y*1.0,Float:z+0.8* 1.2);
  3769. Abilitys[playerid][HighJumpZombie] = gettime();
  3770. }
  3771. }
  3772. }
  3773. }
  3774. if(PRESSED(KEY_WALK))
  3775. {
  3776. if(team[playerid] == TEAM_ZOMBIE)
  3777. {
  3778. if(pInfo[playerid][pZombieClass] == SCREAMERZOMBIE)
  3779. {
  3780. if(gettime() - 9 < Abilitys[playerid][ScreamerZombieAb]) return GameTextForPlayer(playerid,"~w~ Still recovering",1000,5);
  3781. {
  3782. foreach(Player,i)
  3783. {
  3784. switch(GetPlayerSkin(i))
  3785. {
  3786. case NON_IMMUNE,285:
  3787. {
  3788. if(GetDistanceBetweenPlayers(playerid,i) < 5.0)
  3789. {
  3790. GetClosestPlayer(i);
  3791. ApplyAnimation(i, "PED", "BIKE_fall_off", 4.1, 0, 1, 1, 1, 0, 1);
  3792. GameTextForPlayer(i,"~n~~n~~n~~n~~g~Screamer Attacked",3500,5);
  3793. SetTimerEx("ScreamerClearAnim",1500,0,"i",i);
  3794. GivePlayerXP(playerid,15);
  3795. Abilitys[playerid][ScreamerZombieAb] = gettime();
  3796. }
  3797. }
  3798. }
  3799. }
  3800. }
  3801. }
  3802. }
  3803. }
  3804. if(PRESSED(KEY_WALK))
  3805. {
  3806. if(team[playerid] == TEAM_ZOMBIE)
  3807. {
  3808. if(pInfo[playerid][pZombieClass] == LEECH)
  3809. {
  3810. if(gettime() - 7 < Abilitys[playerid][ScreamerZombieAb]) return GameTextForPlayer(playerid,"~w~ Still recovering 7 seconds",1000,5);
  3811. {
  3812. foreach(Player,i)
  3813. {
  3814. if(team[i] == TEAM_HUMAN)
  3815. {
  3816. if(GetDistanceBetweenPlayers(playerid,i) < 7.0)
  3817. {
  3818. new Float:hp, rHP = random(75);
  3819. GetClosestPlayer(i);
  3820. ApplyAnimation(i, "SWEET", "Sweet_injuredloop", 4.1, 0, 1, 1, 1, 0, 1);
  3821. GameTextForPlayer(i,"~n~~n~~n~~n~~g~HP got Sucked",3500,5);
  3822. SetTimerEx("ScreamerClearAnim",1500,0,"i",i);
  3823. GivePlayerXP(playerid,100);
  3824. GetPlayerHealth(i, Float:hp);
  3825. SetPlayerHealth(i, Float:hp-rHP);
  3826. GetPlayerHealth(playerid, Float:hp);
  3827. SetPlayerHealth(playerid, Float:hp+rHP);
  3828. Abilitys[playerid][ScreamerZombieAb] = gettime();
  3829. }
  3830. }
  3831. }
  3832. }
  3833. }
  3834. }
  3835. }
  3836. if(PRESSED(KEY_WALK))
  3837. {
  3838. if(team[playerid] == TEAM_ZOMBIE)
  3839. {
  3840. if(pInfo[playerid][pZombieClass] == HEAVYSCREAMER)
  3841. {
  3842. if(gettime() - 12 < Abilitys[playerid][ScreamerZombieAb2]) return GameTextForPlayer(playerid,"~w~ Still recovering",1000,5);
  3843. {
  3844. foreach(Player,i)
  3845. {
  3846. switch(GetPlayerSkin(i))
  3847. {
  3848. case NON_IMMUNE,163,285,296:
  3849. {
  3850. if(GetDistanceBetweenPlayers(playerid,i) < 8.0)
  3851. {
  3852. new Float:hp;
  3853. GetClosestPlayer(i);
  3854. ApplyAnimation(i, "PED", "BIKE_fall_off", 4.1, 0, 1, 1, 1, 0, 1);
  3855. GameTextForPlayer(i,"~n~~n~~n~~n~~g~Advanced Screamer Attacked",3500,5);
  3856. SetTimerEx("ScreamerClearAnim",1500,0,"i",i);
  3857. GivePlayerXP(playerid,20);
  3858. GetPlayerHealth(playerid,hp);
  3859. Abilitys[playerid][ScreamerZombieAb2] = gettime();
  3860. if(hp <= 80)
  3861. {
  3862. GetPlayerHealth(playerid,hp);
  3863. SetPlayerHealth(playerid,hp+5);
  3864. }
  3865. else return SendClientMessage(playerid,-1,""chat""COL_PINK" Screamed sucessfully but wasn't able to gain HP because you have enough HP (80)");
  3866. }
  3867. }
  3868. }
  3869. }
  3870. }
  3871. }
  3872. }
  3873. }
  3874. if(PRESSED(KEY_WALK))
  3875. {
  3876. if(team[playerid] == TEAM_ZOMBIE)
  3877. {
  3878. if(pInfo[playerid][pZombieClass] == ADVSCREAMER)
  3879. {
  3880. if(gettime() - 12 < Abilitys[playerid][ScreamerZombieAb2]) return GameTextForPlayer(playerid,"~w~ Still recovering",1000,5);
  3881. {
  3882. foreach(Player,i)
  3883. {
  3884. switch(GetPlayerSkin(i))
  3885. {
  3886. case NON_IMMUNE,285,163,33,34,201,198,123,296,240,112,50,62:
  3887. {
  3888. if(GetDistanceBetweenPlayers(playerid,i) < 8.0)
  3889. {
  3890. new Float:hp;
  3891. GetClosestPlayer(i);
  3892. ApplyAnimation(i, "PED", "BIKE_fall_off", 4.1, 0, 1, 1, 1, 0, 1);
  3893. GameTextForPlayer(i,"~n~~n~~n~~n~~g~Advanced Screamer Attacked",3500,5);
  3894. SetTimerEx("ScreamerClearAnim",1500,0,"i",i);
  3895. GivePlayerXP(playerid,25);
  3896. GetPlayerHealth(playerid,hp);
  3897. Abilitys[playerid][ScreamerZombieAb2] = gettime();
  3898. if(hp <= 80)
  3899. {
  3900. GetPlayerHealth(playerid,hp);
  3901. SetPlayerHealth(playerid,hp+10);
  3902. }
  3903. else return SendClientMessage(playerid,-1,""chat""COL_PINK" Screamed sucessfully but wasn't able to gain HP because you have enough HP (80)");
  3904. }
  3905. }
  3906. }
  3907. }
  3908. }
  3909. }
  3910. }
  3911. }
  3912. if(PRESSED(KEY_WALK))
  3913. {
  3914. if(team[playerid] == TEAM_HUMAN)
  3915. {
  3916. if(pInfo[playerid][pHumanClass] == ADVANCEDMEDIC)
  3917. {
  3918. new victimid = GetClosestPlayer(playerid);
  3919. if(IsPlayerConnected(victimid))
  3920. {
  3921. switch(GetPlayerSkin(victimid))
  3922. {
  3923. case NON_IMMUNE:
  3924. {
  3925. if(GetDistanceBetweenPlayers(playerid,victimid) < 10.0)
  3926. {
  3927. if(pInfo[victimid][IsPlayerInfected] == 1)
  3928. {
  3929. CurePlayer(victimid);
  3930. GivePlayerXP(playerid,20);
  3931. }
  3932. else return SendClientMessage(playerid,-1,""chat" No one around you is infected");
  3933. }
  3934. }
  3935. }
  3936. }
  3937. }
  3938. }
  3939. }
  3940. if(PRESSED(KEY_WALK))
  3941. {
  3942. if(team[playerid] == TEAM_ZOMBIE)
  3943. {
  3944. if(pInfo[playerid][pZombieClass] == FASTZOMBIE || pInfo[playerid][pZombieClass] == SLENDER)
  3945. {
  3946. if(gettime() - 6 < Abilitys[playerid][HighJumpZombie]) return GameTextForPlayer(playerid,"~w~ Still recovering",1000,5);
  3947. {
  3948. new Float:x,Float:y,Float:z;
  3949. GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
  3950. SetPlayerVelocity(playerid,Float:x,Float:y*1.0,Float:z+0.8* 1.2);
  3951. Abilitys[playerid][HighJumpZombie] = gettime();
  3952. }
  3953. }
  3954. }
  3955. }
  3956.  
  3957. if(PRESSED(KEY_WALK))
  3958. {
  3959. if(team[playerid] == TEAM_HUMAN)
  3960. {
  3961. if(pInfo[playerid][pHumanClass] == ADVANCEDSCOUT)
  3962. {
  3963. if(gettime() - 6 < Abilitys[playerid][HighJumpScout]) return GameTextForPlayer(playerid,"~w~ Still recovering",1000,5);
  3964. {
  3965. new Float:x,Float:y,Float:z;
  3966. GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
  3967. SetPlayerVelocity(playerid,Float:x,Float:y*0.9,Float:z+0.5* 0.9);
  3968. Abilitys[playerid][HighJumpScout] = gettime();
  3969. }
  3970. }
  3971. }
  3972. }
  3973. if(PRESSED(KEY_WALK))
  3974. {
  3975. if(team[playerid] == TEAM_HUMAN)
  3976. {
  3977. if(pInfo[playerid][pHumanClass] == VIPSCOUT)
  3978. {
  3979. if(gettime() - 6 < Abilitys[playerid][HighJumpScout]) return GameTextForPlayer(playerid,"~w~ Still recovering",1000,5);
  3980. {
  3981. new Float:x,Float:y,Float:z;
  3982. GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
  3983. SetPlayerVelocity(playerid,Float:x,Float:y*0.9,Float:z+0.6* 0.9);
  3984. Abilitys[playerid][HighJumpScout] = gettime();
  3985. }
  3986. }
  3987. }
  3988. }
  3989. if(PRESSED(KEY_WALK))
  3990. {
  3991. if(team[playerid] == TEAM_HUMAN)
  3992. {
  3993. if(pInfo[playerid][pHumanClass] == VIPSAMURAI)
  3994. {
  3995. if(gettime() - 4 < Abilitys[playerid][HighJumpScout]) return GameTextForPlayer(playerid,"~w~ Still ~b~recovering",1000,5);
  3996. {
  3997. new Float:x,Float:y,Float:z;
  3998. GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
  3999. SetPlayerVelocity(playerid,Float:x,Float:y*0.9,Float:z+3.5* 0.9);
  4000. Abilitys[playerid][HighJumpScout] = gettime();
  4001. }
  4002. }
  4003. }
  4004. }
  4005. if(PRESSED(KEY_WALK))
  4006. {
  4007. if(team[playerid] == TEAM_HUMAN)
  4008. {
  4009. if(pInfo[playerid][pHumanClass] == EXPERIENCEDSCOUT)
  4010. {
  4011. if(gettime() - 6 < Abilitys[playerid][HighJumpScout]) return GameTextForPlayer(playerid,"~w~ Still recovering",1000,5);
  4012. {
  4013. new Float:x,Float:y,Float:z;
  4014. GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
  4015. SetPlayerVelocity(playerid,Float:x,Float:y*0.9,Float:z+0.5* 0.9);
  4016. Abilitys[playerid][HighJumpScout] = gettime();
  4017. }
  4018. }
  4019. }
  4020. }
  4021. if(PRESSED(KEY_WALK))
  4022. {
  4023. if(team[playerid] == TEAM_HUMAN)
  4024. {
  4025. if(pInfo[playerid][pHumanClass] == MARINE)
  4026. {
  4027. foreach(Player,i)
  4028. {
  4029. if(team[i] == TEAM_ZOMBIE)
  4030. {
  4031. if(GetDistanceBetweenPlayers(playerid,i) < 5.0)
  4032. {
  4033. if(gettime() - 9 < Abilitys[playerid][WitchAttack]) return GameTextForPlayer(playerid,"~w~ Still recovering",4000,5);
  4034. {
  4035. new Float:hp/*,zmstring[256]*/;
  4036. GetClosestPlayer(i);
  4037. GetPlayerHealth(i,hp);
  4038. SetPlayerHealth(i, hp -50);
  4039. GameTextForPlayer(i,"~n~~n~~n~~n~~y~Marine attacked",3000,5);
  4040. SendClientMessage(playerid,COLOR_GRAD5,"You just marine attacked nearest players");
  4041. GivePlayerXP(playerid,150);
  4042. //format(zmstring,sizeof(zmstring), ""chat""COL_PINK" %s has been marine attacked by %s",PlayerName(victimid),PlayerName(playerid));
  4043. //SendClientMessageToAll(-1,zmstring);
  4044. Abilitys[playerid][WitchAttack] = gettime();
  4045. }
  4046. }
  4047. }
  4048. }
  4049. }
  4050. }
  4051. }
  4052.  
  4053. if(PRESSED(KEY_WALK))
  4054. {
  4055. if(team[playerid] == TEAM_HUMAN)
  4056. {
  4057. if(pInfo[playerid][pHumanClass] == MAFIASOBB)
  4058. {
  4059. foreach(Player,i)
  4060. {
  4061. if(team[i] == TEAM_ZOMBIE)
  4062. {
  4063. if(GetDistanceBetweenPlayers(playerid,i) < 6.0)
  4064. {
  4065. if(gettime() - 10 < Abilitys[playerid][WitchAttack]) return GameTextForPlayer(playerid,"~w~ Still recovering 10 seconds",4000,5);
  4066. {
  4067. new zmstring[256];
  4068. GetClosestPlayer(i);
  4069. GivePlayerXP(playerid,100);
  4070. GivePlayerXP(i,-50);
  4071. GameTextForPlayer(i,"~n~~n~~n~~n~~y~You got robbed!",3000,5);
  4072. SendClientMessage(playerid,COLOR_GRAD5,"You just stole some xp from the zombie behind!");
  4073. format(zmstring,sizeof(zmstring), ""chat""COL_PINK" %s stole some xp from zombie behind him.",PlayerName(playerid));
  4074. SendClientMessageToAll(-1,zmstring);
  4075. Abilitys[playerid][WitchAttack] = gettime();
  4076. }
  4077. }
  4078. }
  4079. }
  4080. }
  4081. }
  4082. }
  4083.  
  4084. if(PRESSED(KEY_WALK))
  4085. {
  4086. if(team[playerid] == TEAM_ZOMBIE)
  4087. {
  4088. if(pInfo[playerid][pZombieClass] == WITCHZOMBIE)
  4089. {
  4090. new victimid = GetClosestPlayer(playerid);
  4091. if(IsPlayerConnected(victimid))
  4092. {
  4093. switch(GetPlayerSkin(victimid))
  4094. {
  4095. case NON_IMMUNE,70:
  4096. {
  4097. if(GetDistanceBetweenPlayers(playerid,victimid) < 1.5)
  4098. {
  4099. if(gettime() - 9 < Abilitys[playerid][WitchAttack]) return GameTextForPlayer(playerid,"~w~ Still recovering",4000,5);
  4100. {
  4101. new Float:hp,zmstring[256];
  4102. GetPlayerHealth(victimid,hp);
  4103. SetPlayerHealth(victimid, hp -45);
  4104. GameTextForPlayer(victimid,"~n~~n~~n~~n~~y~Witched attacked",3000,5);
  4105. GivePlayerXP(playerid,15);
  4106. format(zmstring,sizeof(zmstring), ""chat""COL_PINK" %s has been witch attacked by %s",PlayerName(victimid),PlayerName(playerid));
  4107. SendClientMessageToAll(-1,zmstring);
  4108. Abilitys[playerid][WitchAttack] = gettime();
  4109. }
  4110. }
  4111. }
  4112. }
  4113. }
  4114. }
  4115. }
  4116. }
  4117.  
  4118. if(PRESSED(KEY_WALK))
  4119. {
  4120. if(team[playerid] == TEAM_ZOMBIE)
  4121. {
  4122. if(pInfo[playerid][pZombieClass] == ADVANCEDWITCH)
  4123. {
  4124. new victimid = GetClosestPlayer(playerid);
  4125. if(IsPlayerConnected(victimid))
  4126. {
  4127. switch(GetPlayerSkin(victimid))
  4128. {
  4129. case NON_IMMUNE,70:
  4130. {
  4131. if(GetDistanceBetweenPlayers(playerid,victimid) < 1.5)
  4132. {
  4133. if(gettime() - 15 < Abilitys[playerid][WitchAttack2]) return GameTextForPlayer(playerid,"~w~ Still recovering",4000,5);
  4134. {
  4135. new Float:hp,zmstring[256];
  4136. GetPlayerHealth(victimid,hp);
  4137. SetPlayerHealth(victimid, hp -95);
  4138. GameTextForPlayer(victimid,"~n~~n~~n~~n~~y~Advanced Witched attacked",3000,5);
  4139. GivePlayerXP(playerid,15);
  4140. format(zmstring,sizeof(zmstring), ""chat""COL_PINK" %s has been advanced witch attacked by %s",PlayerName(victimid),PlayerName(playerid));
  4141. SendClientMessageToAll(-1,zmstring);
  4142. Abilitys[playerid][WitchAttack2] = gettime();
  4143. }
  4144. }
  4145. }
  4146. }
  4147. }
  4148. }
  4149. }
  4150. }
  4151.  
  4152. if(PRESSED(KEY_WALK))
  4153. {
  4154. if(team[playerid] == TEAM_ZOMBIE)
  4155. {
  4156. if(pInfo[playerid][pZombieClass] == STANDARDZOMBIE)
  4157. {
  4158. new victimid = GetClosestPlayer(playerid);
  4159. if(gettime() - 7 < Abilitys[playerid][InfectionNormal]) return GameTextForPlayer(playerid,"~b~ Still recovering",4000,5);
  4160. {
  4161. if(IsPlayerConnected(victimid))
  4162. {
  4163. switch(GetPlayerSkin(victimid))
  4164. {
  4165. case NON_IMMUNE:
  4166. {
  4167. if(GetDistanceBetweenPlayers(playerid,victimid) < 2.0)
  4168. {
  4169. if(pInfo[victimid][IsPlayerInfected] == 0)
  4170. {
  4171. if(pInfo[victimid][pAdminDuty] == 0)
  4172. {
  4173. new zmstring[256];
  4174. InfectPlayerStandard(victimid);
  4175. format(zmstring,sizeof(zmstring), ""chat""COL_PINK" %s has been infected by %s",PlayerName(victimid),PlayerName(playerid));
  4176. SendClientMessageToAll(-1,zmstring);
  4177. GivePlayerXP(playerid,20);
  4178. Abilitys[playerid][InfectionNormal] = gettime();
  4179. }
  4180. else if(pInfo[victimid][pAdminDuty] == 1)
  4181. {
  4182. SendClientMessage(playerid,COLOR_RED,"That player can't be infected because is on admin duty!");
  4183. }
  4184. }
  4185. else return SendClientMessage(playerid,-1,""chat" Player is already infected!");
  4186. }
  4187. }
  4188. }
  4189. }
  4190. }
  4191. }
  4192. }
  4193. }
  4194. if(PRESSED(KEY_WALK))
  4195. {
  4196. if(team[playerid] == TEAM_ZOMBIE)
  4197. {
  4198. if(pInfo[playerid][pZombieClass] == FLESHEATER)
  4199. {
  4200. new victimid = GetClosestPlayer(playerid);
  4201. if(gettime() - 18 < Abilitys[playerid][InfectionFleshEater]) return GameTextForPlayer(playerid,"~b~ Still recovering",4000,5);
  4202. {
  4203. if(IsPlayerConnected(victimid))
  4204. {
  4205. switch(GetPlayerSkin(victimid))
  4206. {
  4207. case NON_IMMUNE,285,70:
  4208. {
  4209. if(GetDistanceBetweenPlayers(playerid,victimid) < 1.7)
  4210. {
  4211. if(pInfo[victimid][IsPlayerInfected] == 0)
  4212. {
  4213. if(pInfo[victimid][pAdminDuty] == 0)
  4214. {
  4215. new zmstring[256];
  4216. InfectPlayerFleshEater(victimid);
  4217. format(zmstring,sizeof(zmstring), ""chat""COL_PINK" %s has been bitten and infected by %s",PlayerName(victimid),PlayerName(playerid));
  4218. SendClientMessageToAll(-1,zmstring);
  4219. GivePlayerXP(playerid,10);
  4220. Abilitys[playerid][InfectionFleshEater] = gettime();
  4221. }
  4222. else if(pInfo[victimid][pAdminDuty] == 1)
  4223. {
  4224. SendClientMessage(playerid,-1,""chat" That player is on admin duty");
  4225. }
  4226. }
  4227. else return SendClientMessage(playerid,-1,""chat" Player is already infected!");
  4228. }
  4229. }
  4230. }
  4231. }
  4232. }
  4233. }
  4234. }
  4235. }
  4236.  
  4237. if(PRESSED(KEY_WALK))
  4238. {
  4239. if(team[playerid] == TEAM_ZOMBIE)
  4240. {
  4241. if(pInfo[playerid][pZombieClass] == ADVANCEDBOOMER)
  4242. {
  4243. if(IsPlayerInRangeOfPoint(playerid,8.0,Map[ZombieSpawnX],Map[ZombieSpawnY],Map[ZombieSpawnZ]))
  4244. {
  4245. GameTextForPlayer(playerid,"~r~Cannot explode near Zombie spawn!",4000,5);
  4246. }
  4247. else
  4248. {
  4249. new Float:x,Float:y,Float:z;
  4250. GetPlayerPos(playerid,Float:x,Float:y,Float:z);
  4251. SetPlayerHealth(playerid,0.0);
  4252. CreateExplosion(Float:x,Float:y,Float:z,0,6.0);
  4253. foreach(Player,i)
  4254. {
  4255. GetClosestPlayer(i);
  4256. if(IsPlayerConnected(i))
  4257. {
  4258. switch(GetPlayerSkin(i))
  4259. {
  4260. case NON_IMMUNE:
  4261. {
  4262. if(IsPlayerInRangeOfPoint(i,7.0,Float:x,Float:y,Float:z))
  4263. {
  4264. if(pInfo[i][IsPlayerInfected] == 0)
  4265. {
  4266. if(pInfo[i][pAdminDuty] == 0)
  4267. {
  4268. InfectPlayerStandard(i);
  4269. }
  4270. }
  4271. }
  4272. }
  4273. }
  4274. }
  4275. }
  4276. }
  4277. }
  4278. }
  4279. }
  4280.  
  4281. return 1;
  4282. }
  4283.  
  4284. forward ClearAnims(playerid);
  4285. public ClearAnims(playerid) { return ClearAnimations(playerid), TogglePlayerControllable(playerid, 1); }
  4286.  
  4287. public OnPlayerStateChange(playerid, newstate, oldstate)
  4288. {
  4289. 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.
  4290. {
  4291. if(IsBeingSpeced[playerid] == 1)//If the player being spectated, enters a vehicle, then let the spectator spectate the vehicle.
  4292. {
  4293. foreach(Player,i)
  4294. {
  4295. if(spectatorid[i] == playerid)
  4296. {
  4297. PlayerSpectateVehicle(i, GetPlayerVehicleID(playerid));// Letting the spectator, spectate the vehicle of the player being spectated (I hope you understand this xD)
  4298. }
  4299. }
  4300. }
  4301. }
  4302. if(newstate == PLAYER_STATE_ONFOOT)
  4303. {
  4304. if(IsBeingSpeced[playerid] == 1)//If the player being spectated, exists a vehicle, then let the spectator spectate the player.
  4305. {
  4306. foreach(Player,i)
  4307. {
  4308. if(spectatorid[i] == playerid)
  4309. {
  4310. PlayerSpectatePlayer(i, playerid);// Letting the spectator, spectate the player who exited the vehicle.
  4311. }
  4312. }
  4313. }
  4314. }
  4315. return 1;
  4316. }
  4317. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)//This is called when a player's interior is changed.
  4318. {
  4319. if(IsBeingSpeced[playerid] == 1)//If the player being spectated, changes an interior, then update the interior and virtualword for the spectator.
  4320. {
  4321. foreach(Player,i)
  4322. {
  4323. if(spectatorid[i] == playerid)
  4324. {
  4325. SetPlayerInterior(i,GetPlayerInterior(playerid));
  4326. SetPlayerVirtualWorld(i,GetPlayerVirtualWorld(playerid));
  4327. }
  4328. }
  4329. }
  4330. return 1;
  4331. }
  4332.  
  4333. public OnVehicleMod(playerid, vehicleid, componentid)
  4334. {
  4335. new Admin[24] = "Anti-cheat";
  4336. new reason3[128] = "Vehicle Modding";
  4337. BanPlayer(playerid,reason3,Admin);
  4338. return 0;
  4339. }
  4340.  
  4341. public OnPlayerUpdate(playerid)
  4342. {
  4343. if(IsSpecing[playerid] == 0)
  4344. {
  4345. if(Map[AllowWater] == 0)
  4346. {
  4347. if(IsPlayerInWater(playerid))
  4348. {
  4349. SetPlayerHealth(playerid,0.0);
  4350. }
  4351. }
  4352. }
  4353.  
  4354. if(vampiresucked[playerid] == 1)
  4355. {
  4356. new Float:hp;
  4357. GetPlayerHealth(playerid,hp);
  4358. SetPlayerHealth(playerid,hp-0.5);
  4359. return 1;
  4360. }
  4361.  
  4362. if(pInfo[playerid][pAdminDuty] == 1)
  4363. {
  4364. SetPlayerHealth(playerid,99999);
  4365. SetPlayerColor(playerid,COLOR_RED);
  4366. }
  4367.  
  4368. if(pInfo[playerid][Frozen] == 1)
  4369. {
  4370. SetPlayerHealth(playerid,99999);
  4371. SetPlayerColor(playerid,COLOR_WHITE);
  4372. }
  4373.  
  4374. return 1;
  4375. }
  4376. public OnPlayerCommandPerformed(playerid, cmdtext[], success)
  4377. {
  4378. if(!success)
  4379. {
  4380. PlayerPlaySound(playerid,1054,0.0,0.0,0.0),
  4381. SendClientMessage(playerid,-1,""chat" {FF0000}[Error] {FFFFFF}Command does not exist!");
  4382. }
  4383.  
  4384. if(pInfo[playerid][pLogged] == 0 && pInfo[playerid][pAdminLevel] >= 1)
  4385. {
  4386. SendClientMessage(playerid,COLOR_RED,"You must be logged in.");
  4387. Kick(playerid);
  4388. }
  4389.  
  4390. if(pInfo[playerid][pLogged] == 0)
  4391. {
  4392. SendClientMessage(playerid,-1,""chat" Damn You hacker! Cant you hack? LOL");
  4393. Kick(playerid);
  4394. }
  4395. return 1;
  4396. }
  4397.  
  4398. CMD:skip(playerid)
  4399. {
  4400. if(pInfo[playerid][pLogged] == 1)
  4401. {
  4402. if(pInfo[playerid][pAdminLevel] >= 5)
  4403. {
  4404. time = 5;
  4405. }
  4406. }
  4407. else if(pInfo[playerid][pLogged] == 0)
  4408. {
  4409. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!What do you think you are? Hacker?");
  4410. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4411. Kick(playerid);
  4412. }
  4413. return 1;
  4414. }
  4415.  
  4416. forward RangePush(i);
  4417. public RangePush(i)
  4418. {
  4419. new Float:x, Float:y, Float:z, Float:angle;
  4420. GetPlayerFacingAngle(i,Float:angle);
  4421. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  4422. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.9);
  4423. SetPlayerFacingAngle(i,Float:angle);
  4424. GetPlayerFacingAngle(i,Float:angle);
  4425. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  4426. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  4427. SetPlayerFacingAngle(i,Float:angle);
  4428. GetPlayerFacingAngle(i,Float:angle);
  4429. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  4430. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  4431. GetPlayerFacingAngle(i,Float:angle);
  4432. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  4433. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.9);
  4434. SetPlayerFacingAngle(i,Float:angle);
  4435. GetPlayerFacingAngle(i,Float:angle);
  4436. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  4437. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  4438. SetPlayerFacingAngle(i,Float:angle);
  4439. GetPlayerFacingAngle(i,Float:angle);
  4440. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  4441. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  4442. GetPlayerFacingAngle(i,Float:angle);
  4443. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  4444. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.9);
  4445. SetPlayerFacingAngle(i,Float:angle);
  4446. GetPlayerFacingAngle(i,Float:angle);
  4447. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  4448. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  4449. SetPlayerFacingAngle(i,Float:angle);
  4450. GetPlayerFacingAngle(i,Float:angle);
  4451. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  4452. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  4453. GetPlayerFacingAngle(i,Float:angle);
  4454. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  4455. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.9);
  4456. SetPlayerFacingAngle(i,Float:angle);
  4457. GetPlayerFacingAngle(i,Float:angle);
  4458. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  4459. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  4460. SetPlayerFacingAngle(i,Float:angle);
  4461. GetPlayerFacingAngle(i,Float:angle);
  4462. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  4463. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  4464. GetPlayerFacingAngle(i,Float:angle);
  4465. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  4466. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.9);
  4467. SetPlayerFacingAngle(i,Float:angle);
  4468. GetPlayerFacingAngle(i,Float:angle);
  4469. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  4470. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  4471. SetPlayerFacingAngle(i,Float:angle);
  4472. GetPlayerFacingAngle(i,Float:angle);
  4473. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  4474. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  4475. GetPlayerFacingAngle(i,Float:angle);
  4476. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  4477. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.9);
  4478. SetPlayerFacingAngle(i,Float:angle);
  4479. GetPlayerFacingAngle(i,Float:angle);
  4480. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  4481. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  4482. SetPlayerFacingAngle(i,Float:angle);
  4483. GetPlayerFacingAngle(i,Float:angle);
  4484. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  4485. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.6);
  4486. GetPlayerFacingAngle(i,Float:angle);
  4487. GetPlayerVelocity(i,Float:x,Float:y,Float:z);
  4488. SetPlayerVelocity(i,Float:x+0.4,Float:y+0.5,Float:z+0.9);
  4489. SetPlayerFacingAngle(i,Float:angle);
  4490. return 1;
  4491. }
  4492.  
  4493.  
  4494. CMD:rbug(playerid) return ClearAnimations(playerid);
  4495.  
  4496. CMD:test(playerid) return SetPlayerSpecialAction(playerid,ENDCHAT_01);
  4497.  
  4498. //CMD:gotoevac(playerid) return SetPlayerPos(playerid,Map[CPx],Map[CPy],Map[CPz]);
  4499.  
  4500. CMD:rwarn(playerid,params[])
  4501. {
  4502. if(pInfo[playerid][pAdminLevel] >= 3 || IsPlayerAdmin(playerid))
  4503. {
  4504. new targetid,reason[105],string[256];
  4505. if(sscanf(params, "us[105]", targetid, reason)) return SendClientMessage(playerid,-1,""chat" /rwarn [playerid] [reason]");
  4506. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  4507.  
  4508. new sentstring[128];
  4509.  
  4510. pInfo[targetid][pWarnings]--;
  4511.  
  4512. format(string,sizeof(string), "%s %s has removed your warning\nReason: %s\nRemoved Warning Number: %i",GetAdminName(playerid),PlayerName(playerid), reason, pInfo[targetid][pWarnings]);
  4513. ShowPlayerDialog(targetid,DIALOG_WARN,DIALOG_STYLE_MSGBOX,"Good News",string,"Thanks Sir!, Love you",";)");
  4514. 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]);
  4515. SendClientMessageToAll(-1,sentstring);
  4516.  
  4517. if(pInfo[targetid][pWarnings] >= 100)
  4518. {
  4519. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s has kicked %s [Reason: %s][100 Warnings EXCEEDED]",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),reason);
  4520. SendClientMessageToAll(-1,string);
  4521. Kick(targetid);
  4522. }
  4523. }
  4524. else {
  4525. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  4526. }
  4527. return 1;
  4528. }
  4529.  
  4530. CMD:iwarn(playerid,params[])
  4531. {
  4532. if(pInfo[playerid][pAdminLevel] >= 7 || IsPlayerAdmin(playerid))
  4533. {
  4534. new targetid,reason[105],string[256];
  4535. if(sscanf(params, "us[105]", targetid, reason)) return SendClientMessage(playerid,-1,""chat" /iwarn [playerid] [reason]");
  4536. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  4537.  
  4538. new sentstring[128];
  4539.  
  4540. pInfo[targetid][pWarnings]++;
  4541.  
  4542. format(string,sizeof(string), "i [BOT] has warned you\nReason: %s\nWarning Number: %i",GetAdminName(playerid),PlayerName(playerid), reason, pInfo[targetid][pWarnings]);
  4543. ShowPlayerDialog(targetid,DIALOG_WARN,DIALOG_STYLE_MSGBOX,"iBot Warning",string,"Ok, iBot","");
  4544. 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]);
  4545. SendClientMessageToAll(-1,sentstring);
  4546.  
  4547. if(pInfo[targetid][pWarnings] >= 100)
  4548. {
  4549. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s has kicked %s [Reason: %s][100 Warnings EXCEEDED]",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),reason);
  4550. SendClientMessageToAll(-1,string);
  4551. Kick(targetid);
  4552. }
  4553. }
  4554. else {
  4555. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  4556. }
  4557. return 1;
  4558. }
  4559. CMD:more(playerid)
  4560. {
  4561. if(pInfo[playerid][pLogged] == 1)
  4562. {
  4563. if(pInfo[playerid][pAdminLevel] >= 5)
  4564. {
  4565. time = 450;
  4566. }
  4567. }
  4568. else if(pInfo[playerid][pLogged] == 0)
  4569. {
  4570. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4571. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4572. Kick(playerid);
  4573. }
  4574. return 1;
  4575. }
  4576.  
  4577. CMD:robj(playerid)///need to be replaced, with all object remover! *NOTES*
  4578. {
  4579. for ( new i = 0; i < 5; i++ )
  4580. if ( IsPlayerAttachedObjectSlotUsed( playerid, i ) )
  4581. RemovePlayerAttachedObject( playerid, i );
  4582. return 1;
  4583. }
  4584.  
  4585. CMD:playurl(playerid, params[])
  4586. {
  4587. new string[128], song;
  4588. if (sscanf(params, "s", song)) return SendClientMessage(playerid, 0xFF0000AA,"Usage: /playurl [url]");
  4589. PlayAudioStreamForPlayer(playerid, params);
  4590. format(string, sizeof(string), "You are now playing a song from the inserted url.");
  4591. SendClientMessage(playerid, COLOR_GRAD5, string);
  4592. return 1;
  4593. }
  4594. CMD:pufa(playerid, params[])
  4595. {
  4596. new string[128];
  4597. if(sscanf(params, "s[256]", params)) return SendClientMessage(playerid, -1, "[Usage]: /(p)lay(u)rl(f)or(a)ll");
  4598. if(pInfo[playerid][pAdminLevel] < 3) return SendClientMessage(playerid, COLOR_GRAD5, "You are not authorized to use this command.");
  4599. format(string, sizeof(string), "{FFFFFF}>> {0033FF}[DJ]{FFFFFF}: An Administrator(%s) is now DJing {FAD008}", PlayerName(playerid));
  4600. SendClientMessageToAll(0xFFFFFFAA,string);
  4601. foreach(Player, i)
  4602. {
  4603. PlayAudioStreamForPlayer(i, params);
  4604. }
  4605. return 1;
  4606. }
  4607.  
  4608. CMD:hhcheck(playerid, params[])////LoadFilterScript(filename[])
  4609. {
  4610. if(pInfo[playerid][pLogged] == 1)
  4611. {
  4612. if(pInfo[playerid][pAdminLevel] >= 2)
  4613. {
  4614. new string[128], target;
  4615. if(sscanf(params, "i", target)) return SendClientMessage(playerid, -1,""COL_YELLOW"USAGE: /hhcheck (id)");
  4616. if(!IsPlayerConnected(target)) return SendClientMessage(playerid, -1,""COL_YELLOW"Given playerid is not connected!");
  4617. PossibleHHCheck(target);
  4618. format(string, sizeof(string), "Admin %s has launched a possible hhcheck onto %s using /hhcheck - Now waiting for results!", PlayerName(playerid), PlayerName(target));
  4619. SendMessageToAllAdmins(string);
  4620. }
  4621. else SendClientMessage(playerid,COLOR_RED,"You need to be lvl 2 admin to use this command!");
  4622. }
  4623. else if(pInfo[playerid][pLogged] == 0)
  4624. {
  4625. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4626. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4627. Kick(playerid);
  4628. }
  4629. return 1;
  4630. }
  4631.  
  4632. CMD:arestart(playerid)////LoadFilterScript(filename[])
  4633. {
  4634. if(pInfo[playerid][pLogged] == 1)
  4635. {
  4636. if(pInfo[playerid][pAdminLevel] >= 2)
  4637. {
  4638. SendRconCommand("gmx");
  4639. }
  4640. else SendClientMessage(playerid,COLOR_RED,"You need to be lvl 2 admin to use this command!");
  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. Kick(playerid);
  4647. }
  4648. return 1;
  4649. }
  4650.  
  4651. CMD:spec(playerid,params[])
  4652. {
  4653. if(pInfo[playerid][pLogged] == 1)
  4654. {
  4655. if(pInfo[playerid][pAdminLevel] >= 1)
  4656. {
  4657. new id;// This will hold the ID of the player you are going to be spectating.
  4658. 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
  4659. if(id == playerid)return SendClientMessage(playerid,Grey,"You cannot spec yourself.");// Just making sure.
  4660. 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.
  4661. 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'
  4662. Inter[playerid] = GetPlayerInterior(playerid);// Getting and saving the interior.
  4663. vWorld[playerid] = GetPlayerVirtualWorld(playerid);//Getting and saving the virtual world.
  4664. 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.
  4665. if(IsPlayerInAnyVehicle(id))//Checking if the player is in a vehicle.
  4666. {
  4667. if(GetPlayerInterior(id) > 0)//If the player's interior is more than 0 (the default) then.....
  4668. {
  4669. 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.
  4670. }
  4671. if(GetPlayerVirtualWorld(id) > 0)//If the player's virtual world is more than 0 (the default) then.....
  4672. {
  4673. SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(id));//.....set the spectator's virtual world to that of the player being spectated.
  4674. }
  4675. 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.
  4676. }
  4677. else// If they're not in a vehicle, then we'll spec the player.
  4678. {
  4679. if(GetPlayerInterior(id) > 0)
  4680. {
  4681. SetPlayerInterior(playerid,GetPlayerInterior(id));
  4682. }
  4683. if(GetPlayerVirtualWorld(id) > 0)
  4684. {
  4685. SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(id));
  4686. }
  4687. PlayerSpectatePlayer(playerid,id);// Letting the spectator spec the person and not a vehicle.
  4688. }
  4689. GetPlayerName(id, Name, sizeof(Name));//Getting the name of the player being spectated.
  4690. format(String, sizeof(String),"You have started to spectate %s.",Name);// Formatting a string to send to the spectator.
  4691. SendClientMessage(playerid,0x0080C0FF,String);//Sending the formatted message to the spectator.
  4692. IsSpecing[playerid] = 1;// Just saying that the spectator has begun to spectate someone.
  4693. IsBeingSpeced[id] = 1;// Just saying that a player is being spectated (You'll see where this comes in)
  4694. spectatorid[playerid] = id;// Saving the spectator's id into this variable.
  4695. }
  4696. else SendClientMessage(playerid,-1,""chat" You must be on admin duty before you spectate! /aduty");
  4697. }
  4698. else if(pInfo[playerid][pLogged] == 0)
  4699. {
  4700. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4701. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4702. Kick(playerid);
  4703. }
  4704. return 1;
  4705. }
  4706.  
  4707. CMD:specoff(playerid, params[])
  4708. {
  4709. if(pInfo[playerid][pLogged] == 1)
  4710. {
  4711. if(pInfo[playerid][pAdminLevel] >= 1)
  4712. {
  4713. if(IsSpecing[playerid] == 0)return SendClientMessage(playerid,Grey,"You are not spectating anyone.");
  4714. 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'
  4715. if(team[playerid] == TEAM_HUMAN)
  4716. {
  4717. HumanSetup(playerid);
  4718. SpawnPlayer(playerid);
  4719. }
  4720. else if(team[playerid] == TEAM_ZOMBIE)
  4721. {
  4722. ZombieSetup(playerid);
  4723. SpawnPlayer(playerid);
  4724. }
  4725. }
  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. Kick(playerid);
  4732. }
  4733. return 1;
  4734. }
  4735.  
  4736. CMD:rename(playerid,params[])
  4737. {
  4738. if(pInfo[playerid][pLogged] == 1)
  4739. {
  4740. if(pInfo[playerid][pAdminLevel] >= 2)
  4741. {
  4742. new oldname[128], newname[128], string[90], targetid;
  4743. if(sscanf(params,"s[128]s[128]", oldname, newname)) return SendClientMessage(playerid,COLOR_YELLOW, "Correct Usage: /rename [OldName][New name]");
  4744. new filestring[128];
  4745. new filestring2[128];
  4746. new filestring3[128];
  4747. format(filestring2, sizeof(filestring2), "/ZMA/Users/%s.ini", oldname);
  4748. if(!fexist(filestring2)) return SendClientMessage(playerid, COLOR_YELLOW, "That account name doesn't exist!");
  4749. format(filestring, sizeof(filestring), "/ZMA/Users/%s.ini", newname);
  4750. if(fexist(filestring)) return SendClientMessage(playerid, COLOR_YELLOW, "The new name you've chosen is already taken");
  4751. frename(filestring2, filestring);
  4752. format(filestring3, sizeof(filestring3), "/ZMA/Users/%s.ini", oldname);
  4753. new INI:File = INI_Open(filestring);
  4754. INI_SetTag(File, "data");
  4755. INI_WriteString(File,"OldName", oldname);
  4756. INI_Close(File);
  4757. if(!fremove(filestring3))fremove(filestring3);
  4758. new renamedstring[128], cstring[128];
  4759. format(string, sizeof(string), "You have successfully renamed %s's account to %s" ,oldname, newname);
  4760. format(renamedstring, sizeof(renamedstring), "%s has renamed %s's account to %s" ,GetAdminName(playerid) ,oldname, newname);
  4761. format(cstring, sizeof(cstring), "Your name was changed from %s to %s" ,oldname, newname);
  4762. SendClientMessage(playerid, COLOR_BLUE, string);
  4763. SendClientMessage(targetid, COLOR_BLUE, cstring);
  4764. SendClientMessageToAll(-1,renamedstring);
  4765. printf("%s %s has renamed %s's account to %s" ,GetAdminName(playerid),PlayerName(playerid) ,oldname, newname);
  4766. pInfo[targetid][pRenamed] = 1;
  4767. }
  4768. }
  4769. else if(pInfo[playerid][pLogged] == 0)
  4770. {
  4771. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4772. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4773. Kick(playerid);
  4774. }
  4775. return 1;
  4776. }
  4777. CMD:aduty(playerid)
  4778. {
  4779. if(pInfo[playerid][pLogged] == 1)
  4780. {
  4781. if(pInfo[playerid][pAdminLevel] >= 1)
  4782. {
  4783. if(pInfo[playerid][pAdminDuty] == 0)
  4784. {
  4785. pInfo[playerid][pAdminDuty] = 1;
  4786.  
  4787. new adutyonstring[128];
  4788. format(adutyonstring, sizeof(adutyonstring), "%s is now on admin duty" ,PlayerName(playerid));
  4789. SendClientMessageToAll(-1,adutyonstring);
  4790. SetPlayerColor(playerid,COLOR_RED);
  4791. SetPlayerHealth(playerid,999999.0);
  4792. SendClientMessage(playerid,COLOR_RED,"Remember to /aduty when you play as regular player.");
  4793. }
  4794. else
  4795. {
  4796. if(pInfo[playerid][pAdminDuty] == 1)
  4797. {
  4798. pInfo[playerid][pAdminDuty] = 0;
  4799. new adutyoffstring[128];
  4800. format(adutyoffstring, sizeof(adutyoffstring), "%s is now off admin duty" ,PlayerName(playerid));
  4801. SendClientMessageToAll(-1,adutyoffstring);
  4802.  
  4803. if(team[playerid] == TEAM_ZOMBIE)
  4804. {
  4805. SetPlayerColor(playerid,COLOR_ZOMBIE);
  4806. }
  4807. if(team[playerid] == TEAM_HUMAN)
  4808. {
  4809. SetPlayerColor(playerid,COLOR_HUMAN);
  4810. }
  4811. SetPlayerHealth(playerid,100);
  4812. }
  4813. }
  4814. }
  4815. }
  4816. else if(pInfo[playerid][pLogged] == 0)
  4817. {
  4818. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4819. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4820. Kick(playerid);
  4821. }
  4822. return 1;
  4823. }
  4824.  
  4825. CMD:agun(playerid, params[])
  4826. {
  4827. if(pInfo[playerid][pLogged] == 1)
  4828. {
  4829. new id, gun, ammo;
  4830. if(pInfo[playerid][pAdminLevel] >= 2)
  4831. {
  4832. if(sscanf(params,"uii", id, gun, ammo)) return SendClientMessage(playerid, -1,"USAGE: /givegun [playerid/partofname] [gunid] [ammo]");
  4833. if(gun > 47 || gun < 1) return SendClientMessage(playerid, -1,"GUN ID'S: 1-47");
  4834. if(ammo > 9999 || ammo < 1) return SendClientMessage(playerid, -1,"Ammo 1-9999");
  4835. GivePlayerWeapon(id, gun, ammo);
  4836. }
  4837. }
  4838. else if(pInfo[playerid][pLogged] == 0)
  4839. {
  4840. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4841. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4842. Kick(playerid);
  4843. }
  4844. return 1;
  4845. }
  4846. CMD:aheli(playerid)
  4847. {
  4848. if(pInfo[playerid][pLogged] == 1)
  4849. {
  4850. if(pInfo[playerid][pAdminLevel] >= 1)
  4851. {
  4852. new Float: x, Float: y, Float: z, Float: r, vehicle;
  4853. GetPlayerPos(playerid,x,y,z);
  4854. GetPlayerFacingAngle(playerid,r);
  4855. vehicle = CreateVehicle(501,x,y,z,r,1,1,300);
  4856. PutPlayerInVehicle(playerid,vehicle,0);
  4857. SetVehicleHealth(vehicle, 999999);
  4858. }
  4859. }
  4860. else if(pInfo[playerid][pLogged] == 0)
  4861. {
  4862. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4863. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4864. Kick(playerid);
  4865. }
  4866. return 1;
  4867. }
  4868.  
  4869. CMD:voff(playerid)
  4870. {
  4871. if(pInfo[playerid][pLogged] == 1)
  4872. {
  4873. if(pInfo[playerid][pAdminLevel] >= 1)
  4874. {
  4875. new currentveh;
  4876. currentveh = GetPlayerVehicleID(playerid);
  4877. DestroyVehicle(currentveh);
  4878. }
  4879. }
  4880. else if(pInfo[playerid][pLogged] == 0)
  4881. {
  4882. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!What do u think u r?Hacker");
  4883. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4884. Kick(playerid);
  4885. }
  4886. return 1;
  4887. }
  4888.  
  4889. CMD:freeze(playerid,params[])
  4890. {
  4891. if(pInfo[playerid][pLogged] == 1)
  4892. {
  4893. if(pInfo[playerid][pAdminLevel] >= 1)
  4894. {
  4895. new Target; //defines the playerid we wanna freeze
  4896. 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
  4897. if(!IsPlayerConnected(Target)) //if the ID doesn't exist, return an error-message
  4898. return SendClientMessage(playerid, COLOR_GREY, "ERROR:Player is not connected!");
  4899. if(!sscanf(params, "u", Target))
  4900. {
  4901. 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
  4902. new tname[MAX_PLAYER_NAME]; //define the new target-name of the playerid
  4903. GetPlayerName(Target,tname,sizeof(tname)); //get the playername with this function
  4904. new pname[MAX_PLAYER_NAME]; //define the adminname
  4905. GetPlayerName(playerid,pname,sizeof(pname)); //get the adminname with this function
  4906. new tstring[128]; //define the string for the player (victim)
  4907. new pstring[128];// define the string for the admin which is performing
  4908. 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
  4909. 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)
  4910. SendClientMessage(Target,COLOR_RED,tstring);//sends the message to the victim
  4911. SendClientMessage(playerid,COLOR_RED,pstring);//sends the message to the admin
  4912. TogglePlayerControllable(Target,0); //with that function, the player won't be able to mov, while we're using the variable "Target" as the playerid
  4913. 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
  4914. }
  4915.  
  4916. }
  4917. else return SendClientMessage(playerid,COLOR_RED,"ERROR: You must be level 1 to use this command!");
  4918. }
  4919. else if(pInfo[playerid][pLogged] == 0)
  4920. {
  4921. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4922. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4923. Kick(playerid);
  4924. }
  4925. return 1;
  4926. }
  4927.  
  4928. CMD:unfreeze(playerid,params[])
  4929. {
  4930. if(pInfo[playerid][pAdminLevel] >= 1)
  4931. {
  4932. new Target; //defines the playerid we wanna freeze
  4933. 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
  4934. if(!IsPlayerConnected(Target)) //if the ID doesn't exist, return an error-message
  4935. return SendClientMessage(playerid, COLOR_GREY, "ERROR:Player is not connected!");
  4936. if(!sscanf(params, "u", Target))
  4937. {
  4938. 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
  4939. new tname[MAX_PLAYER_NAME]; //define the new target-name of the playerid
  4940. GetPlayerName(Target,tname,sizeof(tname)); //get the playername with this function
  4941. new pname[MAX_PLAYER_NAME]; //define the adminname
  4942. GetPlayerName(playerid,pname,sizeof(pname)); //get the adminname with this function
  4943. new tstring[128]; //define the string for the player (victim)
  4944. new pstring[128];// define the string for the admin which is performing
  4945. new astring[128];//define the string for all the players which are online
  4946. 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
  4947. 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)
  4948. 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
  4949. SendClientMessage(Target,COLOR_RED,tstring);//sends the message to the victim
  4950. SendClientMessage(playerid,COLOR_RED,pstring);//sends the message to the admin
  4951. SendClientMessageToAll(COLOR_RED,astring);//sends the message to everybody
  4952. TogglePlayerControllable(Target,1); //with that function, the player won't be able to mov, while we're using the variable "Target" as the playerid
  4953. 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
  4954. }
  4955. if(team[Target] == TEAM_HUMAN)
  4956. {
  4957. SetPlayerHealth(Target, 100);
  4958. SetPlayerColor(Target,COLOR_HUMAN);
  4959. }
  4960.  
  4961. if(team[Target] == TEAM_ZOMBIE)
  4962. {
  4963. if(pInfo[Target][pZombieClass] == BOOMERZOMBIE)
  4964. {
  4965. SetPlayerHealth(Target, 25);
  4966. SetPlayerColor(Target,COLOR_ZOMBIE);
  4967. }
  4968. else
  4969. {
  4970. SetPlayerHealth(Target, 100);
  4971. SetPlayerColor(Target,COLOR_ZOMBIE);
  4972. }
  4973. }
  4974. }
  4975.  
  4976. // if he doesn't have permissions, return that message!
  4977. else if(pInfo[playerid][pLogged] == 0)
  4978. {
  4979. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  4980. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  4981. Kick(playerid);
  4982. }
  4983. return 1;
  4984. }
  4985. CMD:fakekills(playerid, params[])
  4986. {
  4987. if(pInfo[playerid][pAdminLevel] >= 1)
  4988. {
  4989. new targetid;
  4990. if(sscanf(params, "u", targetid)) return SendClientMessage(playerid,-1,""chat" /fakekills [playerid]");
  4991. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  4992. {
  4993. new string[180];
  4994. format(string,sizeof(string)," {37DB45}Viewing player stats: %s{FFFFFF} \nPossible FakeKills: %i",PlayerName(targetid),pInfo[targetid][pFakeKills]);
  4995.  
  4996. ShowPlayerDialog(playerid,1888,DIALOG_STYLE_MSGBOX,"Checking for Fake Kills",string,"Close","");
  4997. }
  4998. }
  4999.  
  5000. return 1;
  5001. }
  5002.  
  5003. CMD:checkhp(playerid, params[])
  5004. {
  5005. if(pInfo[playerid][pAdminLevel] >= 1)
  5006. {
  5007. new targetid;
  5008. if(sscanf(params, "u", targetid)) return SendClientMessage(playerid,-1,""chat" /checkhp [playerid]");
  5009. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  5010. {
  5011. new string[180], Float:HP;
  5012. GetPlayerHealth(targetid,HP);
  5013.  
  5014. format(string,sizeof(string),"Player %s has %.2f",PlayerName(targetid),HP);
  5015. SendClientMessage(playerid, COLOR_GREEN, string);
  5016. }
  5017. }
  5018.  
  5019. return 1;
  5020. }
  5021.  
  5022. CMD:sethp(playerid, params[])
  5023. {
  5024. if(pInfo[playerid][pLogged] == 1)
  5025. {
  5026. new id, health;
  5027. if(pInfo[playerid][pAdminLevel] >= 2)
  5028. {
  5029. if(sscanf(params,"uii", id, health)) return SendClientMessage(playerid, -1,"USAGE: /sethp [ID / part of name] [Health from 1 to 100]");
  5030. if(health > 200 || health < 0) return SendClientMessage(playerid, -1,"Set the health from 0 to 200, NOT MORE nor LESS");
  5031. SetPlayerHealth(id, health);
  5032. }
  5033. }
  5034. else if(pInfo[playerid][pLogged] == 0)
  5035. {
  5036. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  5037. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  5038. Kick(playerid);
  5039. }
  5040.  
  5041. return 1;
  5042. }
  5043.  
  5044. CMD:setarmour(playerid, params[])
  5045. {
  5046. if(pInfo[playerid][pLogged] == 1)
  5047. {
  5048. new id, armour;
  5049. if(pInfo[playerid][pAdminLevel] >= 2)
  5050. {
  5051. if(sscanf(params,"uii", id, armour)) return SendClientMessage(playerid, -1,"USAGE: /setarmour[ID / part of name] [Armour( from 1 to 95]");
  5052. if(armour > 95 || armour < 1) return SendClientMessage(playerid, -1,"Set the armour from 1 to 95, NOT MORE nor LESS");
  5053. SetPlayerArmour(id, armour);
  5054. }
  5055. }
  5056. else if(pInfo[playerid][pLogged] == 0)
  5057. {
  5058. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  5059. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  5060. Kick(playerid);
  5061. }
  5062.  
  5063. return 1;
  5064. }
  5065.  
  5066. CMD:settag(playerid, params[])
  5067. {
  5068. if(pInfo[playerid][pLogged] == 1)
  5069. {
  5070. new id, text[128], timeinms;
  5071. new string[128];
  5072. if(pInfo[playerid][pAdminLevel] >= 2)
  5073. {
  5074. if(sscanf(params,"isd", id, text, timeinms)) return SendClientMessage(playerid, -1,"USAGE: /settag [playerid] [text] [time in ms]");
  5075. SetPlayerChatBubble(id, text, 0xFFCCFF, 100.0, timeinms);
  5076. format(string, sizeof(string), "You have setted the tag above ID:%i head with time %d (Miliseconds).", id, timeinms);
  5077. SendClientMessage(playerid,Grey, string);
  5078. format(string, sizeof(string), "(Tag Text:%s)", text);
  5079. SendClientMessage(playerid,Grey, string);
  5080. }
  5081. }
  5082. else if(pInfo[playerid][pLogged] == 0)
  5083. {
  5084. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  5085. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  5086. Kick(playerid);
  5087. }
  5088.  
  5089. return 1;
  5090. }
  5091.  
  5092.  
  5093. CMD:cw(playerid, params[])
  5094. {
  5095. if(pInfo[playerid][pAdminLevel] >= 1)
  5096. {
  5097. new count = 0;
  5098. new ammo, weaponid, weapon[24], string[128], id;
  5099. if(!sscanf(params, "u", id))
  5100. {
  5101. for (new c = 0; c < 13; c++)
  5102. {
  5103. GetPlayerWeaponData(id, c, weaponid, ammo);
  5104. if (weaponid != 0 && ammo != 0)
  5105. {
  5106. count++;
  5107. }
  5108. }
  5109. SendClientMessage(playerid, COLOR_ORANGE, "||=============WEAPONS AND AMMO===========||");
  5110. if(count > 0)
  5111. {
  5112. for (new c = 0; c < 13; c++)
  5113. {
  5114. GetPlayerWeaponData(id, c, weaponid, ammo);
  5115. if (weaponid != 0 && ammo != 0)
  5116. {
  5117. GetWeaponName(weaponid, weapon, 24);
  5118. format(string, sizeof(string), "Weapons: %s Ammo: %d", weapon, ammo);
  5119. SendClientMessage(playerid, COLOR_GREEN, string);
  5120. }
  5121. }
  5122. }
  5123. else
  5124. {
  5125. SendClientMessage(playerid, COLOR_GREY, "This player has no weapons!");
  5126. }
  5127. return 1;
  5128. }
  5129. else return SendClientMessage(playerid, COLOR_GREY, "USAGE: /cw [ID]");
  5130. }
  5131. else return SendClientMessage(playerid, COLOR_GREY, "You are not allowed to do this");
  5132. }
  5133.  
  5134. CMD:buy(playerid)
  5135. {
  5136. if(team[playerid] == TEAM_HUMAN)
  5137. {
  5138. ShowCoinDialog(playerid);
  5139. }
  5140. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You must be human to use this command!");
  5141. return 1;
  5142. }
  5143.  
  5144. CMD:tb(playerid, params[])
  5145. {
  5146. if(pInfo[playerid][pAdminLevel] >=3)
  5147. {
  5148. new string[128], tbunder;
  5149. if (sscanf(params, "d", tbunder)) return SendClientMessage(playerid, 0xFF0000AA,"Usage: /tb [id's under the number(E.G = 10)]");
  5150. if(tbunder < 0 || tbunder > 50) return SendClientMessage(playerid,-1,""chat" The server has max players only.");
  5151. new randomid = random(tbunder);
  5152. SetPlayerHealth(randomid, 0.0);
  5153. format(string, sizeof(string), ""COL_LGREEN"Administrator %s has used team balance on ID's under %d", PlayerName(playerid), tbunder);
  5154. SendClientMessageToAll(COLOR_GRAD5, string);
  5155. }
  5156. return 1;
  5157. }
  5158.  
  5159. CMD:vskin(playerid, params[])
  5160. {
  5161. if(pInfo[playerid][pVIPLevel] >= 2)
  5162. {
  5163. if(team[playerid] == TEAM_HUMAN)
  5164. {
  5165.  
  5166. new string[128], skin;
  5167. if (sscanf(params, "i", skin)) return SendClientMessage(playerid, 0xFF0000AA,"Usage: /vskin [skin id]");
  5168. if(skin < 0 || skin > 299) return SendClientMessage(playerid,-1,""chat" The skin ids are only between 0-299)");
  5169. SetPlayerSkin(playerid,skin);
  5170. SetPlayerChatBubble(playerid, "Used VIP Skin", 0xFF0000FF, 100.0, 4000);
  5171. format(string, sizeof(string), "You are now wearing skin id %i", skin);
  5172. SendClientMessage(playerid, COLOR_GRAD5, string);
  5173. return 1;
  5174. }
  5175. else return SendClientMessage(playerid,COLOR_GRAD5," You must be human to use this command!");
  5176. }
  5177. else return SendClientMessage(playerid,COLOR_GRAD5," You must be atleast VIP package one to use this command");
  5178. }
  5179.  
  5180. CMD:setskin(playerid, params[])
  5181. {
  5182. if(pInfo[playerid][pAdminLevel] >= 3)
  5183. {
  5184. new string[128], skin, targetid;
  5185. if (sscanf(params, "di", targetid, skin)) return SendClientMessage(playerid, 0xFF0000AA,"Usage: /setskin [playerid] [skin id]");
  5186. if(skin < 0 || skin > 299) return SendClientMessage(playerid,-1,""chat" The skin ids are only between 0-299");
  5187. SetPlayerSkin(targetid,skin);
  5188. SetPlayerChatBubble(targetid, "Skin Changed by Administrator", 0xFF0000FF, 100.0, 10000);
  5189. format(string, sizeof(string), "You have changed player id %d skin to %i", targetid, skin);
  5190. SendClientMessage(playerid,COLOR_GRAD5,string);
  5191. format(string, sizeof(string), "Your skin has been changed to %i by an administrator", skin);
  5192. SendClientMessage(targetid, COLOR_GRAD5, string);
  5193. return 1;
  5194. }
  5195. else return SendClientMessage(playerid,COLOR_GRAD5," You must be admin level 3 to use this command!");
  5196. }
  5197.  
  5198. CMD:vipmenu2(playerid)
  5199. {
  5200. if(pInfo[playerid][pHumanClass] == SMOKEUP) return SCM(playerid, -1,"{FF0000}You cant use /vipmenu with this class !");
  5201. if(pInfo[playerid][pHumanClass] == BOMBER) return SCM(playerid, -1,"{FF0000}You cant use /vipmenu with this class !");
  5202.  
  5203. else if(pInfo[playerid][pVIPLevel] >= 1)
  5204. {
  5205. new str[300];
  5206. strcat(str,"{2B547E}White Color (Gold Supporter+)\n{2B547E}VIP Purple Color (Light Sponsor+)\n{2B547E}VIP Full Armour (Ultimate Elite+)\n{2B547E}VIP Half Armour(Sponsor+)\n{2B547E}VIP Zombie Classes");
  5207. ShowPlayerDialog(playerid,DIALOG_VIP2,DIALOG_STYLE_LIST,"VIP Menu 2",str,"Select","Close");
  5208. }
  5209. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You need atleast vip package one to use this command!");
  5210. return 1;
  5211. }
  5212.  
  5213. CMD:vipmenu(playerid)
  5214. {
  5215. if(pInfo[playerid][pHumanClass] == SMOKEUP) return SCM(playerid, -1,"{FF0000}You cant use /vipmenu with this class !");
  5216. if(pInfo[playerid][pHumanClass] == BOMBER) return SCM(playerid, -1,"{FF0000}You cant use /vipmenu with this class !");
  5217. if(pInfo[playerid][pHumanClass] == INVISIBLA) return SCM(playerid, -1,"{FF0000}You cant use /vipmenu with this class !");
  5218.  
  5219. else if(pInfo[playerid][pVIPLevel] >= 1)
  5220. {
  5221. new str[900];
  5222. strcat(str,"{2B547E}VIP Unlimited Ammo (Light Sponsor+)\n{2B547E}VIP Weapons (Light Sponsor+)\n{2B547E}VIP Classes (Heavy Sponsor+)\n{2B547E}Enable Kick Back (Heavy Sponsor+)\n{2B547E}Disable Kick Back (Heavy Sponsor+)\n{2B547E}VIP S.W.A.T Armour Object (Sponsor+)\n{2B547E}VIP Name Flash (Silver Sponsor+)\n{2B547E}Disable VIP Name Flash (Silver Sponsor+)");
  5223. ShowPlayerDialog(playerid,DIALOG_VIP,DIALOG_STYLE_LIST,"VIP Menu",str,"Select","Close");
  5224. }
  5225. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You need atleast vip package one to use this command!");
  5226. return 1;
  5227. }
  5228.  
  5229. CMD:ranks(playerid)
  5230. {
  5231. ShowPlayerDialog(playerid,5326,DIALOG_STYLE_MSGBOX,"Rank List","They are listed on the forums","Close","");
  5232. return 1;
  5233. }
  5234.  
  5235. CMD:vip(playerid)
  5236. {
  5237. new vipinfo[600];
  5238. 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\
  5239. Package info are posted below:\nVisit "SITE"");
  5240. ShowPlayerDialog(playerid,DIALOG_VIPINFO,DIALOG_STYLE_MSGBOX,"VIP Info",vipinfo,"Close","");
  5241. return 1;
  5242. }
  5243.  
  5244. CMD:rules(playerid)
  5245. {
  5246. new rules[600];
  5247. 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\
  5248. 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\
  5249. 9.No Racism TOLERATED\n10.No weapon-scroll or any other GTA bugs (C bug allowed)\n11.No Spawn Killing (SK)\nYou will get banned if you dont follow the rules!");
  5250.  
  5251. ShowPlayerDialog(playerid,DIALOG_RULES,DIALOG_STYLE_MSGBOX,"Server Public Rules",rules,"Close","");
  5252. return 1;
  5253. }
  5254.  
  5255. CMD:help(playerid, params[])
  5256. {
  5257. SendClientMessage(playerid, COLOR_BLUE, " ~~~~~~~~~~~~~~~~~~~~~~~|[†] Zombie Apocalypse [†]|~~~~~~~~~~~~~~~~~~~~~~~");
  5258. SendClientMessage(playerid, COLOR_ORANGE,"=============================================================");
  5259. SendClientMessage(playerid, COLOR_RED, ">> Q1.Cine este detinatorul acestui server? ");
  5260. SendClientMessage(playerid, COLOR_GREEN, "<< A1.Acest server a fost facut si modificat de catre Graphyt");
  5261. SendClientMessage(playerid, COLOR_ORANGE,"=============================================================");
  5262. SendClientMessage(playerid, COLOR_RED, ">> Q2.Cum pot face XP? ");
  5263. SendClientMessage(playerid, COLOR_GREEN, "<< A2.XP-ul se face prin kill/infections sau se poate dona pentru VIP care are XP-ul mai ridicat");
  5264. SendClientMessage(playerid, COLOR_ORANGE,"=============================================================");
  5265. SendClientMessage(playerid, COLOR_RED,">> Q3.Cum pot fi zombie/human?");
  5266. SendClientMessage(playerid, COLOR_GREEN,"<< A3.Totul este random, server-ul alege echipele!");
  5267. SendClientMessage(playerid, COLOR_ORANGE,"==================================================================="); SendClientMessage(playerid, COLOR_ORANGE,"=============================================================");
  5268. SendClientMessage(playerid, COLOR_RED,">> Q4.Cum pot devenii admin?");
  5269. SendClientMessage(playerid, COLOR_GREEN,"<< A4.Pentru a face parte din staff trebuie sa fi activ, sa ajuti playerii si sa faci o cerere pe forum!");
  5270. SendClientMessage(playerid, COLOR_ORANGE,"===================================================================");
  5271.  
  5272. SendClientMessage(playerid, COLOR_YELLOW, "Daca mai ai intrebari, nu ezita sa folosesti comanda /pm catre un admin!");
  5273. return 1;
  5274. }
  5275.  
  5276. CMD:vinfo(playerid)
  5277. {
  5278. new helpstring[300];
  5279. strcat(helpstring,"Daca doresti sa ajuti serverul cu o donatie atunci contacteaza-l pe Graphyt printr-un PM in joc sau pe forum.");
  5280. ShowPlayerDialog(playerid,DIALOG_HELP,DIALOG_STYLE_MSGBOX,"VIP Information",helpstring,"Close","");
  5281. return 1;
  5282. }
  5283.  
  5284. CMD:credits(playerid)
  5285. {
  5286. new string[300];
  5287. strcat(string,"Developers:\n¤Graphytt¤[Zombie New Version]\nSA-MP Team\nThe ones who helping creating this gamemode\nThanks for helping all the scripters/staff I wish you a good day!");
  5288. ShowPlayerDialog(playerid,DIALOG_HELP,DIALOG_STYLE_MSGBOX,"Credits",string,"Close","");
  5289. return 1;
  5290. }
  5291.  
  5292. CMD:viprc(playerid)
  5293. {
  5294. if(team[playerid] == TEAM_HUMAN)
  5295. {
  5296. if(rcused[playerid] == 1) return SendClientMessage(playerid,COLOR_GRAD5,"You can use this command only once");
  5297. if(pInfo[playerid][pVIPLevel] >= 5)
  5298. {
  5299. new Float:x, Float:y, Float:z;
  5300. rcused[playerid] = 1;
  5301. new rcol1 = random(100);
  5302. new rcol2 = random(50);
  5303. new RCCAR;
  5304. GetPlayerPos(playerid, x, y, z);
  5305. RCCAR = CreateVehicle(441, x, y, z, 5.0, rcol1, rcol2, 0);
  5306. PutPlayerInVehicle(playerid, RCCAR, 0);
  5307. rcused[playerid] = 1;
  5308. }
  5309. }
  5310. return 1;
  5311. }
  5312.  
  5313. CMD:nightmaremode(playerid)
  5314. {
  5315. if(pInfo[playerid][pAdminLevel] >=4)
  5316. {
  5317. if(nightmare == 0)
  5318. {
  5319. SendClientMessageToAll(COLOR_RED,"*The zombies sacrifies themself - making the moon darker and growing stronger nightmares and zombies*");
  5320. SendClientMessageToAll(COLOR_RED,"Holy shit, Nightmare is now back again! Be carefull because vampires and nemesis can come!");
  5321. GameTextForAll("~r~Nightmare Mode On", 2500, 3);
  5322. SyncedStreamForAll("http://k003.kiwi6.com/hotlink/ph8juljwkm/extremefeaturedzombie-nightmare.mp3", 1);
  5323. SetWeather(2009);
  5324. nightmare = 1;
  5325. return 1;
  5326. }
  5327. else if(nightmare == 1)
  5328. {
  5329. SendClientMessageToAll(COLOR_GREEN,"*The moon appears itself again as the night becomes lighter scaring nightmares*");
  5330. SendClientMessageToAll(COLOR_GREEN,"Atlast, Zombies are now normal as nightmares are gone!");
  5331. GameTextForAll("~r~Nightmare Mode Off", 2500, 3);
  5332. StopSyncedStreamForAll();
  5333. SetWeather(5);
  5334. nightmare = 0;
  5335. }
  5336. }
  5337. return 1;
  5338. }
  5339.  
  5340. CMD:selfdestruct(playerid)
  5341. {
  5342. if(pInfo[playerid][pVIPLevel] >= 5)
  5343. {
  5344. new Float:x, Float:y, Float:z;
  5345. GetPlayerPos(playerid, x, y, z);
  5346. SetPlayerPos(playerid, x, y, z+1);
  5347. }
  5348. return 1;
  5349. }
  5350. CMD:vcmds(playerid)
  5351. {
  5352. if(pInfo[playerid][pVIPLevel] >= 1)
  5353. {
  5354. SendClientMessage(playerid,0xAACCAA,"Silver:{FF00FF}/vipmenu, /vipmenu2");
  5355. SendClientMessage(playerid,0xAACCAA,"Gold:{FF00FF}/vskin");
  5356. SendClientMessage(playerid,0xAACCAA,"Platinum:{FF00FF}/vheal");
  5357. SendClientMessage(playerid,0xAACCAA,"Diamond:{FF00FF}/vcure");
  5358. SendClientMessage(playerid,0xAACCAA,"E.L.I.T.E:{FF00FF}/viprc, /selfdestruct");
  5359. SendClientMessage(playerid,0xAACCAA,"Ultimate E.L.I.T.E:{FF00FF}Ultimate samurai class and cool things");
  5360. }
  5361. return 1;
  5362. }
  5363. CMD:cmds(playerid)
  5364. {
  5365. new acmdstring[400];
  5366. strcat(acmdstring," /sharexp /hi /help /blockpm /stats /rbug /cmds \n /unblockpm /ss /robj /vinfo /radio /class /buy /fail /pstats /admins /vips \n/playurl /togas(auto sprint to chat)");
  5367. ShowPlayerDialog(playerid,DIALOG_ACMDS,DIALOG_STYLE_MSGBOX,"General Commands",acmdstring,"Close","");
  5368. return 1;
  5369. }
  5370.  
  5371. CMD:acmds(playerid)
  5372. {
  5373. if(pInfo[playerid][pAdminLevel] >= 1)
  5374. {
  5375. SendClientMessage(playerid,COLOR_GRAD5,"Trial Admin: /codes, /(un)freeze, /cw (checks the weapons), /getid, /cc (clear the chat), /slap, /a, /warn, /akill,/mute,/ummute,/kick");
  5376. SendClientMessage(playerid,COLOR_GRAD5,"Administrator: /xp, /settag, /hhcheck, /spec, /ban, /nuke, /loginunban(When player connect use this!), /megaslap, /settime, /setweather, /get /unbanip");
  5377. SendClientMessage(playerid,COLOR_GRAD5,"Senior Administrator: /ann2, /tb, /nextmap, /maps, /ip, /setzombie, /sethuman, /setskin /pufa /aclasses > Invisibla Man");
  5378. SendClientMessage(playerid,COLOR_GRAD5,"Lead Administrator: /givexp,/ann, /rename /nightmaremode /setrank /setkills /unban");
  5379. SendClientMessage(playerid,COLOR_GRAD5,"Head Admin: /skip /more /aheli");
  5380. SendClientMessage(playerid,COLOR_GRAD5,"Server Manager: /setvip /setxp4 and all commands down here");
  5381. SendClientMessage(playerid,COLOR_GRAD5,"Head Manager: All commands down here including some high");
  5382. SendClientMessage(playerid,COLOR_GRAD5,"Assistant Co Owner: All commands, excluding Co-Founders and Founder");
  5383. SendClientMessage(playerid,COLOR_GRAD5,"Co Founder: All commands excluding Founders");
  5384. SendClientMessage(playerid,COLOR_GRAD5,"Founder: /setadmin /sethighadmin");
  5385. return 1;
  5386. }
  5387. return 1;
  5388. }
  5389.  
  5390. CMD:vcure(playerid,params[])
  5391. {
  5392. if(team[playerid] == TEAM_HUMAN)
  5393. {
  5394. if(pInfo[playerid][pVIPLevel] >= 4)
  5395. {
  5396. new targetid,string[128],str[256];
  5397. if(sscanf(params,"u", targetid)) return SendClientMessage(playerid,-1,""chat" /vcure [playerid]");
  5398.  
  5399. if(pInfo[targetid][IsPlayerInfected] == 1)
  5400. {
  5401. CurePlayer(targetid);
  5402. format(string,sizeof(string),"~n~~n~~n~~n~~g~VIP~w~ %s has cured you",GetClassName(playerid),PlayerName(playerid));
  5403. GameTextForPlayer(targetid,string,3500,5);
  5404. format(str,sizeof(str),""chat""COL_LGREEN" VIP %s has cured %s",GetClassName(playerid),PlayerName(playerid),PlayerName(targetid));
  5405. SendClientMessageToAll(-1,str);
  5406. GivePlayerXP(playerid,20);
  5407. }
  5408. else return SendClientMessage(playerid,-1,""chat" The player you are trying to cure isn't infected");
  5409. }
  5410. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You'll need to be VIP Level 4 to use this command!");
  5411. }
  5412. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You'll need to be an human to use this command!");
  5413. return 1;
  5414. }
  5415.  
  5416. CMD:vheal(playerid,params[])
  5417. {
  5418. if(gettime() - 15 < Abilitys[playerid][HealCoolDown]) return GameTextForPlayer(playerid,"~w~ Cannot VIP heal wait 15 seconds!",1000,5);
  5419. {
  5420. if(team[playerid] == TEAM_HUMAN)
  5421. {
  5422. if(pInfo[playerid][pVIPLevel] >= 3)
  5423. {
  5424. new targetid,string[128],str[256];
  5425. if(sscanf(params,"u", targetid)) return SendClientMessage(playerid,-1,""chat" /vheal [playerid]");
  5426. new Float:hp;
  5427. GetPlayerHealth(targetid,hp);
  5428. if(team[targetid] == TEAM_HUMAN)
  5429. {
  5430. if(hp >= 80)
  5431. {
  5432. SendClientMessage(playerid,-1,""chat" That player already has enough health to survive");
  5433. }
  5434. else
  5435. {
  5436. if(pInfo[playerid][pVIPLevel] >= 4)
  5437. {
  5438. SetPlayerHealth(targetid,hp+40);
  5439. format(string,sizeof(string),"~n~~n~~n~~n~~g~%s~w~ %s has healed you (by %.2f HP)",GetClassName(playerid),PlayerName(playerid),hp);
  5440. GameTextForPlayer(targetid,string,3500,5);
  5441. format(str,sizeof(str),""chat""COL_LGREEN" %s %s has healed %s by (NEW HP: %.2f HP)",GetClassName(playerid),PlayerName(playerid),PlayerName(targetid),hp);
  5442. SendClientMessageToAll(-1,str);
  5443. GivePlayerXP(playerid,35);
  5444. Abilitys[playerid][HealCoolDown] = gettime();
  5445. }
  5446. }
  5447. }
  5448. else return SendClientMessage(playerid,-1,""chat" You cannot heal an zombie!");
  5449. }
  5450. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" you need to be VIP level 4 to use this command!");
  5451. }
  5452. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You'll need to be an human to use this command!");
  5453. }
  5454. return 1;
  5455. }
  5456.  
  5457. CMD:fail(playerid)
  5458. {
  5459. new fail1[128];
  5460. format(fail1, sizeof(fail1), ""chat"Player %s just made an epic failure.", PlayerName(playerid), playerid);
  5461. SendClientMessageToAll(COLOR_LIGHTBLUE, fail1);
  5462. return 1;
  5463. }
  5464.  
  5465. CMD:hi(playerid)
  5466. {
  5467. new fail1[128];
  5468. if(saidhi[playerid] == 1) return SendClientMessage(playerid,0xADD836,"Ai salutat deja server-ul!");
  5469. saidhi[playerid] = 1;
  5470. format(fail1, sizeof(fail1), ""chat" {ADD8E6} %s(%d) said: {41A317}Salutare tuturor!", PlayerName(playerid), playerid);
  5471. SendClientMessageToAll(COLOR_LIGHTBLUE, fail1);
  5472. return 1;
  5473. }
  5474.  
  5475. CMD:codes(playerid)
  5476. {
  5477. if(pInfo[playerid][pAdminLevel] >= 1)
  5478. {
  5479. new cstring[600];
  5480. strcat(cstring,"HH - Health Hacks (Permanent)\nGM -God Mode (Permanent)\nAB - Air Break (Permanent)\nSH- Speed Hacks (Permanent)\nWH - Weapon Hacks (Permanent)\n\
  5481. SK - Spawnkill (Over did)\nFH - Fly hacks (Permanent)\nOH - Other hacks (Permanent)\nVH - Vehicle hacks (Permanent)\nPF - Profanity");
  5482. ShowPlayerDialog(playerid,9511,DIALOG_STYLE_MSGBOX,"Ban Codes",cstring,"Close","");
  5483. }
  5484. return 1;
  5485. }
  5486. CMD:giveammo(playerid,params[])
  5487. {
  5488. if(gettime() - 15 < Abilitys[playerid][HealCoolDown]) return GameTextForPlayer(playerid,"~w~ Cannot Give Mini-Ammo Box wait 15 seconds!",1000,5);
  5489. {
  5490. if(team[playerid] == TEAM_HUMAN)
  5491. {
  5492. if(pInfo[playerid][pHumanClass] == WEAPONSDEALER)
  5493. {
  5494. new targetid,string[128],str[256];
  5495. if(sscanf(params,"u", targetid)) return SendClientMessage(playerid,-1,""chat" /giveammo [playerid]");
  5496. if(team[targetid] == TEAM_HUMAN)
  5497. {
  5498. {
  5499. if(pInfo[playerid][pHumanClass] == WEAPONSDEALER)
  5500. {
  5501. new ammo = GetPlayerAmmo(targetid);
  5502. SetPlayerAmmo(targetid, GetPlayerWeapon(targetid), ammo+100);
  5503. format(string,sizeof(string),"~n~~n~~n~~n~~g~%s~w~ %s has Given Mini-Ammo Box you ",GetClassName(playerid),PlayerName(playerid));
  5504. GameTextForPlayer(targetid,string,3500,5);
  5505. format(str,sizeof(str),""chat""COL_LGREEN" %s %s has Given Mini-Ammo Box to %s ",GetClassName(playerid),PlayerName(playerid),PlayerName(targetid),PlayerName(targetid));
  5506. SendClientMessageToAll(-1,str);
  5507. GivePlayerXP(playerid,10);
  5508. Abilitys[playerid][HealCoolDown] = gettime();
  5509. }
  5510.  
  5511. }
  5512. }
  5513.  
  5514.  
  5515. else return SendClientMessage(playerid,-1,""chat" You cannot Give Ammo to an zombie!");
  5516. }
  5517. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You'll need to be A Weapons Dealer to use this command!");
  5518. }
  5519. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You'll need to be an human to use this command!");
  5520. }
  5521. return 1;
  5522. }
  5523. CMD:vest(playerid,params[])
  5524. {
  5525. if(gettime() - 15 < Abilitys[playerid][HealCoolDown]) return GameTextForPlayer(playerid,"~w~ Cannot Give Mini-Armour wait 15 seconds!",1000,5);
  5526. {
  5527. if(team[playerid] == TEAM_HUMAN)
  5528. {
  5529. if(pInfo[playerid][pHumanClass] == WEAPONSDEALER)
  5530. {
  5531. new targetid,string[128],str[256];
  5532. if(sscanf(params,"u", targetid)) return SendClientMessage(playerid,-1,""chat" /vest [playerid]");
  5533. new Float:ar;
  5534. GetPlayerArmour(playerid, ar);
  5535. if(team[targetid] == TEAM_HUMAN)
  5536. {
  5537. if(ar >= 80)
  5538. {
  5539. SendClientMessage(playerid,-1,""chat" That player already has More than 80 Armour");
  5540. }
  5541. else
  5542. {
  5543. if(pInfo[playerid][pHumanClass] == WEAPONSDEALER)
  5544. {
  5545. SetPlayerArmour(targetid,ar+200);
  5546. 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);
  5547. GameTextForPlayer(targetid,string,3500,5);
  5548. 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));
  5549. SendClientMessageToAll(-1,str);
  5550. GivePlayerXP(playerid,10);
  5551. Abilitys[playerid][HealCoolDown] = gettime();
  5552. }
  5553.  
  5554. }
  5555. }
  5556.  
  5557.  
  5558. else return SendClientMessage(playerid,-1,""chat" You cannot Vest an zombie!");
  5559. }
  5560. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You'll need to be Weapons Dealer to use this command!");
  5561. }
  5562. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You'll need to be an human to use this command!");
  5563. }
  5564. return 1;
  5565. }
  5566.  
  5567. CMD:cure(playerid,params[])
  5568. {
  5569. if(team[playerid] == TEAM_HUMAN)
  5570. {
  5571. if(pInfo[playerid][pHumanClass] == MEDIC || pInfo[playerid][pHumanClass] == ADVANCEDMEDIC || pInfo[playerid][pHumanClass] == HEAVYMEDIC || pInfo[playerid][pHumanClass] == VIPMEDIC || pInfo[playerid][pHumanClass] == DOCTOR)
  5572. {
  5573. new targetid,string[128],str[256];
  5574. if(sscanf(params,"u", targetid)) return SendClientMessage(playerid,-1,""chat" /cure [playerid]");
  5575.  
  5576. if(pInfo[targetid][IsPlayerInfected] == 1)
  5577. {
  5578. CurePlayer(targetid);
  5579. format(string,sizeof(string),"~n~~n~~n~~n~~g~%s~w~ %s has cured you",GetClassName(playerid),PlayerName(playerid));
  5580. GameTextForPlayer(targetid,string,3500,5);
  5581. format(str,sizeof(str),""chat""COL_LGREEN" %s %s has cured %s",GetClassName(playerid),PlayerName(playerid),PlayerName(targetid));
  5582. SendClientMessageToAll(-1,str);
  5583. GivePlayerXP(playerid,20);
  5584. }
  5585. else return SendClientMessage(playerid,-1,""chat" The player you are trying to cure isn't infected");
  5586. }
  5587. 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!");
  5588. }
  5589. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You'll need to be an human to use this command!");
  5590. return 1;
  5591. }
  5592.  
  5593. CMD:zheal(playerid,params[])
  5594. {
  5595. if(gettime() - 15 < Abilitys[playerid][HealCoolDown]) return GameTextForPlayer(playerid,"~w~ Cannot heal wait 15 seconds!",1000,5);
  5596. {
  5597. if(team[playerid] == TEAM_ZOMBIE)
  5598. {
  5599. if(pInfo[playerid][pZombieClass] == HZOMBIE)
  5600. {
  5601. new targetid,string[128],str[256];
  5602. if(sscanf(params,"u", targetid)) return SendClientMessage(playerid,-1,""chat" /zheal [playerid]");
  5603. new Float:hp;
  5604. GetPlayerHealth(targetid,hp);
  5605. if(team[targetid] == TEAM_ZOMBIE)
  5606. {
  5607. if(hp >= 80)
  5608. {
  5609. SendClientMessage(playerid,-1,""chat" That player already has enough health to survive");
  5610. }
  5611. else
  5612. {
  5613. if(pInfo[playerid][pZombieClass] == HZOMBIE)
  5614. {
  5615. SetPlayerHealth(targetid,hp+40);
  5616. format(string,sizeof(string),"~n~~n~~n~~n~~g~%s~w~ %s has healed you (New HP: %.2f)",GetClassName(playerid),PlayerName(playerid),hp);
  5617. GameTextForPlayer(targetid,string,3500,5);
  5618. 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));
  5619. SendClientMessageToAll(-1,str);
  5620. GivePlayerXP(playerid,20);
  5621. Abilitys[playerid][HealCoolDown] = gettime();
  5622. }
  5623. }
  5624. }
  5625. else return SendClientMessage(playerid,-1,""chat" You cannot heal an human!");
  5626. }
  5627. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You'll need to be Zombie Medic!");
  5628. }
  5629. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You'll need to be an zombie to use this command!");
  5630. }
  5631. return 1;
  5632. }
  5633.  
  5634. CMD:heal(playerid,params[])
  5635. {
  5636. if(gettime() - 15 < Abilitys[playerid][HealCoolDown]) return GameTextForPlayer(playerid,"~w~ Cannot heal wait 15 seconds!",1000,5);
  5637. {
  5638. if(team[playerid] == TEAM_HUMAN)
  5639. {
  5640. if(pInfo[playerid][pHumanClass] == HEAVYMEDIC || pInfo[playerid][pHumanClass] == ADVANCEDMEDIC || pInfo[playerid][pHumanClass] == VIPMEDIC || pInfo[playerid][pHumanClass] == DOCTOR)
  5641. {
  5642. new targetid,string[128],str[256];
  5643. if(sscanf(params,"u", targetid)) return SendClientMessage(playerid,-1,""chat" /heal [playerid]");
  5644. new Float:hp;
  5645. GetPlayerHealth(targetid,hp);
  5646. if(team[targetid] == TEAM_HUMAN)
  5647. {
  5648. if(hp >= 80)
  5649. {
  5650. SendClientMessage(playerid,-1,""chat" That player already has enough health to survive");
  5651. }
  5652. else
  5653. {
  5654. if(pInfo[playerid][pHumanClass] == HEAVYMEDIC || pInfo[playerid][pHumanClass] == ADVANCEDMEDIC)
  5655. {
  5656. SetPlayerHealth(targetid,hp+10);
  5657. format(string,sizeof(string),"~n~~n~~n~~n~~g~%s~w~ %s has healed you (New HP: %.2f)",GetClassName(playerid),PlayerName(playerid),hp);
  5658. GameTextForPlayer(targetid,string,3500,5);
  5659. 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));
  5660. SendClientMessageToAll(-1,str);
  5661. GivePlayerXP(playerid,20);
  5662. Abilitys[playerid][HealCoolDown] = gettime();
  5663. }
  5664. else if(pInfo[playerid][pHumanClass] == VIPMEDIC)
  5665. {
  5666. SetPlayerHealth(targetid,hp+20);
  5667. format(string,sizeof(string),"~n~~n~~n~~n~~g~%s~w~ %s has healed you (by %.2f HP)",GetClassName(playerid),PlayerName(playerid),hp);
  5668. GameTextForPlayer(targetid,string,3500,5);
  5669. format(str,sizeof(str),""chat""COL_LGREEN" %s %s has healed %s by (NEW HP: %.2f HP)",GetClassName(playerid),PlayerName(playerid),PlayerName(targetid),hp);
  5670. SendClientMessageToAll(-1,str);
  5671. GivePlayerXP(playerid,20);
  5672. Abilitys[playerid][HealCoolDown] = gettime();
  5673. }
  5674.  
  5675. else if(pInfo[playerid][pHumanClass] == DOCTOR)
  5676. {
  5677. SetPlayerHealth(targetid,hp+40);
  5678. format(string,sizeof(string),"~n~~n~~n~~n~~g~%s~w~ %s has healed you (by %.2f HP)",GetClassName(playerid),PlayerName(playerid),hp);
  5679. GameTextForPlayer(targetid,string,3500,5);
  5680. format(str,sizeof(str),""chat""COL_LGREEN" %s %s has healed %s by (NEW HP: %.2f HP)",GetClassName(playerid),PlayerName(playerid),PlayerName(targetid),hp);
  5681. SendClientMessageToAll(-1,str);
  5682. GivePlayerXP(playerid,35);
  5683. Abilitys[playerid][HealCoolDown] = gettime();
  5684. }
  5685. }
  5686. }
  5687. else return SendClientMessage(playerid,-1,""chat" You cannot heal an zombie!");
  5688. }
  5689. 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!");
  5690. }
  5691. else return SendClientMessage(playerid,-1,""chat""COL_LGREEN" You'll need to be an human to use this command!");
  5692. }
  5693. return 1;
  5694. }
  5695.  
  5696. CMD:kill(playerid)
  5697. {
  5698. if(team[playerid] == TEAM_HUMAN)
  5699. {
  5700. SetPlayerHealth(playerid,0.0);
  5701. ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
  5702. SendClientMessage(playerid,-1,""chat" You've killed yourself");
  5703. }
  5704. else return SendClientMessage(playerid,-1,""chat" You cannot kill yourself if you are an 'Zombie'");
  5705. return 1;
  5706. }
  5707.  
  5708. CMD:admins(playerid, params[])
  5709. {
  5710. if(pInfo[playerid][pHour] >= 1)
  5711. {
  5712. new adminstring[128];
  5713. if(IsPlayerConnected(playerid))
  5714. {
  5715. for (new i = 0; i < MAX_PLAYERS; i++)
  5716. {
  5717. if(IsPlayerConnected(i))
  5718. {
  5719. if(pInfo[i][pAdminLevel] > 0)
  5720. {
  5721. format(adminstring, sizeof(adminstring),"%s%s: %s\n", adminstring, GetAdminName(i), PlayerName(i));
  5722. }
  5723. }
  5724. }
  5725. ShowPlayerDialog(playerid,DIALOG_ADMINS,DIALOG_STYLE_MSGBOX,"Online admins",adminstring,"Close","");
  5726. }
  5727. else return SendClientMessage(playerid,-1,""chat" No admins online");
  5728. }
  5729. else return SendClientMessage(playerid,-1,""chat" You cannot view admins online (You need 1 hours IG time)");
  5730. return 1;
  5731. }
  5732.  
  5733. CMD:vips(playerid, params[])
  5734. {
  5735. if(pInfo[playerid][pHour] >= 1)
  5736. {
  5737. new adminstring[128];
  5738. if(IsPlayerConnected(playerid))
  5739. {
  5740. for (new i = 0; i < MAX_PLAYERS; i++)
  5741. {
  5742. if(IsPlayerConnected(i))
  5743. {
  5744. if(pInfo[i][pVIPLevel] > 0)
  5745. {
  5746. format(adminstring, sizeof(adminstring),"%sLevel %d: %s\n", adminstring, pInfo[i][pVIPLevel], PlayerName(i));
  5747. }
  5748. }
  5749. }
  5750. ShowPlayerDialog(playerid,DIALOG_VIPS,DIALOG_STYLE_MSGBOX,"Online V.I.Ps",adminstring,"Close","");
  5751. }
  5752. else return SendClientMessage(playerid,-1,""chat" No vip's online");
  5753. }
  5754. else return SendClientMessage(playerid,-1,""chat" You cannot view vips online (You need 1 Hour IG time)");
  5755. return 1;
  5756. }
  5757.  
  5758. CMD:myteam(playerid)
  5759. {
  5760. new strteam[128];
  5761. switch(team[playerid])
  5762. {
  5763. case TEAM_ZOMBIE: strteam = "Zambie";
  5764. case TEAM_HUMAN: strteam = "Hooman";
  5765. }
  5766.  
  5767. new str[128];
  5768. format(str,sizeof(str),""chat" Team: %s",strteam);
  5769. SendClientMessage(playerid,-1,str);
  5770. return 1;
  5771. }
  5772.  
  5773. CMD:class(playerid,params[])
  5774. {
  5775. if(team[playerid] == TEAM_HUMAN)
  5776. {
  5777. if(time >= 0)
  5778. {
  5779. new string[2500];
  5780. strcat(string,"{008080}Civillian - Silenced Pistol,Shotgun - 0 XP\n{008080}Police Man - Deagle,Shotgun - 500 XP\n{008080}Medic -Shotgun,Silenced Pistol,Armour,Cure Infected - 1.000 XP\n\
  5781. {008080}Scout - Sniper,Silenced Pistol - 1.500 XP\n{008080}Heavy Medic - Deagle,Shotgun,Armour,Cure Infected - 5.000 XP\n{008080}Farmer - Deagle,AK,County Rifle,Armour - 6.000 XP\n");
  5782. strcat(string,"{008080}Soldier - AK47,Deagle - 6.500 XP\n{008080}Box Builder - Silenced Pistol,Shotgun,Armour,Build Boxes - 7.500 XP\n{008080}S.W.A.T - MP5,Deagle,Armour,Immunity - 15,000 XP\n\
  5783. {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");
  5784. strcat(string,"{008080}Advanced Box Builder - Deagle,M4,Armour,Build Boxes - 30,000 XP\n{008080}Experienced Box Builder - Powerfull guns, Armour - Build Ladders - 95,000 XP\n\
  5785. {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\
  5786. {008080}Kick Back - Silenced Pistol,Shotgun,MP5 - 400.000 XP\n{008080}Doctor - Silenced Pistol - Heal,Cure,Shield Heal,Half Immunity - Rank 22");
  5787. ShowPlayerDialog(playerid,DIALOG_CLASS_2,DIALOG_STYLE_LIST,"Class Selection (Human)",string,"Choose Class","Next Page");
  5788. }
  5789. else return SendClientMessage(playerid,-1,""chat" 50 seconds has passed! you cannot select a class anymore!");
  5790. }
  5791. if(team[playerid] == TEAM_ZOMBIE)
  5792. {
  5793. new string[1000];
  5794. 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\
  5795. {41A317}Reaper Zombie - More damage with chainsaw - 10,000 XP\n{41A317}Witch Zombie - LALT 75 Damage - 18,000 XP\n");
  5796. strcat(string,"{41A317}Boomer Zombie - Explodes on death and infect - 20,000 XP\n\
  5797. {41A317}Stomper Zombie - LALT Throw all around you - 25,000 XP\n{41A317}Screamer - LALT Drop everyone down - 35.000 XP\n\
  5798. {41A317}Advanced Mutated - LALT Infect all around - 65,000 XP\n{41A317}Heavy Screamer - LALT Throw all +5hp - 70,000 XP\n");
  5799. 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");
  5800.  
  5801. ShowPlayerDialog(playerid,DIALOG_CLASS_3,DIALOG_STYLE_LIST,"Class Selection (Zombie)",string,"Choose Class","Next Page");
  5802. }
  5803. return 1;
  5804. }
  5805.  
  5806. CMD:class2mirror(playerid,params[])
  5807. {
  5808. return cmd_class2(playerid, params);
  5809. }
  5810.  
  5811. CMD:class2(playerid,params[])
  5812. {
  5813. if(team[playerid] == TEAM_HUMAN)
  5814. {
  5815. if(time >= 0)
  5816. {
  5817. new string[3900];
  5818. strcat(string,"{008080}Pimp - Dildo, deals 15 damage 15.000 XP\n{008080}Heavy Soldier - Can Give 25 Armour Point - 150.000\n");
  5819. strcat(string,"{008080}Assassin - Country Rifle, Uzi, C4 - 300.000 XP\n{008080}Cowboy - 2 colt pistols, extra damage, armour, 250.000XP\n");
  5820. 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");
  5821. 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");
  5822. 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");
  5823. strcat(string,"{008080}Mp5 Master - Extreme damage with Mp5 - 500.000xp\n{008080}Ghost Rider - Can Burn Zombies - 600.000xp\n{008080}Samurai - One hit katana kill, 15 Armour - 650000xp\n{008080}Hey Buddy - Gives 70 Damage - 150000xp\n{008080}Advanced KickBack - Gives Extreme KickBack - 900.000 XP\n{008080}Tec Master - Gives 30 damage with Tec|200hp - 900.000 XP\n{008080}Bulls Eye - Gives high damage|sawnoff - 27 rank needed\n");
  5824. strcat(string,"{008080}S.T.A.R.S - Gives high dmg on guns, Heal nearest players, SWAT Skin - S.T.A.R.S Membership needed\n{008080}Martial Arts Coach - More damage on hands, Throw zombies away - 780000xp\n{008080}Explosion Master - Create explosions with high radius, Damage - 1.2 mil XP\n");
  5825.  
  5826. ShowPlayerDialog(playerid,DIALOG_CLASS_2_2,DIALOG_STYLE_LIST,"Class Selection (Human)",string,"Select","Close");
  5827. }
  5828. else return SendClientMessage(playerid,-1,""chat" 50 seconds has passed! you cannot select a class anymore!");
  5829. }
  5830. if(team[playerid] == TEAM_ZOMBIE)
  5831. {
  5832. new string[1000];
  5833. strcat(string,"{41A317}Advanced Stomper - 150 HP , Stomps humans away - 200.000 XP\n");
  5834. 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");
  5835. strcat(string,"{41A317}Nemesis - Creates some paravane, custom skinned - 1.3 mil\n{41A317}Zombie Medic - /zheal to heal zombies\n{41A317}SlenderMan - HighJump MoreDamage - 700000\n{41A317}Fat Zombie - Cant be kickback - 600000\n{008080}Vampire - Sucks hp, Can get someone to bleed, Human color - 900.000 XP");
  5836. ShowPlayerDialog(playerid,DIALOG_CLASS_3_3,DIALOG_STYLE_LIST,"Class Selection (Zombie)",string,"Select","Close");
  5837. }
  5838. return 1;
  5839. }
  5840.  
  5841. CMD:class3(playerid,params[])
  5842. {
  5843. if(team[playerid] == TEAM_HUMAN)
  5844. {
  5845. if(time >= 0)
  5846. {
  5847. new string[3900];
  5848. strcat(string,"{008080}General - General Bullets(Extra Damage) and military fences - 2 million xp\nMafiaso Bad Boys - Steal XP and gangster weapons - 2.2 million xp");
  5849. ShowPlayerDialog(playerid,DIALOG_CLASS_4_1,DIALOG_STYLE_LIST,"Class Selection (Human)",string,"Select","Close");
  5850. }
  5851. else return SendClientMessage(playerid,-1,""chat" 50 seconds has passed! you cannot select a class anymore!");
  5852. }
  5853. if(team[playerid] == TEAM_ZOMBIE)
  5854. {
  5855. new string[1000];
  5856. strcat(string,"{41A317}Leech Zombie - Suck random hp under 75 from a human, Chainsaw + 15 dmg - 1.7 million");
  5857. ShowPlayerDialog(playerid,DIALOG_CLASS_4_2,DIALOG_STYLE_LIST,"Class Selection (Zombie)",string,"Select","Close");
  5858. }
  5859. return 1;
  5860. }
  5861.  
  5862. CMD:aclasses(playerid,params[])
  5863. {
  5864. if(pInfo[playerid][pAdminLevel] >= 3)
  5865. {
  5866. new string[3000];
  5867. strcat(string,"{008080}InvisiblaMan - Can Be Invisible, Power Silenced, MP5 - Senior Admin +");
  5868. ShowPlayerDialog(playerid,DIALOG_ACLASS,DIALOG_STYLE_LIST,"Admins Human Classes",string,"Select","Close");
  5869. return 1;
  5870. }
  5871. return 1;
  5872. }
  5873.  
  5874. CMD:maps(playerid,params[])
  5875. {
  5876. if(pInfo[playerid][pLogged] == 1)
  5877. {
  5878. if(pInfo[playerid][pAdminLevel] >= 3)
  5879. {
  5880. SendClientMessage(playerid,Grey,"ID:0 - Map:LS Beach - Primary ID");
  5881. SendClientMessage(playerid,Grey,"ID:1 - Map:LS Hood - Primary ID");
  5882. SendClientMessage(playerid,Grey,"ID:2 - Map:LV Hood - Primary ID");
  5883. SendClientMessage(playerid,Grey,"ID:3 - Map:Dillimore - Primary ID");
  5884. SendClientMessage(playerid,Grey,"ID:4 - Map:Campout - Primary ID");
  5885. SendClientMessage(playerid,Grey,"ID:5 - Map:Floating Ships - Primary ID");
  5886. SendClientMessage(playerid,Grey,"ID:6 - Map:LVPD - Primary ID");
  5887. SendClientMessage(playerid,Grey,"ID:7 - Map:Battle Field - Primary ID");
  5888. SendClientMessage(playerid,Grey,"ID:8 - Map:Air Craft - Primary ID");
  5889. SendClientMessage(playerid,Grey,"ID:9 - Map:Desert Survival - Primary ID");
  5890. SendClientMessage(playerid,Grey,"ID:10 - Map:Area 51 - Primary ID");
  5891. SendClientMessage(playerid,Grey,"ID:11 - Map:Ghost Town - Primary ID");
  5892. SendClientMessage(playerid,Grey,"ID:12 - Map:Pier Trip - Primary ID");
  5893. SendClientMessage(playerid,Grey,"ID:13 - Map:Area 51 Part 2 - Primary ID");
  5894. SendClientMessage(playerid,Grey,"ID:14 - Map:Bridge - Primary ID");
  5895. SendClientMessage(playerid,Grey,"ID:15 - Map:Factory - Primary ID");
  5896. SendClientMessage(playerid,Grey,"ID:16 - Map:Construction Site - Primary ID");
  5897. SendClientMessage(playerid,Grey,"ID:17 - Map:Ocean Docks - Primary ID");
  5898. SendClientMessage(playerid,Grey,"ID:18 - Map:Sandy Trip - Primary ID");
  5899. SendClientMessage(playerid,Grey,"ID:19 - Map:River - Primary ID");
  5900. SendClientMessage(playerid,Grey,"ID:20 - Map:Desert Survival - Primary ID");
  5901. SendClientMessage(playerid,Grey,"ID:21 - Map:Undefined - Primary ID");
  5902. }
  5903. }
  5904. else if(pInfo[playerid][pLogged] == 0)
  5905. {
  5906. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  5907. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  5908. Kick(playerid);
  5909. }
  5910. return 1;
  5911. }
  5912. CMD:nextmap(playerid,params[])
  5913. {
  5914. if(pInfo[playerid][pLogged] == 1)
  5915. {
  5916. if(pInfo[playerid][pAdminLevel] >= 3)
  5917. {
  5918. new map,stringmap[256];
  5919. if(sscanf(params,"i", map)) return SendClientMessage(playerid,-1,""chat" /nextmap [mapid] for maps id's use /maps");
  5920.  
  5921. format(stringmap,sizeof(stringmap),""chat""COL_LIGHTBLUE" %s %s set next map id to %i",GetAdminName(playerid),PlayerName(playerid),map);
  5922. SendClientMessageToAll(-1,stringmap);
  5923. mapid = map;
  5924. }
  5925. }
  5926. else if(pInfo[playerid][pLogged] == 0)
  5927. {
  5928. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  5929. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  5930. Kick(playerid);
  5931. }
  5932. return 1;
  5933. }
  5934.  
  5935. CMD:setzombie(playerid,params[])
  5936. {
  5937. if(pInfo[playerid][pLogged] == 1)
  5938. {
  5939. if(pInfo[playerid][pAdminLevel] >= 3)
  5940. {
  5941. if(IsPlayerConnected(playerid))
  5942. {
  5943. new targetid,str[256];
  5944. if(sscanf(params, "u", targetid)) return SendClientMessage(playerid,-1,""chat" /setzombie [playerid]");
  5945. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  5946.  
  5947. ZombieSetup(targetid);
  5948. SpawnPlayer(targetid);
  5949. format(str,sizeof(str),""chat""COL_LGREEN" Admin %s(%i) has set your team to Zombie",PlayerName(playerid),playerid);
  5950. SendClientMessage(targetid,-1,str);
  5951. format(str,sizeof(str),""chat""COL_LGREEN" You've changed %s(%i) team to zombie!",PlayerName(targetid),targetid);
  5952. SendClientMessage(playerid,-1,str);
  5953. }
  5954. }
  5955. }
  5956. else if(pInfo[playerid][pLogged] == 0)
  5957. {
  5958. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  5959. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  5960. Kick(playerid);
  5961. }
  5962. return 1;
  5963. }
  5964.  
  5965. CMD:sethuman(playerid,params[])
  5966. {
  5967. if(pInfo[playerid][pLogged] == 1)
  5968. {
  5969. if(pInfo[playerid][pAdminLevel] >= 3)
  5970. {
  5971. if(IsPlayerConnected(playerid))
  5972. {
  5973. new targetid,str[256];
  5974. if(sscanf(params, "u", targetid)) return SendClientMessage(playerid,-1,""chat" /sethuman [playerid]");
  5975. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  5976.  
  5977. HumanSetup(targetid);
  5978. SpawnPlayer(targetid);
  5979. format(str,sizeof(str),""chat""COL_LGREEN" Admin %s(%i) has set your team to Human",PlayerName(playerid),playerid);
  5980. SendClientMessage(targetid,-1,str);
  5981. format(str,sizeof(str),""chat""COL_LGREEN" You've changed %s(%i) team to Human!",PlayerName(targetid),targetid);
  5982. SendClientMessage(playerid,-1,str);
  5983. }
  5984. }
  5985. }
  5986.  
  5987. else if(pInfo[playerid][pLogged] == 0)
  5988. {
  5989. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  5990. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  5991. Kick(playerid);
  5992. }
  5993. return 1;
  5994. }
  5995.  
  5996. CMD:ban(playerid,params[])
  5997. {
  5998. if(pInfo[playerid][pLogged] == 1)
  5999. {
  6000. if(pInfo[playerid][pAdminLevel] >= 2)
  6001. {
  6002. if(IsPlayerConnected(playerid))
  6003. {
  6004. new targetid,reason[105],string[256];
  6005. if(sscanf(params, "us[105]", targetid,reason)) return SendClientMessage(playerid,-1,""chat" /ban [playerid] [reason]");
  6006. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  6007. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s has banned %s [Reason: %s]",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),reason);
  6008. SendClientMessageToAll(-1,string);
  6009. printf("%s %s has banned %s [Reason: %s]",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),reason);
  6010. pInfo[targetid][pBanned] = 1;
  6011. BanPlayer(targetid,reason,GetAdminName(playerid));
  6012. }
  6013. }
  6014.  
  6015. else
  6016. {
  6017. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  6018. }
  6019. }
  6020. else if(pInfo[playerid][pLogged] == 0)
  6021. {
  6022. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  6023. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  6024. Kick(playerid);
  6025. }
  6026. return 1;
  6027. }
  6028.  
  6029. CMD:unbanip(playerid, params[])
  6030. {
  6031. if(pInfo[playerid][pLogged] == 1)
  6032. {
  6033. if(pInfo[playerid][pAdminLevel] >= 2)
  6034. {
  6035. if(pInfo[playerid][pLogged] == 1)
  6036. {
  6037. new string[128], sendername[MAX_PLAYER_NAME];
  6038. if(pInfo[playerid][pAdminLevel] < 1) return SendClientMessage(playerid, COLOR_RED, " you are not authorized to use that command!");
  6039. if(isnull(params)) return SendClientMessage(playerid,COLOR_WHITE,"USAGE: /unbanip [playerIP]");
  6040. format(string,sizeof(string),"unbanip %s",params);
  6041. SendRconCommand(string);
  6042. SendRconCommand("reloadbans");
  6043. GetPlayerName(playerid, sendername, sizeof(sendername));
  6044. format(string, 128, "%s has unbanned IP %s", sendername,params);
  6045. SendClientMessage(playerid,-1,string);
  6046. }
  6047. else if(pInfo[playerid][pLogged] == 0)
  6048. {
  6049. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  6050. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  6051. Kick(playerid);
  6052. }
  6053. }
  6054. }
  6055. return 1;
  6056. }
  6057.  
  6058. CMD:unban(playerid, params[])
  6059. {
  6060. if(pInfo[playerid][pLogged] == 1)
  6061. {
  6062. if(pInfo[playerid][pLogged] == 1)
  6063. {
  6064. if(pInfo[playerid][pAdminLevel] >= 4)
  6065. {
  6066. new string[128], unbanacc[128];
  6067. if(sscanf(params, "s", unbanacc))
  6068. format(unbanacc, sizeof(unbanacc), PATH, unbanacc);
  6069. new INI:File = INI_Open(unbanacc);
  6070. INI_WriteInt(File,"pBanned", 0);
  6071. new AccIP = dini_Int(unbanacc, "pIP");
  6072. format(string,sizeof(string),"unbanip %s", AccIP);
  6073. SendRconCommand(string);
  6074. SendRconCommand("reloadbans");
  6075. format(string,sizeof(string), ""chat" %s Account and IP has been unbanned by %s , Congratz on unban!", unbanacc, PlayerName(playerid));
  6076. SendClientMessageToAll(-1, string);
  6077. INI_Close(File);
  6078. }
  6079. }
  6080. }
  6081. return 1;
  6082. }
  6083.  
  6084. CMD:loginunban(playerid, params[])
  6085. {
  6086. if(pInfo[playerid][pLogged] == 1)
  6087. {
  6088. if(pInfo[playerid][pAdminLevel] >= 2)
  6089. {
  6090.  
  6091. if(pInfo[playerid][pLogged] == 1)
  6092. {
  6093. new id, string[128], sendername[MAX_PLAYER_NAME], name[MAX_PLAYER_NAME], targetid;
  6094. if(pInfo[playerid][pAdminLevel] < 1) return SendClientMessage(playerid, COLOR_RED,"You are not authorized to use this command");
  6095. else if(sscanf(params,"u", id)) return SendClientMessage(playerid, COLOR_GREY,"USAGE: /loginunban [playerid]");
  6096. else
  6097. {
  6098. GetPlayerName(playerid, sendername, sizeof(sendername));
  6099. GetPlayerName(id, name, sizeof(name));
  6100. format(string, sizeof(string),"%s has been unbanned by admin %s", name, sendername);
  6101. SendClientMessage(playerid,-1,string);
  6102. SendClientMessage(id,-1,string);
  6103. pInfo[targetid][pBanned] = 0;
  6104. }
  6105. }
  6106. else if(pInfo[playerid][pLogged] == 0)
  6107. {
  6108. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  6109. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  6110. Kick(playerid);
  6111. }
  6112. }
  6113. }
  6114. return 1;
  6115. }
  6116.  
  6117.  
  6118. CMD:radio(playerid)
  6119. {
  6120. SendClientMessage(playerid, COLOR_RED,"Make sure your radio volume is full in options or it wont work.");
  6121. SendClientMessage(playerid, COLOR_RED,"If the song keeps hanging in middle it is either your net lagging or your ping/location.");
  6122. new string[600];
  6123. strcat(string,"Am I wrong Nico & Vinz\nKaty Perry Dark Horse\nRita Ora I will never let you down\nReturn of the God\nBlack Widow Rita Ora\nEmenim Rap God\nUK Top 40(List 1)\nUK Top 40(List 2)\nStop Radio");
  6124. ShowPlayerDialog(playerid,DIALOG_RADIO,DIALOG_STYLE_LIST,"Select an radio!",string,"Select","Close");
  6125. return 1;
  6126. }
  6127.  
  6128. CMD:getid(playerid,params[])
  6129. {
  6130. new found, string[128], playername[MAX_PLAYER_NAME];
  6131. if(pInfo[playerid][pAdminLevel] >= 1)
  6132. {
  6133. if(isnull(params)) return SendClientMessage(playerid, -1, ""chat" /getid [PartOfName] ");
  6134. format(string,sizeof(string),""chat" Searched for: \"%s\"",params);
  6135. SendClientMessage(playerid, -1,string);
  6136. for(new i=0; i <= MAX_PLAYERS; i++)
  6137. {
  6138. if(IsPlayerConnected(i))
  6139. {
  6140. GetPlayerName(i, playername, MAX_PLAYER_NAME);
  6141. new namelen = strlen(playername);
  6142. new bool:searched=false;
  6143. for(new pos=0; pos <= namelen; pos++)
  6144. {
  6145. if(searched != true)
  6146. {
  6147. if(strfind(playername,params,true) == pos)
  6148. {
  6149. found++;
  6150. format(string,sizeof(string),""chat" %d. %s (ID: %d)",found,playername,i);
  6151. SendClientMessage(playerid, -1 ,string);
  6152. searched = true;
  6153. }
  6154. }
  6155. }
  6156. }
  6157. }
  6158. if(found == 0)
  6159. SendClientMessage(playerid, -1, ""chat" No Players Localized!");
  6160. }
  6161. else if(pInfo[playerid][pLogged] == 0)
  6162. {
  6163. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  6164. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  6165. Kick(playerid);
  6166. }
  6167. return 1;
  6168. }
  6169.  
  6170. CMD:cc(playerid,params[])
  6171. {
  6172. if(pInfo[playerid][pLogged] == 1)
  6173. {
  6174. if(pInfo[playerid][pAdminLevel] >= 1)
  6175. {
  6176. new reason[105], string[256];
  6177. if(sscanf(params, "s[105]", reason)) return SendClientMessage(playerid,-1,""chat" /cc [reason]");
  6178.  
  6179. ClearChat();
  6180. format(string,sizeof(string), ""chat""COL_LIGHTBLUE" %s %s cleared the chat [Reason: %s]",GetAdminName(playerid),PlayerName(playerid),reason);
  6181. SendClientMessageToAll(-1,string);
  6182. }
  6183. else {
  6184. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  6185. }
  6186. }
  6187.  
  6188. else if(pInfo[playerid][pLogged] == 0)
  6189. {
  6190. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  6191. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  6192. Kick(playerid);
  6193. }
  6194. return 1;
  6195. }
  6196.  
  6197. CMD:setrank(playerid,params[])
  6198. {
  6199. if(pInfo[playerid][pLogged] == 1)
  6200. {
  6201. if(pInfo[playerid][pAdminLevel] >= 4)
  6202. {
  6203. new targetid,level,string[256];
  6204. if(sscanf(params, "ui", targetid, level)) return SendClientMessage(playerid,-1,""chat" /setrank [playerid] [rank]");
  6205. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  6206. if(level < 0 || level > 32) return SendClientMessage(playerid,-1,""chat" Ranks are ONLY between 0-32");
  6207.  
  6208. pInfo[targetid][pRank] = level;
  6209.  
  6210. format(string, sizeof(string), ""chat""COL_LIGHTBLUE"Admin(ID:%d) has set rank of ID:%d to %i",playerid, targetid, level);
  6211. SendClientMessageToAll(-1,string);
  6212. printf("Admin(ID:%d) has set rank of ID:%d to %i",playerid, targetid, level);
  6213. }
  6214. else {
  6215. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  6216. }
  6217. }
  6218. else if(pInfo[playerid][pLogged] == 0)
  6219. {
  6220. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  6221. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  6222. Kick(playerid);
  6223. }
  6224. return 1;
  6225. }
  6226.  
  6227. CMD:setkills(playerid,params[])
  6228. {
  6229. if(pInfo[playerid][pLogged] == 1)
  6230. {
  6231. if(pInfo[playerid][pAdminLevel] >= 4)
  6232. {
  6233. new targetid,level,string[256];
  6234. if(sscanf(params, "ui", targetid, level)) return SendClientMessage(playerid,-1,""chat" /setkills [playerid] [kills]");
  6235. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  6236. if(level < 0 || level > 99999) return SendClientMessage(playerid,-1,""chat" Kills are ONLY between 0-99999");
  6237.  
  6238. pInfo[targetid][pKills] = level;
  6239.  
  6240. format(string, sizeof(string), ""chat""COL_LIGHTBLUE"Admin(ID:%d) has set rank of ID:%d to %i",playerid, targetid, level);
  6241. SendClientMessageToAll(-1,string);
  6242. printf("Admin(ID:%d) has set rank of ID:%d to %i",playerid, targetid, level);
  6243. }
  6244. else {
  6245. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  6246. }
  6247. }
  6248. else if(pInfo[playerid][pLogged] == 0)
  6249. {
  6250. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  6251. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  6252. Kick(playerid);
  6253. }
  6254. return 1;
  6255. }
  6256.  
  6257. CMD:setvip(playerid,params[])
  6258. {
  6259. if(pInfo[playerid][pLogged] == 1)
  6260. {
  6261. if(pInfo[playerid][pAdminLevel] >= 6)
  6262. {
  6263. new targetid,level,string[256];
  6264. if(sscanf(params, "ud", targetid, level)) return SendClientMessage(playerid,-1,""chat" /setvip [playerid] [level]");
  6265. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  6266. if(level < 0 || level > 6) return SendClientMessage(playerid,-1,""chat" VIP levels are ONLY between 1-6");
  6267.  
  6268. pInfo[targetid][pVIPLevel] = level;
  6269.  
  6270. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s have given vip status of %d to %s",GetAdminName(playerid),PlayerName(playerid),level,PlayerName(targetid));
  6271. SendClientMessageToAll(-1,string);
  6272. printf(" %s %s have given vip status of %d to %s",GetAdminName(playerid),PlayerName(playerid),level,PlayerName(targetid));
  6273. }
  6274. else {
  6275. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  6276. }
  6277. }
  6278. else if(pInfo[playerid][pLogged] == 0)
  6279. {
  6280. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  6281. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  6282. Kick(playerid);
  6283. }
  6284. return 1;
  6285. }
  6286.  
  6287. CMD:setstarleader(playerid,params[])
  6288. {
  6289. if(pInfo[playerid][pLogged] == 1)
  6290. {
  6291. if(pInfo[playerid][pAdminLevel] >= 99)
  6292. {
  6293. new targetid,level,string[256];
  6294. if(sscanf(params, "ud", targetid, level)) return SendClientMessage(playerid,-1,""chat" /setstarleader [playerid] [level]");
  6295. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  6296. if(level < 0 || level > 1) return SendClientMessage(playerid,-1,""chat" ERROR: Invalid Input(Use level 1 for leader 0 for not leader)");
  6297.  
  6298. pInfo[targetid][pStarLeader] = level;
  6299.  
  6300. format(string, sizeof(string), ""chat""COL_LIGHTBLUE"Founder %s have given S.T.A.R.S leader level %d to %s",PlayerName(playerid),level,PlayerName(targetid));
  6301. SendClientMessageToAll(-1,string);
  6302. printf("Founder %s have given S.T.A.R.S leader level %d to %s",PlayerName(playerid),level,PlayerName(targetid));
  6303. }
  6304. else {
  6305. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  6306. }
  6307. }
  6308. else if(pInfo[playerid][pLogged] == 0)
  6309. {
  6310. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  6311. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  6312. Kick(playerid);
  6313. }
  6314. return 1;
  6315. }
  6316.  
  6317. CMD:setstarmember(playerid,params[])
  6318. {
  6319. if(pInfo[playerid][pLogged] == 1)
  6320. {
  6321. if(pInfo[playerid][pStarLeader] >= 1)
  6322. {
  6323. new targetid,level,string[256];
  6324. if(sscanf(params, "ud", targetid, level)) return SendClientMessage(playerid,-1,""chat" /setstarmember [playerid] [level]");
  6325. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  6326. if(level < 0 || level > 1) return SendClientMessage(playerid,-1,""chat" ERROR: Invalid Input(Use level 1 for member 0 for not member)");
  6327.  
  6328. pInfo[targetid][pStarMember] = level;
  6329.  
  6330. format(string, sizeof(string), ""chat""COL_LIGHTBLUE"S.T.A.R Leader %s have given S.T.A.R level %d to %s",PlayerName(playerid),level,PlayerName(targetid));
  6331. SendClientMessageToAll(-1,string);
  6332. printf("S.T.A.R.S Leader %s have given S.T.A.R.S level %d to %s",PlayerName(playerid),level,PlayerName(targetid));
  6333. }
  6334. else {
  6335. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right clan permissions for this command!");
  6336. }
  6337. }
  6338. else if(pInfo[playerid][pLogged] == 0)
  6339. {
  6340. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  6341. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  6342. Kick(playerid);
  6343. }
  6344. return 1;
  6345. }
  6346.  
  6347. CMD:megaslap(playerid,params[])
  6348. {
  6349. if(pInfo[playerid][pLogged] == 1)
  6350. {
  6351. if(pInfo[playerid][pAdminLevel] >= 2 || IsPlayerAdmin(playerid))
  6352. {
  6353. new targetid,string[256];
  6354. if(sscanf(params, "u", targetid)) return SendClientMessage(playerid,-1,""chat" /megaslap [playerid]");
  6355. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  6356.  
  6357. new Float:posxx[3];
  6358. GetPlayerPos(targetid, posxx[0], posxx[1], posxx[2]);
  6359. SetPlayerPos(targetid, posxx[0], posxx[1], posxx[2]+40);
  6360.  
  6361. if(IsPlayerAdmin(playerid))
  6362. {
  6363. format(string, sizeof(string), ""chat" RCON Admin has mega slapped %s",PlayerName(targetid));
  6364. SendClientMessageToAll(-1,string);
  6365. }
  6366. else
  6367. {
  6368. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s has mega slapped %s",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid));
  6369. SendClientMessageToAll(-1,string);
  6370. printf(" %s %s has mega slapped %s",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid));
  6371. }
  6372. }
  6373. else {
  6374. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  6375. }
  6376. }
  6377. else if(pInfo[playerid][pLogged] == 0)
  6378. {
  6379. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  6380. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  6381. Kick(playerid);
  6382. }
  6383. return 1;
  6384. }
  6385.  
  6386. CMD:slap(playerid,params[])
  6387. {
  6388. if(pInfo[playerid][pLogged] == 1)
  6389. {
  6390. if(pInfo[playerid][pAdminLevel] >= 1)
  6391. {
  6392. new targetid,string[256];
  6393. if(sscanf(params, "u", targetid)) return SendClientMessage(playerid,-1,""chat" /slap [playerid]");
  6394. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  6395.  
  6396. new Float:posxx[3];
  6397.  
  6398. GetPlayerPos(targetid, posxx[0], posxx[1], posxx[2]);
  6399. SetPlayerPos(targetid, posxx[0], posxx[1], posxx[2]+4);
  6400.  
  6401. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s has slapped %s",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid));
  6402. SendClientMessageToAll(-1,string);
  6403. printf(" %s %s has slapped %s",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid));
  6404. }
  6405. else {
  6406. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  6407. }
  6408. }
  6409. else if(pInfo[playerid][pLogged] == 0)
  6410. {
  6411. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  6412. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  6413. Kick(playerid);
  6414. }
  6415. return 1;
  6416. }
  6417.  
  6418. CMD:a(playerid,params[])
  6419. {
  6420. if(pInfo[playerid][pLogged] == 1)
  6421. {
  6422. new adminstring[256];
  6423. if(pInfo[playerid][pAdminLevel] >= 1)
  6424. {
  6425. if(!strlen(params))
  6426. {
  6427. SendClientMessage(playerid, -1, ""chat" /a [message]");
  6428. return 1;
  6429. }
  6430. format(adminstring, sizeof(adminstring), ""COL_YELLOW"[Admin Chat] %s %s[%d]: %s",GetAdminName(playerid),PlayerName(playerid), playerid, params);
  6431. SendMessageToAllAdmins(adminstring);
  6432. printf("[Admin Chat] %s %s[%d]: %s",GetAdminName(playerid),PlayerName(playerid), playerid, params);
  6433. }
  6434. else {
  6435. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  6436. }
  6437. }
  6438. else if(pInfo[playerid][pLogged] == 0)
  6439. {
  6440. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  6441. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  6442. Kick(playerid);
  6443. }
  6444. return 1;
  6445. }
  6446.  
  6447. CMD:z(playerid,params[])
  6448. {
  6449. if(pInfo[playerid][pLogged] == 1)
  6450. {
  6451. new zstring[256];
  6452. if(team[playerid] == TEAM_ZOMBIE)
  6453. {
  6454. if(!strlen(params))
  6455. {
  6456. SendClientMessage(playerid, -1, ""chat" /z [message]");
  6457. return 1;
  6458. }
  6459. format(zstring, sizeof(zstring), ""chat""COL_RED"[Zombie Chat]"COL_WHITE" %s[%d]: %s", PlayerName(playerid), playerid, params);
  6460. SendZMessage(zstring, -1);
  6461. printf("[Zombie Chat]"COL_WHITE" %s[%d]: %s", PlayerName(playerid), playerid, params);
  6462. }
  6463. else return SendClientMessage(playerid,-1,""chat" You must be a zombie to use this chat function");
  6464. }
  6465. else if(pInfo[playerid][pLogged] == 0)
  6466. {
  6467. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  6468. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  6469. Kick(playerid);
  6470. }
  6471. return 1;
  6472. }
  6473.  
  6474. CMD:h(playerid,params[])
  6475. {
  6476. if(pInfo[playerid][pLogged] == 1)
  6477. {
  6478. new zstring[256];
  6479. if(team[playerid] == TEAM_HUMAN)
  6480. {
  6481. if(!strlen(params))
  6482. {
  6483. SendClientMessage(playerid, -1, ""chat" /h [message]");
  6484. return 1;
  6485. }
  6486. format(zstring, sizeof(zstring), ""chat""COL_RED"[Human Chat]"COL_WHITE" %s[%d]: %s", PlayerName(playerid), playerid, params);
  6487. SendHMessage(zstring, -1);
  6488. printf("[Human Chat]"COL_WHITE" %s[%d]: %s", PlayerName(playerid), playerid, params);
  6489. }
  6490. else return SendClientMessage(playerid,-1,""chat" You must be a human to use this chat function");
  6491. }
  6492. else if(pInfo[playerid][pLogged] == 0)
  6493. {
  6494. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  6495. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  6496. Kick(playerid);
  6497. }
  6498. return 1;
  6499. }
  6500.  
  6501. CMD:report(playerid, params[])
  6502. {
  6503. if(pInfo[playerid][pLogged] == 1)
  6504. {
  6505.  
  6506. new text[128],targetid,string[128],sendername[MAX_PLAYER_NAME],giveplayer[MAX_PLAYER_NAME];
  6507. if(sscanf(params, "us[128]", targetid, text)) SendClientMessage(playerid, COLOR_GREY, "Usage: /report [playerid] [reason]");
  6508. else
  6509. {
  6510. if (!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_GREY, "Invaild ID - That player is not connected!");
  6511. format(sendername, sizeof(sendername), "%s", PlayerName(playerid));
  6512. format(giveplayer, sizeof(giveplayer), "%s", PlayerName(targetid));
  6513. format(string, sizeof(string), "Report: %s[%d] has reported %s[%d] [Reason: %s]", sendername, playerid, giveplayer, targetid, text);
  6514. SendMessageToAdmins(COLOR_YELLOW,string);
  6515. printf("Report: %s[%d] has reported %s[%d] [Reason: %s]", sendername, playerid, giveplayer, targetid, text);
  6516. SendClientMessage(playerid, COLOR_GREEN,"Thanks for reporting!");
  6517. }
  6518. }
  6519. else if(pInfo[playerid][pLogged] == 0)
  6520. {
  6521. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  6522. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  6523. Kick(playerid);
  6524. }
  6525. return 1;
  6526. }
  6527.  
  6528. CMD:pm(playerid,params[])
  6529. {
  6530. if(pInfo[playerid][pLogged] == 1)
  6531. {
  6532. new targetid,message[256],pmstring[256],string[256];
  6533.  
  6534. if(sscanf(params,"us[256]", targetid, message)) return SendClientMessage(playerid,-1,""chat" /pm [playerid] [message]");
  6535. if(pInfo[playerid][pLogged] == 1)
  6536. {
  6537. if(pInfo[targetid][pPM] == 0)
  6538. {
  6539. format(pmstring,sizeof(pmstring),""chat""COL_RED" PM from %s[%d] "COL_GREEN"Message: %s",PlayerName(playerid),playerid,message);
  6540. SendClientMessage(targetid,-1,pmstring);
  6541. printf("PM From %s[%d] Message: %s",PlayerName(playerid),playerid,message);
  6542. format(string,sizeof(string),""chat" "COL_GREEN"[†]"COL_WHITE"Your PM was send to %s ("COL_GREEN"Message: "COL_YELLOW"%s"COL_WHITE")", PlayerName(targetid),message);
  6543. SendClientMessage(playerid,-1,string);
  6544. printf(""COL_GREEN"[†]"COL_WHITE"Your PM was send to %s ("COL_GREEN"Message: "COL_YELLOW"%s"COL_WHITE")", PlayerName(targetid),message);
  6545. }
  6546. else {
  6547. SendClientMessage(playerid,-1,""chat" This player is not accepting any personal messages");
  6548. }
  6549. }
  6550. }
  6551. else if(pInfo[playerid][pLogged] == 0)
  6552. {
  6553. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  6554. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  6555. Kick(playerid);
  6556. }
  6557. return 1;
  6558. }
  6559.  
  6560. CMD:call(playerid)
  6561. {
  6562. if(pInfo[playerid][pLogged] == 1)
  6563. {
  6564. SaveStats(playerid);
  6565. SendClientMessage(playerid,-1,""chat" "COL_GREEN"[†] "COL_WHITE"Sorry! Call no longer exsits, Use /pm instead");
  6566. }
  6567. return 1;
  6568. }
  6569.  
  6570. CMD:blockpm(playerid) return pInfo[playerid][pPM] = 1, SendClientMessage(playerid,-1,""chat" "COL_GREEN"[†]"COL_WHITE"You are now blocking personal messages :D");
  6571. CMD:unblockpm(playerid) return pInfo[playerid][pPM] = 0, SendClientMessage(playerid,-1,""chat" "COL_GREEN"[†]"COL_WHITE"You are not blocking any more personal messages :D");
  6572.  
  6573.  
  6574. CMD:ann(playerid,params[])
  6575. {
  6576. if(pInfo[playerid][pLogged] == 1)
  6577. {
  6578. if(pInfo[playerid][pAdminLevel] >= 4 || IsPlayerAdmin(playerid))
  6579. {
  6580. if(isnull(params)) return SendClientMessage(playerid, -1, ""chat" /ann [Text]");
  6581. GameTextForAll(params,5000,3);
  6582. }
  6583. else {
  6584. SendClientMessage(playerid,-1,""chat" You must be a level 4 admin");
  6585. }
  6586. }
  6587. else if(pInfo[playerid][pLogged] == 0)
  6588. {
  6589. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  6590. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  6591. Kick(playerid);
  6592. }
  6593. return 1;
  6594. }
  6595.  
  6596. CMD:ann2(playerid,params[])
  6597. {
  6598. if(pInfo[playerid][pLogged] == 1)
  6599. {
  6600. if(pInfo[playerid][pAdminLevel] >= 3 || IsPlayerAdmin(playerid))
  6601. {
  6602. if(isnull(params)) return SendClientMessage(playerid, -1, ""chat" /ann2 [Text]");
  6603. SendClientMessageToAll(-1,params);
  6604. }
  6605. else {
  6606. SendClientMessage(playerid,-1,""chat" You must be a level 3 admin");
  6607. }
  6608. }
  6609. else if(pInfo[playerid][pLogged] == 0)
  6610. {
  6611. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  6612. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  6613. Kick(playerid);
  6614. }
  6615. return 1;
  6616. }
  6617.  
  6618. CMD:warn(playerid,params[])
  6619. {
  6620. if(pInfo[playerid][pLogged] == 1)
  6621. {
  6622. if(pInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid))
  6623. {
  6624. new targetid,reason[105],string[256];
  6625. if(sscanf(params, "us[105]", targetid, reason)) return SendClientMessage(playerid,-1,""chat" /warn [playerid] [reason]");
  6626. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  6627.  
  6628. new sentstring[128];
  6629. new Float:X; new Float:Y; new Float:Z;
  6630.  
  6631. pInfo[targetid][pWarnings]++;
  6632. GetPlayerPos(targetid, X, Y, Z);
  6633. SetPlayerPos(targetid, X, Y, Z+4);
  6634. TogglePlayerControllable(targetid,0);
  6635. SetTimerEx("UNFREEZE",5000,0,"i",playerid);
  6636. format(string,sizeof(string), "%s %s warned you\nReason: %s\nWarning Number: %i",GetAdminName(playerid),PlayerName(playerid), reason, pInfo[targetid][pWarnings]);
  6637. ShowPlayerDialog(targetid,DIALOG_WARN,DIALOG_STYLE_MSGBOX,"Warning",string,"I Understand","");
  6638. 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]);
  6639. SendClientMessageToAll(-1,sentstring);
  6640.  
  6641. if(pInfo[targetid][pWarnings] >= 3)
  6642. {
  6643. format(string, sizeof(string), ""chat""COL_RED" %s %s has kicked %s [Reason: %s][3 Warnings EXCEEDED]",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),reason);
  6644. SendClientMessageToAll(-1,string);
  6645. SCM(targetid, -1, ""COL_LIGHTBLUE" You have been kicked because your warns EXCEEDED 3 ");
  6646. SetTimerEx("WARN_KICK",2000,0,"i",targetid);
  6647. }
  6648. }
  6649. else {
  6650. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  6651. }
  6652. }
  6653. else if(pInfo[playerid][pLogged] == 0)
  6654. {
  6655. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  6656. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  6657. Kick(playerid);
  6658. }
  6659. return 1;
  6660. }
  6661.  
  6662. forward WARN_KICK();
  6663. public WARN_KICK()
  6664. {
  6665. for(new i=0; i<MAX_PLAYERS; i++)
  6666. {
  6667. if(IsPlayerConnected(i))
  6668. {
  6669. Kick(i);
  6670. }
  6671. }
  6672. return 1;
  6673. }
  6674.  
  6675. forward vampireoff(targetid123, playerid);
  6676. public vampireoff(targetid123, playerid)
  6677. {
  6678. vampiresucked[playerid] = 0;
  6679. vampiresucked[targetid123] = 0;
  6680. SendClientMessage(targetid123,-1,"Your bleed effect has been got removed");
  6681. return 1;
  6682. }
  6683.  
  6684. CMD:givexp4(playerid,params[])
  6685. {
  6686. if(pInfo[playerid][pLogged] == 1)
  6687. {
  6688. if(pInfo[playerid][pAdminLevel] >= 6)
  6689. {
  6690. new targetid,givexp,string[256];
  6691. if(sscanf(params, "ui", targetid, givexp)) return SendClientMessage(playerid,-1,""chat" /givexp4 [playerid] [amount]");
  6692. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  6693.  
  6694. if(givexp < -100000 || givexp > 100000) return SendClientMessage(playerid,-1,""chat" You can only give xp between Negative 100000 - Positive 100000");
  6695. pInfo[targetid][pXP] += givexp;
  6696.  
  6697. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s has given %s %d xp",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),givexp);
  6698. SendClientMessageToAll(-1,string);
  6699. printf("%s %s has given %s %d xp",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),givexp);
  6700. }
  6701. else {
  6702. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  6703. }
  6704. }
  6705. else if(pInfo[playerid][pLogged] == 0)
  6706. {
  6707. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  6708. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  6709. Kick(playerid);
  6710. }
  6711. return 1;
  6712. }
  6713.  
  6714. CMD:gvcoins(playerid,params[])
  6715. {
  6716. if(pInfo[playerid][pLogged] == 1)
  6717. {
  6718. if(pInfo[playerid][pAdminLevel] >= 5)
  6719. {
  6720. new targetid,givecoin,string[256];
  6721. if(sscanf(params, "ui", targetid, givecoin)) return SendClientMessage(playerid,-1,""chat" /gvcoins [playerid] [amount]");
  6722. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  6723.  
  6724. if(givecoin < 1 || givecoin > 500) return SendClientMessage(playerid,-1,""chat" You can only give coins between 1 and 500");
  6725. pInfo[targetid][pCoins] += givecoin;
  6726.  
  6727. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s has given %s %d Coins",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),givecoin);
  6728. SendClientMessageToAll(-1,string);
  6729. printf("%s %s has given %s %d Coins",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),givecoin);
  6730. }
  6731. else {
  6732. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  6733. }
  6734. }
  6735. else if(pInfo[playerid][pLogged] == 0)
  6736. {
  6737. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  6738. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  6739. Kick(playerid);
  6740. }
  6741. return 1;
  6742. }
  6743.  
  6744. CMD:sharexp(playerid,params[])
  6745. {
  6746. if(pInfo[playerid][pLogged] == 1)
  6747. {
  6748. if(pInfo[playerid][pHour] >= 4)
  6749. {
  6750. new targetid,givexp,reason[105],stringxp[256];
  6751. if(sscanf(params,"uis[105]", targetid,givexp,reason)) return SendClientMessage(playerid,-1,""chat" /sharexp [playerid] [amount] [reason]");
  6752. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  6753. if(targetid == playerid) return SendClientMessage(playerid,-1,""chat" You cannot give xp to yourself");
  6754. //if(givexp < 49 || givexp > 2000) return SendClientMessage(playerid,-1,""chat" You can only give xp between 50-2000");
  6755. if (givexp > 0 && pInfo[playerid][pXP] >= givexp)
  6756. {
  6757. pInfo[targetid][pXP] += givexp;
  6758. pInfo[playerid][pXP] -= givexp;
  6759. format(stringxp,sizeof(stringxp),""chat" Player %s has shared %d xp to %s [Reason: %s]", PlayerName(playerid), givexp, PlayerName(targetid), reason);
  6760. SendClientMessageToAll(-1,stringxp);
  6761. printf("Player %s has shared %d xp to %s [Reason: %s]", PlayerName(playerid), givexp, PlayerName(targetid), reason);
  6762.  
  6763. }
  6764. else
  6765. {
  6766. SendClientMessage(playerid,-1,""chat" You don't have enough XP");
  6767. }
  6768. }
  6769. else SendClientMessage(playerid,-1,""chat" You need to play 4 hours before you can share xp!");
  6770. }
  6771. else if(pInfo[playerid][pLogged] == 0)
  6772. {
  6773. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  6774. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  6775. Kick(playerid);
  6776. }
  6777. return 1;
  6778. }
  6779.  
  6780. CMD:xp(playerid,params[])
  6781. {
  6782. if(pInfo[playerid][pLogged] == 1)
  6783. {
  6784. if(pInfo[playerid][pAdminLevel] >= 2)
  6785. {
  6786. new xpID,string[256],xpString[64];
  6787. if(sscanf(params, "i", xpID)) return SendClientMessage(playerid,-1,""chat" /xp [XP Type ID] (1normal,2double,3triple,4quad)");
  6788.  
  6789. Map[XPType] = xpID;
  6790. format(string,sizeof(string),""chat""COL_LIGHTBLUE" %s %s has changed the XP variable. Have Fun !!",GetAdminName(playerid),PlayerName(playerid),GetXPName());
  6791. SendClientMessageToAll(-1,string);
  6792. format(xpString,sizeof(xpString),"%s",GetXPName());
  6793. TextDrawSetString(XP,xpString);
  6794. }
  6795. else return SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  6796. }
  6797. else if(pInfo[playerid][pLogged] == 0)
  6798. {
  6799. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  6800. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  6801. Kick(playerid);
  6802. }
  6803. return 1;
  6804. }
  6805.  
  6806. CMD:setxp4(playerid,params[])
  6807. {
  6808. if(pInfo[playerid][pLogged] == 1)
  6809. {
  6810. if(pInfo[playerid][pAdminLevel] >= 6)
  6811. {
  6812. new targetid,givexp,string[256];
  6813. if(sscanf(params, "ui", targetid, givexp)) return SendClientMessage(playerid,-1,""chat" /setxp4 [playerid] [amount]");
  6814. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  6815.  
  6816. pInfo[targetid][pXP] = givexp;
  6817.  
  6818. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s has set %s xp to %d",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),givexp);
  6819. SendClientMessageToAll(-1,string);
  6820. }
  6821. else {
  6822. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  6823. }
  6824. }
  6825. else if(pInfo[playerid][pLogged] == 0)
  6826. {
  6827. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  6828. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  6829. Kick(playerid);
  6830. }
  6831. return 1;
  6832. }
  6833.  
  6834. CMD:savestats(playerid)
  6835. {
  6836. if(pInfo[playerid][pLogged] == 1)
  6837. {
  6838. SaveStats(playerid);
  6839. SendClientMessage(playerid,-1,""chat" "COL_GREEN"[†] "COL_WHITE"Your stats was saved");
  6840. }
  6841. return 1;
  6842. }
  6843.  
  6844. CMD:freevip(playerid)
  6845. {
  6846. if(pInfo[playerid][pLogged] == 1)
  6847. {
  6848. SendClientMessage(playerid,-1,""chat" "COL_GREEN"[†] "COL_WHITE"Ehrmm.. Sorry for the inconvience! Feature is disabled!");
  6849. }
  6850. return 1;
  6851. }
  6852.  
  6853. CMD:ss(playerid) return cmd_savestats(playerid);
  6854.  
  6855. CMD:stats(playerid)
  6856. {
  6857. new string[800];
  6858. new Float:kd = floatdiv(pInfo[playerid][pKills], pInfo[playerid][pDeaths]);
  6859. new Float:wins = floatdiv(pInfo[playerid][pMapsPlayed], pInfo[playerid][pEvac]);
  6860. 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\
  6861. 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],
  6862. 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]);
  6863.  
  6864. ShowPlayerDialog(playerid,1888,DIALOG_STYLE_MSGBOX,"Viewing Stats",string,"Close","");
  6865. return 1;
  6866. }
  6867.  
  6868. CMD:pstats(playerid,params[])
  6869. {
  6870. if(pInfo[playerid][pXP] >= 10)
  6871. {
  6872. new targetid;
  6873. if(sscanf(params, "u", targetid)) return SendClientMessage(playerid,-1,""chat" /pstats [playerid]");
  6874. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  6875. {
  6876. new string[800];
  6877. new Float:kd = floatdiv(pInfo[targetid][pKills], pInfo[targetid][pDeaths]);
  6878. new Float:wins = floatdiv(pInfo[targetid][pMapsPlayed], pInfo[targetid][pEvac]);
  6879. 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\
  6880. 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],
  6881. 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]);
  6882.  
  6883. ShowPlayerDialog(playerid,1888,DIALOG_STYLE_MSGBOX,"Viewing Stats!",string,"Close","");
  6884. }
  6885. }
  6886. else return SendXPError(playerid,20);
  6887. return 1;
  6888. }
  6889.  
  6890. CMD:settime(playerid,params[])
  6891. {
  6892. if(pInfo[playerid][pLogged] == 1)
  6893. {
  6894. if(pInfo[playerid][pAdminLevel] >= 2 || IsPlayerAdmin(playerid))
  6895. {
  6896. new time2,string[128];
  6897. if(sscanf(params, "i", time2)) return SendClientMessage(playerid,-1,""chat" /settime [time]");
  6898.  
  6899. SetWorldTime(time2);
  6900.  
  6901. if(IsPlayerAdmin(playerid))
  6902. {
  6903. format(string, sizeof(string), ""chat" Time Changed To %d",time2);
  6904. SendClientMessageToAll(-1,string);
  6905. }
  6906. else
  6907. {
  6908. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s has changed the time to %d",GetAdminName(playerid),PlayerName(playerid),time2);
  6909. SendClientMessageToAll(-1,string);
  6910. }
  6911. }
  6912. else {
  6913. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  6914. }
  6915. }
  6916. else if(pInfo[playerid][pLogged] == 0)
  6917. {
  6918. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  6919. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  6920. Kick(playerid);
  6921. }
  6922. return 1;
  6923. }
  6924.  
  6925. CMD:setadmin(playerid,params[])
  6926. {
  6927. if(pInfo[playerid][pLogged] == 1)
  6928. {
  6929. if(pInfo[playerid][pAdminLevel] >= 99)
  6930. {
  6931. new targetid,level,string[256];
  6932. if(sscanf(params, "ud", targetid, level)) return SendClientMessage(playerid,-1,""chat" /setadmin [playerid] [level]");
  6933. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  6934. if(level < 0 || level > 9) return SendClientMessage(playerid,-1,""chat" Admin levels are ONLY between 1-9 and 99-99");
  6935.  
  6936. pInfo[targetid][pAdminLevel] = level;
  6937.  
  6938. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s have given admin status of %d to %s",GetAdminName(playerid),PlayerName(playerid),level,PlayerName(targetid));
  6939. SendClientMessageToAll(-1,string);
  6940. printf("%s %s have given admin status of %d to %s",GetAdminName(playerid),PlayerName(playerid),level,PlayerName(targetid));
  6941. }
  6942. else {
  6943. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  6944. }
  6945. }
  6946. else if(pInfo[playerid][pLogged] == 0)
  6947. {
  6948. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  6949. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  6950. Kick(playerid);
  6951. }
  6952. return 1;
  6953. }
  6954.  
  6955. CMD:sethighadmin(playerid,params[])
  6956. {
  6957. if(pInfo[playerid][pLogged] == 1)
  6958. {
  6959. if(pInfo[playerid][pAdminLevel] >= 99)
  6960. {
  6961. new targetid,level,string[256];
  6962. if(sscanf(params, "ud", targetid, level)) return SendClientMessage(playerid,-1,""chat" /sethighadmin [playerid] [level]");
  6963. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  6964. if(level < 99|| level > 99) return SendClientMessage(playerid,-1,""chat" Admin levels are ONLY between 99-99");
  6965.  
  6966. pInfo[targetid][pAdminLevel] = level;
  6967.  
  6968. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s have given admin status of %d to %s",GetAdminName(playerid),PlayerName(playerid),level,PlayerName(targetid));
  6969. SendClientMessageToAll(-1,string);
  6970. printf("%s %s have given admin status of %d to %s",GetAdminName(playerid),PlayerName(playerid),level,PlayerName(targetid));
  6971. }
  6972. else {
  6973. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  6974. }
  6975. }
  6976. else if(pInfo[playerid][pLogged] == 0)
  6977. {
  6978. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  6979. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  6980. Kick(playerid);
  6981. }
  6982. return 1;
  6983. }
  6984.  
  6985.  
  6986. CMD:setweather(playerid,params[])
  6987. {
  6988. if(pInfo[playerid][pLogged] == 1)
  6989. {
  6990.  
  6991. if(pInfo[playerid][pAdminLevel] >= 2 || IsPlayerAdmin(playerid))
  6992. {
  6993. new weather,string[128];
  6994. if(sscanf(params, "i", weather)) return SendClientMessage(playerid,-1,""chat" /setweather [weather id]");
  6995.  
  6996. SetWeather(weather);
  6997.  
  6998. if(IsPlayerAdmin(playerid))
  6999. {
  7000. format(string, sizeof(string), ""chat" Weather Changed to %d",weather);
  7001. SendClientMessageToAll(-1,string);
  7002. }
  7003. else
  7004. {
  7005. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s has changed the weather to %d",GetAdminName(playerid),PlayerName(playerid),weather);
  7006. SendClientMessageToAll(-1,string);
  7007. }
  7008. }
  7009. else {
  7010. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  7011. }
  7012. }
  7013. else if(pInfo[playerid][pLogged] == 0)
  7014. {
  7015. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  7016. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  7017. Kick(playerid);
  7018. }
  7019. return 1;
  7020. }
  7021.  
  7022. CMD:ip(playerid, params[])
  7023. {
  7024. if(pInfo[playerid][pAdminLevel] >= 3)
  7025. {
  7026. new targetid,playerip[16],string[128];
  7027. if(sscanf(params, "u", targetid, playerip)) return SendClientMessage(playerid,-1,""chat" /ip [playerid]");
  7028. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  7029.  
  7030. GetPlayerIp(targetid, playerip, sizeof(playerip));
  7031. format(string, sizeof(string), ""chat" IP of %s %s", PlayerName(targetid), playerip);
  7032. SendClientMessage(playerid, -1, string);
  7033. }
  7034. else {
  7035. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  7036. }
  7037. return 1;
  7038. }
  7039.  
  7040. CMD:akill(playerid,params[])
  7041. {
  7042. if(pInfo[playerid][pLogged] == 1)
  7043. {
  7044. if(pInfo[playerid][pAdminLevel] >= 1)
  7045. {
  7046. new targetid,string[256];
  7047. if(sscanf(params, "u", targetid)) return SendClientMessage(playerid,-1,""chat" /akill [playerid]");
  7048. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  7049.  
  7050. SetPlayerHealth(targetid,0.0);
  7051. ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
  7052.  
  7053. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s has killed %s",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid));
  7054. SendClientMessageToAll(-1,string);
  7055. }
  7056. else {
  7057. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  7058. }
  7059. }
  7060. else if(pInfo[playerid][pLogged] == 0)
  7061. {
  7062. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  7063. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  7064. Kick(playerid);
  7065. }
  7066. return 1;
  7067. }
  7068.  
  7069. CMD:nuke(playerid,params[])
  7070. {
  7071. if(pInfo[playerid][pLogged] == 1)
  7072. {
  7073. if(pInfo[playerid][pAdminLevel] >= 1)
  7074. {
  7075. new targetid,string[256];
  7076. if(sscanf(params, "u", targetid)) SendClientMessage(playerid,-1,""chat" /nuke [playerid]");
  7077. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  7078.  
  7079. new Float:x,Float:y,Float:z;
  7080. GetPlayerPos(targetid,Float:x,Float:y,Float:z);
  7081. CreateExplosion(Float:x,Float:y,Float:z,0,5.0);
  7082.  
  7083. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s has blown up %s",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid));
  7084. SendClientMessageToAll(-1,string);
  7085. }
  7086. else {
  7087. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  7088. }
  7089. }
  7090. else if(pInfo[playerid][pLogged] == 0)
  7091. {
  7092. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  7093. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  7094. Kick(playerid);
  7095. }
  7096. return 1;
  7097. }
  7098.  
  7099. CMD:get(playerid,params[])
  7100. {
  7101. if(pInfo[playerid][pLogged] == 1)
  7102. {
  7103. if(pInfo[playerid][pAdminLevel] >= 2)
  7104. {
  7105. new targetid;
  7106. if(sscanf(params, "u", targetid)) SendClientMessage(playerid,-1,""chat" /get [playerid]");
  7107. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  7108.  
  7109. new Float:x, Float:y, Float:z;
  7110. GetPlayerPos(playerid, x, y, z);
  7111. SetPlayerPos(targetid, x+1, y+1, z);
  7112.  
  7113. if(IsPlayerInAnyVehicle(targetid))
  7114. {
  7115. SetVehiclePos(GetPlayerVehicleID(targetid),x,y,z);
  7116. }
  7117. }
  7118. else {
  7119. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  7120. }
  7121. }
  7122. else if(pInfo[playerid][pLogged] == 0)
  7123. {
  7124. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  7125. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  7126. Kick(playerid);
  7127. }
  7128. return 1;
  7129. }
  7130.  
  7131. CMD:goto(playerid,params[])
  7132. {
  7133. if(pInfo[playerid][pLogged] == 1)
  7134. {
  7135.  
  7136. if(pInfo[playerid][pAdminLevel] >= 2)
  7137. {
  7138. new targetid;
  7139. if(sscanf(params, "u", targetid)) SendClientMessage(playerid,-1,""chat" /goto [playerid]");
  7140. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  7141.  
  7142. new Float:x,Float:y,Float:z,inter;
  7143. GetPlayerPos(targetid,Float:x,Float:y,Float:z);
  7144. inter = GetPlayerInterior(targetid);
  7145. SetPlayerPosEx(playerid,Float:x,Float:y,Float:z,inter,0);
  7146. }
  7147. else {
  7148. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  7149. }
  7150. }
  7151. else if(pInfo[playerid][pLogged] == 0)
  7152. {
  7153. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  7154. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  7155. Kick(playerid);
  7156. }
  7157. return 1;
  7158. }
  7159.  
  7160. CMD:mute(playerid,params[])
  7161. {
  7162. if(pInfo[playerid][pLogged] == 1)
  7163. {
  7164. if(pInfo[playerid][pAdminLevel] >= 1)
  7165. {
  7166. new targetid,reason[105],string[128];
  7167. if(sscanf(params, "us[105]", targetid,reason)) return SendClientMessage(playerid,-1,""chat" /mute [playerid] [reason]");
  7168. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  7169.  
  7170. pInfo[targetid][IsPlayerMuted] = 1;
  7171.  
  7172. format(string,sizeof(string),""chat""COL_LIGHTBLUE" %s %s muted %s [Reason: %s]", GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),reason);
  7173. SendMessageToAllAdmins(string);
  7174.  
  7175. format(string,sizeof(string),""chat""COL_LIGHTBLUE" %s %s muted you for [Reason %s]",GetAdminName(playerid), PlayerName(playerid),reason);
  7176. SendClientMessage(targetid,-1,string);
  7177. }
  7178. else {
  7179. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  7180. }
  7181. }
  7182. else if(pInfo[playerid][pLogged] == 0)
  7183. {
  7184. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  7185. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  7186. Kick(playerid);
  7187. }
  7188. return 1;
  7189. }
  7190.  
  7191. CMD:unmute(playerid,params[])
  7192. {
  7193. if(pInfo[playerid][pLogged] == 1)
  7194. {
  7195. if(pInfo[playerid][pAdminLevel] >= 1)
  7196. {
  7197. new targetid,string[128];
  7198. if(sscanf(params, "u", targetid)) return SendClientMessage(playerid,-1,""chat" /unmute [playerid]");
  7199. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  7200.  
  7201. if(pInfo[targetid][IsPlayerMuted] == 1)
  7202. {
  7203. format(string,sizeof(string),""chat""COL_LIGHTBLUE" %s %s unmuted you",GetAdminName(playerid),PlayerName(playerid));
  7204. SendClientMessage(targetid,-1,string);
  7205. format(string,sizeof(string),""chat" You unmuted %s",PlayerName(targetid));
  7206. SendClientMessage(playerid,-1,string);
  7207. pInfo[targetid][IsPlayerMuted] = 0;
  7208. }
  7209. else
  7210. {
  7211. SendClientMessage(playerid,-1,""chat" Player isn't muted");
  7212. }
  7213. }
  7214. else {
  7215. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  7216. }
  7217. }
  7218. else if(pInfo[playerid][pLogged] == 0)
  7219. {
  7220. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  7221. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  7222. Kick(playerid);
  7223. }
  7224. return 1;
  7225. }
  7226.  
  7227. CMD:togas(playerid, params[])
  7228. {
  7229. if(AutoSprint[playerid] == 0)
  7230. {
  7231. AutoSprint[playerid] = 1;
  7232. SendClientMessage(playerid, COLOR_RED, ""chat"Auto Sprint enabled for you!");
  7233. return 1;
  7234. }
  7235. if(AutoSprint[playerid] == 1)
  7236. {
  7237. AutoSprint[playerid] = 0;
  7238. SendClientMessage(playerid, COLOR_RED, ""chat"Auto Sprint disabled for you!");
  7239. }
  7240. return 1;
  7241. }
  7242.  
  7243. CMD:kick(playerid,params[])
  7244. {
  7245. if(pInfo[playerid][pLogged] == 1)
  7246. {
  7247. if(pInfo[playerid][pAdminLevel] >= 1)
  7248. {
  7249. new targetid,reason[105],string[256];
  7250. if(sscanf(params, "us[105]", targetid,reason)) return SendClientMessage(playerid,-1,""chat" /kick [playerid] [reason]");
  7251. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
  7252. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s has kicked %s [Reason: %s]",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),reason);
  7253. SCMTA(-1,string);
  7254. printf("%s %s has kicked %s [Reason: %s]",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),reason);
  7255. Kick(targetid);
  7256.  
  7257. }
  7258. else {
  7259. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
  7260. }
  7261. }
  7262. else if(pInfo[playerid][pLogged] == 0)
  7263. {
  7264. SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!");
  7265. printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid));
  7266. Kick(playerid);
  7267. }
  7268. return 1;
  7269. }
  7270.  
  7271. public TimeOnServer(playerid)
  7272. {
  7273. pInfo[playerid][pSec] ++;
  7274. if(pInfo[playerid][pSec] >= 60)
  7275. {
  7276. pInfo[playerid][pMin]++;
  7277. pInfo[playerid][pSec]=0;
  7278. }
  7279. if(pInfo[playerid][pMin] >= 60)
  7280. {
  7281. pInfo[playerid][pMin]=0;
  7282. pInfo[playerid][pHour]++;
  7283. }
  7284. return 1;
  7285. }
  7286.  
  7287. function RandomMessages()
  7288. {
  7289. new randomMsg = random(sizeof(randomMessages));
  7290. SendClientMessageToAll(-1, randomMessages[randomMsg]);
  7291. }
  7292.  
  7293. public LoadUser_data(playerid,name[],value[])
  7294. {
  7295. INI_String("pPassword", pInfo[playerid][pPassword], 129);
  7296. INI_Int("pXP",pInfo[playerid][pXP]);
  7297. INI_Int("pKills",pInfo[playerid][pKills]);
  7298. INI_Int("pDeaths",pInfo[playerid][pDeaths]);
  7299. INI_Int("pRank",pInfo[playerid][pRank]);
  7300. INI_Int("pEvac",pInfo[playerid][pEvac]);
  7301. INI_Int("pAdminLevel",pInfo[playerid][pAdminLevel]);
  7302. INI_Int("pAdminDuty",pInfo[playerid][pAdminDuty]);
  7303. INI_Int("pVIPLevel",pInfo[playerid][pVIPLevel]);
  7304. INI_Int("pStarMember",pInfo[playerid][pStarMember]);
  7305. INI_Int("pStarLeader",pInfo[playerid][pStarLeader]);
  7306. INI_Int("pHour",pInfo[playerid][pHour]);
  7307. INI_Int("pMin",pInfo[playerid][pMin]);
  7308. INI_Int("pSec",pInfo[playerid][pSec]);
  7309. INI_Int("pMapsPlayed",pInfo[playerid][pMapsPlayed]);
  7310. INI_Int("pCoins",pInfo[playerid][pCoins]);
  7311. INI_Int("pBanned",pInfo[playerid][pBanned]);
  7312. INI_Int("gLeader",pInfo[playerid][gLeader]);
  7313. INI_Int("gMember",pInfo[playerid][gMember]);
  7314. return 1;
  7315. }
  7316.  
  7317. stock SyncedStreamForAll(url[], sync)
  7318. {
  7319. foreach(Player, i)
  7320. {
  7321. if(sync == 1) return PlayAudioStreamForPlayer(i, url);
  7322. if(sync == 0) return StopAudioStreamForPlayer(i);
  7323. }
  7324. return 1;
  7325. }
  7326.  
  7327. stock StopSyncedStreamForAll()
  7328. {
  7329. foreach(Player, i)
  7330. {
  7331. StopAudioStreamForPlayer(i);
  7332. }
  7333. return 1;
  7334. }
  7335.  
  7336.  
  7337. stock ClearChat()
  7338. {
  7339. for(new a = 0; a < 20; a++) SendClientMessageToAll(-1, " ");
  7340. return 1;
  7341. }
  7342.  
  7343. stock frename(oldname[],newname[]) {
  7344. if (!fexist(oldname)) return false;
  7345. fremove(newname);
  7346. if (!fcopy(oldname,newname)) return false;
  7347. fremove(oldname);
  7348. return true;
  7349. }
  7350.  
  7351. stock fcopy(oldname[],newname[]) {
  7352. new File:ohnd,File:nhnd;
  7353. if (!fexist(oldname)) return false;
  7354. ohnd=fopen(oldname,io_read);
  7355. nhnd=fopen(newname,io_write);
  7356. new buf2[1];
  7357. new i;
  7358. for (i=flength(ohnd);i>0;i--) {
  7359. fputchar(nhnd, fgetchar(ohnd, buf2[0],false),false);
  7360. }
  7361. fclose(ohnd);
  7362. fclose(nhnd);
  7363. return true;
  7364. }
  7365.  
  7366. stock SendMessageToAdmins(color,const string[])
  7367. {
  7368. for(new i = 0; i < MAX_PLAYERS; i++)
  7369. if(IsPlayerConnected(i) == 1)
  7370. if(pInfo[i][pAdminLevel] >= 1 || IsPlayerAdmin(i))
  7371. SendClientMessage(i, color, string);
  7372. return 1;
  7373. }
  7374.  
  7375. stock ShowCoinDialog(playerid)
  7376. {
  7377. new str[64];
  7378. ResetCoinVars(playerid);
  7379. format(str,sizeof(str),""COL_RED"You have %i coins",pInfo[playerid][pCoins]);
  7380. if(team[playerid] == TEAM_HUMAN)
  7381. {
  7382. ShowPlayerDialog(playerid,DIALOG_COINS,DIALOG_STYLE_LIST,str,"Buy XP with Coins\nBuy Weapons with Coins\n\
  7383. Buy Classes with Coins\n\
  7384. Enable Kick Back (100 Coins)\n\
  7385. S.W.A.T Armour Object (1 Coins)\n","Select","No, Play");
  7386. }
  7387. return 1;
  7388. }
  7389.  
  7390. stock ResetVars(playerid)
  7391. {
  7392. //pInfo[playerid][pPassword] = 0;
  7393. pInfo[playerid][pXP] = 0;
  7394. pInfo[playerid][pKills] = 0;
  7395. pInfo[playerid][pDeaths] = 0;
  7396. pInfo[playerid][pRank] = 0;
  7397. pInfo[playerid][pEvac] = 0;
  7398. pInfo[playerid][pAdminLevel] = 0;
  7399. pInfo[playerid][pAdminDuty] = 0;
  7400. pInfo[playerid][pBanned] = 0;
  7401. pInfo[playerid][pVIPLevel] = 0;
  7402. pInfo[playerid][pStarMember] = 0;
  7403. pInfo[playerid][pStarLeader] = 0;
  7404. pInfo[playerid][gLeader] = 0;
  7405. pInfo[playerid][gMember] = 0;
  7406. pInfo[playerid][pHour] = 0;
  7407. pInfo[playerid][pMin] = 0;
  7408. pInfo[playerid][pSec] = 0;
  7409. pInfo[playerid][pMapsPlayed] = 0;
  7410. pInfo[playerid][pCoins] = 0;
  7411. pInfo[playerid][pLogged] = 0;
  7412. pInfo[playerid][pWarnings] = 0;
  7413. pInfo[playerid][pPM] = 0;
  7414. pInfo[playerid][IsPlayerMuted] = 0;
  7415. pInfo[playerid][Killstreak] = 0;
  7416. pInfo[playerid][pHumanClass] = 0;
  7417. pInfo[playerid][pZombieClass] = 0;
  7418. pInfo[playerid][IsPlayerInfected] = 0;
  7419. pInfo[playerid][Boxes] = 0;
  7420. pInfo[playerid][BoxesAdvanced] = 0;
  7421. pInfo[playerid][SkinChanges] = 0;
  7422. pInfo[playerid][ArmourChanges] = 0;
  7423. pInfo[playerid][pVIPKickBack] = 0;
  7424. pInfo[playerid][pVIPFlash] = 0;
  7425. pInfo[playerid][pVIPBoxes] = 0;
  7426. pInfo[playerid][pLadders] = 0;
  7427. pInfo[playerid][pFakeKills] = 0;
  7428. pInfo[playerid][pAmmoBoxes] = 0;
  7429. pInfo[playerid][pKickBackCoin] = 0;
  7430. pInfo[playerid][pDamageShotgunCoin] = 0;
  7431. pInfo[playerid][pDamageDeagleCoin] = 0;
  7432. pInfo[playerid][pDamageMP5Coin] = 0;
  7433. pInfo[playerid][pDoctorShield] = 0;
  7434. pInfo[playerid][pRenamed] = 0;
  7435. Abilitys[playerid][HighJumpScout] = 0;
  7436. Abilitys[playerid][HighJumpZombie] = 0;
  7437. Abilitys[playerid][StomperPushing] = 0;
  7438. Abilitys[playerid][WitchAttack] = 0;
  7439. Abilitys[playerid][ScreamerZombieAb] = 0;
  7440. Abilitys[playerid][InfectionNormal] = 0;
  7441. Abilitys[playerid][InfectionMutated] = 0;
  7442. Abilitys[playerid][ShoutCooldown] = 0;
  7443. Abilitys[playerid][HealCoolDown] = 0;
  7444. Abilitys[playerid][ScreamerZombieAb2] = 0;
  7445. Abilitys[playerid][WitchAttack2] = 0;
  7446. Abilitys[playerid][InfectionFleshEater] = 0;
  7447. KillTimer(playedtimer[playerid]);
  7448. CurePlayer(playerid);
  7449. KillTimer(pInfo[playerid][IsPlayerInfectedTimer]);
  7450. SetPVarInt(playerid, "SPS Messages Sent", 0);
  7451. SetPVarInt(playerid, "SPS Muted", 0);
  7452. SetPVarInt(playerid, "SPS Spam Warnings", 0);
  7453. //SPS_Reset_PVars();
  7454. return 1;
  7455. }
  7456.  
  7457. stock ResetCoinVars(playerid)
  7458. {
  7459. pInfo[playerid][pKickBackCoin] = 0;
  7460. pInfo[playerid][pDamageShotgunCoin] = 0;
  7461. pInfo[playerid][pDamageDeagleCoin] = 0;
  7462. pInfo[playerid][pDamageMP5Coin] = 0;
  7463. return 1;
  7464. }
  7465.  
  7466. stock ConnectVars(playerid)
  7467. {
  7468. TextDrawShowForPlayer(playerid, ServerIntroOne[playerid]);
  7469. TextDrawShowForPlayer(playerid, ServerIntroTwo[playerid]);
  7470. pInfo[playerid][pHumanClass] = CIVILIAN;
  7471. pInfo[playerid][pZombieClass] = STANDARDZOMBIE;
  7472. team[playerid] = 0;
  7473. return 1;
  7474. }
  7475.  
  7476. stock SaveStats(playerid)
  7477. {
  7478. new INI:File = INI_Open(UserPath(playerid));
  7479. INI_SetTag(File,"data");
  7480. INI_WriteInt(File,"pXP",pInfo[playerid][pXP]);
  7481. INI_WriteInt(File,"pKills",pInfo[playerid][pKills]);
  7482. INI_WriteInt(File,"pDeaths",pInfo[playerid][pDeaths]);
  7483. INI_WriteInt(File,"pRank",pInfo[playerid][pRank]);
  7484. INI_WriteInt(File,"pEvac",pInfo[playerid][pEvac]);
  7485. INI_WriteInt(File,"pAdminLevel",pInfo[playerid][pAdminLevel]);
  7486. INI_WriteInt(File,"pAdminDuty",pInfo[playerid][pAdminDuty]);
  7487. INI_WriteInt(File,"pVIPLevel",pInfo[playerid][pVIPLevel]);
  7488. INI_WriteInt(File,"pStarMember",pInfo[playerid][pStarMember]);
  7489. INI_WriteInt(File,"pStarLeader",pInfo[playerid][pStarLeader]);
  7490. INI_WriteInt(File,"pHour",pInfo[playerid][pHour]);
  7491. INI_WriteInt(File,"pMin",pInfo[playerid][pMin]);
  7492. INI_WriteInt(File,"pSec",pInfo[playerid][pSec]);
  7493. INI_WriteInt(File,"pMapsPlayed",pInfo[playerid][pMapsPlayed]);
  7494. INI_WriteInt(File,"pCoins",pInfo[playerid][pCoins]);
  7495. INI_WriteInt(File,"pBanned",pInfo[playerid][pBanned]);
  7496. INI_WriteInt(File,"gLeader",pInfo[playerid][gLeader]);
  7497. INI_WriteInt(File,"gMember",pInfo[playerid][gMember]);
  7498. INI_Close(File);
  7499. return 1;
  7500. }
  7501.  
  7502. stock PlayerName(playerid)
  7503. {
  7504. new CName[24];
  7505. GetPlayerName(playerid, CName, 24);
  7506. return CName;
  7507. }
  7508.  
  7509. stock UserPath(playerid)
  7510. {
  7511. new str[128],name[MAX_PLAYER_NAME];
  7512. GetPlayerName(playerid,name,sizeof(name));
  7513. format(str,sizeof(str),PATH,name);
  7514. return str;
  7515. }
  7516.  
  7517. stock BanPlayer(playerid,reason[],admin[])
  7518. {
  7519. new str[128];
  7520. BanEx(playerid,reason);
  7521. format(str,sizeof(str),"You have been currently banned from this server.\nUser: %s\nReason: %s\nAdmin %s\n",PlayerName(playerid),reason,admin);
  7522. ShowPlayerDialog(playerid,DIALOG_BANNED,DIALOG_STYLE_MSGBOX,"You have been banned!",str,"Leave","");
  7523. return 1;
  7524. }
  7525.  
  7526. GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance)
  7527. {
  7528. new Float:a;
  7529. GetPlayerPos(playerid, x, y, a);
  7530. GetPlayerFacingAngle(playerid, a);
  7531. if (GetPlayerVehicleID(playerid)) {
  7532. GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
  7533. }
  7534. x += (distance * floatsin(-a, degrees));
  7535. y += (distance * floatcos(-a, degrees));
  7536. }
  7537.  
  7538. stock SetPlayerPosEx( playerid, Float: posx, Float: posy, Float: posz, interior, virtualworld )
  7539. {
  7540. if( GetPlayerState( playerid ) == 2 )
  7541. {
  7542. SetPlayerVirtualWorld( playerid, virtualworld );
  7543. SetVehicleVirtualWorld( GetPlayerVehicleID( playerid ), virtualworld );
  7544. LinkVehicleToInterior( GetPlayerVehicleID( playerid ), interior );
  7545. SetPlayerInterior( playerid, interior );
  7546. SetVehiclePos( GetPlayerVehicleID( playerid ), posx, posy, posz );
  7547. return 1;
  7548. }
  7549. else
  7550. {
  7551. SetPlayerVirtualWorld( playerid, virtualworld );
  7552. SetPlayerInterior( playerid, interior );
  7553. SetPlayerPos( playerid, posx, posy, posz );
  7554. return 1;
  7555. }
  7556. }
  7557.  
  7558. stock SendMessageToAllAdmins(message[])
  7559. {
  7560. foreach(Player, i)
  7561. {
  7562. if(pInfo[i][pAdminLevel] >= 1 || IsPlayerAdmin(i))
  7563. {
  7564. SendClientMessage(i, 0xFFFF00AA, message);
  7565. }
  7566. }
  7567. return 1;
  7568. }
  7569.  
  7570. stock SendZMessage(message[], color)
  7571. {
  7572. foreach(Player, i)
  7573. {
  7574. if(team[i] == TEAM_ZOMBIE)
  7575. {
  7576. SendClientMessage(i, color, message);
  7577. }
  7578. }
  7579. return 1;
  7580. }
  7581.  
  7582. stock SendHMessage(message[], color)
  7583. {
  7584. foreach(Player, i)
  7585. {
  7586. if(team[i] == TEAM_HUMAN)
  7587. {
  7588. SendClientMessage(i, color, message);
  7589. }
  7590. }
  7591. return 1;
  7592. }
  7593.  
  7594. stock SendXPError(playerid,xp)
  7595. {
  7596. new string[128];
  7597. format(string,sizeof(string),""chat""COL_PINK" You need atleast %i XP to use this class or command",xp);
  7598. SendClientMessage(playerid,-1,string);
  7599. return 1;
  7600. }
  7601.  
  7602. stock SendCoinError(playerid,coin)
  7603. {
  7604. new string[128];
  7605. format(string,sizeof(string),""chat""COL_PINK" You need %i coins to use this feature!",coin);
  7606. SendClientMessage(playerid,-1,string);
  7607. return 1;
  7608. }
  7609.  
  7610. stock SendVIPError(playerid,viplevel)
  7611. {
  7612. new string[128];
  7613. format(string,sizeof(string),""chat""COL_PINK" You need vip package %i to use this command!",viplevel);
  7614. SendClientMessage(playerid,-1,string);
  7615. return 1;
  7616. }
  7617.  
  7618. stock SendHEAVYSHOTGUNError(playerid,viplevel)
  7619. {
  7620. new string[128];
  7621. format(string,sizeof(string),""chat""COL_PINK" You cannot use this item when you are Heavy Shotgun class",viplevel);
  7622. SendClientMessage(playerid,-1,string);
  7623. return 1;
  7624. }
  7625.  
  7626. stock GivePlayerXP(playerid,xp)
  7627. {
  7628. new string[128];
  7629. pInfo[playerid][pXP] += xp;
  7630. format(string,sizeof(string),"~n~~n~~n~~n~~n~~y~+%i",xp);
  7631. GameTextForPlayer(playerid,string,3500,5);
  7632. return 1;
  7633. }
  7634.  
  7635. stock GetMapCount()
  7636. {
  7637. new mcount = 0, file[128];
  7638. for(new i = 0; i < MAX_MAP_FILES; i++)
  7639. {
  7640. format(file, sizeof(file), "/Maps/%d.ini", i);
  7641. if(fexist(file))
  7642. {
  7643. mcount ++;
  7644. }
  7645. }
  7646. return mcount;
  7647. }
  7648.  
  7649. stock GetFreeMapID()
  7650. {
  7651. new file[32], id = 0;
  7652. for(new i = 0; i < MAX_MAP_FILES; i++)
  7653. {
  7654. format(file, sizeof(file), "/Maps/%d.ini", i);
  7655. if(fexists(file)) continue;
  7656. id = i;
  7657. break;
  7658. }
  7659. return id;
  7660. }
  7661.  
  7662. stock NoMapCheck()
  7663. {
  7664. new tcount = 0, file[128];
  7665. for(new i = 0; i < MAX_MAP_FILES; i++)
  7666. {
  7667. format(file, sizeof(file), "/Maps/%d.ini", i);
  7668. if(fexist(file))
  7669. {
  7670. tcount ++;
  7671. }
  7672. }
  7673. if(tcount == 0)
  7674. {
  7675. print("_____________________________________________________________");
  7676. print("WARNING: The server has detected there are no map files!");
  7677. print("currently installed. The server has been set to");
  7678. print("automatically shut down in 25000/ MS. (25 Seconds)");
  7679. print("_____________________________________________________________");
  7680. SetTimer("No_Maps", 25000, false);
  7681. return 1;
  7682. }
  7683. return 1;
  7684. }
  7685.  
  7686. function No_Maps() return SendRconCommand("exit");
  7687.  
  7688. public load_Map_basic(Mapid, name[], value[])
  7689. {
  7690. if(strcmp(name, "FSMapName", true) == 0)
  7691. {
  7692. strmid(Map[FSMapName], value, false, strlen(value), 128);
  7693. LoadFilterScript(Map[FSMapName]);
  7694. }
  7695.  
  7696. /*printf("[Debug] Name: %s - Value: %s", name, value); For Debug Purposes*/
  7697.  
  7698. if(strcmp(name, "MapName", true) == 0)
  7699. {
  7700. new mpname[50];
  7701. strmid(Map[MapName], value, false, strlen(value), 128);
  7702. format(mpname, sizeof(mpname), "mapname %s", Map[MapName]);
  7703. SendRconCommand(mpname);
  7704. }
  7705.  
  7706. if(strcmp(name, "HumanSpawnX", true) == 0) Map[HumanSpawnX] = floatstr(value);
  7707. if(strcmp(name, "HumanSpawnY", true) == 0) Map[HumanSpawnY] = floatstr(value);
  7708. if(strcmp(name, "HumanSpawnZ", true) == 0) Map[HumanSpawnZ] = floatstr(value);
  7709. if(strcmp(name, "HumanSpawn2X", true) == 0) Map[HumanSpawn2X] = floatstr(value);
  7710. if(strcmp(name, "HumanSpawn2Y", true) == 0) Map[HumanSpawn2Y] = floatstr(value);
  7711. if(strcmp(name, "HumanSpawn2Z", true) == 0) Map[HumanSpawn2Z] = floatstr(value);
  7712. if(strcmp(name, "ZombieSpawnX", true) == 0) Map[ZombieSpawnX] = floatstr(value);
  7713. if(strcmp(name, "ZombieSpawnY", true) == 0) Map[ZombieSpawnY] = floatstr(value);
  7714. if(strcmp(name, "ZombieSpawnZ", true) == 0) Map[ZombieSpawnZ] = floatstr(value);
  7715. if(strcmp(name, "Interior", true) == 0) Map[Interior] = strval(value);
  7716. if(strcmp(name, "GateX", true) == 0) Map[GateX] = floatstr(value);
  7717. if(strcmp(name, "GateY", true) == 0) Map[GateY] = floatstr(value);
  7718. if(strcmp(name, "GateZ", true) == 0) Map[GateZ] = floatstr(value);
  7719. if(strcmp(name, "CPx", true) == 0) Map[CPx] = floatstr(value);
  7720. if(strcmp(name, "CPy", true) == 0) Map[CPy] = floatstr(value);
  7721. if(strcmp(name, "CPz", true) == 0) Map[CPz] = floatstr(value);
  7722. if(strcmp(name, "GaterX", true) == 0) Map[GaterX] = floatstr(value);
  7723. if(strcmp(name, "GaterY", true) == 0) Map[GaterY] = floatstr(value);
  7724. if(strcmp(name, "GaterZ", true) == 0) Map[GaterZ] = floatstr(value);
  7725. if(strcmp(name, "MoveGate", true) == 0) Map[MoveGate] = strval(value);
  7726. if(strcmp(name, "GateID", true) == 0) Map[GateID] = strval(value);
  7727. if(strcmp(name, "AllowWater", true) == 0) Map[AllowWater] = strval(value);
  7728. if(strcmp(name, "EvacType", true) == 0) Map[EvacType] = strval(value);
  7729. if(strcmp(name, "Weather", true) == 0)
  7730. {
  7731. Map[Weather] = strval(value);
  7732. SetWeather(Map[Weather]);
  7733. }
  7734.  
  7735. if(strcmp(name, "Time", true) == 0)
  7736. {
  7737. Map[Time] = strval(value);
  7738. SetWorldTime(Map[Time]);
  7739. printf("Map ID %d's Information Has Been Loaded.", Mapid);
  7740. }
  7741. return 1;
  7742. }
  7743.  
  7744. stock LoadMap(Mapid)
  7745. {
  7746. new Map_file[64];
  7747. format(Map_file, sizeof(Map_file), "/Maps/%d.ini", Mapid);
  7748. if(fexist(Map_file))
  7749. {
  7750. printf("loading Map %s", Map_file);
  7751. INI_ParseFile(Map_file, "load_Map_%s", .bExtra = true, .extra = Mapid);
  7752. return 1;
  7753. }
  7754. return 0;
  7755. }
  7756.  
  7757. stock LoadNewMap()
  7758. {
  7759. new file[64];
  7760. mapid %= MAX_MAP_FILES;
  7761. format(file, sizeof(file), "/Maps/%d.ini", mapid);
  7762. if(!fexist(file)) return printf("[NOTICE] File Bugged.");
  7763. LastMapStarted = mapid;
  7764. mapid++;
  7765. return mapid-1;
  7766. }
  7767.  
  7768. stock ClearObjects()
  7769. {
  7770. for(new i; i<MAX_OBJECTS; i++)
  7771. {
  7772. if(IsValidObject(i)) DestroyObject(i);
  7773. }
  7774. }
  7775.  
  7776. stock DestroyAllVehicle()
  7777. {
  7778. for(new i=1;i<=MAX_VEHICLES;i++)
  7779. {
  7780. DestroyVehicle(i);
  7781. }
  7782. return 1;
  7783. }
  7784.  
  7785. stock GetRandomMap()
  7786. {
  7787. new file[64];
  7788. new i = 0, count = 0, Maps[MAX_MAP_FILES], Mapid;
  7789. for( ; i != MAX_MAP_FILES; ++i)
  7790. {
  7791. if(LastMapStarted == i) continue;
  7792. format(file, sizeof(file), "/Maps/%d.ini", i);
  7793. if(fexist(file))
  7794. {
  7795. Maps[count] = i;
  7796. count++;
  7797. }
  7798. }
  7799. if(count == 0)
  7800. {
  7801. return NoMapCheck();
  7802. }
  7803. Mapid = Maps[random(count)];
  7804.  
  7805. format(file, sizeof(file), "/Maps/%d.ini", Mapid);
  7806. if(fexist(file))
  7807. {
  7808. LastMapStarted = Mapid;
  7809. return Mapid;
  7810. }
  7811. else return printf("[NOTICE] File Bugged.");
  7812. }
  7813.  
  7814. stock LoadFilterScript(filename[])
  7815. {
  7816. new string[128];
  7817. format(string, sizeof(string), "loadfs %s", filename);
  7818. SendRconCommand(string);
  7819. return 1;
  7820. }
  7821.  
  7822. stock UnloadFilterScript(filename[])
  7823. {
  7824. new string[128];
  7825. format(string, sizeof(string), "unloadfs %s", filename);
  7826. SendRconCommand(string);
  7827. return 1;
  7828. }
  7829.  
  7830. stock HumanSetup(playerid)
  7831. {
  7832. SetPlayerTeam(playerid,TEAM_HUMAN);
  7833. SetPlayerHealth(playerid,100.0);
  7834. team[playerid] = TEAM_HUMAN;
  7835. SetPlayerColor(playerid,COLOR_HUMAN);
  7836. return 1;
  7837. }
  7838.  
  7839. stock HumanSetup2(playerid)
  7840. {
  7841. SetPlayerTeam(playerid,TEAM_HUMAN);
  7842. SetPlayerHealth(playerid,100.0);
  7843. team[playerid] = TEAM_HUMAN;
  7844. SetPlayerColor(playerid,COLOR_HUMAN);
  7845. SpawnPlayer(playerid);
  7846. return 1;
  7847. }
  7848.  
  7849. stock ZombieSetup(playerid)
  7850. {
  7851. SetPlayerTeam(playerid,TEAM_ZOMBIE);
  7852. team[playerid] = TEAM_ZOMBIE;
  7853. SetPlayerColor(playerid,COLOR_ZOMBIE);
  7854. return 1;
  7855. }
  7856.  
  7857. stock ZombieSetup2(playerid)
  7858. {
  7859. SetPlayerTeam(playerid,TEAM_ZOMBIE);
  7860. team[playerid] = TEAM_ZOMBIE;
  7861. SetPlayerColor(playerid,COLOR_ZOMBIE);
  7862. SpawnPlayer(playerid);
  7863. return 1;
  7864. }
  7865.  
  7866. public Float:GetDistanceBetweenPlayers(p1,p2)
  7867. {
  7868. new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
  7869. if(!IsPlayerConnected(p1) || !IsPlayerConnected(p2)) {
  7870. return -1.00;
  7871. }
  7872. GetPlayerPos(p1,x1,y1,z1);
  7873. GetPlayerPos(p2,x2,y2,z2);
  7874. return floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
  7875. }
  7876.  
  7877. public GetClosestPlayer(p1)
  7878. {
  7879. new x,Float:dis,Float:dis2,player;
  7880. player = -1;
  7881. dis = 99999.99;
  7882. for (x=0;x<MAX_PLAYERS;x++) {
  7883. if(IsPlayerConnected(x)) {
  7884. if(x != p1) {
  7885. dis2 = GetDistanceBetweenPlayers(x,p1);
  7886. if(dis2 < dis && dis2 != -1.00) {
  7887. dis = dis2;
  7888. player = x;
  7889. }
  7890. }
  7891. }
  7892. }
  7893. return player;
  7894. }
  7895.  
  7896. stock IsPlayerInWater(playerid)
  7897. {
  7898. new animlib[32],tmp[32];
  7899. GetAnimationName(GetPlayerAnimationIndex(playerid),animlib,32,tmp,32);
  7900. if( !strcmp(animlib, "SWIM") && !IsPlayerInAnyVehicle(playerid) ) return true;
  7901. return false;
  7902. }
  7903.  
  7904. GetTeamPlayersAlive(teamid)
  7905. {
  7906. new count;
  7907. for(new i; i < playersAliveCount; i++)
  7908. {
  7909. if(IsPlayerConnected(i) && team[i] == teamid) count++;
  7910. }
  7911. return count;
  7912. }
  7913.  
  7914. stock OneZombie()
  7915. {
  7916. new count = 0;
  7917. new Random = Iter_Random(Player);
  7918. foreach(Player, i)
  7919. {
  7920. if(team[i] == TEAM_HUMAN) count++;
  7921. if(count == Iter_Count(Player))
  7922. {
  7923. ZombieSetup(Random);
  7924. }
  7925. }
  7926. return 1;
  7927. }
  7928.  
  7929. public RandomZombie() return Half();
  7930.  
  7931. stock Half()
  7932. {
  7933. new Humans;
  7934. switch(random(4))
  7935. {
  7936. case 0:
  7937. {
  7938. foreach(Player, i)
  7939. {
  7940. if(Humans < 1)
  7941. {
  7942. HumanSetup(i);
  7943. printf("Selected humans");
  7944. Humans ++;
  7945. }
  7946. else
  7947. {
  7948. ZombieSetup2(i);
  7949. printf("Selected zombies");
  7950. Humans = 0;
  7951. }
  7952. }
  7953. }
  7954. case 1:
  7955. {
  7956. foreach(Player, i)
  7957. {
  7958. if(Humans < 2)
  7959. {
  7960. HumanSetup(i);
  7961. printf("Selected humans");
  7962. Humans ++;
  7963. }
  7964. else
  7965. {
  7966. ZombieSetup2(i);
  7967. printf("Selected zombies");
  7968. Humans = 0;
  7969. }
  7970. }
  7971. }
  7972. case 2:
  7973. {
  7974. foreach(Player, i)
  7975. {
  7976. if(Humans < 3)
  7977. {
  7978. HumanSetup(i);
  7979. printf("Selected humans");
  7980. Humans ++;
  7981. }
  7982. else
  7983. {
  7984. ZombieSetup2(i);
  7985. printf("Selected zombies");
  7986. Humans = 0;
  7987. }
  7988. }
  7989. }
  7990. case 3:
  7991. {
  7992. foreach(Player, i)
  7993. {
  7994. if(Humans < 4)
  7995. {
  7996. HumanSetup(i);
  7997. printf("Selected humans");
  7998. Humans ++;
  7999. }
  8000. else
  8001. {
  8002. ZombieSetup2(i);
  8003. printf("Selected zombies");
  8004. Humans = 0;
  8005. }
  8006. }
  8007. }
  8008. }
  8009. printf("Finished Selecting teams");
  8010. return 1;
  8011. }
  8012.  
  8013. stock EvenTeams(playerid)
  8014. {
  8015. new Humans, Zombies, rand = switch(random(25));
  8016.  
  8017. switch(random(25))
  8018. {
  8019. case 0:
  8020. {
  8021. switch(random(4))
  8022. {
  8023. case 0:
  8024. {
  8025. foreach(Player, i)
  8026. {
  8027. ZombieSetup2(i);
  8028. Zombies ++;
  8029. }
  8030. }
  8031. case 1:
  8032. {
  8033. foreach(Player, i)
  8034. {
  8035. HumanSetup2(i);
  8036. Humans ++;
  8037. }
  8038. }
  8039. case 2:
  8040. {
  8041. foreach(Player, i)
  8042. {
  8043. ZombieSetup2(i);
  8044. Zombies ++;
  8045. }
  8046. }
  8047. case 3:
  8048. {
  8049. foreach(Player, i)
  8050. {
  8051. HumanSetup2(i);
  8052. Humans ++;
  8053. }
  8054. }
  8055. }
  8056. }
  8057.  
  8058. case 1:
  8059. {
  8060. switch(random(4))
  8061. {
  8062. case 0:
  8063. {
  8064. foreach(Player, i)
  8065. {
  8066. ZombieSetup2(i);
  8067. Zombies ++;
  8068. }
  8069. }
  8070. case 1:
  8071. {
  8072. foreach(Player, i)
  8073. {
  8074. HumanSetup2(i);
  8075. Humans ++;
  8076. }
  8077. }
  8078. case 2:
  8079. {
  8080. foreach(Player, i)
  8081. {
  8082. ZombieSetup2(i);
  8083. Zombies ++;
  8084. }
  8085. }
  8086. case 3:
  8087. {
  8088. foreach(Player, i)
  8089. {
  8090. HumanSetup2(i);
  8091. Humans ++;
  8092. }
  8093. }
  8094. }
  8095. }
  8096.  
  8097. case 2:
  8098. {
  8099. switch(random(4))
  8100. {
  8101. case 0:
  8102. {
  8103. foreach(Player, i)
  8104. {
  8105. ZombieSetup2(i);
  8106. Zombies ++;
  8107. }
  8108. }
  8109. case 1:
  8110. {
  8111. foreach(Player, i)
  8112. {
  8113. HumanSetup2(i);
  8114. Humans ++;
  8115. }
  8116. }
  8117. case 2:
  8118. {
  8119. foreach(Player, i)
  8120. {
  8121. ZombieSetup2(i);
  8122. Zombies ++;
  8123. }
  8124. }
  8125. case 3:
  8126. {
  8127. foreach(Player, i)
  8128. {
  8129. HumanSetup2(i);
  8130. Humans ++;
  8131. }
  8132. }
  8133. }
  8134. }
  8135.  
  8136. case 3:
  8137. {
  8138. switch(random(4))
  8139. {
  8140. case 0:
  8141. {
  8142. foreach(Player, i)
  8143. {
  8144. ZombieSetup2(i);
  8145. Zombies ++;
  8146. }
  8147. }
  8148. case 1:
  8149. {
  8150. foreach(Player, i)
  8151. {
  8152. HumanSetup2(i);
  8153. Humans ++;
  8154. }
  8155. }
  8156. case 2:
  8157. {
  8158. foreach(Player, i)
  8159. {
  8160. ZombieSetup2(i);
  8161. Zombies ++;
  8162. }
  8163. }
  8164. case 3:
  8165. {
  8166. foreach(Player, i)
  8167. {
  8168. ZombieSetup2(i);
  8169. Zombies ++;
  8170. }
  8171. }
  8172. }
  8173. }
  8174.  
  8175. case 4:
  8176. {
  8177. switch(random(4))
  8178. {
  8179. case 0:
  8180. {
  8181. foreach(Player, i)
  8182. {
  8183. ZombieSetup2(i);
  8184. Zombies ++;
  8185. }
  8186. }
  8187. case 1:
  8188. {
  8189. foreach(Player, i)
  8190. {
  8191. ZombieSetup2(i);
  8192. Zombies ++;
  8193. }
  8194. }
  8195. case 2:
  8196. {
  8197. foreach(Player, i)
  8198. {
  8199. ZombieSetup2(i);
  8200. Zombies ++;
  8201. }
  8202. }
  8203. case 3:
  8204. {
  8205. foreach(Player, i)
  8206. {
  8207. HumanSetup2(i);
  8208. Humans ++;
  8209. }
  8210. }
  8211. }
  8212. }
  8213.  
  8214. case 6:
  8215. {
  8216. switch(random(4))
  8217. {
  8218. case 0:
  8219. {
  8220. foreach(Player, i)
  8221. {
  8222. ZombieSetup2(i);
  8223. Zombies ++;
  8224. }
  8225. }
  8226. case 1:
  8227. {
  8228. foreach(Player, i)
  8229. {
  8230. HumanSetup2(i);
  8231. Humans ++;
  8232. }
  8233. }
  8234. case 2:
  8235. {
  8236. foreach(Player, i)
  8237. {
  8238. ZombieSetup2(i);
  8239. Zombies ++;
  8240. }
  8241. }
  8242. case 3:
  8243. {
  8244. foreach(Player, i)
  8245. {
  8246. ZombieSetup2(i);
  8247. Zombies ++;
  8248. }
  8249. }
  8250. }
  8251. }
  8252.  
  8253. case 7..9:
  8254. {
  8255. switch(random(4))
  8256. {
  8257. case 0:
  8258. {
  8259. foreach(Player, i)
  8260. {
  8261. ZombieSetup2(i);
  8262. Zombies ++;
  8263. }
  8264. }
  8265. case 1:
  8266. {
  8267. foreach(Player, i)
  8268. {
  8269. HumanSetup2(i);
  8270. Humans ++;
  8271. }
  8272. }
  8273. case 2:
  8274. {
  8275. foreach(Player, i)
  8276. {
  8277. ZombieSetup2(i);
  8278. Zombies ++;
  8279. }
  8280. }
  8281. case 3:
  8282. {
  8283. foreach(Player, i)
  8284. {
  8285. HumanSetup2(i);
  8286. Humans ++;
  8287. }
  8288. }
  8289. }
  8290. }
  8291.  
  8292. case 9..11:
  8293. {
  8294. switch(random(4))
  8295. {
  8296. case 0:
  8297. {
  8298. foreach(Player, i)
  8299. {
  8300. ZombieSetup2(i);
  8301. Zombies ++;
  8302. }
  8303. }
  8304. case 1:
  8305. {
  8306. foreach(Player, i)
  8307. {
  8308. HumanSetup2(i);
  8309. Humans ++;
  8310. }
  8311. }
  8312. case 2:
  8313. {
  8314. foreach(Player, i)
  8315. {
  8316. ZombieSetup2(i);
  8317. Zombies ++;
  8318. }
  8319. }
  8320. case 3:
  8321. {
  8322. foreach(Player, i)
  8323. {
  8324. HumanSetup2(i);
  8325. Humans ++;
  8326. }
  8327. }
  8328. }
  8329. }
  8330.  
  8331. case 11..16:
  8332. {
  8333. switch(random(4))
  8334. {
  8335. case 0:
  8336. {
  8337. foreach(Player, i)
  8338. {
  8339. ZombieSetup2(i);
  8340. Zombies ++;
  8341. }
  8342. }
  8343. case 1:
  8344. {
  8345. foreach(Player, i)
  8346. {
  8347. HumanSetup2(i);
  8348. Humans ++;
  8349. }
  8350. }
  8351. case 2:
  8352. {
  8353. foreach(Player, i)
  8354. {
  8355. ZombieSetup2(i);
  8356. Zombies ++;
  8357. }
  8358. }
  8359. case 3:
  8360. {
  8361. foreach(Player, i)
  8362. {
  8363. HumanSetup2(i);
  8364. Humans ++;
  8365. }
  8366. }
  8367. }
  8368. }
  8369.  
  8370. case 16..20:
  8371. {
  8372. switch(random(4))
  8373. {
  8374. case 0:
  8375. {
  8376. foreach(Player, i)
  8377. {
  8378. ZombieSetup2(i);
  8379. Zombies ++;
  8380. }
  8381. }
  8382. case 1:
  8383. {
  8384. foreach(Player, i)
  8385. {
  8386. HumanSetup2(i);
  8387. Humans ++;
  8388. }
  8389. }
  8390. case 2:
  8391. {
  8392. foreach(Player, i)
  8393. {
  8394. ZombieSetup2(i);
  8395. Zombies ++;
  8396. }
  8397. }
  8398. case 3:
  8399. {
  8400. foreach(Player, i)
  8401. {
  8402. HumanSetup2(i);
  8403. Humans ++;
  8404. }
  8405. }
  8406. }
  8407. }
  8408.  
  8409. case 20..25:
  8410. {
  8411. switch(random(4))
  8412. {
  8413. case 0:
  8414. {
  8415. foreach(Player, i)
  8416. {
  8417. ZombieSetup2(i);
  8418. Zombies ++;
  8419. }
  8420. }
  8421. case 1:
  8422. {
  8423. foreach(Player, i)
  8424. {
  8425. HumanSetup2(i);
  8426. Humans ++;
  8427. }
  8428. }
  8429. case 2:
  8430. {
  8431. foreach(Player, i)
  8432. {
  8433. ZombieSetup2(i);
  8434. Zombies ++;
  8435. }
  8436. }
  8437. case 3:
  8438. {
  8439. foreach(Player, i)
  8440. {
  8441. HumanSetup2(i);
  8442. Humans ++;
  8443. }
  8444. }
  8445. }
  8446. }
  8447. }
  8448.  
  8449. return 1;
  8450. }
  8451.  
  8452. stock DefaultTextdraws()
  8453. {
  8454.  
  8455. MapStatBox = TextDrawCreate(0.000000, 405.440002, "LD_SPAC:white");
  8456. TextDrawLetterSize(MapStatBox, 0.000000, 0.000000);
  8457. TextDrawTextSize(MapStatBox, 640.000000, 42.559997);
  8458. TextDrawAlignment(MapStatBox, 1);
  8459. TextDrawColor(MapStatBox, -2139094785);
  8460. TextDrawSetShadow(MapStatBox, 0);
  8461. TextDrawSetOutline(MapStatBox, 0);
  8462. TextDrawFont(MapStatBox, 4);
  8463.  
  8464. TimeLeft = TextDrawCreate(65.000000, 430.000000, "~r~180");
  8465. TextDrawBackgroundColor(TimeLeft, 255);
  8466. TextDrawFont(TimeLeft, 2);
  8467. TextDrawLetterSize(TimeLeft, 0.509998, 1.299998);
  8468. TextDrawColor(TimeLeft, -1351084033);
  8469. TextDrawSetOutline(TimeLeft, 0);
  8470. TextDrawSetProportional(TimeLeft, 1);
  8471. TextDrawSetShadow(TimeLeft, 1);
  8472.  
  8473. Textdraw0 = TextDrawCreate(641.000000, 430.000000, " "); //Xp Textdraw
  8474. TextDrawBackgroundColor(Textdraw0, -3407617);
  8475. TextDrawFont(Textdraw0, 1);
  8476. TextDrawLetterSize(Textdraw0, 0.990000, 1.399999);
  8477. TextDrawColor(Textdraw0, -1);
  8478. TextDrawSetOutline(Textdraw0, 0);
  8479. TextDrawSetProportional(Textdraw0, 1);
  8480. TextDrawSetShadow(Textdraw0, 1);
  8481. TextDrawUseBox(Textdraw0, 1);
  8482. TextDrawBoxColor(Textdraw0, 0000055);
  8483. TextDrawTextSize(Textdraw0, -1.000000, 1077.000000);
  8484. TextDrawSetSelectable(Textdraw0, 0);
  8485.  
  8486. Textdraw5 = TextDrawCreate(596.000000, 98.000000, "~g~XP"); //Used below xp bar
  8487. TextDrawBackgroundColor(Textdraw5, 255);
  8488. TextDrawFont(Textdraw5, 3);
  8489. TextDrawLetterSize(Textdraw5, 0.340000, 0.600000);
  8490. TextDrawColor(Textdraw5, 1312325375);
  8491. TextDrawSetOutline(Textdraw5, 1);
  8492. TextDrawSetProportional(Textdraw5, 1);
  8493. TextDrawSetSelectable(Textdraw5, 0);
  8494.  
  8495. Textdraw7 = TextDrawCreate(485.000000, 17.000000, "."); //Used below xp bar or below Server Name xD
  8496. TextDrawBackgroundColor(Textdraw7, 255);
  8497. TextDrawFont(Textdraw7, 1);
  8498. TextDrawLetterSize(Textdraw7, 13.220012, 0.699999);
  8499. TextDrawColor(Textdraw7, -1728048385);
  8500. TextDrawSetOutline(Textdraw7, 0);
  8501. TextDrawSetProportional(Textdraw7, 1);
  8502. TextDrawSetShadow(Textdraw7, 1);
  8503. TextDrawSetSelectable(Textdraw7, 0);
  8504.  
  8505. Textdraw8 = TextDrawCreate(251.200012, 403.946594, "~l~--Map Info Box--");
  8506. TextDrawLetterSize(Textdraw8, 0.449999, 1.600000);
  8507. TextDrawAlignment(Textdraw8, 1);
  8508. TextDrawColor(Textdraw8, -1);
  8509. TextDrawSetShadow(Textdraw8, 0);
  8510. TextDrawSetOutline(Textdraw8, 2);
  8511. TextDrawBackgroundColor(Textdraw8, 51);
  8512. TextDrawFont(Textdraw8, 0);
  8513. TextDrawSetProportional(Textdraw8, 1);
  8514.  
  8515. Textdraw9 = TextDrawCreate(496.000000, 93.000000, "."); //Used below xp bar or below Server Name xD
  8516. TextDrawBackgroundColor(Textdraw9, 255);
  8517. TextDrawFont(Textdraw9, 3);
  8518. TextDrawLetterSize(Textdraw9, 11.770002, 0.899999);
  8519. TextDrawColor(Textdraw9, 1312325375);
  8520. TextDrawSetOutline(Textdraw9, 0);
  8521. TextDrawSetProportional(Textdraw9, 1);
  8522. TextDrawSetShadow(Textdraw9, 1);
  8523. TextDrawSetSelectable(Textdraw9, 0);
  8524.  
  8525. Textdraw4 = TextDrawCreate(612.000000, 81.000000, "_"); //Used to hide money bar
  8526. TextDrawBackgroundColor(Textdraw4, 255);
  8527. TextDrawFont(Textdraw4, 1);
  8528. TextDrawLetterSize(Textdraw4, -6.289993, 1.599997);
  8529. TextDrawColor(Textdraw4, -1);
  8530. TextDrawSetOutline(Textdraw4, 0);
  8531. TextDrawSetProportional(Textdraw4, 1);
  8532. TextDrawSetShadow(Textdraw4, 1);
  8533. TextDrawUseBox(Textdraw4, 1);
  8534. TextDrawBoxColor(Textdraw4, 255);
  8535. TextDrawTextSize(Textdraw4, 493.000000, 228.000000);
  8536. TextDrawSetSelectable(Textdraw4, 0);
  8537.  
  8538. Textdraw1 = TextDrawCreate(468.000000, 431.573303, "~b~:~g~Time Left");
  8539. TextDrawLetterSize(Textdraw1, 0.449999, 1.600000);
  8540. TextDrawAlignment(Textdraw1, 1);
  8541. TextDrawColor(Textdraw1, -1);
  8542. TextDrawSetShadow(Textdraw1, 0);
  8543. TextDrawSetOutline(Textdraw1, 1);
  8544. TextDrawBackgroundColor(Textdraw1, 51);
  8545. TextDrawFont(Textdraw1, 2);
  8546. TextDrawSetProportional(Textdraw1, 1);
  8547.  
  8548. Textdraw2 = TextDrawCreate(451.999511, 409.920013, "~b~:~g~Map Name");
  8549. TextDrawLetterSize(Textdraw2, 0.449999, 1.600000);
  8550. TextDrawAlignment(Textdraw2, 1);
  8551. TextDrawColor(Textdraw2, -1);
  8552. TextDrawSetShadow(Textdraw2, 0);
  8553. TextDrawSetOutline(Textdraw2, 1);
  8554. TextDrawBackgroundColor(Textdraw2, 51);
  8555. TextDrawFont(Textdraw2, 2);
  8556. TextDrawSetProportional(Textdraw2, 1);
  8557.  
  8558. ChatMsg = TextDrawCreate(0.000000, 4.000000, "~b~Global Chat:");
  8559. TextDrawBackgroundColor(ChatMsg, 255);
  8560. TextDrawFont(ChatMsg, 1);
  8561. TextDrawLetterSize(ChatMsg, 0.310000, 1.399999);
  8562. TextDrawColor(ChatMsg, -1);
  8563. TextDrawSetOutline(ChatMsg, 0);
  8564. TextDrawSetProportional(ChatMsg, 1);
  8565. TextDrawSetShadow(ChatMsg, 1);
  8566.  
  8567. AliveInfo = TextDrawCreate(8.000209, 431.573425, "~g~Humans~b~:");
  8568. TextDrawLetterSize(AliveInfo, 0.449999, 1.600000);
  8569. TextDrawAlignment(AliveInfo, 1);
  8570. TextDrawColor(AliveInfo, -1);
  8571. TextDrawSetShadow(AliveInfo, 0);
  8572. TextDrawSetOutline(AliveInfo, 1);
  8573. TextDrawBackgroundColor(AliveInfo, 51);
  8574. TextDrawFont(AliveInfo, 2);
  8575. TextDrawSetProportional(AliveInfo, 1);
  8576.  
  8577. AliveInfo2 = TextDrawCreate(5.599975, 410.666625, "~g~Zombies~b~:");
  8578. TextDrawLetterSize(AliveInfo2, 0.449999, 1.600000);
  8579. TextDrawAlignment(AliveInfo2, 1);
  8580. TextDrawColor(AliveInfo2, -1);
  8581. TextDrawSetShadow(AliveInfo2, 0);
  8582. TextDrawSetOutline(AliveInfo2, 1);
  8583. TextDrawBackgroundColor(AliveInfo2, 51);
  8584. TextDrawFont(AliveInfo2, 2);
  8585. TextDrawSetProportional(AliveInfo2, 1);
  8586.  
  8587. XP = TextDrawCreate(502.000000, 11.000000, "~n~");
  8588. TextDrawBackgroundColor(XP, 255);
  8589. TextDrawFont(XP, 2);
  8590. TextDrawLetterSize(XP, 0.270000, 1.000000);
  8591. TextDrawColor(XP, 16777215);
  8592. TextDrawSetOutline(XP, 0);
  8593. TextDrawSetProportional(XP, 1);
  8594. TextDrawSetShadow(XP, 1);
  8595.  
  8596. CurrentMap = TextDrawCreate(424.000000, 428.000000, "~p~MapInit()");
  8597. TextDrawBackgroundColor(CurrentMap, 255);
  8598. TextDrawFont(CurrentMap, 2);
  8599. TextDrawLetterSize(CurrentMap, 0.300000, 1.600000);
  8600. TextDrawColor(CurrentMap, -1);
  8601. TextDrawSetOutline(CurrentMap, 0);
  8602. TextDrawSetProportional(CurrentMap, 1);
  8603. TextDrawSetShadow(CurrentMap, 1);
  8604.  
  8605. for(new i; i < MAX_PLAYERS; i ++)
  8606. {
  8607. Infected[i] = TextDrawCreate(2.000000, 1.000000, "~n~");
  8608. TextDrawBackgroundColor(Infected[i], 255);
  8609. TextDrawFont(Infected[i], 1);
  8610. TextDrawLetterSize(Infected[i], 0.500000, 50.000000);
  8611. TextDrawColor(Infected[i], -1);
  8612. TextDrawSetOutline(Infected[i], 0);
  8613. TextDrawSetProportional(Infected[i], 1);
  8614. TextDrawSetShadow(Infected[i], 1);
  8615. TextDrawUseBox(Infected[i], 1);
  8616. TextDrawBoxColor(Infected[i], 1174405190);
  8617. TextDrawTextSize(Infected[i], 640.000000, 0.000000);
  8618.  
  8619. iKilled[i] = TextDrawCreate(237.000000, 418.000000, "~p~Initalising...");
  8620. TextDrawBackgroundColor(iKilled[i], 255);
  8621. TextDrawFont(iKilled[i], 2);
  8622. TextDrawLetterSize(iKilled[i], 0.200000, 1.000000);
  8623. TextDrawColor(iKilled[i], -1);
  8624. TextDrawSetOutline(iKilled[i], 0);
  8625. TextDrawSetProportional(iKilled[i], 1);
  8626. TextDrawSetShadow(iKilled[i], 1);
  8627.  
  8628. myXP[i] = TextDrawCreate(497.000000, 74.000000, "00000000000");
  8629. TextDrawBackgroundColor(myXP[i], 255);
  8630. TextDrawFont(myXP[i], 3);
  8631. TextDrawLetterSize(myXP[i], 0.609999, 2.799997);
  8632. TextDrawColor(myXP[i], 1312325375);
  8633. TextDrawSetProportional(myXP[i], 1);
  8634. TextDrawSetShadow(myXP[i], 1);
  8635.  
  8636. ServerIntroTwo[i] = TextDrawCreate(287.000000, 120.000000, "Welcome back to ~b~Zombie Apocalypse ~w~For help use /help and /cmds~n~~r~ ~n~ ~b~If you can invite friends, Invite most of them!~n~ ~n~ ~n~ ~y~ADD TO YOUR FAVOURITES <3");
  8637. TextDrawBackgroundColor(ServerIntroTwo[i], 255);
  8638. TextDrawFont(ServerIntroTwo[i], 1);
  8639. TextDrawLetterSize(ServerIntroTwo[i], 0.220000, 1.200000);
  8640. TextDrawColor(ServerIntroTwo[i], -1);
  8641. TextDrawSetOutline(ServerIntroTwo[i], 0);
  8642. TextDrawSetProportional(ServerIntroTwo[i], 1);
  8643. TextDrawSetShadow(ServerIntroTwo[i], 1);
  8644.  
  8645. }
  8646. return 1;
  8647. }
  8648.  
  8649. stock UpdateAliveInfo()
  8650. {
  8651. new string[128];
  8652. format(string,sizeof(string),"~g~Humans~b~: ~r~%02d",GetTeamPlayersAlive(TEAM_HUMAN));
  8653. TextDrawSetString(AliveInfo,string);
  8654. return 1;
  8655. }
  8656.  
  8657. stock UpdateAliveInfo2()
  8658. {
  8659. new string[128];
  8660. format(string,sizeof(string),"~g~Zombies~b~: ~r~%02d",GetTeamPlayersAlive(TEAM_ZOMBIE));
  8661. TextDrawSetString(AliveInfo2,string);
  8662. return 1;
  8663. }
  8664.  
  8665. stock UpdateXPTextdraw(playerid)
  8666. {
  8667. new string[128];
  8668. format(string,sizeof(string),"%09d",pInfo[playerid][pXP]);
  8669. TextDrawSetString(myXP[playerid],string);
  8670. return 1;
  8671. }
  8672.  
  8673. stock UpdateMapName()
  8674. {
  8675. new string[128];
  8676. format(string,sizeof(string),"%s~b~:~g~Map Name",Map[MapName]);
  8677. TextDrawSetString(Textdraw2,string);
  8678. return 1;
  8679. }
  8680.  
  8681. stock setClass(playerid)
  8682. {
  8683. if(team[playerid] == TEAM_HUMAN)
  8684. {
  8685. ResetPlayerWeapons(playerid);
  8686. switch(pInfo[playerid][pHumanClass])
  8687. {
  8688. case CIVILIAN:
  8689. {
  8690. GivePlayerWeapon(playerid,23,100);
  8691. GivePlayerWeapon(playerid,25,50);
  8692. switch(random(14))
  8693. {
  8694. case 0: SetPlayerSkin(playerid,69);
  8695. case 1: SetPlayerSkin(playerid,14);
  8696. case 2: SetPlayerSkin(playerid,261);
  8697. case 3: SetPlayerSkin(playerid,2);
  8698. case 4: SetPlayerSkin(playerid,107);
  8699. case 5: SetPlayerSkin(playerid,11);
  8700. case 6: SetPlayerSkin(playerid,125);
  8701. case 7: SetPlayerSkin(playerid,6);
  8702. case 8: SetPlayerSkin(playerid,299);
  8703. case 9: SetPlayerSkin(playerid,261);
  8704. case 10: SetPlayerSkin(playerid,43);
  8705. case 11: SetPlayerSkin(playerid,124);
  8706. case 12: SetPlayerSkin(playerid,11);
  8707. case 13: SetPlayerSkin(playerid,12);
  8708. case 14: SetPlayerSkin(playerid,13);
  8709. }
  8710. }
  8711.  
  8712. case POLICEMAN:
  8713. {
  8714. GivePlayerWeapon(playerid,24,100);
  8715. GivePlayerWeapon(playerid,25,100);
  8716. switch(random(6))
  8717. {
  8718. case 0: SetPlayerSkin(playerid,280);
  8719. case 1: SetPlayerSkin(playerid,281);
  8720. case 2: SetPlayerSkin(playerid,282);
  8721. case 3: SetPlayerSkin(playerid,283);
  8722. case 4: SetPlayerSkin(playerid,284);
  8723. case 5: SetPlayerSkin(playerid,166);
  8724. case 6: SetPlayerSkin(playerid,165);
  8725. }
  8726. }
  8727. case TECG:
  8728. {
  8729. GivePlayerWeapon(playerid,32,2000);
  8730. SetPlayerArmour(playerid,90.0);
  8731. SetPlayerSkin(playerid,2);
  8732. SetPlayerHealth(playerid,200);
  8733. }
  8734. case STARS:
  8735. {
  8736. GivePlayerWeapon(playerid,24,200);
  8737. GivePlayerWeapon(playerid,27,300);
  8738. GivePlayerWeapon(playerid,31,500);
  8739. GivePlayerWeapon(playerid,29,400);
  8740. SetPlayerSkin(playerid,285);
  8741. SetPlayerArmour(playerid,94.0);
  8742. }
  8743. case BULL:
  8744. {
  8745. GivePlayerWeapon(playerid,26,2000);
  8746. SetPlayerArmour(playerid,90.0);
  8747. SetPlayerSkin(playerid,188);
  8748. SetPlayerHealth(playerid,200);
  8749. }
  8750. case INVISIBLA:
  8751. {
  8752. GivePlayerWeapon(playerid,23,20);
  8753. GivePlayerWeapon(playerid,29,150);
  8754. SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, 1);
  8755. SetPlayerArmour(playerid,75.0);
  8756. SetPlayerSkin(playerid,0);
  8757. SetPlayerHealth(playerid,45);
  8758. }
  8759. case RELITE:
  8760. {
  8761. GivePlayerWeapon(playerid,9,1);
  8762. }
  8763. case MAFIASOBB:
  8764. {
  8765. GivePlayerWeapon(playerid,24,90);
  8766. GivePlayerWeapon(playerid,30,250);
  8767. GivePlayerWeapon(playerid,26,100);
  8768. SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 1);
  8769. SetPlayerArmour(playerid,45.0);
  8770. SetPlayerSkin(playerid,113);
  8771. SetPlayerHealth(playerid,100);
  8772. }
  8773. case GENERAL:
  8774. {
  8775. GivePlayerWeapon(playerid,24,90);
  8776. GivePlayerWeapon(playerid,31,250);
  8777. GivePlayerWeapon(playerid,34,100);
  8778. GivePlayerWeapon(playerid,29,200);
  8779. SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, 1);
  8780. SetPlayerArmour(playerid,50.0);
  8781. SetPlayerSkin(playerid,61);
  8782. SetPlayerHealth(playerid,100);
  8783. }
  8784. case MARTIALCOACH:
  8785. {
  8786. SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);
  8787. SetPlayerArmour(playerid,70.0);
  8788. SetPlayerSkin(playerid,294);
  8789. SetPlayerHealth(playerid,100);
  8790. }
  8791. case SUPERHUMAN:
  8792. {
  8793. GivePlayerWeapon(playerid, 8, 1);
  8794. GivePlayerWeapon(playerid, 24, 999);
  8795. GivePlayerWeapon(playerid, 26, 999);
  8796. GivePlayerWeapon(playerid, 31, 999);
  8797. SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 1);
  8798. switch(random(2))
  8799. {
  8800. case 0: SetPlayerSkin(playerid, 294);
  8801. case 1: SetPlayerSkin(playerid, 298);
  8802. }
  8803. }
  8804. case MEDIC:
  8805. {
  8806. GivePlayerWeapon(playerid,23,350);
  8807. GivePlayerWeapon(playerid,25,150);
  8808. SetPlayerArmour(playerid,50);
  8809. switch(random(3))
  8810. {
  8811. case 0: SetPlayerSkin(playerid,274);
  8812. case 1: SetPlayerSkin(playerid,275);
  8813. case 2: SetPlayerSkin(playerid,276);
  8814. }
  8815. }
  8816.  
  8817. case SCOUT:
  8818. {
  8819. GivePlayerWeapon(playerid,34,40);
  8820. GivePlayerWeapon(playerid,23,400);
  8821. switch(random(3))
  8822. {
  8823. case 0: SetPlayerSkin(playerid,230);
  8824. case 1: SetPlayerSkin(playerid,252);
  8825. case 2: SetPlayerSkin(playerid,141);
  8826. }
  8827. }
  8828.  
  8829. case HEAVYMEDIC:
  8830. {
  8831. GivePlayerWeapon(playerid,24,150);
  8832. GivePlayerWeapon(playerid,25,200);
  8833. SetPlayerArmour(playerid,95);
  8834. SetPlayerSkin(playerid,274);
  8835. }
  8836.  
  8837. case FARMER:
  8838. {
  8839. GivePlayerWeapon(playerid,24,200);
  8840. GivePlayerWeapon(playerid,30,100);
  8841. GivePlayerWeapon(playerid,33,40);
  8842. SetPlayerArmour(playerid,60);
  8843. SetPlayerSkin(playerid,161);
  8844. }
  8845.  
  8846. case ENGINEER:
  8847. {
  8848. GivePlayerWeapon(playerid,24,80);
  8849. GivePlayerWeapon(playerid,25,40);
  8850. SetPlayerArmour(playerid,10);
  8851. SetPlayerSkin(playerid,27);
  8852. }
  8853.  
  8854. case SWAT:
  8855. {
  8856. GivePlayerWeapon(playerid,29,300);
  8857. GivePlayerWeapon(playerid,24,100);
  8858. SetPlayerArmour(playerid,25);
  8859. SetPlayerSkin(playerid,285);
  8860. }
  8861.  
  8862. case FBI:
  8863. {
  8864. GivePlayerWeapon(playerid,29,500);
  8865. GivePlayerWeapon(playerid,24,700);
  8866. GivePlayerWeapon(playerid,25,1000);
  8867. GivePlayerWeapon(playerid,31,1000);
  8868. SetPlayerArmour(playerid,55);
  8869. //SetPlayerAttachedObject( playerid,1,18978,2,0.065999,0.012999,0.000000,16.099998,81.499969,81.000000,1.000000,1.000000,1.000000);
  8870. SetPlayerSkin(playerid,286);
  8871. }
  8872.  
  8873. case HEAVYSHOTGUN:
  8874. {
  8875. GivePlayerWeapon(playerid,25,300);
  8876. GivePlayerWeapon(playerid,24,100);
  8877. SetPlayerArmour(playerid,50);
  8878. SetPlayerSkin(playerid,25);
  8879. }
  8880.  
  8881. case ADVANCEDMEDIC:
  8882. {
  8883. GivePlayerWeapon(playerid,31,100);
  8884. GivePlayerWeapon(playerid,24,150);
  8885. GivePlayerWeapon(playerid,25,350);
  8886. SetPlayerSkin(playerid,275);
  8887. SetPlayerArmour(playerid,95);
  8888. }
  8889.  
  8890. case ADVANCEDENGINEER:
  8891. {
  8892. GivePlayerWeapon(playerid,31,250);
  8893. GivePlayerWeapon(playerid,24,90);
  8894. SetPlayerArmour(playerid,30);
  8895. SetPlayerSkin(playerid,260);
  8896. }
  8897.  
  8898. case FEDERALAGENT:
  8899. {
  8900. GivePlayerWeapon(playerid,31,1000);
  8901. GivePlayerWeapon(playerid,24,500);
  8902. GivePlayerWeapon(playerid,25,400);
  8903. SetPlayerArmour(playerid,95);
  8904. SetPlayerSkin(playerid,163);
  8905. }
  8906.  
  8907. case KICKBACK:
  8908. {
  8909. GivePlayerWeapon(playerid,23,500);
  8910. GivePlayerWeapon(playerid,25,450);
  8911. GivePlayerWeapon(playerid,29,200);
  8912. SetPlayerSkin(playerid,149);
  8913. }
  8914.  
  8915. case ADVANCEDSCOUT:
  8916. {
  8917. GivePlayerWeapon(playerid,34,150);
  8918. GivePlayerWeapon(playerid,24,550);
  8919. SetPlayerArmour(playerid,50);
  8920. SetPlayerSkin(playerid,29);
  8921. }
  8922.  
  8923. case COWBOY:
  8924. {
  8925. GivePlayerWeapon(playerid,22,500);
  8926. GivePlayerWeapon(playerid,33,200);
  8927. SetPlayerArmour(playerid,80);
  8928. SetPlayerSkin(playerid,33);
  8929. switch(random(5))
  8930. {
  8931. case 0: SetPlayerSkin(playerid,34);
  8932. case 1: SetPlayerSkin(playerid,33);
  8933. case 2: SetPlayerSkin(playerid,161);
  8934. case 3: SetPlayerSkin(playerid,201);
  8935. case 4: SetPlayerSkin(playerid,198);
  8936. }
  8937. }
  8938.  
  8939. case ASSASSIN:
  8940. {
  8941. GivePlayerWeapon(playerid,28,100);
  8942. GivePlayerWeapon(playerid,33,500);
  8943. SetPlayerArmour(playerid,45);
  8944. SetPlayerSkin(playerid,123);
  8945. }
  8946.  
  8947. case PIMP:
  8948. {
  8949. GivePlayerWeapon(playerid,10,1);
  8950. GivePlayerWeapon(playerid,32,700);
  8951. SetPlayerArmour(playerid,50);
  8952. SetPlayerSkin(playerid,76);
  8953. }
  8954.  
  8955. case EXPERIENCEDSCOUT:
  8956. {
  8957. GivePlayerWeapon(playerid,34,500);
  8958. GivePlayerWeapon(playerid,23,500);
  8959. SetPlayerArmour(playerid,60);
  8960. SetPlayerSkin(playerid,23);
  8961. }
  8962.  
  8963. case SCIENTIST:
  8964. {
  8965. GivePlayerWeapon(playerid,23,299);
  8966. SetPlayerArmour(playerid,35);
  8967. SetPlayerSkin(playerid,240);
  8968. }
  8969.  
  8970. case TRAPMASTER:
  8971. {
  8972. GivePlayerWeapon(playerid,27,180);
  8973. GivePlayerWeapon(playerid,30,500);
  8974. SetPlayerArmour(playerid,40);
  8975. switch(random(2))
  8976. {
  8977. case 0: SetPlayerSkin(playerid,115);
  8978. case 1: SetPlayerSkin(playerid,271);
  8979. }
  8980. }
  8981.  
  8982. case VIPENGINEER:
  8983. {
  8984. GivePlayerWeapon(playerid,31,350);
  8985. GivePlayerWeapon(playerid,29,200);
  8986. GivePlayerWeapon(playerid,24,80);
  8987. SetPlayerArmour(playerid,30.0);
  8988. SetPlayerSkin(playerid,16);
  8989. }
  8990.  
  8991. case VIPMEDIC:
  8992. {
  8993. GivePlayerWeapon(playerid,31,1000);
  8994. GivePlayerWeapon(playerid,24,500);
  8995. SetPlayerArmour(playerid,70.0);
  8996. SetPlayerSkin(playerid,71);
  8997. }
  8998.  
  8999. case VIPSCOUT:
  9000. {
  9001. GivePlayerWeapon(playerid,34,130);
  9002. GivePlayerWeapon(playerid,24,500);
  9003. SetPlayerArmour(playerid,30.0);
  9004. SetPlayerSkin(playerid,294);
  9005. }
  9006. case VIPSAMURAI:
  9007. {
  9008. GivePlayerWeapon(playerid,8,6);
  9009. GivePlayerWeapon(playerid,27,500);
  9010. SetPlayerArmour(playerid,95.0);
  9011. SendClientMessage(playerid,COLOR_GRAD5,"You are a Ultimate Samurai, One hit katana kill and SPAS High Damage");
  9012. SendClientMessage(playerid,COLOR_GRAD5,"Press ALT to jump high");
  9013. SetPlayerSkin(playerid,203);
  9014. }
  9015. case SAMURAI:
  9016. {
  9017. GivePlayerWeapon(playerid,8,4);
  9018. SetPlayerSkin(playerid,204);
  9019. SetPlayerArmour(playerid,15.0);
  9020. }
  9021. case MARINE:
  9022. {
  9023. GivePlayerWeapon(playerid,24,500);
  9024. GivePlayerWeapon(playerid,27,500);
  9025. SendClientMessage(playerid,COLOR_GRAD5,"You are a marine, You can attack by ALT key");
  9026. SetPlayerArmour(playerid,65.0);
  9027. SetPlayerSkin(playerid,124);
  9028. }
  9029.  
  9030. case E_ENGINEER:
  9031. {
  9032. GivePlayerWeapon(playerid,24,100);
  9033. GivePlayerWeapon(playerid,25,50);
  9034. GivePlayerWeapon(playerid,31,250);
  9035. GivePlayerWeapon(playerid,29,100);
  9036. SetPlayerArmour(playerid,75.0);
  9037. SetPlayerSkin(playerid,260);
  9038. }
  9039.  
  9040. case SOLDIER:
  9041. {
  9042. GivePlayerWeapon(playerid,30,300);
  9043. GivePlayerWeapon(playerid,24,80);
  9044. SetPlayerArmour(playerid,70.0);
  9045. SetPlayerSkin(playerid,287);
  9046. }
  9047.  
  9048. case DOCTOR:
  9049. {
  9050. GivePlayerWeapon(playerid,23,150);
  9051. SetPlayerArmour(playerid,60.0);
  9052. SetPlayerSkin(playerid,70);
  9053. }
  9054. case WEAPONSDEALER:
  9055. {
  9056. GivePlayerWeapon(playerid,24,250);
  9057. GivePlayerWeapon(playerid,29,500);
  9058. SetPlayerArmour(playerid,50.0);
  9059. SetPlayerSkin(playerid,28);
  9060. }
  9061. case SHOTGUNSPECIAL:
  9062. {
  9063. GivePlayerWeapon(playerid,25,500);
  9064. SetPlayerArmour(playerid,50.0);
  9065. SetPlayerSkin(playerid,67);
  9066. }
  9067. case BUDDY:
  9068. {
  9069. GivePlayerWeapon(playerid,14,1);
  9070. GivePlayerWeapon(playerid,22,100);
  9071. SetPlayerArmour(playerid,90.0);
  9072. SetPlayerSkin(playerid,141);
  9073. }
  9074. case AKICK:
  9075. {
  9076. GivePlayerWeapon(playerid,27,200);
  9077. GivePlayerWeapon(playerid,24,50);
  9078. GivePlayerWeapon(playerid,29,125);
  9079. SetPlayerArmour(playerid,25);
  9080. SetPlayerSkin(playerid,121);
  9081. SetPlayerHealth(playerid,60);
  9082. }
  9083. case BOXER:
  9084. {
  9085. GivePlayerWeapon(playerid,5,1);
  9086. SetPlayerArmour(playerid,50.00);
  9087. SetPlayerAttachedObject( playerid,1,18978,2,0.065999,0.012999,0.000000,16.099998,81.499969,81.000000,1.000000,1.000000,1.000000);
  9088. SetPlayerSkin(playerid,81);
  9089. }
  9090. case GHOST:
  9091. {
  9092. GivePlayerWeapon(playerid,25,500);
  9093. GivePlayerWeapon(playerid,24,4000);
  9094. SetPlayerArmour(playerid,90.00);
  9095. ///PutPlayerInVehicle(playerid, vehicleid, 520);
  9096. SetPlayerAttachedObject( playerid, 0, 18693, 5, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
  9097. SetPlayerAttachedObject( playerid, 1, 18693, 6, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
  9098. SetPlayerAttachedObject( playerid, 2, 18703, 6, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
  9099. SetPlayerAttachedObject( playerid, 3, 18703, 5, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
  9100. SetPlayerAttachedObject( playerid,1,18978,2,0.065999,0.012999,0.000000,16.099998,81.499969,81.000000,1.000000,1.000000,1.000000);
  9101. SetPlayerSkin(playerid,17);
  9102. }
  9103. case BOMBER:
  9104. {
  9105. GivePlayerWeapon(playerid,35,4);
  9106. GivePlayerWeapon(playerid,31,1000);
  9107. GivePlayerWeapon(playerid,24,4000);
  9108. SetPlayerArmour(playerid,50.00);
  9109. SetPlayerSkin(playerid,122);
  9110. }
  9111. case MASTER:
  9112. {
  9113. GivePlayerWeapon(playerid,29,500);
  9114. SetPlayerArmour(playerid,50.00);
  9115. SetPlayerSkin(playerid,59);
  9116. }
  9117. case SMOKEUP:
  9118. {
  9119. GivePlayerWeapon(playerid,24,250);
  9120. GivePlayerWeapon(playerid,37,500);
  9121. GivePlayerWeapon(playerid,29,1000);
  9122. GivePlayerWeapon(playerid,31,1000);
  9123. SetPlayerArmour(playerid,95.00);
  9124. SetPlayerAttachedObject( playerid, 0, 18693, 5, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
  9125. SetPlayerAttachedObject( playerid, 1, 18693, 6, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
  9126. SetPlayerAttachedObject( playerid, 2, 18703, 6, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
  9127. SetPlayerAttachedObject( playerid, 3, 18703, 5, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
  9128. SetPlayerAttachedObject( playerid,1,18978,2,0.065999,0.012999,0.000000,16.099998,81.499969,81.000000,1.000000,1.000000,1.000000);
  9129. SetPlayerSkin(playerid,170);
  9130. }
  9131. }
  9132. }
  9133.  
  9134. if(team[playerid] == TEAM_ZOMBIE)
  9135. {
  9136. ResetPlayerWeapons(playerid);
  9137. GivePlayerWeapon(playerid,9,1);
  9138. SetPlayerArmour(playerid,0);
  9139. switch(pInfo[playerid][pZombieClass])
  9140. {
  9141. case STANDARDZOMBIE: SetPlayerSkin(playerid,181);
  9142. case MUTATEDZOMBIE: SetPlayerSkin(playerid,1);
  9143. case FASTZOMBIE:
  9144. {
  9145. SetPlayerSkin(playerid,162);
  9146. }
  9147. case REAPERZOMBIE: SetPlayerSkin(playerid,157);
  9148. case WITCHZOMBIE: SetPlayerSkin(playerid,196);
  9149. case BOOMERZOMBIE: SetPlayerSkin(playerid,264),SetPlayerHealth(playerid,30);
  9150. case STOMPERZOMBIE: SetPlayerSkin(playerid,239);
  9151. case SCREAMERZOMBIE: SetPlayerSkin(playerid,212);
  9152. case LEECH: SetPlayerSkin(playerid, 100), SetPlayerHealth(playerid, 125);
  9153. case FIREBREATHER:
  9154. {
  9155. switch(random(10))
  9156. {
  9157. case 0: SetPlayerSkin(playerid,152);
  9158. case 1: SetPlayerSkin(playerid,178);
  9159. case 2: SetPlayerSkin(playerid,237);
  9160. case 3: SetPlayerSkin(playerid,238);
  9161. case 4: SetPlayerSkin(playerid,246);
  9162. case 5: SetPlayerSkin(playerid,256);
  9163. case 6: SetPlayerSkin(playerid,257);
  9164. case 7: SetPlayerSkin(playerid,64);
  9165. case 8: SetPlayerSkin(playerid,63);
  9166. case 9: SetPlayerSkin(playerid,87);
  9167.  
  9168. }
  9169.  
  9170. }
  9171. case ADVANCEDMUTATED: SetPlayerSkin(playerid,15);
  9172. case HEAVYSCREAMER: SetPlayerSkin(playerid,134);
  9173. case FLESHEATER: SetPlayerSkin(playerid,213);
  9174. case ADVANCEDWITCH:
  9175. {
  9176. SetPlayerSkin(playerid,198);
  9177. }
  9178. case ADVANCEDBOOMER:
  9179. {
  9180. SetPlayerSkin(playerid,259);
  9181. }
  9182. case NEMESIS:
  9183. {
  9184. SetPlayerSkin(playerid,241);
  9185. SetPlayerHealth(playerid,200);
  9186. }
  9187. case HZOMBIE:
  9188. {
  9189. SetPlayerSkin(playerid,32);
  9190. }
  9191. case SLENDER:
  9192. {
  9193. SetPlayerSkin(playerid,100);
  9194. SetPlayerHealth(playerid,100);
  9195. }
  9196. case KZOM:
  9197. {
  9198. SetPlayerSkin(playerid,142);
  9199. }
  9200. case VAMPIRE:
  9201. {
  9202. SetPlayerSkin(playerid,240);
  9203. SetPlayerColor(playerid,COLOR_ZOMBIE);
  9204. }
  9205. case ADVSTOMPER:
  9206. {
  9207. SetPlayerSkin(playerid,239);
  9208. }
  9209. case ADVSCREAMER:
  9210. {
  9211. SetPlayerSkin(playerid,132);
  9212. }
  9213. }
  9214. }
  9215. return 1;
  9216. }
  9217.  
  9218. function ScreamerClearAnim(i) return ClearAnimations(i);
  9219.  
  9220. stock InfectPlayerStandard(playerid)
  9221. {
  9222. if(team[playerid] == TEAM_HUMAN)
  9223. {
  9224. if(pInfo[playerid][IsPlayerInfected] == 0)
  9225. {
  9226. pInfo[playerid][IsPlayerInfectedTimer] = SetTimerEx("StandardInfection",2000,1,"i",playerid);
  9227. SetPlayerColor(playerid,COLOR_RED);
  9228. TextDrawShowForPlayer(playerid,Infected[playerid]);
  9229. pInfo[playerid][IsPlayerInfected] = 1;
  9230. }
  9231. }
  9232. return 1;
  9233. }
  9234.  
  9235. stock InfectPlayerMutated(playerid)
  9236. {
  9237. if(team[playerid] == TEAM_HUMAN)
  9238. {
  9239. if(pInfo[playerid][IsPlayerInfected] == 0)
  9240. {
  9241. pInfo[playerid][IsPlayerInfectedTimer] = SetTimerEx("MutatedInfection",1500,1,"i",playerid);
  9242. SetPlayerColor(playerid,COLOR_RED);
  9243. TextDrawShowForPlayer(playerid,Infected[playerid]);
  9244. pInfo[playerid][IsPlayerInfected] = 1;
  9245. }
  9246. }
  9247. return 1;
  9248. }
  9249.  
  9250. stock InfectPlayerFleshEater(playerid)
  9251. {
  9252. if(team[playerid] == TEAM_HUMAN)
  9253. {
  9254. if(pInfo[playerid][IsPlayerInfected] == 0)
  9255. {
  9256. pInfo[playerid][IsPlayerInfectedTimer] = SetTimerEx("FleshEaterInfection",1500,1,"i",playerid);
  9257. SetPlayerColor(playerid,COLOR_RED);
  9258. TextDrawShowForPlayer(playerid,Infected[playerid]);
  9259. pInfo[playerid][IsPlayerInfected] = 1;
  9260. }
  9261. }
  9262. return 1;
  9263. }
  9264.  
  9265. stock CurePlayer(playerid)
  9266. {
  9267. if(pInfo[playerid][IsPlayerInfected] == 1)
  9268. {
  9269. KillTimer(pInfo[playerid][IsPlayerInfectedTimer]);
  9270. pInfo[playerid][IsPlayerInfected] = 0;
  9271. SetPlayerColor(playerid,COLOR_HUMAN);
  9272. ApplyAnimation(playerid,"MEDIC","CPR",4.1,0,1,1,1,1);
  9273. SetPlayerDrunkLevel(playerid,0);
  9274. TextDrawHideForPlayer(playerid,Infected[playerid]);
  9275. }
  9276. return 1;
  9277. }
  9278.  
  9279. function StandardInfection(playerid)
  9280. {
  9281. GameTextForPlayer(playerid,"~n~~n~~n~~n~~r~Infected",1000,5);
  9282. new Float:health;
  9283. GetPlayerHealth(playerid, health);
  9284. SetPlayerHealth(playerid, health - 2.5);
  9285. }
  9286.  
  9287. function MutatedInfection(playerid)
  9288. {
  9289. SetPlayerDrunkLevel(playerid,6000);
  9290. GameTextForPlayer(playerid,"~n~~n~~n~~n~~r~Infected",1000,5);
  9291. new Float:health;
  9292. GetPlayerHealth(playerid, health);
  9293. SetPlayerHealth(playerid, health - 4.5);
  9294. return 1;
  9295. }
  9296.  
  9297. function FleshEaterInfection(playerid)
  9298. {
  9299. SetPlayerDrunkLevel(playerid,7500);
  9300. GameTextForPlayer(playerid,"~n~~n~~n~~n~~r~Flesh Eater Infection",1000,5);
  9301. new Float:health;
  9302. GetPlayerHealth(playerid, health);
  9303. SetPlayerHealth(playerid, health - 10.0);
  9304. return 1;
  9305. }
  9306.  
  9307. stock CheckToStartMap()
  9308. {
  9309. if(Map[IsStarted] == 0)
  9310. {
  9311. LoadMap(LoadNewMap());
  9312. StartMap();
  9313. Map[IsStarted] = 1;
  9314. }
  9315. return 1;
  9316. }
  9317.  
  9318. stock ChangeCameraView(playerid)
  9319. {
  9320. new Float:px,Float:py,Float:pz,Float:pa;
  9321. GetPlayerPos(playerid, px, py, pz);
  9322. GetPlayerFacingAngle(playerid, pa);
  9323. SetPlayerCameraPos(playerid, px, py, pz+6.0);
  9324. SetPlayerCameraLookAt(playerid, px, py, pz);
  9325.  
  9326. return 1;
  9327. }
  9328.  
  9329. stock SendPlayerMaxAmmo( playerid )
  9330. {
  9331. new slot, weap, ammo;
  9332.  
  9333. for ( slot = 0; slot < 14; slot++ ) {
  9334. GetPlayerWeaponData( playerid, slot, weap, ammo );
  9335. if ( IsValidWeapon( weap ) ) {
  9336. GivePlayerWeapon( playerid, weap, 99999 );
  9337. }
  9338. }
  9339. return 1;
  9340. }
  9341.  
  9342. stock IsValidWeapon( weaponid )
  9343. {
  9344. if ( weaponid > 0 && weaponid < 19 || weaponid > 21 && weaponid < 47 ) return 1;
  9345. return 0;
  9346. }
  9347.  
  9348. stock GetXPName()
  9349. {
  9350. new str[64];
  9351. switch(Map[XPType])
  9352. {
  9353. case 1: str = "~y~Normal ~w~XP";
  9354. case 2: str = "~g~Double ~w~XP";
  9355. case 3: str = "~b~Triple ~w~XP";
  9356. case 4: str = "~r~Super ~w~XP";
  9357. }
  9358. return str;
  9359. }
  9360.  
  9361. stock NeedXP(playerid,xprequires)
  9362. {
  9363. if(pInfo[playerid][pXP] == xprequires) return 1;
  9364. return 1;
  9365. }
  9366.  
  9367. stock NeedKills(playerid,killrequires)
  9368. {
  9369. if(pInfo[playerid][pKills] == killrequires) return 1;
  9370. return 1;
  9371. }
  9372.  
  9373. stock CheckToLevelOrRankUp(killerid)
  9374. {
  9375. new str[256];
  9376.  
  9377. if(pInfo[killerid][pKills] == 5) { pInfo[killerid][pRank] = 1,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Recruit I",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9378. if(pInfo[killerid][pKills] == 10) { pInfo[killerid][pRank] = 2,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Recruit II",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9379. if(pInfo[killerid][pKills] == 20) { pInfo[killerid][pRank] = 3,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Recruit III",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9380. if(pInfo[killerid][pKills] == 40) { pInfo[killerid][pRank] = 4,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Private I",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9381. if(pInfo[killerid][pKills] == 80) { pInfo[killerid][pRank] = 5,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Private II",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9382. if(pInfo[killerid][pKills] == 100) { pInfo[killerid][pRank] = 6,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Private III",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9383. if(pInfo[killerid][pKills] == 140) { pInfo[killerid][pRank] = 7,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Sergeant I",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9384. if(pInfo[killerid][pKills] == 180) { pInfo[killerid][pRank] = 8,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Sergeant II",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9385. if(pInfo[killerid][pKills] == 220) { pInfo[killerid][pRank] = 9,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Sergeant III",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9386. if(pInfo[killerid][pKills] == 260) { pInfo[killerid][pRank] = 10,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Corporal I",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9387. if(pInfo[killerid][pKills] == 310) { pInfo[killerid][pRank] = 11,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Corporal II",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9388. if(pInfo[killerid][pKills] == 350) { pInfo[killerid][pRank] = 12,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Corporal III",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9389. if(pInfo[killerid][pKills] == 400) { pInfo[killerid][pRank] = 13,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Rapier I",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9390. if(pInfo[killerid][pKills] == 420) { pInfo[killerid][pRank] = 14,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Rapier II",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9391. if(pInfo[killerid][pKills] == 460) { pInfo[killerid][pRank] = 15,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Rapier III",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9392. if(pInfo[killerid][pKills] == 490) { pInfo[killerid][pRank] = 16,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank KillBot I",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9393. if(pInfo[killerid][pKills] == 510) { pInfo[killerid][pRank] = 17,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank KillBot II",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9394. if(pInfo[killerid][pKills] == 590) { pInfo[killerid][pRank] = 18,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank KillBot III",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9395. if(pInfo[killerid][pKills] == 600) { pInfo[killerid][pRank] = 19,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Commander I",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9396. if(pInfo[killerid][pKills] == 750) { pInfo[killerid][pRank] = 20,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Commander II",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9397. if(pInfo[killerid][pKills] == 800) { pInfo[killerid][pRank] = 21,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Commander III",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9398. if(pInfo[killerid][pKills] == 850) { pInfo[killerid][pRank] = 22,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Colonel",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9399. if(pInfo[killerid][pKills] == 890) { pInfo[killerid][pRank] = 23,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Major",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9400. if(pInfo[killerid][pKills] == 910) { pInfo[killerid][pRank] = 24,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Major General",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9401. if(pInfo[killerid][pKills] == 960) { pInfo[killerid][pRank] = 25,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank General",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9402. if(pInfo[killerid][pKills] == 990) { pInfo[killerid][pRank] = 26,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Rascal",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9403. if(pInfo[killerid][pKills] == 1000) { pInfo[killerid][pRank] = 27,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Bull Aye",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9404. if(pInfo[killerid][pKills] == 1150) { pInfo[killerid][pRank] = 28,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Extreme-Killer",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9405. if(pInfo[killerid][pKills] == 1250) { pInfo[killerid][pRank] = 29,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Survivalist",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9406. if(pInfo[killerid][pKills] == 1300) { pInfo[killerid][pRank] = 30,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Survivalist-Master",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9407. if(pInfo[killerid][pKills] == 1370) { pInfo[killerid][pRank] = 31,format(str,sizeof(str),""chat""COL_PINK" %s has ranked up to rank Tagbot",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9408. if(pInfo[killerid][pKills] == 1400) { pInfo[killerid][pRank] = 32,format(str,sizeof(str),""chat""COL_PINK" %s has hit the max rank Killing Machine, Congratz!",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
  9409. return 1;
  9410. }
  9411.  
  9412. function HideiKilled(playerid)
  9413. {
  9414. TextDrawHideForPlayer(playerid, iKilled[playerid]);
  9415. return 1;
  9416. }
  9417.  
  9418. function C4Explode(playerid)
  9419. {
  9420. new Float:X,Float:Y,Float:Z;
  9421. new Float:hp;
  9422. GetObjectPos(c4Obj[playerid],X,Y,Z);
  9423. foreach(Player,i)
  9424. {
  9425. if(IsPlayerInRangeOfPoint(i, 3.5,X,Y,Z))
  9426. {
  9427. if(team[i] == TEAM_ZOMBIE)
  9428. {
  9429. GetPlayerHealth(i,hp);
  9430. SetPlayerHealth(i,hp-35);
  9431. }
  9432. }
  9433. }
  9434. CreateExplosion(X,Y,Z,1,10.0);
  9435. DestroyObject(c4Obj[playerid]);
  9436. return 1;
  9437. }
  9438.  
  9439. function NemesisSmoke(playerid)
  9440. {
  9441. RemovePlayerAttachedObject(playerid,7);
  9442. return 1;
  9443. }
  9444.  
  9445. stock CreateEvacMaps()
  9446. {
  9447. if(Map[EvacType] == 1)
  9448. {
  9449. CreateObject(19257,-1429.09,-981.20,193.10,3.28,0.00,5.47);
  9450. CreateObject(19257,-1395.39,-948.29,197.89,5.46,357.79,30.09);
  9451. CreateObject(19257,-1486.69,-954.70,191.69,13.12,1.12,280.79);
  9452. CreateObject(790,-1490.30,-948.90,188.10,0.00,0.00,41.56);
  9453. CreateObject(790,-1396.19,-955.59,197.00,0.00,0.00,196.38);
  9454. CreateObject(790,-1435.79,-984.19,189.60,0.00,0.00,127.25);
  9455. CreateObject(2060,-1433.19,-985.50,192.80,0.00,0.00,0.00);
  9456. CreateObject(2060,-1432.19,-985.40,192.69,0.00,0.00,0.00);
  9457. CreateObject(2060,-1431.09,-985.20,192.60,0.00,0.00,0.00);
  9458. CreateObject(2060,-1430.19,-984.90,192.50,0.00,0.00,0.00);
  9459. CreateObject(2060,-1429.19,-984.79,192.50,0.00,0.00,0.00);
  9460. CreateObject(2060,-1428.09,-984.70,192.50,0.00,0.00,0.00);
  9461. CreateObject(2060,-1427.09,-984.59,192.50,0.00,0.00,0.00);
  9462. CreateObject(2060,-1426.09,-984.50,192.39,0.00,0.00,0.00);
  9463. CreateObject(2060,-1425.00,-984.40,192.39,0.00,0.00,0.00);
  9464. CreateObject(2060,-1424.09,-984.29,192.39,0.00,0.00,0.00);
  9465. CreateObject(2060,-1424.30,-984.29,192.69,0.00,0.00,0.00);
  9466. CreateObject(2060,-1425.50,-984.50,192.69,0.00,0.00,0.00);
  9467. CreateObject(2060,-1426.50,-984.59,192.69,0.00,0.00,0.00);
  9468. CreateObject(2060,-1427.50,-984.59,192.69,0.00,0.00,0.00);
  9469. CreateObject(2060,-1428.40,-984.90,192.80,0.00,0.00,0.00);
  9470. CreateObject(2060,-1429.40,-985.00,192.80,0.00,0.00,0.00);
  9471. CreateObject(2060,-1430.50,-985.00,192.80,0.00,0.00,0.00);
  9472. CreateObject(2060,-1431.50,-985.29,192.89,0.00,0.00,0.00);
  9473. CreateObject(2060,-1432.50,-985.59,193.00,0.00,0.00,0.00);
  9474. CreateObject(2060,-1433.19,-985.29,193.10,0.00,0.00,0.00);
  9475. CreateObject(2060,-1431.90,-985.40,193.30,0.00,0.00,0.00);
  9476. CreateObject(2060,-1431.80,-985.00,193.19,0.00,0.00,0.00);
  9477. CreateObject(2060,-1430.90,-984.90,193.19,0.00,0.00,0.00);
  9478. CreateObject(2060,-1429.90,-984.79,193.19,0.00,0.00,0.00);
  9479. CreateObject(2060,-1428.90,-984.70,193.19,0.00,0.00,0.00);
  9480. CreateObject(2060,-1427.90,-984.59,193.19,0.00,0.00,0.00);
  9481. CreateObject(2060,-1427.00,-984.59,193.10,0.00,0.00,0.00);
  9482. CreateObject(2060,-1425.90,-984.50,193.10,0.00,0.00,0.00);
  9483. CreateObject(2060,-1424.80,-984.40,193.00,0.00,0.00,0.00);
  9484. CreateObject(2060,-1424.09,-984.29,193.00,0.00,0.00,0.00);
  9485. CreateObject(2060,-1433.09,-984.70,193.19,0.00,0.00,0.00);
  9486. CreateObject(2060,-1431.90,-984.40,193.19,0.00,0.00,0.00);
  9487. CreateObject(2060,-1430.69,-984.29,193.10,0.00,0.00,0.00);
  9488. CreateObject(2060,-1429.50,-984.50,193.50,0.00,0.00,0.00);
  9489. CreateObject(2060,-1428.50,-984.09,193.10,0.00,0.00,0.00);
  9490. CreateObject(2060,-1427.00,-984.40,193.39,0.00,0.00,0.00);
  9491. CreateObject(2060,-1425.80,-984.00,193.19,0.00,0.00,0.00);
  9492. CreateObject(2060,-1424.59,-983.79,193.19,0.00,0.00,0.00);
  9493. CreateObject(2060,-1427.19,-983.70,193.19,0.00,0.00,0.00);
  9494. CreateObject(2060,-1425.69,-983.09,193.30,0.00,0.00,0.00);
  9495. CreateObject(2060,-1424.50,-983.09,193.30,0.00,0.00,0.00);
  9496. CreateObject(2060,-1425.69,-983.59,193.19,0.00,0.00,0.00);
  9497. CreateObject(2060,-1432.09,-983.79,193.30,0.00,0.00,0.00);
  9498. CreateObject(2060,-1430.50,-983.79,193.30,0.00,0.00,0.00);
  9499. CreateObject(2060,-1429.30,-983.90,193.19,0.00,0.00,0.00);
  9500. CreateObject(2060,-1429.00,-983.50,194.39,0.00,0.00,5.47);
  9501. CreateObject(2060,-1394.30,-950.09,199.00,0.00,0.00,211.35);
  9502. CreateObject(2060,-1489.59,-953.09,191.89,0.00,0.00,284.11);
  9503. CreateObject(2060,-1489.40,-954.20,191.80,0.00,0.00,284.11);
  9504. CreateObject(2060,-1489.19,-955.20,191.80,0.00,0.00,284.11);
  9505. CreateObject(2060,-1489.00,-956.00,191.80,0.00,0.00,284.11);
  9506. CreateObject(2060,-1488.80,-957.09,191.80,0.00,0.00,284.11);
  9507. CreateObject(2060,-1489.80,-952.59,192.19,0.00,0.00,284.11);
  9508. CreateObject(2060,-1489.50,-953.59,192.19,0.00,0.00,284.11);
  9509. CreateObject(2060,-1489.30,-954.59,192.10,0.00,0.00,284.11);
  9510. CreateObject(2060,-1489.09,-955.70,192.10,0.00,0.00,284.11);
  9511. CreateObject(2060,-1488.90,-956.79,192.10,0.00,0.00,284.11);
  9512. CreateObject(2060,-1489.09,-955.09,192.60,0.00,0.00,284.11);
  9513. CreateObject(3884,-1395.19,-948.40,201.60,0.00,1.09,212.76);
  9514. CreateObject(3095,-1455.59,-922.40,200.50,0.00,358.90,269.99);
  9515. CreateObject(3885,-1454.69,-923.29,202.19,0.00,0.00,0.00);
  9516. CreateObject(3885,-1429.19,-981.40,197.00,4.37,0.00,0.00);
  9517. CreateObject(3885,-1487.19,-954.79,195.10,0.00,353.43,358.90);
  9518. CreateObject(3885,-1395.30,-948.40,201.80,5.47,1.09,359.89);
  9519. CreateObject(3884,-1454.30,-923.29,202.10,0.00,0.00,359.25);
  9520. CreateObject(3884,-1429.30,-981.29,196.80,0.00,0.00,182.98);
  9521. CreateObject(3884,-1487.00,-954.90,195.10,352.33,1.10,98.38);
  9522. CreateObject(3279,-1480.50,-961.20,192.30,358.90,356.71,92.34);
  9523. CreateObject(3279,-1382.09,-941.19,198.00,0.00,0.00,213.32);
  9524. CreateObject(3279,-1416.29,-975.59,194.19,358.90,356.70,92.41);
  9525. CreateObject(987,-1444.29,-983.50,192.50,0.00,0.00,0.00);
  9526. CreateObject(987,-1456.19,-983.59,192.50,0.00,0.00,0.00);
  9527. CreateObject(987,-1468.19,-983.59,192.60,0.00,0.00,0.00);
  9528. CreateObject(987,-1479.39,-979.59,192.60,0.00,0.00,340.25);
  9529. CreateObject(987,-1483.90,-968.40,191.10,0.00,0.00,293.06);
  9530. CreateObject(987,-1487.09,-958.19,191.10,0.00,0.00,288.67);
  9531. CreateObject(987,-1489.90,-939.79,191.69,0.00,0.00,277.72);
  9532. CreateObject(987,-1491.50,-928.09,191.69,0.00,0.00,277.71);
  9533. CreateObject(987,-1483.59,-918.69,194.50,1.08,6.56,230.32);
  9534. CreateObject(987,-1473.50,-913.50,197.69,1.08,6.56,208.31);
  9535. CreateObject(987,-1462.30,-912.20,200.60,359.99,359.99,187.59);
  9536. CreateObject(987,-1473.50,-913.50,200.60,1.08,6.56,208.31);
  9537. CreateObject(987,-1483.90,-919.09,199.19,1.08,6.56,230.32);
  9538. CreateObject(987,-1491.50,-928.09,198.00,0.00,0.00,277.71);
  9539. CreateObject(987,-1489.90,-939.79,198.00,0.00,0.00,277.72);
  9540. CreateObject(987,-1487.09,-958.20,196.80,0.00,0.00,288.67);
  9541. CreateObject(987,-1483.90,-968.40,196.69,0.00,0.00,293.06);
  9542. CreateObject(987,-1479.40,-979.59,196.69,0.00,0.00,340.25);
  9543. CreateObject(987,-1468.19,-983.59,196.60,0.00,0.00,0.00);
  9544. CreateObject(987,-1456.19,-983.59,196.60,0.00,0.00,0.00);
  9545. CreateObject(987,-1444.30,-983.50,196.60,0.00,0.00,0.00);
  9546. CreateObject(987,-1450.50,-910.59,200.60,359.98,359.98,187.59);
  9547. CreateObject(987,-1438.69,-909.09,200.39,359.98,359.98,187.59);
  9548. CreateObject(987,-1427.30,-909.20,196.39,359.98,359.98,180.42);
  9549. CreateObject(987,-1427.30,-909.20,200.10,359.98,359.98,180.41);
  9550. CreateObject(987,-1415.69,-909.20,194.50,359.98,359.98,180.41);
  9551. CreateObject(987,-1415.50,-909.09,200.10,359.98,359.98,180.41);
  9552. CreateObject(987,-1404.00,-909.09,190.69,359.98,359.98,180.41);
  9553. CreateObject(987,-1404.00,-909.09,195.89,359.98,359.98,180.41);
  9554. CreateObject(987,-1404.00,-909.09,200.10,359.98,359.98,180.41);
  9555. CreateObject(987,-1392.30,-909.00,189.00,359.98,359.98,180.41);
  9556. CreateObject(987,-1392.30,-909.00,194.00,359.98,359.98,180.41);
  9557. CreateObject(987,-1392.30,-909.00,200.00,359.98,359.98,180.41);
  9558. CreateObject(987,-1380.30,-908.90,186.10,359.98,359.98,180.41);
  9559. CreateObject(987,-1380.30,-908.90,192.39,359.98,359.98,180.41);
  9560. CreateObject(987,-1380.30,-908.90,197.10,359.98,359.98,180.41);
  9561. CreateObject(987,-1380.30,-908.90,200.00,359.98,359.98,180.41);
  9562. CreateObject(987,-1373.40,-918.40,186.10,359.98,359.98,125.45);
  9563. CreateObject(987,-1373.40,-918.40,191.19,359.97,359.97,125.44);
  9564. CreateObject(987,-1373.40,-918.40,196.39,359.97,359.97,125.44);
  9565. CreateObject(987,-1373.40,-918.40,200.00,359.97,359.97,125.44);
  9566. CreateObject(987,-1374.80,-930.09,190.50,359.97,5.45,83.73);
  9567. CreateObject(987,-1374.90,-929.70,195.00,359.97,2.16,83.73);
  9568. CreateObject(987,-1374.90,-929.70,200.50,359.97,2.16,83.72);
  9569. CreateObject(987,-1376.00,-941.59,194.19,359.97,5.44,83.73);
  9570. CreateObject(987,-1376.09,-941.20,199.10,359.97,3.25,83.73);
  9571. CreateObject(987,-1376.09,-941.20,201.19,359.97,3.25,83.72);
  9572. CreateObject(987,-1380.09,-952.20,197.39,357.78,358.87,69.37);
  9573. CreateObject(987,-1380.09,-952.20,201.00,357.78,358.87,69.37);
  9574. CreateObject(987,-1391.09,-979.00,191.80,357.78,358.87,37.37);
  9575. CreateObject(987,-1426.09,-981.50,192.50,0.00,0.00,0.00);
  9576. CreateObject(987,-1414.09,-981.50,192.00,0.00,0.00,0.00);
  9577. CreateObject(987,-1402.80,-981.40,192.00,0.00,0.00,12.04);
  9578. CreateObject(987,-1426.09,-981.50,196.39,0.00,0.00,0.00);
  9579. CreateObject(987,-1414.09,-981.50,196.39,0.00,0.00,0.00);
  9580. CreateObject(987,-1402.80,-981.40,196.39,0.00,0.00,12.04);
  9581. CreateObject(987,-1391.09,-979.00,196.39,357.78,358.86,37.37);
  9582. CreateObject(11488,-1437.40,-952.59,200.10,0.00,0.00,346.86);
  9583. CreateObject(2745,-1394.59,-949.70,198.39,0.00,0.00,29.67);
  9584. CreateObject(3265,-1380.19,-962.79,196.39,0.00,0.00,85.73);
  9585. CreateObject(3265,-1489.50,-958.20,193.60,0.00,0.00,277.62);
  9586. CreateObject(3265,-1423.89,-983.19,193.10,0.00,0.00,1.12);
  9587. CreateObject(2745,-1429.09,-982.90,193.69,0.00,0.00,14.33);
  9588. CreateObject(2745,-1488.80,-955.00,192.00,0.00,0.00,280.90);
  9589. CreateObject(2892,-1381.50,-966.59,196.10,4.36,4.39,359.66);
  9590. CreateObject(987,-1381.69,-962.00,196.60,357.78,358.87,80.32);
  9591. CreateObject(18850,-1425.80,-925.59,195.10,0.00,0.00,0.00);
  9592. AddStaticVehicleEx(432,-1434.40,-947.09,201.10,262.15,-1,-1,50);
  9593. AddStaticVehicleEx(433,-1445.09,-963.79,202.00,0.00,-1,-1,50);
  9594. AddStaticVehicleEx(433,-1450.69,-963.09,202.69,0.00,-1,-1,50);
  9595. CreateObject(2985,-1394.40,-950.09,198.30,0.00,0.00,305.03);
  9596. CreateObject(2985,-1488.80,-955.00,191.80,358.94,16.42,193.21);
  9597. CreateObject(2985,-1429.09,-983.19,193.60,358.94,16.42,276.75);
  9598. AddStaticVehicleEx(471,-1467.09,-944.40,203.69,262.10,-1,-1,50);
  9599. AddStaticVehicleEx(470,-1435.00,-958.70,201.10,270.90,-1,-1,50);
  9600. AddStaticVehicleEx(470,-1435.19,-953.40,201.10,270.90,-1,-1,50);
  9601. CreateObject(1596,-1425.40,-968.20,205.19,0.00,0.00,3.43);
  9602. CreateObject(1596,-1459.30,-926.59,203.00,0.00,0.00,329.33);
  9603. CreateObject(1596,-1437.00,-967.00,205.19,0.00,0.00,271.08);
  9604. AddStaticVehicleEx(548,-1427.90,-925.59,210.30,269.81,-1,-1,50);
  9605. CreateObject(3030,-1414.09,-937.09,207.39,0.00,0.00,0.00);
  9606. CreateObject(3030,-1427.19,-978.40,194.60,358.91,353.35,229.40);
  9607. CreateObject(3030,-1484.79,-951.69,193.39,0.00,0.00,52.66);
  9608. CreateObject(3030,-1395.29,-945.59,199.19,19.70,0.00,172.40);
  9609. CreateObject(3030,-1429.30,-966.70,202.69,358.91,353.35,284.36);
  9610. CreateObject(3763,-1471.90,-919.29,233.80,0.00,0.00,0.00);
  9611. CreateObject(3932,-1467.80,-945.09,204.69,0.00,0.00,353.43);
  9612. CreateObject(3932,-1460.00,-939.59,203.39,357.81,357.80,267.61);
  9613. CreateObject(3066,-1433.00,-963.59,200.89,358.83,1.09,269.87);
  9614. CreateObject(3046,-1424.69,-967.40,200.19,0.00,0.00,0.00);
  9615. CreateObject(3046,-1425.90,-967.40,200.19,0.00,0.00,0.00);
  9616. CreateObject(3046,-1427.00,-967.29,200.19,0.00,0.00,0.00);
  9617. CreateObject(3046,-1428.00,-967.29,200.30,0.00,0.00,0.00);
  9618. CreateObject(2973,-1436.09,-967.00,200.00,0.00,0.00,0.00);
  9619. CreateObject(2973,-1432.30,-966.79,200.00,0.00,0.00,0.00);
  9620. CreateObject(2973,-1429.30,-967.00,199.89,0.00,0.00,0.00);
  9621. CreateObject(930,-1470.00,-947.29,203.50,0.00,0.00,0.00);
  9622. CreateObject(930,-1468.69,-947.40,203.60,0.00,0.00,356.71);
  9623. CreateObject(2669,-1430.09,-932.59,201.80,0.00,0.00,0.00);
  9624. CreateObject(2068,-1433.59,-931.90,201.39,273.24,0.00,59.27);
  9625. CreateObject(2068,-1429.40,-927.59,201.39,273.24,0.00,4.26);
  9626. CreateObject(2068,-1423.69,-929.00,201.00,273.24,0.00,329.12);
  9627. CreateObject(2068,-1419.50,-932.29,201.00,273.24,0.00,320.35);
  9628. CreateObject(2068,-1431.40,-928.59,201.39,273.24,0.00,33.97);
  9629. CreateObject(16782,-1430.09,-930.29,201.89,0.00,0.00,268.82);
  9630. CreateObject(3877,-1399.00,-947.20,203.10,0.00,0.00,0.00);
  9631. CreateObject(3877,-1451.80,-926.09,202.80,0.00,0.00,0.00);
  9632. CreateObject(3877,-1484.09,-956.79,197.30,0.00,0.00,0.00);
  9633. CreateObject(3877,-1431.90,-978.70,198.30,0.00,0.00,0.00);
  9634. CreateObject(790,-1470.50,-976.50,191.60,0.00,0.00,127.25);
  9635. CreateObject(790,-1467.19,-981.79,191.60,0.00,0.00,127.25);
  9636. CreateObject(790,-1470.30,-956.09,190.69,0.00,0.00,231.63);
  9637. CreateObject(790,-1471.40,-936.59,190.69,0.00,0.00,269.00);
  9638. CreateObject(790,-1381.09,-922.90,192.50,0.00,358.90,272.22);
  9639. CreateObject(790,-1389.50,-933.00,192.50,0.00,358.90,206.26);
  9640. CreateObject(1554,-1466.09,-947.79,203.10,0.00,0.00,0.00);
  9641. CreateObject(1554,-1467.09,-947.59,203.19,0.00,0.00,0.00);
  9642. CreateObject(1554,-1467.80,-947.20,203.19,0.00,0.00,0.00);
  9643. CreateObject(1213,-1381.40,-963.59,196.60,0.00,0.00,0.00);
  9644. CreateObject(1213,-1381.50,-966.50,196.19,0.00,0.00,0.00);
  9645. CreateObject(1213,-1381.50,-968.29,196.00,0.00,0.00,0.00);
  9646. CreateObject(1213,-1381.50,-969.90,196.00,0.00,0.00,0.00);
  9647. CreateObject(5821,-1443.80,-928.59,203.19,0.00,0.00,358.90);
  9648. CreateObject(967,-1381.59,-971.00,195.60,0.00,0.00,0.00);
  9649. CreateObject(2985,-1381.19,-971.00,195.89,0.00,6.56,1.09);
  9650. CreateObject(2745,-1381.40,-971.00,196.19,0.00,0.00,94.52);
  9651. CreateObject(1250,-1381.90,-962.59,197.50,0.00,0.00,0.00);
  9652. CreateObject(1374,-1382.00,-963.29,197.89,0.00,0.00,182.48);
  9653. CreateObject(18762,-1382.09,-962.50,195.00,0.00,0.00,0.00);
  9654. CreateObject(17055,-1463.19,-961.59,202.60,13.13,1.12,330.07);
  9655. CreateObject(16662,-1418.09,-928.79,201.30,0.00,0.00,288.25);
  9656. CreateObject(18765,-1418.19,-929.29,198.69,270.11,180.00,133.86);
  9657. CreateObject(18765,-1425.30,-925.09,198.69,270.11,179.99,165.61);
  9658. CreateObject(18765,-1431.19,-923.40,198.69,270.00,175.62,160.18);
  9659. CreateObject(3807,-1424.90,-933.70,200.10,359.61,290.76,8.75);
  9660. CreateObject(3791,-1458.69,-937.70,202.30,0.00,8.75,0.00);
  9661. CreateObject(3791,-1458.80,-939.29,202.30,0.00,8.75,0.00);
  9662. CreateObject(3791,-1458.90,-940.90,202.30,0.00,8.75,0.00);
  9663. CreateObject(3795,-1461.59,-939.90,202.80,0.00,0.00,85.73);
  9664. CreateObject(18765,-1435.40,-926.90,198.69,270.11,179.99,246.85);
  9665. //Objects:209,Vehicles:7
  9666. }
  9667.  
  9668. if(Map[EvacType] == 2)
  9669. {
  9670. Map[AllowWater] = 1;
  9671. CreateObject(10794,3051.59,494.00,4.50,0.00,0.00,44.98);
  9672. CreateObject(10793,2999.39,441.50,29.60,0.00,0.00,44.99);
  9673. CreateObject(10795,3050.50,492.89,14.50,0.00,0.00,44.99);
  9674. CreateObject(1691,3018.39,504.29,0.69,0.00,274.30,330.28);
  9675. CreateObject(18762,3028.80,497.20,0.60,0.00,91.17,354.48);
  9676. CreateObject(18762,3030.00,499.60,0.60,0.00,91.16,310.61);
  9677. CreateObject(18762,3026.80,503.00,0.69,0.00,91.16,316.08);
  9678. CreateObject(18762,3024.19,497.79,0.60,0.00,88.97,351.49);
  9679. CreateObject(18762,3023.39,505.79,0.80,0.00,91.15,324.84);
  9680. CreateObject(18762,3019.69,498.89,0.60,0.00,91.17,339.45);
  9681. CreateObject(18762,3017.89,501.70,0.69,0.00,91.17,245.05);
  9682. CreateObject(18762,3020.00,505.79,0.80,0.00,91.17,240.16);
  9683. CreateObject(18765,3023.80,502.20,-4.69,0.01,88.98,56.17);
  9684. CreateObject(18762,3024.60,498.20,-0.30,0.00,91.17,341.64);
  9685. CreateObject(18762,3022.00,499.70,-0.20,0.00,91.17,326.14);
  9686. CreateObject(18762,3020.30,500.79,-0.20,0.00,91.17,326.14);
  9687. CreateObject(18762,3019.89,500.10,-0.20,0.00,91.17,326.14);
  9688. CreateObject(18762,3019.69,499.79,-0.20,0.00,91.17,340.37);
  9689. CreateObject(18762,3029.80,498.89,-0.20,0.00,91.17,314.10);
  9690. CreateObject(18762,3029.19,498.60,-0.20,0.00,91.17,314.09);
  9691. CreateObject(18762,3029.10,497.70,-0.20,0.00,91.17,345.85);
  9692. CreateObject(18762,3029.30,498.10,-0.20,0.00,91.17,339.28);
  9693. CreateObject(18762,3033.10,496.00,0.50,0.00,91.16,310.61);
  9694. CreateObject(18762,3033.30,496.70,0.50,0.00,91.17,354.47);
  9695. CreateObject(18762,3020.60,499.79,-0.20,0.00,91.17,326.14);
  9696. CreateObject(11245,3019.89,507.79,2.90,0.00,312.80,147.30);
  9697. CreateObject(2983,3022.19,504.10,0.80,318.43,2.92,229.23);
  9698. CreateObject(3350,3022.80,504.79,-0.40,0.00,0.00,47.22);
  9699. CreateObject(2985,3031.19,497.39,0.40,0.00,355.62,327.07);
  9700. CreateObject(2207,3021.89,503.10,0.30,0.00,0.00,46.13);
  9701. CreateObject(2985,3020.60,498.60,0.40,0.00,355.61,260.07);
  9702. CreateObject(2985,3025.19,504.60,0.50,0.00,355.61,48.50);
  9703. CreateObject(9831,3016.69,505.70,0.30,43.79,0.00,63.68);
  9704. CreateObject(18762,3031.30,502.00,0.60,0.00,91.16,46.12);
  9705. CreateObject(18762,3032.00,501.29,0.60,0.00,91.15,46.12);
  9706. CreateObject(18762,3032.69,500.70,0.60,0.00,91.15,46.12);
  9707. CreateObject(18850,3023.39,466.29,7.19,0.00,0.00,314.92);
  9708. AddStaticVehicleEx(548,3023.89,466.20,22.39,224.77,-1,-1,50);
  9709. CreateObject(3884,3103.10,546.00,20.39,0.00,0.00,25.75);
  9710. CreateObject(3277,3055.39,479.00,13.80,0.00,0.00,0.00);
  9711. CreateObject(3277,3103.60,546.40,20.50,0.00,0.00,156.13);
  9712. CreateObject(3884,3055.50,479.29,13.60,0.00,0.00,181.88);
  9713. CreateObject(3877,2999.10,463.89,28.79,0.00,0.00,45.03);
  9714. CreateObject(3877,3021.59,441.09,28.79,0.00,0.00,45.03);
  9715. CreateObject(3877,3098.39,547.90,20.50,0.00,0.00,45.03);
  9716. CreateObject(3877,3060.19,479.39,15.39,0.00,0.00,45.03);
  9717. CreateObject(3066,3080.19,500.29,14.80,0.00,0.00,314.96);
  9718. CreateObject(3066,3089.30,509.50,14.80,0.00,0.00,314.96);
  9719. CreateObject(3066,3097.80,517.79,14.80,0.00,0.00,314.96);
  9720. AddStaticVehicleEx(470,3041.89,496.00,14.89,43.94,-1,-1,50);
  9721. AddStaticVehicleEx(470,3049.60,488.39,14.89,43.93,-1,-1,50);
  9722. CreateObject(13489,3029.69,491.60,15.69,0.00,0.00,314.96);
  9723. CreateObject(8885,3114.60,539.90,17.20,0.00,0.00,57.22);
  9724. CreateObject(11237,3082.39,524.79,20.39,0.00,0.00,46.20);
  9725. CreateObject(3791,3044.30,465.50,14.19,0.00,0.00,0.00);
  9726. CreateObject(3791,3047.80,467.60,14.19,0.00,0.00,45.14);
  9727. CreateObject(3791,3046.50,468.79,14.19,0.00,0.00,45.14);
  9728. CreateObject(3791,3050.80,471.10,14.19,0.00,0.00,45.14);
  9729. CreateObject(3791,3049.50,472.10,14.19,0.00,0.00,45.14);
  9730. CreateObject(3791,3045.39,470.20,14.19,0.00,0.00,45.14);
  9731. CreateObject(3791,3048.19,473.29,14.19,0.00,0.00,45.14);
  9732. AddStaticVehicleEx(595,3003.89,494.09,0.00,174.11,-1,-1,50);
  9733. CreateObject(7981,3111.10,552.09,18.79,0.00,0.00,46.20);
  9734. CreateObject(3877,3105.19,541.50,20.60,0.00,0.00,45.03);
  9735. CreateObject(1682,3115.60,556.40,30.29,0.00,0.00,317.07);
  9736. CreateObject(2061,3108.00,562.70,14.10,0.00,0.00,0.00);
  9737. CreateObject(2061,3108.30,562.50,14.10,0.00,0.00,0.00);
  9738. CreateObject(2061,3108.50,562.29,14.10,0.00,0.00,0.00);
  9739. CreateObject(2061,3108.60,562.09,14.10,0.00,0.00,0.00);
  9740. CreateObject(2061,3108.89,562.00,14.10,0.00,0.00,0.00);
  9741. CreateObject(2061,3109.00,561.79,14.10,0.00,0.00,0.00);
  9742. CreateObject(2061,3109.19,561.59,14.10,0.00,0.00,0.00);
  9743. CreateObject(2061,3109.39,561.50,14.10,0.00,0.00,0.00);
  9744. CreateObject(2061,3109.50,561.29,14.10,0.00,0.00,0.00);
  9745. CreateObject(2061,3107.89,562.29,14.10,0.00,0.00,0.00);
  9746. CreateObject(2061,3108.10,562.09,14.10,0.00,0.00,0.00);
  9747. CreateObject(2061,3108.19,561.90,14.10,0.00,0.00,0.00);
  9748. CreateObject(2061,3108.50,561.79,14.10,0.00,0.00,0.00);
  9749. CreateObject(2061,3108.69,561.50,14.10,0.00,0.00,0.00);
  9750. CreateObject(2061,3108.89,561.29,14.10,0.00,0.00,0.00);
  9751. CreateObject(2061,3109.10,561.09,14.10,0.00,0.00,0.00);
  9752. CreateObject(1213,3017.10,500.00,0.89,0.00,0.00,0.00);
  9753. CreateObject(1691,3139.89,580.90,26.00,0.00,277.58,223.67);
  9754. CreateObject(3258,3115.80,561.29,21.89,0.00,82.33,42.81);
  9755. CreateObject(3258,3118.50,558.50,21.89,0.00,82.33,42.80);
  9756. CreateObject(16782,3011.60,452.79,23.50,0.00,0.00,47.33);
  9757. CreateObject(18683,3141.00,580.20,26.20,0.00,0.00,0.00);
  9758. CreateObject(18683,3138.80,583.00,26.20,0.00,0.00,0.00);
  9759. //Objects:84,Vehicles:4
  9760.  
  9761. }
  9762.  
  9763. if(Map[EvacType] == 3)
  9764. {
  9765. CreateObject(14548,257.00,2510.10,123.50,13.13,0.00,270.90);
  9766. CreateObject(16782,227.10,2512.80,123.09,0.00,0.00,0.00);
  9767. CreateObject(5156,252.30,2507.39,118.80,8.75,1.10,92.13);
  9768. CreateObject(3256,246.30,2488.30,117.59,0.00,281.89,0.00);
  9769. CreateObject(3256,247.89,2466.10,118.00,0.00,282.98,0.00);
  9770. CreateObject(3256,247.69,2442.50,118.00,0.00,282.98,0.00);
  9771. CreateObject(3256,245.10,2531.30,116.90,359.99,284.08,0.00);
  9772. CreateObject(3256,243.39,2554.39,116.90,0.00,281.89,0.00);
  9773. CreateObject(3256,241.50,2573.80,116.90,0.00,280.79,0.00);
  9774. CreateObject(2117,231.69,2514.00,121.40,0.00,0.00,0.00);
  9775. CreateObject(2117,233.69,2514.00,121.40,0.00,0.00,0.00);
  9776. CreateObject(1753,239.69,2513.89,121.50,0.00,0.00,0.00);
  9777. CreateObject(1753,242.89,2512.50,121.50,0.00,1.09,269.85);
  9778. CreateObject(15037,241.00,2506.50,121.90,0.00,0.00,94.52);
  9779. CreateObject(2063,261.20,2505.69,122.40,0.00,0.00,180.83);
  9780. CreateObject(2063,264.89,2505.80,122.40,0.00,0.00,180.82);
  9781. CreateObject(2063,268.70,2505.89,122.40,0.00,0.00,180.82);
  9782. CreateObject(2606,234.19,2514.39,122.40,0.00,0.00,0.00);
  9783. CreateObject(2616,227.19,2506.60,122.50,0.00,0.00,91.06);
  9784. CreateObject(2611,229.10,2514.30,122.69,6.56,358.89,0.12);
  9785. CreateObject(2053,231.39,2513.69,122.30,0.00,0.00,0.00);
  9786. CreateObject(2053,231.39,2514.10,122.30,0.00,0.00,0.00);
  9787. CreateObject(2053,231.60,2514.19,122.30,0.00,0.00,0.00);
  9788. CreateObject(2053,231.60,2514.00,122.30,0.00,0.00,0.00);
  9789. CreateObject(2053,231.60,2513.69,122.30,0.00,0.00,0.00);
  9790. CreateObject(2053,231.80,2513.69,122.30,0.00,0.00,0.00);
  9791. CreateObject(2053,231.80,2514.19,122.30,0.00,0.00,0.00);
  9792. CreateObject(2053,231.89,2514.00,122.30,0.00,0.00,0.00);
  9793. CreateObject(2202,229.80,2513.80,121.40,0.00,0.00,0.00);
  9794. CreateObject(1714,234.30,2512.80,121.40,0.00,0.00,225.90);
  9795. CreateObject(1714,237.10,2506.89,121.40,0.00,0.00,60.58);
  9796. CreateObject(2763,240.60,2511.89,121.90,0.00,0.00,0.00);
  9797. CreateObject(3383,232.50,2505.60,121.40,0.00,0.00,0.00);
  9798. CreateObject(11631,237.80,2506.10,122.69,0.00,0.00,180.90);
  9799. CreateObject(3111,233.60,2505.69,122.50,0.00,0.00,0.00);
  9800. CreateObject(3031,228.39,2505.60,123.00,0.00,0.00,47.22);
  9801. CreateObject(3017,230.80,2505.89,122.59,0.00,0.00,269.02);
  9802. CreateObject(2919,257.79,2506.19,122.19,0.00,0.00,0.00);
  9803. CreateObject(1808,236.30,2514.19,121.40,0.00,0.00,0.00);
  9804. CreateObject(2827,240.50,2512.10,122.30,0.00,0.00,0.00);
  9805. CreateObject(2683,240.89,2511.89,122.40,0.00,0.00,0.00);
  9806. CreateObject(2683,240.80,2511.60,122.40,0.00,0.00,0.00);
  9807. CreateObject(2683,240.39,2511.69,122.40,0.00,0.00,0.00);
  9808. CreateObject(3791,254.19,2506.39,122.00,0.00,0.00,0.00);
  9809. CreateObject(3791,250.89,2506.30,121.90,0.00,0.00,0.00);
  9810. CreateObject(3791,254.10,2507.80,122.00,0.00,0.00,0.00);
  9811. CreateObject(3791,271.89,2506.30,122.00,0.00,0.00,0.00);
  9812. CreateObject(2886,226.69,2510.89,123.09,0.00,0.00,0.00);
  9813. AddStaticVehicleEx(470,274.50,2513.50,122.59,272.98,-1,-1,50);
  9814. AddStaticVehicleEx(470,267.00,2513.10,122.59,270.79,-1,-1,50);
  9815. CreateObject(3066,252.50,2513.50,122.50,0.00,0.00,272.11);
  9816. CreateObject(3046,259.39,2513.89,121.90,0.00,0.00,0.00);
  9817. CreateObject(3046,260.39,2513.80,121.90,0.00,0.00,0.00);
  9818. CreateObject(3046,261.29,2513.80,121.90,0.00,0.00,0.00);
  9819. CreateObject(3046,262.20,2513.80,121.90,0.00,0.00,0.00);
  9820. CreateObject(3046,263.00,2514.00,121.90,0.00,0.00,0.00);
  9821. CreateObject(3013,260.60,2505.80,123.40,0.00,0.00,0.00);
  9822. CreateObject(3013,261.39,2505.69,123.30,0.00,0.00,0.00);
  9823. CreateObject(3013,262.00,2505.80,123.30,0.00,0.00,0.00);
  9824. CreateObject(3013,265.39,2506.00,123.00,0.00,0.00,0.00);
  9825. CreateObject(3013,264.50,2505.89,122.59,0.00,0.00,0.00);
  9826. CreateObject(3013,265.60,2505.89,122.19,0.00,0.00,0.00);
  9827. CreateObject(3013,269.10,2506.10,123.00,0.00,0.00,0.00);
  9828. CreateObject(3013,268.10,2505.89,123.30,0.00,0.00,0.00);
  9829. CreateObject(3013,268.00,2506.00,122.50,0.00,0.00,0.00);
  9830. CreateObject(2973,247.50,2506.10,121.50,0.00,0.00,0.00);
  9831. CreateObject(964,274.60,2506.19,121.50,0.00,0.00,0.00);
  9832. CreateObject(964,246.50,2513.89,121.50,0.00,0.00,0.00);
  9833. CreateObject(964,244.50,2513.89,121.50,0.00,0.00,0.00);
  9834. CreateObject(964,237.89,2513.69,121.50,0.00,0.00,0.00);
  9835. CreateObject(964,235.50,2505.69,121.40,0.00,0.00,0.00);
  9836. CreateObject(2041,262.10,2505.80,122.50,0.00,0.00,178.64);
  9837. CreateObject(1242,269.70,2506.00,122.00,0.00,0.00,0.00);
  9838. CreateObject(1242,268.89,2505.89,122.00,0.00,0.00,0.00);
  9839. CreateObject(1242,267.89,2505.89,122.00,0.00,0.00,0.00);
  9840. CreateObject(2035,269.10,2506.00,122.40,1.09,3.28,359.93);
  9841. CreateObject(2035,265.39,2505.80,122.40,1.08,1.09,359.97);
  9842. CreateObject(2035,260.60,2505.80,122.40,1.08,359.53,0.00);
  9843. CreateObject(2036,264.70,2505.89,123.30,0.00,0.00,0.00);
  9844. CreateObject(2044,264.79,2506.00,122.90,0.00,0.00,0.00);
  9845. CreateObject(2045,261.60,2505.80,122.80,0.00,0.00,269.88);
  9846. //
  9847.  
  9848. }
  9849. return 1;
  9850. }
  9851.  
  9852. stock SpawnVars(playerid)
  9853. {
  9854. TextDrawHideForPlayer(playerid, ServerIntroOne[playerid]);
  9855. TextDrawHideForPlayer(playerid, ServerIntroTwo[playerid]);
  9856. ShowTextdrawsAfterConnect(playerid);
  9857. return 1;
  9858. }
  9859.  
  9860. stock sendClassMessage(playerid)
  9861. {
  9862. new string[128];
  9863. if(team[playerid] == TEAM_HUMAN) format(string,sizeof(string),""chat""COL_YELLOW"Ai fost spawnat,foloseste /class-/class3 pentru a-ti alege clasa de om!");
  9864. SendClientMessage(playerid,-1,string);
  9865. return 1;
  9866. }
  9867.  
  9868. stock ShowTextdrawsAfterConnect(playerid)
  9869. {
  9870. TextDrawShowForPlayer(playerid, Textdraw0);
  9871. TextDrawShowForPlayer(playerid, Textdraw1);
  9872. TextDrawShowForPlayer(playerid, Textdraw2);
  9873. TextDrawShowForPlayer(playerid, Textdraw4);
  9874. TextDrawShowForPlayer(playerid, Textdraw5);
  9875. TextDrawShowForPlayer(playerid, Textdraw7);
  9876. TextDrawShowForPlayer(playerid, Textdraw8);
  9877. TextDrawShowForPlayer(playerid, Textdraw9);
  9878. TextDrawShowForPlayer(playerid, AliveInfo);
  9879. TextDrawShowForPlayer(playerid, AliveInfo2);
  9880. TextDrawShowForPlayer(playerid, remadeText);
  9881. TextDrawShowForPlayer(playerid, remadeText2);
  9882. TextDrawShowForPlayer(playerid, XP);
  9883. TextDrawShowForPlayer(playerid, myXP[playerid]);
  9884. TextDrawShowForPlayer(playerid, EventText);
  9885. TextDrawShowForPlayer(playerid, ChatMsg);
  9886. TextDrawShowForPlayer(playerid, MapStatBox);
  9887. return 1;
  9888. }
  9889.  
  9890. stock hideTextdrawsAfterConnect(playerid)
  9891. {
  9892. TextDrawHideForPlayer(playerid, Textdraw0);
  9893. TextDrawHideForPlayer(playerid, Textdraw1);
  9894. TextDrawHideForPlayer(playerid, Textdraw2);
  9895. TextDrawHideForPlayer(playerid, Textdraw4);
  9896. TextDrawHideForPlayer(playerid, Textdraw5);
  9897. TextDrawHideForPlayer(playerid, Textdraw7);
  9898. TextDrawHideForPlayer(playerid, Textdraw8);
  9899. TextDrawHideForPlayer(playerid, Textdraw9);
  9900. TextDrawHideForPlayer(playerid, AliveInfo);
  9901. TextDrawHideForPlayer(playerid, AliveInfo2);
  9902. TextDrawHideForPlayer(playerid, remadeText);
  9903. TextDrawHideForPlayer(playerid, remadeText2);
  9904. TextDrawHideForPlayer(playerid, XP);
  9905. TextDrawHideForPlayer(playerid, myXP[playerid]);
  9906. TextDrawHideForPlayer(playerid, EventText);
  9907. TextDrawHideForPlayer(playerid, ChatMsg);
  9908. TextDrawHideForPlayer(playerid, MapStatBox);
  9909. return 1;
  9910. }
  9911.  
  9912. stock GetClassName(playerid)
  9913. {
  9914. new classname[64];
  9915. if(team[playerid] == TEAM_HUMAN)
  9916. {
  9917. switch(pInfo[playerid][pHumanClass])
  9918. {
  9919. case CIVILIAN: classname = "Civillian";
  9920. case POLICEMAN: classname = "Police man";
  9921. case MEDIC: classname = "Medic";
  9922. case SCOUT: classname = "Scout";
  9923. case HEAVYMEDIC: classname = "Heavy Medic";
  9924. case FARMER: classname = "Farmer";
  9925. case ENGINEER: classname = "Box Builder";
  9926. case SWAT: classname = "S.W.A.T";
  9927. case HEAVYSHOTGUN: classname = "Heavy Shoutgun";
  9928. case ADVANCEDMEDIC: classname = "Advanced Medic";
  9929. case ADVANCEDENGINEER: classname = "Advanced Box Builder";
  9930. case FEDERALAGENT: classname = "Federal Agent";
  9931. case KICKBACK: classname = "Kick Back";
  9932. case ADVANCEDSCOUT: classname = "Advanced Scout";
  9933. case COWBOY: classname = "Cowboy";
  9934. case ASSASSIN: classname = "Assassin";
  9935. case PIMP: classname = "Pimp";
  9936. case EXPERIENCEDSCOUT: classname = "Experienced Scout";
  9937. case SCIENTIST: classname = "Scientist";
  9938. case TRAPMASTER: classname = "Trap Master";
  9939. case VIPENGINEER: classname = "V.I.P Engineer";
  9940. case VIPMEDIC: classname = "V.I.P Medic";
  9941. case VIPSCOUT: classname = "V.I.P Scout";
  9942. case E_ENGINEER: classname = "Experienced Box Builder";
  9943. case DOCTOR: classname = "Doctor";
  9944. case FBI: classname = "FBI";
  9945. case WEAPONSDEALER: classname = "Heavy Soldier";
  9946. case SMOKEUP: classname = "Smoke Up";
  9947. case BOXER: classname = "Boxer";
  9948. case BOMBER: classname = "BomberMan";
  9949. case MASTER: classname = "Mp5 Master";
  9950. case GHOST: classname = "Ghost Rider";
  9951. case SHOTGUNSPECIAL: classname = "Shotgun Specialist";
  9952. case BUDDY: classname = "Hey Buddy";
  9953. case AKICK: classname = "Advanced KickBack";
  9954. case TECG: classname = "Tec Master";
  9955. case BULL: classname = "Bulls Eye";
  9956. case INVISIBLA: classname = "Invisibla Man";
  9957. case MARINE: classname = "Marine";
  9958. case SAMURAI: classname = "Samurai";
  9959. case VIPSAMURAI: classname = "Ultimate Samurai";
  9960. case STARS: classname = "S.T.A.R.S";
  9961. case GENERAL: classname = "General";
  9962. case MAFIASOBB: classname = "Mafiaso Bad Boys";
  9963. case MARTIALCOACH: classname = "Martial Arts Coach";
  9964. case SUPERHUMAN: classname = "Explosion Master";
  9965.  
  9966. }
  9967. }
  9968.  
  9969. if(team[playerid] == TEAM_ZOMBIE)
  9970. {
  9971. switch(pInfo[playerid][pZombieClass])
  9972. {
  9973. case STANDARDZOMBIE: classname = "Standard Zombie";
  9974. case MUTATEDZOMBIE: classname = "Mutated Zombie";
  9975. case FASTZOMBIE: classname = "Fast Zombie";
  9976. case REAPERZOMBIE: classname = "Reaper Zombie";
  9977. case WITCHZOMBIE: classname = "Witch Zombie";
  9978. case BOOMERZOMBIE: classname = "Boomer Zombie";
  9979. case STOMPERZOMBIE: classname = "Stomper Zombie";
  9980. case SCREAMERZOMBIE: classname = "Screamer Zombie";
  9981. case FIREBREATHER: classname = "Fire Breather";
  9982. case ADVANCEDMUTATED: classname = "Advanced Mutated";
  9983. case HEAVYSCREAMER: classname = "Heavy Screamer";
  9984. case FLESHEATER: classname = "Flesh Eater";
  9985. case ADVANCEDWITCH: classname = "Advanced Witch";
  9986. case ADVSCREAMER: classname = "Advanced Screamer";
  9987. case ADVANCEDBOOMER: classname = "Advanced Boomer";
  9988. case NEMESIS: classname = "Nemesis";
  9989. case HZOMBIE: classname = "Zombie Medic";
  9990. case SLENDER: classname = "SlenderMan";
  9991. case KZOM: classname = "Fat Zombie";
  9992. case VAMPIRE: classname = "Vampire";
  9993. case RELITE: classname = "Resurrected Elite";
  9994. case LEECH: classname = "Leech Zombie";
  9995. }
  9996. }
  9997. return classname;
  9998. }
  9999.  
  10000. stock GetAdminName(playerid)
  10001. {
  10002. new adminname[128];
  10003. switch(pInfo[playerid][pAdminLevel])
  10004. {
  10005. case 0: adminname = "Newbie/Regular";
  10006. case 1: adminname = "Trial Administrator";
  10007. case 2: adminname = "Administrator";
  10008. case 3: adminname = "Senior Administrator";
  10009. case 4: adminname = "Lead Administrator";
  10010. case 5: adminname = "Head Admin";
  10011. case 6: adminname = "Server Manager";
  10012. case 7: adminname = "Head Manager";
  10013. case 8: adminname = "Assistant Co Owner";
  10014. case 9: adminname = "Co Founder";
  10015. case 99: adminname = "Founder";
  10016. }
  10017. return adminname;
  10018. }
  10019.  
  10020. function SPS_Reset_PVars()
  10021. {
  10022. for(new i=0; i < MAX_PLAYERS; i++)
  10023. {
  10024. if(GetPVarType(i, "SPS Muted") != PLAYER_VARTYPE_NONE) {
  10025. SetPVarInt(i, "SPS Muted", 0);
  10026. }
  10027. if(GetPVarType(i, "SPS Messages Sent") != PLAYER_VARTYPE_NONE) {
  10028. SetPVarInt(i, "SPS Messages Sent", 0);
  10029. }
  10030. if(GetPVarType(i, "SPS Spam Warnings") != PLAYER_VARTYPE_NONE) {
  10031. SetPVarInt(i, "SPS Spam Warnings", 0);
  10032. }
  10033. }
  10034. return 1;
  10035. }
  10036.  
  10037. function SPS_Remove_Messages_Limit(playerid)
  10038. {
  10039. if(GetPVarInt(playerid, "SPS Spam Warnings") == 1)
  10040. {
  10041. new string[128], pName[MAX_PLAYER_NAME];
  10042. GetPlayerName(playerid, pName, sizeof(pName));
  10043.  
  10044. 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);
  10045. for(new i=0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && i != playerid) SendClientMessage(i, -1, string);
  10046.  
  10047. format(string, sizeof(string), ""chat""COL_LIGHTBLUE" You have been muted for %i minutes because of flooding the chat.", PLAYER_MUTE_TIME_MINUTES);
  10048. SendClientMessage(playerid, -1, string);
  10049.  
  10050. SetTimerEx("SPS_Unmute_Player", (PLAYER_MUTE_TIME_MINUTES * 60000), 0, "i", playerid);
  10051. SetPVarInt(playerid, "SPS Muted", 1);
  10052.  
  10053. CallRemoteFunction("OnPlayerGetMuted", "i", playerid);
  10054. }
  10055. SetPVarInt(playerid, "SPS Messages Sent", 0);
  10056. SetPVarInt(playerid, "SPS Spam Warnings", 0);
  10057. return 1;
  10058. }
  10059. function SPS_Unmute_Player(playerid)
  10060. {
  10061. SendClientMessage(playerid, -1, ""chat""COL_LIGHTBLUE" You have been automatically unmuted.");
  10062. SetPVarInt(playerid, "SPS Muted", 0);
  10063. return 1;
  10064. }
  10065. stock DoctorShield()
  10066. {
  10067. new Float:X,Float:Y,Float:Z,Float:hp,str[128];
  10068. GetObjectPos(DocShield,X,Y,Z);
  10069. foreach(Player,i)
  10070. {
  10071. if(IsPlayerInRangeOfPoint(i,4.5,X,Y,Z))
  10072. {
  10073. if(team[i] == TEAM_HUMAN)
  10074. {
  10075. GetPlayerHealth(i,hp);
  10076. if(hp < 80)
  10077. {
  10078. SetPlayerHealth(i,hp+3.5);
  10079. format(str,sizeof(str),"~n~~n~~n~~n~~g~GETTING HEALED BY DOCTOR SHIELD~w~ (NEW HP: %.2f HP)",hp);
  10080. GameTextForPlayer(i,str,1000,5);
  10081. }
  10082. else
  10083. {
  10084. GameTextForPlayer(i,"~n~~n~~n~~n~~r~YOU HAVE ENOUGH HP TO SURVIVE",1000,5);
  10085. }
  10086. }
  10087. }
  10088. }
  10089. return 1;
  10090. }
  10091.  
  10092. stock TrapMasterTrap()
  10093. {
  10094. new Float:X,Float:Y,Float:Z;
  10095. GetObjectPos(Trap,X,Y,Z);
  10096. foreach(Player,i)
  10097. {
  10098. if(IsPlayerInRangeOfPoint(i,2.5,X,Y,Z))
  10099. {
  10100. if(team[i] == TEAM_ZOMBIE)
  10101. {
  10102. CreateExplosion(X,Y,Z,3,40.0);
  10103. DestroyObject(Trap);
  10104. }
  10105. }
  10106. }
  10107. return 1;
  10108. }
  10109.  
  10110. stock LoadStaticObjectsFromFile(filename[])
  10111. {
  10112. new File:file_ptr, line[256], modelid, Float:SpawnX, Float:SpawnY, Float:SpawnZ, Float:SpawnRotX, Float:SpawnRotY, Float:SpawnRotZ, objects_loaded;
  10113. file_ptr = fopen(filename, io_read);
  10114. if(!file_ptr) return printf("ERROR! Failed To Load Objects From The File %s (File Doesn't Exist In Scriptfiles Directory)!", filename);
  10115. while(fread(file_ptr, line) > 0)
  10116. {
  10117. sscanf(line, "dffffff", modelid, SpawnX, SpawnY, SpawnZ, SpawnRotX, SpawnRotY, SpawnRotZ);
  10118. CreateObject(modelid, SpawnX, SpawnY, SpawnZ, SpawnRotX, SpawnRotY, SpawnRotZ);
  10119. objects_loaded++;
  10120. }
  10121. fclose(file_ptr);
  10122. printf("Loaded %d objects from: %s", objects_loaded, filename);
  10123. return objects_loaded;
  10124. }
  10125.  
  10126. stock LoadStaticVehiclesFromFile(const filename[])
  10127. {
  10128. new File:file_ptr;
  10129. new line[256];
  10130. new var_from_line[64];
  10131. new vehicletype;
  10132. new Float:SpawnX;
  10133. new Float:SpawnY;
  10134. new Float:SpawnZ;
  10135. new Float:SpawnRot;
  10136. new Color1, Color2;
  10137. new index;
  10138. new vehicles_loaded;
  10139.  
  10140. file_ptr = fopen(filename,filemode:io_read);
  10141. if(!file_ptr) return 0;
  10142.  
  10143. vehicles_loaded = 0;
  10144.  
  10145. while(fread(file_ptr,line,256) > 0)
  10146. {
  10147. index = 0;
  10148. index = token_by_delim(line,var_from_line,',',index);
  10149. if(index == (-1)) continue;
  10150. vehicletype = strval(var_from_line);
  10151. if(vehicletype < 400 || vehicletype > 611) continue;
  10152. index = token_by_delim(line,var_from_line,',',index+1);
  10153. if(index == (-1)) continue;
  10154. SpawnX = floatstr(var_from_line);
  10155.  
  10156. index = token_by_delim(line,var_from_line,',',index+1);
  10157. if(index == (-1)) continue;
  10158. SpawnY = floatstr(var_from_line);
  10159.  
  10160. index = token_by_delim(line,var_from_line,',',index+1);
  10161. if(index == (-1)) continue;
  10162. SpawnZ = floatstr(var_from_line);
  10163.  
  10164. index = token_by_delim(line,var_from_line,',',index+1);
  10165. if(index == (-1)) continue;
  10166. SpawnRot = floatstr(var_from_line);
  10167. index = token_by_delim(line,var_from_line,',',index+1);
  10168. if(index == (-1)) continue;
  10169. Color1 = strval(var_from_line);
  10170.  
  10171. index = token_by_delim(line,var_from_line,';',index+1);
  10172. Color2 = strval(var_from_line);
  10173.  
  10174. CreateVehicle(vehicletype,SpawnX,SpawnY,SpawnZ+1,SpawnRot,Color1,Color2,15);
  10175.  
  10176. // AddStaticVehicle(vehicletype,SpawnX,SpawnY,SpawnZ+1,SpawnRot,Color1,Color2);
  10177. vehicles_loaded++;
  10178. }
  10179. fclose(file_ptr);
  10180. printf("Loaded %d vehicles from: %s",vehicles_loaded,filename);
  10181. return vehicles_loaded;
  10182. }
  10183.  
  10184. stock token_by_delim(const string[], return_str[], delim, start_index)
  10185. {
  10186. new x=0;
  10187. while(string[start_index] != EOS && string[start_index] != delim) {
  10188. return_str[x] = string[start_index];
  10189. x++;
  10190. start_index++;
  10191. }
  10192. return_str[x] = EOS;
  10193. if(string[start_index] == EOS) start_index = (-1);
  10194. return start_index;
  10195. }
  10196.  
  10197. stock udb_hash(buf[])
  10198. {
  10199. new length=strlen(buf);
  10200. new s1 = 1;
  10201. new s2 = 0;
  10202. new n;
  10203. for (n=0; n<length; n++)
  10204. {
  10205. s1 = (s1 + buf[n]) % 65521;
  10206. s2 = (s2 + s1) % 65521;
  10207. }
  10208. return (s2 << 16) + s1;
  10209. }
Add Comment
Please, Sign In to add comment