Guest User

Untitled

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