Advertisement
Guest User

FCDA by Saw®

a guest
Jun 29th, 2012
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 71.62 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6. #include <Dini>
  7. //====================================COLORS==============//
  8. #define COLOR_YELLOW2 0xF5DEB3AA
  9. #define COLOR_NICERED 0xFF0000FF
  10. #define COLOR_MODRA 0x0088FFFF
  11. #define COLOR_SYSTEM 0xEFEFF7AA
  12. #define COLOR_BLUE 0x0000FFAA
  13. #define COLOR_GREY 0xAFAFAFAA
  14. #define COLOR_WHITE 0xFFFFFFAA
  15. #define COLOR_BROWN 0x993300AA
  16. #define COLOR_CYAN 0x99FFFFAA
  17. #define COLOR_LIME 0x99FF00AA
  18. #define COLOR_BLACK 0x000000AA
  19. #define COLOR_WHITE 0xFFFFFFAA
  20. #define COLOR_GAMES 0xFFFFFFAA
  21. #define COLOR_GREY 0xAFAFAFAA
  22. #define COLOR_WHITE 0xFFFFFFAA
  23. #define COLOR_LIME 0x99FF00AA
  24. #define COLOR_LIGHTYELLOW 0xFAEAA9FF
  25. #define COLOR_LIGHTORANGE 0xF7A26FFF
  26. #define COLOR_HNEDA2 0x8B4513AA
  27. #define COLOR_CERVENA 0xFF0000AA
  28. #define COLOR_MODRA2 0x0000FFAA
  29. #define COLOR_VIP 0xDDD100FF
  30. //====================================NEW COLORS=========================//
  31. #define COLOR_ASKQ 0xFF0000FF
  32. #define COLOR_GRAD1 0xB4B5B7FF
  33. #define COLOR_GRAD2 0xBFC0C2FF
  34. #define COLOR_GRAD3 0xCBCCCEFF
  35. #define COLOR_GRAD4 0xD8D8D8FF
  36. #define COLOR_GRAD5 0xE3E3E3FF
  37. #define COLOR_RED 0xBD0000FF
  38. #define COLOR_GRAD6 0xF0F0F0FF
  39. #define COLOR_GREY 0xAFAFAFAA
  40. #define COLOR_GREEN 0x9EC73DAA
  41. #define COLOR_GROVE 0x00FF00FF
  42. #define COLOR_LIGHTRED 0xFF6347AA
  43. #define COLOR_LIGHTBLUE 0x33CCFFAA
  44. #define COLOR_LIGHTGREEN 0x9ACD32AA
  45. #define COLOR_YELLOW 0xDABB3EAA
  46. #define COLOR_YELLOW2 0xF5DEB3AA
  47. #define COLOR_YELLOW3 0xF2FB25FF
  48. #define COLOR_ORANGE 0xF64000F6
  49. /*#define MAX_PINGO 2500*/
  50. #define COLOR_WHITE 0xFFFFFFAA
  51. #define COLOR_FADE1 0xE6E6E6E6
  52. #define COLOR_FADE2 0xC8C8C8C8
  53. #define COLOR_FADE3 0xAAAAAAAA
  54. #define COLOR_FADE4 0x8C8C8C8C
  55. #define COLOR_FADE5 0x6E6E6E6E
  56. #define COLOR_PURPLE 0xC2A2DAAA
  57. #define COLOR_DBLUE 0x2641FEAA
  58. #define COLOR_ALLDEPT 0xFF8282AA
  59. #define COLOR_NEWS 0x458E1DAA
  60. #define COLOR_OOC 0xB1C8FBAA
  61. //=========================================END COLORS===============//
  62. #define dcmd(%1,%2,%3) if((strcmp((%3)[1],#%1,true,(%2))==0)&&((((%3)[(%2)+1]==0)&&(dcmd_%1(playerid,"")))||(((%3)[(%2)+1]==32)&&(dcmd_%1(playerid,(%3)[(%2)+2]))))) return 1
  63. //==========================================================================//
  64. //===========================TEAMS====================================//
  65. new gTeam[MAX_PLAYERS];
  66. //new PickedClass[MAX_PLAYERS];// this variable can be used in many functions
  67. #define TEAM_Humans 1
  68. #define TEAM_Zombies 2
  69. //==========Humans classes=============//
  70. #define TEAM_Survivor 3
  71. #define TEAM_Cop 4
  72. #define TEAM_Medic 5
  73. #define TEAM_Knocker 6
  74. #define TEAM_Stars 7
  75. //===========Zombie Classes============/
  76. #define TEAM_Normalzombie 8
  77. #define TEAM_Drinkzombie 9
  78. #define TEAM_Speedzombie 10
  79. #define TEAM_Boomerzombie 11
  80. #define TEAM_Tankzombie 12
  81. #define TEAM_Madzombie 13
  82. #define TEAM_Witchzombie 14
  83. #define TEAM_Nemseszombie 15
  84.  
  85. //============================Teams END==========================================//
  86. //=================================REGISTER/LOGIN stuffs=====================//
  87. #define REGISTER 1
  88. #define LOGIN 2
  89. new bool:IsLogged[MAX_PLAYERS];
  90. new file[MAX_PLAYERS][128];
  91. forward OnPlayerRegister(playerid, Password[]);
  92. forward OnPlayerLogin(playerid, Password[]);
  93. forward OnPlayerSaveAcount(playerid);
  94. new Vip[MAX_PLAYERS];
  95. new AdminLevel[MAX_PLAYERS];
  96. new AdminDuty[MAX_PLAYERS];
  97. new TimeKicked[MAX_PLAYERS];
  98. new TimeBanned[MAX_PLAYERS];
  99. new TimeSlapped[MAX_PLAYERS];
  100. new TimeMuted[MAX_PLAYERS];
  101. new Banned[MAX_PLAYERS];
  102. new Muted[MAX_PLAYERS];
  103. new Rank[MAX_PLAYERS];
  104. new XP[MAX_PLAYERS];
  105. new Kills[MAX_PLAYERS];
  106. //========================================END REGISTRATION=====================//
  107. //======================================Other Arrays====================//
  108. new randomMessages[][] = //here, we're creating the array with the name "randomMessages"
  109. {
  110. "[INFO] Vips win +2XP each kill , and more features.", //this is the text of your first message
  111. "[INFO] If you see a Hacker/Rule breaker do /report [id] [reason] and don't spam!", //this is the text of your second message
  112. "[INFO] Remember to respect admins/Players,No insultes or swears.", //this is the text of your third message
  113. "[INFO] More Help: /ucp /help /report" //this is the text of your fifth message
  114. };
  115. //Some infection stuff
  116. new InfectionTime[MAX_PLAYERS]; // Infection System
  117. new IsInfected[MAX_PLAYERS];
  118. new StopTimer[MAX_PLAYERS];
  119. new StopTimer2[MAX_PLAYERS];
  120. //========================================================================//
  121. #if defined FILTERSCRIPT
  122.  
  123. public OnFilterScriptInit()
  124. {
  125. print("\n--------------------------------------");
  126. print(" Blank Filterscript by your name here");
  127. print("--------------------------------------\n");
  128. return 1;
  129. }
  130.  
  131. public OnFilterScriptExit()
  132. {
  133. return 1;
  134. }
  135.  
  136. #else
  137.  
  138. main()
  139. {
  140. print("\n----------------------------------");
  141. print(" Fort Carson Cops & Robbers RP");
  142. print("----------------------------------\n");
  143. }
  144.  
  145. #endif
  146.  
  147. public OnGameModeInit()
  148. {
  149. // Don't use these lines if it's a filterscript
  150. SetGameModeText("FCDA");
  151. SetTimer("RandomMessages", 90000, true);
  152. //ATMS
  153. //ROBERS START CARS
  154. //3DtextLabbels
  155. Create3DTextLabel("***Use /buy here***",COLOR_MODRA2,-23.3042,-55.4307,1003.5469,183.5917,0);
  156. return 1;
  157. }
  158.  
  159. public OnGameModeExit()
  160. {
  161. return 1;
  162. }
  163. //Forwards==============================================
  164. forward RandomMessages();
  165.  
  166. //========================RANDOM MESSAGES STUFF==============================//
  167. public RandomMessages()
  168. {
  169. new randomMsg = random(sizeof(randomMessages)); //create a variable "randomMsg" and give it the value of our array we've created ("randomMessages")
  170. //the word "random" is included into PAWN, which will tell the script, to work randomly with the array
  171. SendClientMessageToAll(COLOR_ORANGE, randomMessages[randomMsg]); //this will send the content of our array to EVERYBODY on the server
  172. // the content are strings, and we're using our array "randomMessages" with our created variable "randomMsg" again
  173. }
  174. //=================================Infection Timer==================//
  175. forward infectiontimer();
  176. public infectiontimer()
  177. {
  178. for(new i; i<MAX_PLAYERS; i++)
  179. {
  180. if(IsInfected[i] == 1)
  181. {
  182. if(!IsPlayerConnected(i)) continue;
  183. InfectionTime[i] ++;
  184. if(InfectionTime[i] == 2)
  185. {
  186. new Float:Health;
  187. GetPlayerHealth(i,Health);
  188. SetPlayerHealth(i, Health-5);
  189. SendClientMessage(i,COLOR_RED,"You Are infected ! go be cured by a Medic! or Die!");
  190. InfectionTime[i] = 0;
  191. }
  192. }
  193. }
  194.  
  195. return 1;
  196. }
  197. ///==========================================================================
  198. //=================================Zombies winning HP system=========//
  199. forward ZombieHp();
  200. public ZombieHp()
  201. {
  202. for(new i; i<MAX_PLAYERS; i++)
  203. {
  204. if ((gTeam[i] == 8) || (gTeam[i] == 9) || (gTeam[i] == 10))//if Speed+Normal+Drink Zombie
  205. {
  206. if(!IsPlayerConnected(i)) continue;
  207. new Float:Health;
  208. GetPlayerHealth(i,Health);
  209. if(Health < 100) SetPlayerHealth(i,Health+2);
  210. }
  211. else if ((gTeam[i] == 11) || (gTeam[i] == 12) || (gTeam[i] == 13))//if Boomer+Mad+Tank Zombie
  212. {
  213. if(!IsPlayerConnected(i)) continue;
  214. new Float:Health;
  215. GetPlayerHealth(i,Health);
  216. if(Health < 130) SetPlayerHealth(i,Health+4);
  217. }
  218. else if (gTeam[i] == 14) //if the player is Witch
  219. {
  220. if(!IsPlayerConnected(i)) continue;
  221. new Float:Health;
  222. GetPlayerHealth(i,Health);
  223. if(Health < 150) SetPlayerHealth(i,Health+5);
  224. }
  225. else if (gTeam[i] == 15) //if the player is NEMESIS
  226. {
  227. if(!IsPlayerConnected(i)) continue;
  228. new Float:Health;
  229. GetPlayerHealth(i,Health);
  230. if(Health < 400) SetPlayerHealth(i,Health+6);
  231. }
  232. }
  233. //appart
  234. }
  235. //===================================================================//
  236. public OnPlayerRequestClass(playerid, classid)
  237. {
  238.  
  239. return 1;
  240. }
  241.  
  242. public OnPlayerConnect(playerid)
  243. {
  244. new NAME[100];
  245. SendClientMessageToAll(0xff0000, NAME);
  246. printf("OnPlayerConnect(%d)", playerid);
  247. GetPlayerName(playerid, NAME, 24);
  248. format(NAME, 100, " %s [ID:%d] has connected to the server", NAME, playerid);
  249. SendClientMessageToAll(COLOR_GREY, NAME);
  250.  
  251. Vip[playerid] =0;
  252. AdminLevel[playerid] =0;
  253. Banned[playerid] =0;
  254. Muted[playerid] =0;
  255. TimeBanned[playerid] =0;
  256. TimeKicked[playerid] =0;
  257. TimeSlapped[playerid] =0;
  258. TimeMuted[playerid] =0;
  259. Rank[playerid] =0;
  260. AdminDuty[playerid] =0;
  261. XP[playerid] =0;
  262. IsInfected[playerid] =0;
  263. if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
  264. {
  265. format(file[playerid], 128, "FCDA/%s.ini", PlayerName(playerid));
  266. IsLogged[playerid] = false;
  267. if(fexist(file[playerid]))
  268. {
  269. ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "{00CCFF}Login", "{FFFFFF}Please enter password for login \n\n\n{FF0000}Login is required", "Login", "");
  270. }
  271. else
  272. {
  273. ShowPlayerDialog(playerid, REGISTER, DIALOG_STYLE_INPUT, "{00CCFF}Registration", "{FFFFFF}Please enter password for registration \n\n\n{FF0000}Registration is required", "Register", "");
  274. }
  275. }
  276. return 1;
  277. }
  278.  
  279. public OnPlayerDisconnect(playerid, reason)
  280. {
  281. new NAME[100];
  282. GetPlayerName(playerid, NAME, 30);
  283. switch (reason) {
  284. case 0: format(NAME, 100, "%s [ID:%d] has left server. [Crash]", NAME,playerid);
  285. case 1: format(NAME, 100, "%s [ID:%d] has left server. [Quit]", NAME,playerid);
  286. case 2: format(NAME, 100, "%s [ID:%d] has left server. [Kick / Ban]", NAME,playerid);
  287. }
  288. SendClientMessageToAll(COLOR_GREY, NAME);
  289. if(IsPlayerConnected(playerid))
  290. {
  291. OnPlayerSaveAcount(playerid);
  292. IsLogged[playerid] = false;
  293. }
  294. return 1;
  295. }
  296.  
  297. public OnPlayerSpawn(playerid)
  298. {
  299. SendClientMessage(playerid,COLOR_WHITE,"REMEMBER: To earn money , kill Players!");
  300. SendClientMessage(playerid,COLOR_WHITE,"Vips earn money very Quickly, because of their privilages.");
  301. SendClientMessage(playerid,COLOR_WHITE,"If you want to be a Vip player, ask the Owner 'Sorrow'.");
  302. SendClientMessage(playerid,COLOR_GREEN,"Good Luck !");
  303. SetPlayerPos(playerid,-160.2727,1036.9965,19.7640);
  304. SetPlayerPos(playerid,-160.2727,1036.9965,19.7640);
  305. SetPlayerFacingAngle(playerid,280.4360);
  306. StopTimer2[playerid] = SetTimer("ZombieHp", 2000, true);//starts Hp timer
  307. return 1;
  308. }
  309.  
  310. public OnPlayerDeath(playerid, killerid, reason)
  311. {
  312. IsInfected[playerid] = 0;
  313. KillTimer(StopTimer[playerid]);
  314. KillTimer(StopTimer2[playerid]);
  315. new string[ 70 ], name[ 24 ];
  316. GetPlayerName( killerid, name, 24 );
  317. Kills[playerid] =0;
  318. Kills[killerid] ++;
  319. if( GetPVarInt( killerid, "Kills" ) == 1 )
  320. {
  321. XP[killerid]=XP[killerid]+1;
  322. GameTextForPlayer(killerid,"~r~First ~w~Kill",1500,1);
  323. format( string, sizeof string, "%s made a first kill! ", name );
  324. SendClientMessageToAll(COLOR_WHITE,string);
  325. }
  326. if( GetPVarInt( killerid, "Kills" ) == 2 )
  327. {
  328. XP[killerid]=XP[killerid]+2;
  329. GameTextForPlayer(killerid,"~r~Double ~w~Kill",1500,1);
  330. }
  331. if( GetPVarInt( killerid, "Kills" ) == 3 )
  332. {
  333. XP[killerid]=XP[killerid]+3;
  334. GameTextForPlayer(killerid,"~r~Triple ~w~Kill",1500,1);
  335. }
  336. if( GetPVarInt( killerid, "Kills" ) == 4 )
  337. {
  338. XP[killerid]=XP[killerid]+4;
  339. GameTextForPlayer(killerid,"~r~Killing ~w~Spree",1500,1);
  340. }
  341. if( GetPVarInt( killerid, "Kills" ) == 5 )
  342. {
  343. XP[killerid]=XP[killerid]+4;
  344. GameTextForPlayer(killerid,"~r~Over ~w~Kill",1500,1);
  345. }
  346. if( GetPVarInt( killerid, "Kills" ) == 6 )
  347. {
  348. XP[killerid]=XP[killerid]+5;
  349. GameTextForPlayer(killerid,"~r~Kill ~w~Joy",1500,1);
  350. }
  351. if( GetPVarInt( killerid, "Kills" ) == 7 )
  352. {
  353. XP[killerid]=XP[killerid]+5;
  354. GameTextForPlayer(killerid,"~r~Sniper ~w~Kill",1500,1);
  355. }
  356. if( GetPVarInt( killerid, "Kills" ) == 8 )
  357. {
  358. XP[killerid]=XP[killerid]+6;
  359. GameTextForPlayer(killerid,"~r~Mad ~w~Kill",1500,1);
  360. }
  361.  
  362. return 1;
  363. }
  364.  
  365. public OnVehicleSpawn(vehicleid)
  366. {
  367. return 1;
  368. }
  369.  
  370. public OnVehicleDeath(vehicleid, killerid)
  371. {
  372. return 1;
  373. }
  374.  
  375. public OnPlayerText(playerid, text[])
  376. {
  377. new PlayerLog[60], Name[MAX_PLAYER_NAME], string[256];
  378. GetPlayerName(playerid, Name, sizeof(Name));
  379. format(PlayerLog, sizeof(PlayerLog), "FCDAlogs/chat/%s.txt", Name);
  380. new File:playerslog = fopen(PlayerLog, io_append);
  381. format(string, sizeof(string), "%s says: %s/*******/", Name, text);
  382. fwrite(playerslog, string);
  383. fclose(playerslog);
  384. if (Muted[playerid] == 1)
  385. {
  386. SendClientMessage(playerid,COLOR_RED,"[YOU ARE MUTED YOU CAN NOT SPEAK !]");
  387. return 0;
  388. }
  389. return 1;
  390. }
  391.  
  392. public OnPlayerCommandText(playerid, cmdtext[])
  393. {
  394. //Modo Commands
  395. dcmd(clearchat,9,cmdtext);
  396. dcmd(kick,4,cmdtext);
  397. dcmd(slap,4,cmdtext);
  398. dcmd(weather,7,cmdtext);
  399. //Head Modo Commands
  400. dcmd(goto,4,cmdtext);
  401. dcmd(gethere,7,cmdtext);
  402. dcmd(hpall,5,cmdtext);
  403. dcmd(mute,4,cmdtext);
  404. dcmd(aduty,5,cmdtext);
  405. //Administrator commands
  406. dcmd(freeze,6,cmdtext);
  407. dcmd(unfreeze,8,cmdtext);
  408. dcmd(setskin,7,cmdtext);
  409. dcmd(ban,3,cmdtext);
  410. //Head Admin commands
  411. dcmd(removemoney,11,cmdtext);
  412. // dcmd(accountban,10,cmdtext);
  413. //Owner Commands
  414. dcmd(makeadmin,9,cmdtext);
  415. dcmd(makevip,7,cmdtext);
  416. dcmd(velocity,8,cmdtext);
  417. //PLAYERS COMMANDS
  418. dcmd(admins,6,cmdtext);
  419. dcmd(ucp,3,cmdtext);
  420. dcmd(help,4,cmdtext);
  421. dcmd(kill,4,cmdtext);
  422.  
  423. return 0;
  424. }
  425.  
  426. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  427. {
  428.  
  429. return 1;
  430. }
  431.  
  432. public OnPlayerExitVehicle(playerid, vehicleid)
  433. {
  434. return 1;
  435. }
  436.  
  437. public OnPlayerStateChange(playerid, newstate, oldstate)
  438. {
  439. return 1;
  440. }
  441.  
  442. public OnPlayerEnterCheckpoint(playerid)
  443. {
  444. DisablePlayerCheckpoint(playerid);
  445. return 1;
  446. }
  447.  
  448. public OnPlayerLeaveCheckpoint(playerid)
  449. {
  450. return 1;
  451. }
  452.  
  453. public OnPlayerEnterRaceCheckpoint(playerid)
  454. {
  455. return 1;
  456. }
  457.  
  458. public OnPlayerLeaveRaceCheckpoint(playerid)
  459. {
  460. return 1;
  461. }
  462.  
  463. public OnRconCommand(cmd[])
  464. {
  465. return 1;
  466. }
  467.  
  468. public OnPlayerRequestSpawn(playerid)
  469. {
  470. ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Team:","\n{00FF00}Humans {FFFFFF}Team\n{BD0000}Zombies {FFFFFF}Team","CHOOSE","");
  471. return 1;
  472. }
  473.  
  474. public OnObjectMoved(objectid)
  475. {
  476. return 1;
  477. }
  478.  
  479. public OnPlayerObjectMoved(playerid, objectid)
  480. {
  481. return 1;
  482. }
  483.  
  484. public OnPlayerPickUpPickup(playerid, pickupid)
  485. {
  486. return 1;
  487. }
  488.  
  489. public OnVehicleMod(playerid, vehicleid, componentid)
  490. {
  491. return 1;
  492. }
  493.  
  494. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  495. {
  496. return 1;
  497. }
  498.  
  499. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  500. {
  501. return 1;
  502. }
  503.  
  504. public OnPlayerSelectedMenuRow(playerid, row)
  505. {
  506. return 1;
  507. }
  508.  
  509. public OnPlayerExitedMenu(playerid)
  510. {
  511. return 1;
  512. }
  513.  
  514. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  515. {
  516. return 1;
  517. }
  518. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  519. {
  520. /*if((newkeys < oldkeys) && ((gTeam[playerid] == 8) || (gTeam[playerid] == 9) || (gTeam[playerid] == 10)))
  521. {
  522. if(oldkeys - newkeys == KEY_SPRINT)
  523. {
  524. ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
  525. }
  526. }
  527. else
  528. {
  529. if(newkeys - oldkeys == KEY_SPRINT)
  530. {
  531. ApplyAnimation(playerid,"MUSCULAR", "MuscleSprint", 4.0, 1, 1, 1, 1, 1, 1);
  532. }
  533. }*/
  534. return 1;
  535. }
  536.  
  537. public OnRconLoginAttempt(ip[], password[], success)
  538. {
  539. return 1;
  540. }
  541.  
  542. public OnPlayerUpdate(playerid)
  543. {
  544.  
  545. return 1;
  546. }
  547.  
  548. public OnPlayerStreamIn(playerid, forplayerid)
  549. {
  550. return 1;
  551. }
  552.  
  553. public OnPlayerStreamOut(playerid, forplayerid)
  554. {
  555. return 1;
  556. }
  557.  
  558. public OnVehicleStreamIn(vehicleid, forplayerid)
  559. {
  560. return 1;
  561. }
  562.  
  563. public OnVehicleStreamOut(vehicleid, forplayerid)
  564. {
  565. return 1;
  566. }
  567.  
  568. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  569. {
  570. //======================================REGISTER/Login Functions==========//
  571. if(IsPlayerConnected(playerid))
  572. {
  573. if(dialogid == REGISTER)
  574. {
  575. if(response == 1)
  576. {
  577. OnPlayerRegister(playerid, inputtext);
  578. }
  579. }
  580. if(dialogid == LOGIN)
  581. {
  582. if(response == 1)
  583. {
  584. new Password[25];
  585. strmid(Password, inputtext, 0, strlen(inputtext), 25);
  586. OnPlayerLogin(playerid, Password);
  587. }
  588. }
  589. if(dialogid == 5)
  590. {
  591. if(response == 1)
  592. {
  593. OnPlayerRegister(playerid, inputtext);
  594. }
  595. }
  596. }
  597. //==================================HOSPITAL DIALOG=======================
  598. //========================UCP=============================================//
  599. if(dialogid == 9)
  600. {
  601. if(response == 1)
  602. {
  603. switch(listitem)
  604. {
  605. case 0: //if HISTORY
  606. {
  607. new string[200];
  608. SendClientMessage(playerid, COLOR_YELLOW, "------Your account History :-----");
  609. format(string, sizeof(string), " {00FF00}Time Kicked: {FFFFFF}%d {00CCFF}/ {00FF00}Time Banned: {FFFFFF}%d {00CCFF}/ {00FF00}Time Slapped: {FFFFFF}%d", TimeKicked[playerid],TimeBanned[playerid],TimeSlapped[playerid]);
  610. SendClientMessage(playerid,COLOR_WHITE,string);
  611. format(string, sizeof(string), " {00FF00}Time Muted: {FFFFFF}%d {00CCFF}", TimeMuted[playerid]);
  612. SendClientMessage(playerid,COLOR_WHITE,string);
  613. }
  614. case 1: //if STATS
  615. {
  616. new string[256];
  617. GetPlayerName(playerid, string, 26);
  618. format(string, sizeof(string),"__________________________{00FF00}%s {FFFFFF}'s Stats___________________________________ ",string);
  619. SendClientMessage(playerid, COLOR_WHITE,string);
  620. format(string, sizeof(string),"{FFFFFF}Password :{00FF00} ******* {FFFFFF}/ Money: {00FF00}$%d {FFFFFF}/ {FFFFFF}/ VipLevel: {00FF00}%d ",GetPlayerMoney(playerid),Vip[playerid]);
  621. SendClientMessage(playerid, COLOR_WHITE,string);
  622. format(string, sizeof(string),"{FFFFFF}AdminLevel: {00FF00}%d {FFFFFF}/ Skin: {00FF00}%d",AdminLevel[playerid],GetPlayerSkin(playerid));
  623. SendClientMessage(playerid, COLOR_WHITE,string);
  624. format(string, sizeof(string),"________________________________________________________________________________________ ",string);
  625. SendClientMessage(playerid, COLOR_WHITE,string);
  626. }
  627. case 2: //if CHANGEPASS
  628. {
  629. ShowPlayerDialog(playerid, 5, DIALOG_STYLE_INPUT, "{00CCFF}User Pannel", "{FFFFFF}Please enter the New Pass\n\n\n{FF0000}Warning:Don't forget it !", "Change", "");
  630. }
  631. ///add more here
  632. }
  633. }
  634. }
  635. //=======================================Silver Vip Car Spawn=============//
  636. /* if(dialogid == 10)
  637. {
  638. if(response == 1)
  639. {
  640. switch(listitem)
  641. {
  642. case 0: //if Sentinel
  643. {
  644. if(GetPlayerMoney(playerid) < 1000) {
  645. SendClientMessage(playerid,COLOR_CERVENA, "You don't have enought money !");
  646. }
  647. else{
  648. GivePlayerMoney(playerid,-1000);
  649. new Float:x, Float:y, Float:z, Float:a;
  650. GetPlayerPos(playerid, x,y,z);
  651. GetPlayerFacingAngle(playerid, a);
  652. new vehicleid = CreateVehicle(405, x+3,y,z, a, -1, -1, -1);
  653. PutPlayerInVehicle(playerid,vehicleid, 0);
  654. }
  655. }
  656. case 1: //if Elegy
  657. {
  658. if(GetPlayerMoney(playerid) < 880) {
  659. SendClientMessage(playerid,COLOR_CERVENA, "You don't have enought money !");
  660. }
  661. else{
  662. GivePlayerMoney(playerid,-880);
  663. new Float:x, Float:y, Float:z, Float:a;
  664. GetPlayerPos(playerid, x,y,z);
  665. GetPlayerFacingAngle(playerid, a);
  666. new vehicleid = CreateVehicle(562, x+3,y,z, a, -1, -1, -1);
  667. PutPlayerInVehicle(playerid, vehicleid, 0);
  668. }
  669. }
  670. case 2: //if Infernus
  671. {
  672. if(GetPlayerMoney(playerid) < 1100) {
  673. SendClientMessage(playerid,COLOR_CERVENA, "You don't have enought money !");
  674. }
  675. else{
  676. GivePlayerMoney(playerid,-1100);
  677. new Float:x, Float:y, Float:z, Float:a;
  678. GetPlayerPos(playerid, x,y,z);
  679. GetPlayerFacingAngle(playerid, a);
  680. new vehicleid = CreateVehicle(411, x+3,y,z, a, -1, -1, -1);
  681. PutPlayerInVehicle(playerid, vehicleid, 0);
  682. }
  683. }
  684. case 3: //if Premier
  685. {
  686. if(GetPlayerMoney(playerid) < 900) {
  687. SendClientMessage(playerid,COLOR_CERVENA, "You don't have enought money !");
  688. }
  689. else{
  690. GivePlayerMoney(playerid,-900);
  691. new Float:x, Float:y, Float:z, Float:a;
  692. GetPlayerPos(playerid, x,y,z);
  693. GetPlayerFacingAngle(playerid, a);
  694. new vehicleid = CreateVehicle(426, x+3,y,z, a, -1, -1, -1);
  695. PutPlayerInVehicle(playerid, vehicleid, 0);
  696. }
  697. }
  698. case 4: //if HotKnife
  699. {
  700. if(GetPlayerMoney(playerid) < 1200) {
  701. SendClientMessage(playerid,COLOR_CERVENA, "You don't have enought money !");
  702. }
  703. else{
  704. GivePlayerMoney(playerid,-1200);
  705. new Float:x, Float:y, Float:z, Float:a;
  706. GetPlayerPos(playerid, x,y,z);
  707. GetPlayerFacingAngle(playerid, a);
  708. new vehicleid = CreateVehicle(434, x+3,y,z, a, -1, -1, -1);
  709. PutPlayerInVehicle(playerid, vehicleid, 0);
  710. }
  711. }
  712. //Add more here
  713. }
  714. }
  715. }*/
  716. //=================================HELP COMMANDS DIALOG=========//
  717. if(dialogid == 11)
  718. {
  719. if(response == 1)
  720. {
  721. switch(listitem)
  722. {
  723. case 0: //if General Commands
  724. {
  725. SendClientMessage(playerid,COLOR_CYAN,"_________________GENERAL COMMANDS _________________");
  726. SendClientMessage(playerid,COLOR_WHITE,"/ucp /atm /help /map /buy /medic /report");
  727. SendClientMessage(playerid,COLOR_CYAN,"_______________________________________________________");
  728. }
  729. case 1: //if Admin Commands
  730. {
  731. if(AdminLevel[playerid] == 0)
  732. {
  733. SendClientMessage(playerid,COLOR_CERVENA,"You Are Not Admin to see those commands.");
  734. }
  735. if(AdminLevel[playerid] >= 1)
  736. {
  737. SendClientMessage(playerid,COLOR_RED,"_____________________Moderator Commands____________________");
  738. SendClientMessage(playerid,COLOR_WHITE,"/kick | /clearchat |/kick |/slap |/weather |/a(privat admin chat)");
  739. SendClientMessage(playerid,COLOR_RED,"_____________________________________________________________");
  740. }
  741. if(AdminLevel[playerid] >= 2)
  742. {
  743. SendClientMessage(playerid,COLOR_CYAN,"_____________________Head Modo Commands____________________");
  744. SendClientMessage(playerid,COLOR_WHITE,"/goto |/gethere |/hpall |/armorall");
  745. SendClientMessage(playerid,COLOR_CYAN,"_____________________________________________________________");
  746. }
  747. if(AdminLevel[playerid] >= 3)
  748. {
  749. SendClientMessage(playerid,COLOR_ORANGE,"_____________________Administrator Commands____________________");
  750. SendClientMessage(playerid,COLOR_WHITE,"/freeze |/unfreeze |/setskin |/ban(only for rule breakers)");
  751. SendClientMessage(playerid,COLOR_ORANGE,"_____________________________________________________________");
  752. }
  753. if(AdminLevel[playerid] >= 4)
  754. {
  755. SendClientMessage(playerid,COLOR_MODRA,"_____________________Head Admin Commands____________________");
  756. SendClientMessage(playerid,COLOR_WHITE,"/removemoney");
  757. SendClientMessage(playerid,COLOR_MODRA,"_____________________________________________________________");
  758. }
  759. }
  760. case 2: //if VIP Infos
  761. {
  762. SendClientMessage(playerid,COLOR_CYAN,"_________________VIP Infos _________________");
  763. SendClientMessage(playerid,COLOR_WHITE,"Any player can be a Vip(Silver or Gold) by asking the Owner 'Sorrow'");
  764. SendClientMessage(playerid,COLOR_WHITE,"They can forbidden players to send sms to them by /nosms");
  765. SendClientMessage(playerid,COLOR_WHITE,"Can speak with each other in /vchat.");
  766. SendClientMessage(playerid,COLOR_WHITE,"Any Vip has a VIP TAG in the front of his head.");
  767. SendClientMessage(playerid,COLOR_WHITE,"Have Acces to /vshop (coming soon).");
  768. SendClientMessage(playerid,COLOR_CYAN,"_______________________________________________________");
  769. }
  770. case 3: //if Other Infos
  771. {
  772. SendClientMessage(playerid,COLOR_CYAN,"_________________Other Infos _________________");
  773. SendClientMessage(playerid,COLOR_CERVENA,"WE HAVE ANTI-CHEAT, do not hack or you will get a perma ban.");
  774. SendClientMessage(playerid,COLOR_WHITE,"Admins are players, so insulting admin=insulting players,if there is an abuse=ACCOUNT BAN.");
  775. SendClientMessage(playerid,COLOR_WHITE,"There is 2 types of ban : 1-Account ban for rule breackers/2-Perma ban for hackers.");
  776. SendClientMessage(playerid,COLOR_CYAN,"_______________________________________________________");
  777. }
  778. }
  779. }
  780. }
  781. //**************************************************************************************************//
  782. //===============================================TEAMS SYSTEm=========================================//
  783. if(dialogid == 13)
  784. {
  785. if(response == 1)
  786. {
  787. switch(listitem)
  788. {
  789. case 0: //if Cops
  790. {
  791. ShowPlayerDialog(playerid,14,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Human Class:","\n{00FF00}Survivor {FFFFFF}(0 XP)\n{2641FE}Cop {FFFFFF}(400 XP)\n{FF8282}Medic {FFFFFF}(800 XP)\n{B4B5B7}Knocker {FFFFFF}(2400 XP)\n{2641FE}S.T.A.R.S {FFFFFF}(7000 XP)\n<==BACK","CHOOSE","");
  792. }
  793. case 1:
  794. {
  795. ShowPlayerDialog(playerid,15,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Zombie Class:","\n{BD0000}Normal Zombie {FFFFFF}(0 XP)\n{BD0000}Drink Zombie {FFFFFF}(600 XP)\n{BD0000}Speed Zombie {FFFFFF}(2700 XP)\n{C2A2DA}Boomer Zombie {FFFFFF}(4600 XP)\n{F2FB25}Tank Zombie {FFFFFF}(7800 XP)\n{FF0000}Mad Zombie {FFFFFF}(10,000 XP)\n{B1C8FB}Witch Zombie {FFFFFF}(14,000 XP)\n{99FFFF}Nemses {FFFFFF}(20,000 XP)\n<==Back","CHOOSE","");
  796. }
  797.  
  798. //more
  799. }
  800. }
  801. }
  802. //********************************************************************************//
  803. //**************************************************************************************//
  804. //========================================Humans Spawn Class Dialog====================================//
  805. if(dialogid == 14)
  806. {
  807. if(response == 1)
  808. {
  809. switch(listitem)
  810. {
  811. case 0: //if Survivor
  812. {
  813. new RandomSkinH1 = random(6); // choose Random Skin for Survivor
  814. switch (RandomSkinH1) {
  815. case 0: SetPlayerSkin(playerid,48);
  816. case 1: SetPlayerSkin(playerid,47);
  817. case 2: SetPlayerSkin(playerid,59);
  818. case 3: SetPlayerSkin(playerid,58);
  819. case 4: SetPlayerSkin(playerid,72);
  820. case 5: SetPlayerSkin(playerid,100);
  821. }
  822. SetPlayerPos(playerid,-144.5755,1221.1106,19.8992);
  823. SetPlayerFacingAngle(playerid,172.4309);
  824. GivePlayerWeapon(playerid,23,70);
  825. GivePlayerWeapon(playerid,25,50);
  826. gTeam[playerid] = 3;
  827. SetPlayerHealth(playerid,90);
  828. GameTextForPlayer(playerid, "You Chose Survivor class , KILL all Zombies!",4000,4);
  829. }
  830. //========================================================
  831. case 1:// if Cop
  832. {
  833. if(XP[playerid] >= 400)
  834. {
  835. new RandomSkinH2 = random(6); // choose Random Skin for Cops
  836. switch (RandomSkinH2) {
  837. case 0: SetPlayerSkin(playerid,283);
  838. case 1: SetPlayerSkin(playerid,286);
  839. case 2: SetPlayerSkin(playerid,282);
  840. case 3: SetPlayerSkin(playerid,288);
  841. case 4: SetPlayerSkin(playerid,281);
  842. case 5: SetPlayerSkin(playerid,280);
  843. }
  844. SetPlayerPos(playerid,-144.5755,1221.1106,19.8992);
  845. SetPlayerFacingAngle(playerid,172.4309);
  846. gTeam[playerid] = 4;
  847. GameTextForPlayer(playerid, "You Chose Cop class , KILL all Zombies!",4000,4);
  848. GivePlayerWeapon(playerid,25,60);
  849. GivePlayerWeapon(playerid,24,50);
  850. SetPlayerHealth(playerid,100);
  851. }
  852. else {
  853. SendClientMessage(playerid,COLOR_CERVENA,"You need 400 XP to choose this class!");
  854. ShowPlayerDialog(playerid,14,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Human Class:","\n{00FF00}Survivor {FFFFFF}(0 XP)\n{2641FE}Cop {FFFFFF}(400 XP)\n{FF8282}Medic {FFFFFF}(950 XP)\n{B4B5B7}Knocker {FFFFFF}(2400 XP)\n{2641FE}S.T.A.R.S {FFFFFF}(7000 XP)\n<==BACK","CHOOSE","");
  855. }
  856. }
  857. //==========================================================
  858. case 2: //if Medic
  859. {
  860. if(XP[playerid] >= 950)
  861. {
  862. new RandomSkinH3 = random(4); // choose Random Skin for Medic
  863. switch (RandomSkinH3) {
  864. case 0: SetPlayerSkin(playerid,274);
  865. case 1: SetPlayerSkin(playerid,275);
  866. case 2: SetPlayerSkin(playerid,276);
  867. case 3: SetPlayerSkin(playerid,277);
  868. }
  869. SetPlayerPos(playerid,-144.5755,1221.1106,19.8992);
  870. SetPlayerFacingAngle(playerid,172.4309);
  871. gTeam[playerid] = 5;
  872. GameTextForPlayer(playerid, "You Chose Medic class , Cure Humans & Kill Zombies!",4000,4);
  873. GivePlayerWeapon(playerid,25,60);
  874. GivePlayerWeapon(playerid,24,50);
  875. GivePlayerWeapon(playerid,41,25);
  876. SetPlayerHealth(playerid,100);
  877. }
  878. else {
  879. SendClientMessage(playerid,COLOR_CERVENA,"You need 950 XP to choose this class!");
  880. ShowPlayerDialog(playerid,14,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Human Class:","\n{00FF00}Survivor {FFFFFF}(0 XP)\n{2641FE}Cop {FFFFFF}(400 XP)\n{FF8282}Medic {FFFFFF}(950 XP)\n{B4B5B7}Knocker {FFFFFF}(2400 XP)\n{2641FE}S.T.A.R.S {FFFFFF}(7000 XP)\n<==BACK","CHOOSE","");
  881. }
  882. }
  883. //==================================================
  884. case 3: //if Knocker
  885. {
  886. if(XP[playerid] >= 2000)
  887. {
  888. new RandomSkinH4 = random(4); // choose Random Skin for Knocker
  889. switch (RandomSkinH4) {
  890. case 0: SetPlayerSkin(playerid,112);
  891. case 1: SetPlayerSkin(playerid,111);
  892. case 2: SetPlayerSkin(playerid,113);
  893. case 3: SetPlayerSkin(playerid,122);
  894. }
  895. SetPlayerPos(playerid,-144.5755,1221.1106,19.8992);
  896. SetPlayerFacingAngle(playerid,172.4309);
  897. gTeam[playerid] = 6;
  898. GameTextForPlayer(playerid, "You Chose Knocker class Kill Zombies!",4000,4);
  899. GivePlayerWeapon(playerid,25,60);
  900. GivePlayerWeapon(playerid,24,50);
  901. GivePlayerWeapon(playerid,35,2);
  902. SetPlayerSkillLevel(playerid,24,100);
  903. SetPlayerHealth(playerid,100);
  904. }
  905. else {
  906. SendClientMessage(playerid,COLOR_CERVENA,"You need 2,000 XP to choose this class!");
  907. ShowPlayerDialog(playerid,14,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Human Class:","\n{00FF00}Survivor {FFFFFF}(0 XP)\n{2641FE}Cop {FFFFFF}(400 XP)\n{FF8282}Medic {FFFFFF}(950 XP)\n{B4B5B7}Knocker {FFFFFF}(2400 XP)\n{2641FE}S.T.A.R.S {FFFFFF}(7000 XP)\n<==BACK","CHOOSE","");
  908. }
  909. }
  910. //=================================================
  911. case 4: //if STARS
  912. {
  913. if(XP[playerid] >= 7000)
  914. {
  915. new RandomSkinH5 = random(4); // choose Random Skin for STARS
  916. switch (RandomSkinH5) {
  917. case 0: SetPlayerSkin(playerid,287);
  918. case 1: SetPlayerSkin(playerid,285);
  919. }
  920. SetPlayerPos(playerid,-144.5755,1221.1106,19.8992);
  921. SetPlayerFacingAngle(playerid,172.4309);
  922. gTeam[playerid] = 7;
  923. GameTextForPlayer(playerid, "You Chose S.T.A.R.S class Kill Zombies & Nemesis !",4000,4);
  924. GivePlayerWeapon(playerid,31,400);
  925. GivePlayerWeapon(playerid,24,60);
  926. GivePlayerWeapon(playerid,35,6);
  927. SetPlayerSkillLevel(playerid,24,100);
  928. SetPlayerSkillLevel(playerid,31,100);
  929. SetPlayerHealth(playerid,100);
  930. SetPlayerArmour(playerid,100);
  931. }
  932. else {
  933. SendClientMessage(playerid,COLOR_CERVENA,"You need 7,000 XP to choose this class!");
  934. ShowPlayerDialog(playerid,14,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Human Class:","\n{00FF00}Survivor {FFFFFF}(0 XP)\n{2641FE}Cop {FFFFFF}(400 XP)\n{FF8282}Medic {FFFFFF}(950 XP)\n{B4B5B7}Knocker {FFFFFF}(2400 XP)\n{2641FE}S.T.A.R.S {FFFFFF}(7000 XP)\n<==BACK","CHOOSE","");
  935. }
  936. }
  937. case 5:
  938. {
  939. ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Team:","\n{00FF00}Humans {FFFFFF}Team\n{BD0000}Zombies {FFFFFF}Team","CHOOSE","");
  940. }
  941. //more Humans Class Here
  942. }
  943. }
  944. }
  945. //========*************************END HUMAN CLASS SPAWN=========================//
  946. //=====================================Zombie Class=====================//
  947. if(dialogid == 15)
  948. {
  949. if(response == 1)
  950. {
  951. switch(listitem)
  952. {
  953. case 0: //if Normal Zombie
  954. {
  955. new RandomSkinZ1 = random(4); // choose Random Skin for Zombies
  956. switch (RandomSkinZ1) {
  957. case 0: SetPlayerSkin(playerid,78);
  958. case 1: SetPlayerSkin(playerid,79);
  959. case 2: SetPlayerSkin(playerid,132);
  960. case 3: SetPlayerSkin(playerid,134);
  961. }
  962. SetPlayerPos(playerid,-149.7907,1081.2349,19.7422);
  963. SetPlayerFacingAngle(playerid,359.4201);
  964. gTeam[playerid] = 8;
  965. SetPlayerHealth(playerid,100);
  966. GameTextForPlayer(playerid, "You Chose Zombie class , eat some brains !",4000,4);
  967. }
  968. //========================================================
  969. case 1:// if Drink Zombie
  970. {
  971. if(XP[playerid] >= 600)
  972. {
  973. new RandomSkinZ2 = random(2); // choose Random Skin for Drink
  974. switch (RandomSkinZ2) {
  975. case 0: SetPlayerSkin(playerid,136);
  976. case 1: SetPlayerSkin(playerid,137);
  977. }
  978. SetPlayerPos(playerid,-149.7907,1081.2349,19.7422);
  979. SetPlayerFacingAngle(playerid,359.4201);
  980. gTeam[playerid] = 9;
  981. GameTextForPlayer(playerid, "You Chose Drink Zombie class , eat some brains !",4000,4);
  982. SetPlayerHealth(playerid,100);
  983. }
  984. else {
  985. SendClientMessage(playerid,COLOR_CERVENA,"You need 600 XP to choose this class!");
  986. ShowPlayerDialog(playerid,15,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Zombie Class:","\n{BD0000}Normal Zombie {FFFFFF}(0 XP)\n{BD0000}Drink Zombie {FFFFFF}(600 XP)\n{BD0000}Speed Zombie {FFFFFF}(1500 XP)\n{C2A2DA}Boomer Zombie {FFFFFF}(2900 XP)\n{F2FB25}Tank Zombie {FFFFFF}(7800 XP)\n{FF0000}Mad Zombie {FFFFFF}(10,000 XP)\n{B1C8FB}Witch Zombie {FFFFFF}(14,000 XP)\n{99FFFF}Nemses {FFFFFF}(20,000 XP)\n<==Back","CHOOSE","");
  987. }
  988. }
  989. //==========================================================
  990. case 2:// if Drink Zombie
  991. {
  992. if(XP[playerid] >= 1500)
  993. {
  994. new RandomSkinZ3 = random(3); // choose Random Skin for SpeedZombie
  995. switch (RandomSkinZ3) {
  996. case 0: SetPlayerSkin(playerid,143);
  997. case 1: SetPlayerSkin(playerid,144);
  998. case 2: SetPlayerSkin(playerid,146);
  999. }
  1000. SetPlayerPos(playerid,-149.7907,1081.2349,19.7422);
  1001. SetPlayerFacingAngle(playerid,359.4201);
  1002. gTeam[playerid] = 10;
  1003. GameTextForPlayer(playerid, "You Chose Speed Zombie class , eat some brains !",4000,4);
  1004. SetPlayerHealth(playerid,100);
  1005. }
  1006. else {
  1007. SendClientMessage(playerid,COLOR_CERVENA,"You need 1,500 XP to choose this class!");
  1008. ShowPlayerDialog(playerid,15,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Zombie Class:","\n{BD0000}Normal Zombie {FFFFFF}(0 XP)\n{BD0000}Drink Zombie {FFFFFF}(600 XP)\n{BD0000}Speed Zombie {FFFFFF}(1500 XP)\n{C2A2DA}Boomer Zombie {FFFFFF}(2900 XP)\n{F2FB25}Tank Zombie {FFFFFF}(7800 XP)\n{FF0000}Mad Zombie {FFFFFF}(10,000 XP)\n{B1C8FB}Witch Zombie {FFFFFF}(14,000 XP)\n{99FFFF}Nemses {FFFFFF}(20,000 XP)\n<==Back","CHOOSE","");
  1009. }
  1010. }
  1011. //==================================================
  1012. case 3:// if Boomer
  1013. {
  1014. if(XP[playerid] >= 2900)
  1015. {
  1016. new RandomSkinZ4 = random(3); // choose Random Skin for Boomer
  1017. switch (RandomSkinZ4) {
  1018. case 0: SetPlayerSkin(playerid,168);
  1019. case 1: SetPlayerSkin(playerid,241);
  1020. case 2: SetPlayerSkin(playerid,242);
  1021. }
  1022. SetPlayerPos(playerid,-149.7907,1081.2349,19.7422);
  1023. SetPlayerFacingAngle(playerid,359.4201);
  1024. gTeam[playerid] = 11;
  1025. GameTextForPlayer(playerid, "You Chose Boomer Zombie class , eat some brains !",4000,4);
  1026. SetPlayerHealth(playerid,130);
  1027. }
  1028. else {
  1029. SendClientMessage(playerid,COLOR_CERVENA,"You need 2,900 XP to choose this class!");
  1030. ShowPlayerDialog(playerid,15,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Zombie Class:","\n{BD0000}Normal Zombie {FFFFFF}(0 XP)\n{BD0000}Drink Zombie {FFFFFF}(600 XP)\n{BD0000}Speed Zombie {FFFFFF}(1500 XP)\n{C2A2DA}Boomer Zombie {FFFFFF}(2900 XP)\n{F2FB25}Tank Zombie {FFFFFF}(7800 XP)\n{FF0000}Mad Zombie {FFFFFF}(10,000 XP)\n{B1C8FB}Witch Zombie {FFFFFF}(14,000 XP)\n{99FFFF}Nemses {FFFFFF}(20,000 XP)\n<==Back","CHOOSE","");
  1031. }
  1032. }
  1033. //=================================================
  1034. case 4:// if Tank
  1035. {
  1036. if(XP[playerid] >= 7800)
  1037. {
  1038. new RandomSkinZ5 = random(3); // choose Random Skin for Tank
  1039. switch (RandomSkinZ5) {
  1040. case 0: SetPlayerSkin(playerid,30);
  1041. case 1: SetPlayerSkin(playerid,29);
  1042. case 2: SetPlayerSkin(playerid,28);
  1043. }
  1044. SetPlayerPos(playerid,-149.7907,1081.2349,19.7422);
  1045. SetPlayerFacingAngle(playerid,359.4201);
  1046. gTeam[playerid] = 12;
  1047. GameTextForPlayer(playerid, "You Chose Tank Zombie class , eat some brains !",4000,4);
  1048. SetPlayerHealth(playerid,130);
  1049. }
  1050. else {
  1051. SendClientMessage(playerid,COLOR_CERVENA,"You need 7,800 XP to choose this class!");
  1052. ShowPlayerDialog(playerid,15,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Zombie Class:","\n{BD0000}Normal Zombie {FFFFFF}(0 XP)\n{BD0000}Drink Zombie {FFFFFF}(600 XP)\n{BD0000}Speed Zombie {FFFFFF}(1500 XP)\n{C2A2DA}Boomer Zombie {FFFFFF}(2900 XP)\n{F2FB25}Tank Zombie {FFFFFF}(7800 XP)\n{FF0000}Mad Zombie {FFFFFF}(10,000 XP)\n{B1C8FB}Witch Zombie {FFFFFF}(14,000 XP)\n{99FFFF}Nemses {FFFFFF}(20,000 XP)\n<==Back","CHOOSE","");
  1053. }
  1054. }
  1055. case 5:// if Mad Zombie
  1056. {
  1057. if(XP[playerid] >= 10000)
  1058. {
  1059. new RandomSkinZ6 = random(2); // choose Random Skin for Mad
  1060. switch (RandomSkinZ6) {
  1061. case 0: SetPlayerSkin(playerid,111);
  1062. case 1: SetPlayerSkin(playerid,112);
  1063. }
  1064. SetPlayerPos(playerid,-149.7907,1081.2349,19.7422);
  1065. SetPlayerFacingAngle(playerid,359.4201);
  1066. gTeam[playerid] = 13;
  1067. GameTextForPlayer(playerid, "You Chose Mad Zombie class , eat some brains !",4000,4);
  1068. SetPlayerHealth(playerid,130);
  1069. }
  1070. else {
  1071. SendClientMessage(playerid,COLOR_CERVENA,"You need 10,000 XP to choose this class!");
  1072. ShowPlayerDialog(playerid,15,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Zombie Class:","\n{BD0000}Normal Zombie {FFFFFF}(0 XP)\n{BD0000}Drink Zombie {FFFFFF}(600 XP)\n{BD0000}Speed Zombie {FFFFFF}(1500 XP)\n{C2A2DA}Boomer Zombie {FFFFFF}(2900 XP)\n{F2FB25}Tank Zombie {FFFFFF}(7800 XP)\n{FF0000}Mad Zombie {FFFFFF}(10,000 XP)\n{B1C8FB}Witch Zombie {FFFFFF}(14,000 XP)\n{99FFFF}Nemses {FFFFFF}(20,000 XP)\n<==Back","CHOOSE","");
  1073. }
  1074. }
  1075. //=============
  1076. case 6:// if witch
  1077. {
  1078. if(XP[playerid] >= 14000)
  1079. {
  1080. new RandomSkinZ7 = random(2); // choose Random Skin for witch
  1081. switch (RandomSkinZ7) {
  1082. case 0: SetPlayerSkin(playerid,111);
  1083. case 1: SetPlayerSkin(playerid,112);
  1084. }
  1085. SetPlayerPos(playerid,-149.7907,1081.2349,19.7422);
  1086. SetPlayerFacingAngle(playerid,359.4201);
  1087. gTeam[playerid] = 14;
  1088. GameTextForPlayer(playerid, "You Chose Witch Zombie class , eat some brains !",4000,4);
  1089. SetPlayerHealth(playerid,150);
  1090. }
  1091. else {
  1092. SendClientMessage(playerid,COLOR_CERVENA,"You need 14,000 XP to choose this class!");
  1093. ShowPlayerDialog(playerid,15,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Zombie Class:","\n{BD0000}Normal Zombie {FFFFFF}(0 XP)\n{BD0000}Drink Zombie {FFFFFF}(600 XP)\n{BD0000}Speed Zombie {FFFFFF}(1500 XP)\n{C2A2DA}Boomer Zombie {FFFFFF}(2900 XP)\n{F2FB25}Tank Zombie {FFFFFF}(7800 XP)\n{FF0000}Mad Zombie {FFFFFF}(10,000 XP)\n{B1C8FB}Witch Zombie {FFFFFF}(14,000 XP)\n{99FFFF}Nemses {FFFFFF}(20,000 XP)\n<==Back","CHOOSE","");
  1094. }
  1095. }
  1096. //============
  1097. case 7:// if Nemesis
  1098. {
  1099. if(XP[playerid] >= 20000)
  1100. {
  1101. new RandomSkinZ8 = random(2); // choose Random Skin for Nemesis
  1102. switch (RandomSkinZ8) {
  1103. case 0: SetPlayerSkin(playerid,33);
  1104. case 1: SetPlayerSkin(playerid,5);
  1105. }
  1106. SetPlayerPos(playerid,-149.7907,1081.2349,19.7422);
  1107. SetPlayerFacingAngle(playerid,359.4201);
  1108. gTeam[playerid] = 15;
  1109. GameTextForPlayer(playerid, "YOU ARE NEMESIS ! Congratulation !!",4000,4);
  1110. SetPlayerHealth(playerid,400);
  1111. GivePlayerWeapon(playerid,38,60);
  1112. }
  1113. else {
  1114. SendClientMessage(playerid,COLOR_CERVENA,"You need 20,000 XP to choose this class!");
  1115. ShowPlayerDialog(playerid,15,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Zombie Class:","\n{BD0000}Normal Zombie {FFFFFF}(0 XP)\n{BD0000}Drink Zombie {FFFFFF}(600 XP)\n{BD0000}Speed Zombie {FFFFFF}(1500 XP)\n{C2A2DA}Boomer Zombie {FFFFFF}(2900 XP)\n{F2FB25}Tank Zombie {FFFFFF}(7800 XP)\n{FF0000}Mad Zombie {FFFFFF}(10,000 XP)\n{B1C8FB}Witch Zombie {FFFFFF}(14,000 XP)\n{99FFFF}Nemses {FFFFFF}(20,000 XP)\n<==Back","CHOOSE","");
  1116. }
  1117. }
  1118. case 8://back
  1119. {
  1120. ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"{F5DEB3}Choose a Team:","\n{00FF00}Humans {FFFFFF}Team\n{BD0000}Zombies {FFFFFF}Team","CHOOSE","");
  1121. }
  1122. }
  1123. }
  1124. }
  1125. return 1;
  1126. }
  1127.  
  1128. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  1129. {
  1130. return 1;
  1131. }
  1132. //===================================REGISTER===================//
  1133. public OnPlayerRegister(playerid, Password[])
  1134. {
  1135. if(IsPlayerConnected(playerid))
  1136. {
  1137. if(strlen(Password) == 0) return ShowPlayerDialog(playerid, REGISTER, DIALOG_STYLE_INPUT, "{00CCFF}Registration", "{FFFFFF}Please enter password for registration \n\n\n{FF0000}Registration is required", "Register", "");
  1138. dini_Create(file[playerid]);
  1139. dini_Set(file[playerid], "Password", Password);
  1140. IsLogged[playerid] = true;
  1141. SendClientMessage(playerid, COLOR_MODRA, " *You've successfully registered an account !");
  1142. }
  1143. return 1;
  1144. }
  1145. public OnPlayerLogin(playerid, Password[])
  1146. {
  1147. if(IsPlayerConnected(playerid)) {
  1148. if(strlen(Password) == 0) return ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "{00CCFF}Login", "{FFFFFF}Please enter password for login \n\n\n{FF0000}Login is required", "Login", "");
  1149. if(strcmp(dini_Get(file[playerid], "Password"), Password, true) == 0) {
  1150. IsLogged[playerid] = true;
  1151. SendClientMessage(playerid, COLOR_YELLOW, "Welcome Back in Fort Carson Cops & Robbers Server !");
  1152. GivePlayerMoney(playerid, dini_Int(file[playerid], "Money"));
  1153. SetPlayerScore(playerid, dini_Int(file[playerid], "Score"));
  1154. Vip[playerid] = dini_Int(file[playerid], "Vip");
  1155. AdminLevel[playerid] = dini_Int(file[playerid], "Admin");
  1156. Banned[playerid] = dini_Int(file[playerid], "IGBAN");
  1157. Muted[playerid] = dini_Int(file[playerid], "IGMUTE");
  1158. TimeBanned[playerid] = dini_Int(file[playerid], "TimeBanned");
  1159. TimeKicked[playerid] = dini_Int(file[playerid], "TimeKicked");
  1160. TimeSlapped[playerid] = dini_Int(file[playerid], "TimeSlapped");
  1161. TimeMuted[playerid] = dini_Int(file[playerid], "TimeMuted");
  1162. Rank[playerid] = dini_Int(file[playerid], "Rank");
  1163. XP[playerid] = dini_Int(file[playerid], "XP");
  1164. if(Banned[playerid] == 1)
  1165. {
  1166. SendClientMessage(playerid, COLOR_WHITE, " Your account is banned by our admin team , please post an Unban Appeal.");
  1167. Kick(playerid);
  1168. }
  1169. }
  1170. else {
  1171. ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "{00CCFF}Login", "{FF0000}Incorrect Password{FFFFFF}\nplease try again", "Login", "");
  1172. }
  1173. }
  1174. return 1;
  1175. }
  1176. public OnPlayerSaveAcount(playerid)
  1177. {
  1178. if(IsPlayerConnected(playerid)) {
  1179. dini_IntSet(file[playerid], "Money", GetPlayerMoney(playerid));
  1180. dini_IntSet(file[playerid], "Score", GetPlayerScore(playerid));
  1181. dini_IntSet(file[playerid], "Vip", Vip[playerid]);
  1182. dini_IntSet(file[playerid], "Admin", AdminLevel[playerid]);
  1183. dini_IntSet(file[playerid], "IGBAN", Banned[playerid]);
  1184. dini_IntSet(file[playerid], "IGMUTE", Muted[playerid]);
  1185. dini_IntSet(file[playerid], "TimeBanned", TimeBanned[playerid]);
  1186. dini_IntSet(file[playerid], "TimeKicked", TimeKicked[playerid]);
  1187. dini_IntSet(file[playerid], "TimeSlapped", TimeSlapped[playerid]);
  1188. dini_IntSet(file[playerid], "TimeMuted", TimeMuted[playerid]);
  1189. dini_IntSet(file[playerid], "Rank", Rank[playerid]);
  1190. dini_IntSet(file[playerid], "XP", XP[playerid]);
  1191. }
  1192. return 1;
  1193. }
  1194. public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
  1195. {
  1196. //===============================For Normal+Drink+Speed ZOmbie========//
  1197. if((weaponid == 0) && ((gTeam[issuerid] == 8) || (gTeam[issuerid] == 9) || (gTeam[issuerid] == 10)))
  1198. {
  1199. new Float:Health, Float:a;
  1200. GetPlayerArmour(playerid,a);
  1201. if(a > 0)
  1202. {
  1203. SetPlayerArmour(playerid, a-10);
  1204. GameTextForPlayer(playerid,"~w~A ~r~zombie ~w~ hits your ~g~armour ~w~!",2000,4);
  1205. }
  1206. else if(a > 0 && a < 10)
  1207. {
  1208. SetPlayerArmour(playerid, 0);
  1209. GameTextForPlayer(playerid,"A ~r~zombie ~w~ hits your ~g~armour, your armour is now gone! RUN! ~w~!",2000,4);
  1210. }
  1211. else if (IsInfected[playerid] == 0 && a <= 0)
  1212. {
  1213. GetPlayerHealth(playerid,Health);
  1214. SetPlayerHealth(playerid, Health-5);
  1215. InfectionTime[playerid] = 0;
  1216. StopTimer[playerid] = SetTimer("infectiontimer", 1000, true);//starts infection
  1217. IsInfected[playerid] = 1;
  1218. GameTextForPlayer(playerid,"~w~A ~r~zombie ~w~ Infected You !",2000,4);
  1219. }
  1220. else
  1221. {
  1222. GetPlayerHealth(playerid,Health);
  1223. SetPlayerHealth(playerid, Health-5);
  1224. GameTextForPlayer(playerid,"~w~A ~r~zombie ~w~ hits you !(-5HP)",2000,4);
  1225. }
  1226.  
  1227. }
  1228. //=======================================END==========================//
  1229. //=====================================For Boomer Zombie===========//
  1230. else if((weaponid == 0) && (gTeam[issuerid] == 11))
  1231. {
  1232. new Float:Health, Float:a;
  1233. GetPlayerArmour(playerid,a);
  1234. if(a > 0)
  1235. {
  1236. SetPlayerArmour(playerid, a-10);
  1237. GameTextForPlayer(playerid,"~w~A ~p~Boomer ~w~ hits your ~g~armour ~w~!",2000,4);
  1238. }
  1239. else if(a > 0 && a < 10)
  1240. {
  1241. SetPlayerArmour(playerid, 0);
  1242. GameTextForPlayer(playerid,"A ~p~Boomer ~w~ hits your ~g~armour, your armour is now gone! RUN! ~w~!",2000,4);
  1243. }
  1244. else if (IsInfected[playerid] == 0 && a <= 0)
  1245. {
  1246. GetPlayerHealth(playerid,Health);
  1247. SetPlayerHealth(playerid, Health-6);
  1248. InfectionTime[playerid] = 0;
  1249. StopTimer[playerid] = SetTimer("infectiontimer", 1000, true);//starts infection
  1250. IsInfected[playerid] = 1;
  1251. GameTextForPlayer(playerid,"~w~A ~p~Boomer ~w~ Infected You !",2000,4);
  1252. }
  1253. else
  1254. {
  1255. GetPlayerHealth(playerid,Health);
  1256. SetPlayerHealth(playerid, Health-6);
  1257. GameTextForPlayer(playerid,"~w~A ~p~Boomer ~w~ hits you !(-6HP)",2000,4);
  1258. }
  1259.  
  1260. }
  1261. //==============================================END====================//
  1262. //=======================================Tank ZOmbie==================//
  1263. else if((weaponid == 0) && (gTeam[issuerid] == 12))
  1264. {
  1265. new Float:Health, Float:a;
  1266. GetPlayerArmour(playerid,a);
  1267. if(a > 0)
  1268. {
  1269. SetPlayerArmour(playerid, a-10);
  1270. SetPlayerVelocity(playerid,1.5,0,1.5);
  1271. SetTimerEx("Velocity",400,false,"i",playerid);
  1272. GameTextForPlayer(playerid,"~w~A ~y~Tank ~w~ hits your ~g~armour ~w~!",2000,4);
  1273. }
  1274. else if(a > 0 && a < 10)
  1275. {
  1276. SetPlayerArmour(playerid, 0);
  1277. SetPlayerVelocity(playerid,1.5,0,0.8);
  1278. SetTimerEx("Velocity",400,false,"i",playerid);
  1279. GameTextForPlayer(playerid,"A ~y~Tank ~w~ hits your ~g~armour, your armour is now gone! RUN! ~w~!",2000,4);
  1280. }
  1281. else if (IsInfected[playerid] == 0 && a <= 0)
  1282. {
  1283. GetPlayerHealth(playerid,Health);
  1284. SetPlayerHealth(playerid, Health-7);
  1285. SetPlayerVelocity(playerid,1.5,0,0.8);
  1286. SetTimerEx("Velocity",400,false,"i",playerid);
  1287. InfectionTime[playerid] = 0;
  1288. StopTimer[playerid] = SetTimer("infectiontimer", 1000, true);//starts infection
  1289. IsInfected[playerid] = 1;
  1290. GameTextForPlayer(playerid,"~w~A ~y~Tank ~w~ Infected You !",2000,4);
  1291. }
  1292. else
  1293. {
  1294. GetPlayerHealth(playerid,Health);
  1295. SetPlayerHealth(playerid, Health-7);
  1296. SetPlayerVelocity(playerid,1.5,0,0.8);
  1297. SetTimerEx("Velocity",400,false,"i",playerid);
  1298. GameTextForPlayer(playerid,"~w~A ~y~Tank ~w~ hits you !(-7HP)",2000,4);
  1299. }
  1300. }
  1301. //=======================================Mad Zombie====================//
  1302. else if((weaponid == 0) && (gTeam[issuerid] == 13))
  1303. {
  1304. new Float:Health, Float:a;
  1305. GetPlayerArmour(playerid,a);
  1306. if(a > 0)
  1307. {
  1308. SetPlayerArmour(playerid, a-10);
  1309. GameTextForPlayer(playerid,"~w~A ~r~Mad Zombie ~w~ hits your ~g~armour ~w~!",2000,4);
  1310. }
  1311. else if(a > 0 && a < 10)
  1312. {
  1313. SetPlayerArmour(playerid, 0);
  1314. GameTextForPlayer(playerid,"A ~r~Mad Zombie ~w~ hits your ~g~armour, your armour is now gone! RUN! ~w~!",2000,4);
  1315. }
  1316. else if (IsInfected[playerid] == 0 && a <= 0)
  1317. {
  1318. GetPlayerHealth(playerid,Health);
  1319. SetPlayerHealth(playerid, Health-10);
  1320. InfectionTime[playerid] = 0;
  1321. StopTimer[playerid] = SetTimer("infectiontimer", 1000, true);//starts infection
  1322. IsInfected[playerid] = 1;
  1323. GameTextForPlayer(playerid,"~w~A ~r~Mad Zombie ~w~ Infected You !",2000,4);
  1324. }
  1325. else
  1326. {
  1327. GetPlayerHealth(playerid,Health);
  1328. SetPlayerHealth(playerid, Health-10);
  1329. GameTextForPlayer(playerid,"~w~A ~r~Mad Zombie ~w~ hits you !(-10HP)",2000,4);
  1330. }
  1331. }
  1332. //============================================Witch ==========================//
  1333. else if((weaponid == 0) && (gTeam[issuerid] == 14))
  1334. {
  1335. new Float:Health, Float:a;
  1336. GetPlayerArmour(playerid,a);
  1337. if(a > 0)
  1338. {
  1339. SetPlayerArmour(playerid, a-10);
  1340. GameTextForPlayer(playerid,"~w~A ~p~Witch ~w~ hits your ~g~armour ~w~! RUN !",2000,4);
  1341. }
  1342. else if(a > 0 && a < 10)
  1343. {
  1344. SetPlayerArmour(playerid, 0);
  1345. GameTextForPlayer(playerid,"A ~p~Witch ~w~ hits your ~g~armour, your armour is now gone! RUN! ~w~!",2000,4);
  1346. }
  1347. else if (IsInfected[playerid] == 0 && a <= 0)
  1348. {
  1349. GetPlayerHealth(playerid,Health);
  1350. SetPlayerHealth(playerid, Health-20);
  1351. InfectionTime[playerid] = 0;
  1352. StopTimer[playerid] = SetTimer("infectiontimer", 1000, true);//starts infection
  1353. IsInfected[playerid] = 1;
  1354. GameTextForPlayer(playerid,"~w~A ~p~Witch ~w~ hits you !",2000,4);
  1355. }
  1356. else
  1357. {
  1358. GetPlayerHealth(playerid,Health);
  1359. SetPlayerHealth(playerid, Health-20);
  1360. GameTextForPlayer(playerid,"~w~A ~p~Witch ~w~ hits you ! (-20 HP)",2000,4);
  1361. }
  1362. }
  1363. //=============================================NEMESIS========================//
  1364. else if((weaponid == 0) && (gTeam[issuerid] == 15))
  1365. {
  1366. new Float:Health, Float:a;
  1367. GetPlayerArmour(playerid,a);
  1368. if(a > 0)
  1369. {
  1370. SetPlayerArmour(playerid, a-10);
  1371. SetPlayerVelocity(playerid,1.5,0,1.5);
  1372. SetTimerEx("Velocity",600,false,"i",playerid);
  1373. GameTextForPlayer(playerid,"~b~NEMESIS ~w~ hits your ~g~armour ~w~! RUN ! Now!",2000,4);
  1374. }
  1375. else if(a > 0 && a < 10)
  1376. {
  1377. SetPlayerArmour(playerid, 0);
  1378. SetPlayerVelocity(playerid,1.5,0,1.5);
  1379. SetTimerEx("Velocity",600,false,"i",playerid);
  1380. GameTextForPlayer(playerid,"A ~p~Witch ~w~ hits your ~g~armour, your armour is now gone! RUN! ~w~!",2000,4);
  1381. }
  1382. else if (IsInfected[playerid] == 0 && a <= 0)
  1383. {
  1384. GetPlayerHealth(playerid,Health);
  1385. SetPlayerHealth(playerid, Health-50);
  1386. SetPlayerVelocity(playerid,1.5,0,1.5);
  1387. SetTimerEx("Velocity",600,false,"i",playerid);
  1388. InfectionTime[playerid] = 0;
  1389. StopTimer[playerid] = SetTimer("infectiontimer", 1000, true);//starts infection
  1390. IsInfected[playerid] = 1;
  1391. GameTextForPlayer(playerid,"~b~NEMESIS ~w~ hits you !(-50HP)",2000,4);
  1392. }
  1393. else
  1394. {
  1395. GetPlayerHealth(playerid,Health);
  1396. SetPlayerHealth(playerid, Health-50);
  1397. SetPlayerVelocity(playerid,1.5,0,1.5);
  1398. SetTimerEx("Velocity",600,false,"i",playerid);
  1399. GameTextForPlayer(playerid,"~b~NEMESIS ~w~ hits you !(-50HP)",2000,4);
  1400. }
  1401. }
  1402. //============================================ZOMBIES TEAM END=========================//
  1403. return 1;
  1404. }
  1405. //Stocks
  1406. stock PlayerName(playerid){
  1407. new name[MAX_PLAYER_NAME];
  1408. GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  1409. return name;
  1410. }
  1411. stock chrfind(needle, haystack[], start = 0)
  1412. {
  1413. while (haystack[start])
  1414. if (haystack[start++] == needle)
  1415. return start - 1;
  1416. return -1;
  1417. }
  1418. //============================================END REGISTER================//
  1419. //=====================================Moderator COMMANDS=============//
  1420. dcmd_clearchat(playerid, params[])
  1421. {
  1422. if (AdminLevel[playerid] < 1) {
  1423. SendClientMessage(playerid, COLOR_CERVENA, " Your account isn't registered in the administration team !");
  1424. }
  1425. else {
  1426. if (AdminLevel[playerid] >= 1) {
  1427. #pragma unused params
  1428. #pragma unused playerid
  1429. for(new c=0;c<65;c++) SendClientMessageToAll(COLOR_WHITE," ");
  1430. new string[200];
  1431. format(string, sizeof(string), " {00FF00} FCDA staff {00CCFF}%s {FFFFFF}cleared CHAT !", PlayerName(playerid));
  1432. SendClientMessageToAll(COLOR_MODRA, string);
  1433. }
  1434. }
  1435. return 1;
  1436. }
  1437. dcmd_kick(playerid, params[])
  1438. {
  1439. if (AdminLevel[playerid] < 1) {
  1440. SendClientMessage(playerid, COLOR_CERVENA, " Your account isn't registered in the administration team !");
  1441. }
  1442. else {
  1443. if (AdminLevel[playerid] >= 1) {
  1444. new pos;
  1445. if(!params[0] || !(pos = chrfind(' ', params) + 1) || !params[pos]) return SendClientMessage(playerid, COLOR_CERVENA, "[!] Usage: /kick [ID] [Reason]");
  1446. new id = strval(params);
  1447. if (!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Player with this ID is not on the server !");
  1448. if(strlen(params[pos]) > 50) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Reason is too long !");
  1449. new string[150];
  1450. format(string, sizeof(string), " [!]{FF0000} %s was kicked by{00FF00} FCDA staff {00CCFF}%s [Reason:{FFFFFF} %s]",PlayerName(id), PlayerName(playerid), params[pos]);
  1451. SendClientMessageToAll(COLOR_CERVENA, string);
  1452. TimeKicked[id] ++;
  1453. Kick(id);
  1454. }
  1455. }
  1456. return 1;
  1457. }
  1458. dcmd_slap(playerid, params[])
  1459. {
  1460. if (AdminLevel[playerid] < 1) {
  1461. SendClientMessage(playerid, COLOR_CERVENA, " Your account isn't registered in the administration team !");
  1462. }
  1463. else {
  1464. if (AdminLevel[playerid] >= 1) {
  1465. new pos;
  1466. new string[200];
  1467. if(!params[0] || !(pos = chrfind(' ', params) + 1) || !params[pos]) return SendClientMessage(playerid, COLOR_CERVENA, "[!] Usage: /slap [ID] [Reason]");
  1468. new id = strval(params);
  1469. if (!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Player with this ID is not on the server !");
  1470. new Float:x,Float:y,Float:z;
  1471. GetPlayerPos(id,x,y,z);
  1472. SetPlayerPos(id,x,y,z+20);
  1473. TimeSlapped[id] ++;
  1474. format(string, sizeof(string), " [!]{FF0000} %s has been slapped by{00FF00} FCDA staff {00CCFF}%s {FFFFFF} for %s",PlayerName(id), PlayerName(playerid), params[pos]);
  1475. SendClientMessage(playerid, COLOR_WHITE,"You have slapped the player.");
  1476. }
  1477. }
  1478. return 1;
  1479. }
  1480. dcmd_weather(playerid, params[])
  1481. {
  1482. if (AdminLevel[playerid] < 1 ) {
  1483. SendClientMessage(playerid, COLOR_CERVENA, " Your account isn't registered in the administration team !");
  1484. }
  1485. else {
  1486. if (AdminLevel[playerid] >= 1) {
  1487. new string[200], pos, level;
  1488. if(!params[0]||!(pos=chrfind(' ',params))||!params[pos]) return SendClientMessage(playerid, COLOR_CERVENA, "[!] USAGE: /weather [weatherid]");
  1489. level = strval(params[pos]);
  1490. if(level < 1 || level > 44) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Please enter number of weather [1-44]");
  1491. format(string, sizeof(string), " **FCDA staff %s set weather to %d !", PlayerName(playerid), level);
  1492. SendClientMessageToAll(COLOR_MODRA, string);
  1493. SetWeather(level);
  1494. }
  1495. }
  1496. return 1;
  1497. }
  1498. dcmd_mute(playerid, params[])
  1499. {
  1500. if (AdminLevel[playerid] < 1 ) {
  1501. SendClientMessage(playerid, COLOR_CERVENA, " Only Moderators or than can do that");
  1502. }
  1503. else {
  1504. if (AdminLevel[playerid] >= 1) {
  1505. if(strlen(params) > 50) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Bad parameters !");
  1506. new pos;
  1507. new string[150];
  1508. if(!params[0] || !(pos = chrfind(' ', params) + 1) || !params[pos]) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Usage: /mute [ID] [Reason]");
  1509.  
  1510. new CMD_ID = strval(params);
  1511. if(!IsPlayerConnected(CMD_ID)) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Player with this ID is not on the server !");
  1512. if(IsPlayerNPC(CMD_ID)) return SendClientMessage(playerid, COLOR_CERVENA, " [!] This is NPC !");
  1513. SendClientMessage(CMD_ID,COLOR_CERVENA,"You Are Muted Now !");
  1514.  
  1515. format(string, sizeof(string), " [!]{FF0000} %s {FFFFFF}is muted by {00FF00}Administrator {00CCFF} %s {FFFFFF}[Reason: {DDD100} %s{FFFFFF}]", PlayerName(CMD_ID),PlayerName(playerid),params[pos]);
  1516. SendClientMessageToAll(COLOR_CERVENA, string);
  1517. Muted[CMD_ID] = 1;
  1518. TimeMuted[CMD_ID] ++;
  1519. }
  1520. }
  1521. return 1;
  1522. }
  1523. dcmd_aduty(playerid, params[])
  1524. {
  1525. #pragma unused params
  1526. if (AdminLevel[playerid] < 1 ) {
  1527. SendClientMessage(playerid, COLOR_CERVENA, " You are not a FCDA staff !");
  1528. }
  1529. else {
  1530. if (AdminDuty[playerid] == 1) {
  1531. AdminDuty[playerid] = 0;
  1532. SendClientMessage(playerid,COLOR_WHITE,"You are now Duty OFF.");
  1533. if (AdminDuty[playerid] == 0) {
  1534. AdminDuty[playerid] = 1;
  1535. SendClientMessage(playerid,COLOR_WHITE,"You are now Duty ON !");
  1536. }
  1537. }
  1538. }
  1539. return 1;
  1540. }
  1541. //==========================================================================//
  1542.  
  1543. //====================================Head Moderator Commands===================//
  1544. dcmd_goto(playerid, params[])
  1545. {
  1546. new pos;
  1547. if(AdminLevel[playerid] < 2 ) return SendClientMessage(playerid, COLOR_CERVENA, " Only head moderator or than can do that !");
  1548. if(!params[0]||!(pos=chrfind(' ',params))||!params[pos]) return SendClientMessage(playerid, COLOR_CERVENA, "[!] USAGE: /goto [playerid]");
  1549. new id = strval(params[0]);
  1550. new Float:x,Float:y,Float:z;
  1551. GetPlayerPos(id,x,y,z);
  1552. SetPlayerPos(playerid,x,y,z);
  1553. SendClientMessage(playerid, COLOR_WHITE,"You are teleported to his place.");
  1554. return 1;
  1555. }
  1556. dcmd_gethere(playerid, params[])
  1557. {
  1558. new pos;
  1559. if(AdminLevel[playerid] < 2 ) return SendClientMessage(playerid, COLOR_CERVENA, " Only head moderator or than can do that !");
  1560. if(!params[0]||!(pos=chrfind(' ',params))||!params[pos]) return SendClientMessage(playerid, COLOR_CERVENA, "[!] USAGE: /gethere [playerid]");
  1561. new id = strval(params[0]);
  1562. new Float:x,Float:y,Float:z;
  1563. GetPlayerPos(playerid,x,y,z);
  1564. SetPlayerPos(id,x,y,z);
  1565. SendClientMessage(id, COLOR_WHITE,"An admin teleported you to his place .");
  1566. SendClientMessage(playerid, COLOR_WHITE,"the player is near you now.");
  1567. return 1;
  1568. }
  1569. dcmd_hpall(playerid, params[])
  1570. {
  1571. #pragma unused params
  1572. if (AdminLevel[playerid] < 2 ) {
  1573. SendClientMessage(playerid, COLOR_CERVENA, " Only head moderator or than can do that !");
  1574. }
  1575. else {
  1576. if (AdminLevel[playerid] >= 2) {
  1577. for(new i;i<GetMaxPlayers();i++) {
  1578. if(GetPVarInt(playerid,"stringa1") == 0) {
  1579. SetPlayerHealth(i,100);
  1580. new string[60];
  1581. format(string, sizeof(string), " {00FF00} FCDA staff{00CCFF} %s {FFFFFF}healed everyone !", PlayerName(playerid));
  1582. SendClientMessageToAll(COLOR_MODRA, string);
  1583. SetPVarInt(playerid,"stringa1",1);
  1584. }
  1585. }
  1586. }
  1587. }
  1588. return 1;
  1589. }
  1590. //=================================================================================//
  1591.  
  1592. //=======================================Administrator Commands=====================//
  1593. dcmd_freeze(playerid, params[])
  1594. {
  1595. if (AdminLevel[playerid] < 3 ) {
  1596. SendClientMessage(playerid, COLOR_CERVENA, " Only Administrator or than can do that !");
  1597. }
  1598. else {
  1599. if (AdminLevel[playerid] >= 3) {
  1600. new string[200], pos;
  1601. if(!params[0]||!(pos=chrfind(' ',params))||!params[pos]) return SendClientMessage(playerid, COLOR_CERVENA, "[!] USAGE: /freeze [ID]");
  1602. new id = strval(params[0]);
  1603. if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Player with this ID is not on the server !");
  1604. format(string, sizeof(string), " **Administrator %s has frozen %s ", PlayerName(playerid), PlayerName(id));
  1605. SendClientMessageToAll(COLOR_MODRA, string);
  1606. TogglePlayerControllable(id,false);
  1607. }
  1608. }
  1609. return 1;
  1610. }
  1611. dcmd_unfreeze(playerid, params[])
  1612. {
  1613. if (AdminLevel[playerid] < 3 ) {
  1614. SendClientMessage(playerid, COLOR_CERVENA, " Only Administrator or than can do that !");
  1615. }
  1616. else {
  1617. if (AdminLevel[playerid] >= 3) {
  1618. new string[200], pos;
  1619. if(!params[0]||!(pos=chrfind(' ',params))||!params[pos]) return SendClientMessage(playerid, COLOR_CERVENA, "[!] USAGE: /freeze [ID]");
  1620. new id = strval(params[0]);
  1621. if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Player with this ID is not on the server !");
  1622. format(string, sizeof(string), " **Administrator %s has unfrozen %s ", PlayerName(playerid), PlayerName(id));
  1623. SendClientMessageToAll(COLOR_MODRA, string);
  1624. TogglePlayerControllable(id,true);
  1625. SendClientMessage(id, COLOR_WHITE , " YOU HAVE BEED UNFROZEN BY AN ADMIN !");
  1626. }
  1627. }
  1628. return 1;
  1629. }
  1630. dcmd_setskin(playerid, params[])
  1631. {
  1632. if (AdminLevel[playerid] < 3 ) {
  1633. SendClientMessage(playerid, COLOR_CERVENA, " Only Administrator or than can do that !");
  1634. }
  1635. else {
  1636. if (AdminLevel[playerid] >= 3) {
  1637. new pos, level;
  1638. if(!params[0]||!(pos=chrfind(' ',params)+1)||!params[pos]) return SendClientMessage(playerid, COLOR_CERVENA, "[!] USAGE: /setskin [ID] [skinid]");
  1639. new id = strval(params[0]);
  1640. level = strval(params[pos]);
  1641. if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Player with this ID is not on the server !");
  1642. if(level < 0 || level > 299) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Please enter skin number between [0-299]");
  1643. SetPlayerSkin(id,level);
  1644. SendClientMessage(id, COLOR_YELLOW2, "an admin changed your skin !");
  1645. }
  1646. }
  1647. return 1;
  1648. }
  1649. dcmd_ban(playerid, params[])
  1650. {
  1651. if (AdminLevel[playerid] < 3 ) {
  1652. SendClientMessage(playerid, COLOR_CERVENA, " Only Admin or than can do that");
  1653. }
  1654. else {
  1655. if (AdminLevel[playerid] >= 3) {
  1656. if(strlen(params) > 50) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Bad parameters !");
  1657. new pos;
  1658. new string[150];
  1659. if(!params[0] || !(pos = chrfind(' ', params) + 1) || !params[pos]) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Usage: /ban [ID] [Reason]");
  1660.  
  1661. new CMD_ID = strval(params);
  1662. if(!IsPlayerConnected(CMD_ID)) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Player with this ID is not on the server !");
  1663. if(IsPlayerNPC(CMD_ID)) return SendClientMessage(playerid, COLOR_CERVENA, " [!] This is NPC !");
  1664. format(string, sizeof(string), "[!] You have been banned by Administrator %s. [Reason: %s]",PlayerName(playerid),params[pos]);
  1665. SendClientMessage(CMD_ID, COLOR_CERVENA, string);
  1666.  
  1667. format(string, sizeof(string), " [!]{FF0000} %s {FFFFFF}was banned by {00FF00}Administrator {00CCFF} %s {FFFFFF}[Reason: {DDD100} %s{FFFFFF}]", PlayerName(CMD_ID),PlayerName(playerid),params[pos]);
  1668. SendClientMessageToAll(COLOR_CERVENA, string);
  1669. format(string, sizeof(string), "ADMINISTRATOR: %s Ban[%s]", PlayerName(playerid), params[pos]);
  1670. Banned[CMD_ID] = 1;
  1671. TimeBanned[CMD_ID] ++;
  1672. dini_Set(file[CMD_ID], "BanReason", params[pos]);
  1673. dini_Set(file[CMD_ID], "BanAdmin", PlayerName(playerid));
  1674. Kick(CMD_ID);
  1675. }
  1676. }
  1677. return 1;
  1678. }
  1679. //==================================================================================//
  1680.  
  1681. //=====================================Head Admin Commands=========================//
  1682. dcmd_removemoney(playerid, params[])
  1683. {
  1684. if (AdminLevel[playerid] < 4 )
  1685. {
  1686. SendClientMessage(playerid, COLOR_CERVENA, " [!] You don't have permission for this command !");
  1687. } else {
  1688. if (AdminLevel[playerid] >= 4)
  1689. {
  1690. new string[200], pos, level;
  1691. if(!params[0]||!(pos=chrfind(' ',params)+1)||!params[pos]) return SendClientMessage(playerid, COLOR_CERVENA, "[!] USAGE: /removemoney [ID] [1000-20000]");
  1692. new id = strval(params[0]);
  1693. level = strval(params[pos]);
  1694. if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Player with this ID is not on the server !");
  1695. if(level < 1000 || level > 20000) return SendClientMessage(playerid, COLOR_CERVENA, " you can remove money between $1000 and $20000");
  1696. format(string, sizeof(string), " **Administrator %s removed from %s $%d", PlayerName(playerid), PlayerName(id), level);
  1697. SendClientMessageToAll(COLOR_MODRA, string);
  1698. GivePlayerMoney(id,-level);
  1699. }
  1700. }
  1701. return 1;
  1702. }
  1703.  
  1704. //=======================================================================================//
  1705.  
  1706. //=======================================OWNER COMMANDS=============================//
  1707. dcmd_makeadmin(playerid, params[])
  1708. {
  1709. if (AdminLevel[playerid] < 5 )
  1710. {
  1711. SendClientMessage(playerid, COLOR_CERVENA, " [!] You don't have permission for this command !");
  1712. } else {
  1713. if (AdminLevel[playerid] == 5)
  1714. {
  1715. new string[200], pos, level;
  1716. if(!params[0]||!(pos=chrfind(' ',params)+1)||!params[pos]) return SendClientMessage(playerid, COLOR_CERVENA, "[!] USAGE: /setlevel [ID] [0-5]");
  1717. new id = strval(params[0]);
  1718. level = strval(params[pos]);
  1719. if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Player with this ID is not on the server !");
  1720. if(level < 0 || level > 5) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Please enter number of level [0-5]");
  1721. format(string, sizeof(string), " **Administrator %s set admin level to %s [Level: %d]", PlayerName(playerid), PlayerName(id), level);
  1722. SendClientMessageToAll(COLOR_MODRA, string);
  1723. AdminLevel[id] = level;
  1724. }
  1725. }
  1726. return 1;
  1727. }
  1728. dcmd_makevip(playerid, params[])
  1729. {
  1730. if (AdminLevel[playerid] < 5 )
  1731. {
  1732. SendClientMessage(playerid, COLOR_CERVENA, " [!] You don't have permission for this command !");
  1733. } else {
  1734. if (AdminLevel[playerid] == 5)
  1735. {
  1736. new string[200], pos, level;
  1737. if(!params[0]||!(pos=chrfind(' ',params)+1)||!params[pos]) return SendClientMessage(playerid, COLOR_CERVENA, "[!] USAGE: /makevip [ID] [0-3]");
  1738. new id = strval(params[0]);
  1739. level = strval(params[pos]);
  1740. if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Player with this ID is not on the server !");
  1741. if(level < 0 || level > 2) return SendClientMessage(playerid, COLOR_CERVENA, " [!] Please enter number of level [0-2]");
  1742. format(string, sizeof(string), " **Administrator %s set Vip level to %s [Level: %d]", PlayerName(playerid), PlayerName(id), level);
  1743. SendClientMessageToAll(COLOR_MODRA, string);
  1744. Vip[id] = level;
  1745. }
  1746. }
  1747. return 1;
  1748. }
  1749. dcmd_velocity(playerid, params[])
  1750. {
  1751. #pragma unused params
  1752. new Float:Health, Float:a;
  1753. GetPlayerArmour(playerid,a);
  1754. if(a > 0)
  1755. {
  1756. SetPlayerArmour(playerid, a-10);
  1757. PlayerPlaySound(playerid, 1136, 0, 0, 0);
  1758. GameTextForPlayer(playerid,"~w~A ~r~zombie ~w~ hits your ~g~armour ~w~!",2000,4);
  1759. }
  1760. else if(a > 0 && a < 10)
  1761. {
  1762. SetPlayerArmour(playerid, 0);
  1763. PlayerPlaySound(playerid, 1136, 0, 0, 0);
  1764. GameTextForPlayer(playerid,"A ~r~zombie ~w~ hits your ~g~armour, your armour is now gone! RUN! ~w~!",2000,4);
  1765. }
  1766. else if (IsInfected[playerid] == 0 && a <= 0)
  1767. {
  1768. GetPlayerHealth(playerid,Health);
  1769. SetPlayerHealth(playerid, Health-5);
  1770. PlayerPlaySound(playerid, 1136, 0, 0, 0);
  1771. InfectionTime[playerid] = 0;
  1772. StopTimer[playerid] = SetTimer("infectiontimer", 1000, true);//starts infection
  1773. IsInfected[playerid] = 1;
  1774. GameTextForPlayer(playerid,"~w~A ~r~zombie ~w~ Infected You !",2000,4);
  1775. }
  1776. else
  1777. {
  1778. GetPlayerHealth(playerid,Health);
  1779. SetPlayerHealth(playerid, Health-5);
  1780. PlayerPlaySound(playerid, 1136, 0, 0, 0);
  1781. GameTextForPlayer(playerid,"~w~A ~r~zombie ~w~ hits you !(-5HP)",2000,4);
  1782. }
  1783. return 1;
  1784. }
  1785.  
  1786. //=====================================VELOCITY FUNCTION============//
  1787. forward Velocity(playerid);
  1788. public Velocity(playerid)
  1789. {
  1790. SetPlayerVelocity(playerid,0,0,0);
  1791. return 1;
  1792. }
  1793. //======================================================================================//
  1794.  
  1795. //=====================================PLAYERS COMMANDS=======================================//
  1796. dcmd_admins(playerid, params[])
  1797. {
  1798. #pragma unused params
  1799. if(IsPlayerConnected(playerid))
  1800. {
  1801. SendClientMessage(playerid, COLOR_NICERED, "|____ Fort Carson Mad Team DeathMatch Admin Team____|");
  1802. for(new i=0; i<MAX_PLAYERS; i++)
  1803. {
  1804. if(IsPlayerConnected(i))
  1805. {
  1806. if(AdminLevel[i] >= 1 && AdminLevel[i] <= 5)
  1807. {
  1808. new string[128];
  1809. new Admintext[128];
  1810. if(AdminLevel[i]==5) { Admintext = "Server Owner"; }
  1811. else if(AdminLevel[i] == 4) { Admintext = "{FAEAA9}Head Admin"; }
  1812. else if(AdminLevel[i] == 3) { Admintext = "{0088FF}Administrator"; }
  1813. else if(AdminLevel[i] == 2) { Admintext = "{99FFFF}Head Modo"; }
  1814. else if(AdminLevel[i] == 1) { Admintext = "{F7A26F}Moderator"; }
  1815.  
  1816. format(string, sizeof(string), " %s: {FFFFFF}%s", Admintext,PlayerName(i));
  1817. SendClientMessage(playerid, COLOR_WHITE, string);
  1818.  
  1819. }
  1820. }
  1821. }
  1822. }
  1823.  
  1824.  
  1825. return 1;
  1826. }
  1827. dcmd_ucp(playerid, params[])
  1828. {
  1829. #pragma unused params
  1830. ShowPlayerDialog(playerid,9,DIALOG_STYLE_LIST,"{00FF00}User Control Pannel","\n{FFFFFF}My Account History\n{FFFFFF}My General Stats\n{FFFFFF}Change my Pass","OK","Cancel");
  1831. return 1;
  1832. }
  1833. dcmd_help(playerid, params[])
  1834. {
  1835. #pragma unused params
  1836. ShowPlayerDialog(playerid,11,DIALOG_STYLE_LIST,"{00FF00}more infos :/ranks & /ucp","\n{FFFFFF}General Commands\n{FFFFFF}Admin Commands\n{FFFFFF}VIP Infos\n{FFFFFF}Other Informations","See","Cancel");
  1837. return 1;
  1838. }
  1839. dcmd_kill(playerid, params[])
  1840. {
  1841. #pragma unused params
  1842. SetPlayerHealth(playerid,0);
  1843. return 1;
  1844. }
  1845. //==================================================================//
  1846. //=====================================SILVER VIP COMMANDS===========//
  1847.  
  1848. //===================================================================//
  1849.  
  1850. //=======================================GOLD VIP COMMANDS============//
  1851.  
  1852. //=====================================================================//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement