Advertisement
Guest User

ZombieFS

a guest
Apr 19th, 2011
832
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 66.66 KB | None | 0 0
  1. /*
  2. Zombie system
  3. ^^
  4. (o )o)
  5. <-- | --> .: By Iron Smith :.
  6. / \
  7. */
  8. //==========================================INCLUDES============================
  9. //============================INCLUDES==========================================
  10. #include <a_samp>
  11. #include <zcmd>
  12. #include <dini>
  13. #include <dudb>
  14. #include <colors>
  15. #include <sscanf2>
  16. //==============================================================================
  17. #pragma unused ret_memcpy
  18. //===================================================COLORS AND DEFLINDS========
  19. //=======================================COLORS AND DEFLINDS====================
  20. #define ORANGE 0xFF8000FF
  21. #define COLOR_LIGHTBLUE 0xFFC801C8
  22. #define Color_Red 0xFF0000AA
  23. #define COLOR_BASIC 0x0066FFAA
  24. #define TEAM_VAGOS_COLOR 0xFFC801C8
  25. #define COLOR_GRAD1 0xB4B5B7FF
  26. //================================================FORWARDS======================
  27. //====================================FORWARDS==================================
  28. forward zombieAtaca(playerid);
  29. forward zombieAtaca1(playerid);
  30. forward ZombieSMessages();
  31. forward IsInZombieC(playerid);
  32. forward IsInZombieK(playerid);
  33. forward IsInZombieD(playerid);
  34. forward IsInZombieS(playerid);
  35. //=============================================NEWS=============================
  36. //===================================NEWS=======================================
  37. new Text3D:Zombie[ MAX_PLAYERS ];
  38. new Text3D:Knife[ MAX_PLAYERS ];
  39. new Text3D:Dildo[ MAX_PLAYERS ];
  40. new Text3D:Shovel[ MAX_PLAYERS ];
  41. new playerid2;
  42. new tmp[256];
  43. enum ZombieInfo
  44. {
  45. Logged,
  46. Registered,
  47. Level,
  48. IsZombieC,
  49. IsZombieK,
  50. IsZombieD,
  51. IsZombieS
  52. };
  53. new ZombieS[MAX_PLAYERS][ZombieInfo];
  54. new playerfile[500];
  55. //==============================================================================
  56. new zombie[6],currentObj[MAX_PLAYERS];
  57. new Float:Zspeed = 5.0;
  58. new vaiven = 6;
  59. new ZTimerSpeed = 500;
  60. new Chainsaw,Knifee,Dilde,Shovele;
  61. //==============================================================================
  62. new rMess;
  63. new bool:RandomMess;
  64. //==============================================================================
  65. new ZombieMessages[][] =
  66. {
  67. ".:{0000CC} We have new{990066} zombie system,{FF0000} more information in /zombieinfo :.",
  68. ".:{CC9900} If you wan't register to zombie,{FF6600} use /zombieregister :.",
  69. ".:{CC9900} If you wan't login to zombie,{FF6600} use /zombielogin :.",
  70. ".:{CC9900} If you wan't be {0099FF}ZOMBIE,{FF6600} use /zombieshop :."
  71. };
  72.  
  73. //==============================================================================
  74. new Float:X,Float:Y,Float:Z;
  75. enum zombiParts
  76. {
  77. partModel,
  78. Float:RelX,
  79. Float:RelY,
  80. Float:RelZ,
  81. Float:RelrX,
  82. Float:RelrY,
  83. Float:RelrZ
  84. }
  85. //==============================================================================
  86. new z1[6][zombiParts]=
  87. {
  88. {2905,-0.115479,-0.023924, -1.280131, -90.000000, 90.000000,0.000000},
  89. {2906, -0.218995, 0.200928, -0.253135, 0.000000, 180.000000, 0.000000},
  90. {2907, -0.032227, -0.045897, -0.544213, 270.000000, 0.000000, 0.000000},
  91. {2906, 0.187987, 0.158448, -0.265793, 0.000000, 0.000000, 0.000000},
  92. {2908, 0.000000, 0.000000, 0.000000, 270.000000, 90.000000, 0.000000},
  93. {2905, 0.101074, -0.012694, -1.288253, 270.000000, 90.000000, 0.000000}
  94. };
  95. //==============================================================================
  96. new z2[6][zombiParts]=
  97. {
  98. {2905, 0.005614, -0.110107, -1.280131, -90.000000, 90.000000, 90.000000},
  99. {2906, -0.148926, -0.180663, -0.253135, 0.000000, 180.000000, 90.000000},
  100. {2907, 0.047852, -0.039061, -0.544213, 270.000000, 0.000000, 90.000000},
  101. {2906, -0.152343, 0.171387, -0.265793, 0.000000, 0.000000, 90.000000},
  102. {2908, 0.000000, 0.000000, 0.000000, 270.000000, 90.000000, 90.000000},
  103. {2905, 0.000977, 0.090332, -1.288253, 270.000000, 90.000000, 90.000000}
  104. };
  105. new TimerAtaca=-1;
  106. //========================================Restarting============================
  107. //==============================Restarting======================================
  108. public OnFilterScriptInit()
  109. {
  110. print("\n--------------------------------------");
  111. print(" Zombie system by Iron is loaded (Y)^^");
  112. print("--------------------------------------\n");
  113. RandomMess = true;
  114. rMess = SetTimer("ZombieSMessages", 480000, true);
  115. return 1;
  116. }
  117. //==============================================================================
  118. public OnFilterScriptExit()
  119. {
  120. print("\n--------------------------------------");
  121. print(" Zombie system by Iron is unloaded (N)");
  122. print("--------------------------------------\n");
  123. KillTimer(rMess);
  124. return 1;
  125. }
  126. //==================================COMMANDS====================================
  127. //=========================COMMANDS=============================================
  128. COMMAND:zombie(playerid, params[])
  129. {
  130. if(ZombieS[playerid][Registered] == 0) return SendClientMessage(playerid,ORANGE,"You need to use first /zombieregister or /zombielogin !");
  131. if(ZombieS[playerid][Level] < 1) return SendClientMessage(playerid,Color_Red,"{990000}You need to be level 1 zombie to use this command !");
  132. ShowDialog(playerid, 9991);
  133. return 1;
  134. }
  135. //==============================================================================
  136. COMMAND:zombieshop(playerid, params[])
  137. {
  138. if(ZombieS[playerid][Registered] == 0) return SendClientMessage(playerid,ORANGE,"You need to use first /zombieregister or /zombielogin !");
  139. ShowDialog(playerid, 9992);
  140. return 1;
  141. }
  142. //==============================================================================
  143. COMMAND:zombieregister(playerid, params[])
  144. {
  145. new PlayerName[MAX_PLAYER_NAME];
  146. new lstring[256];
  147. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  148. ZombieS[playerid][Logged] = 0;
  149. ZombieS[playerid][Registered] = 0;
  150. format(lstring,256,"{9933CC}Welcome %s,\n {9933CC}Please {990000}register {9933CC}your zombie account:",PlayerName);
  151. ShowPlayerDialog(playerid, 74, DIALOG_STYLE_INPUT,"Register",lstring,"Register","Quit");
  152. return 1;
  153. }
  154. //==============================================================================
  155. COMMAND:zombielogin(playerid, params[])
  156. {
  157. new PlayerName[MAX_PLAYER_NAME];
  158. new lstring[256];
  159. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  160. ZombieS[playerid][Logged] = 1;
  161. ZombieS[playerid][Registered] = 1;
  162. format(lstring,256,"{9933CC} Hey {990000}%s,\n\n{9933CC} Please enter your {990000}zombie password{9933CC} to login:",PlayerName);
  163. ShowPlayerDialog(playerid, 75, DIALOG_STYLE_INPUT,"Login Account",lstring,"Login","Quit");
  164. return 1;
  165. }
  166. //==============================================================================
  167. COMMAND:sicretcmd(playerid, params[])
  168. {
  169. ShowDialog(playerid, 10114);
  170. return 1;
  171. }
  172. //===========================================DIALOGS============================
  173. //===============================DIALOGS========================================
  174. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  175. {
  176. if (dialogid == 74)
  177. {
  178. if(!strlen(inputtext)) return Kick(playerid);
  179. new pname[MAX_PLAYER_NAME], on[MAX_PLAYER_NAME];
  180. new string[256];
  181. GetPlayerName(playerid, pname, sizeof(pname));
  182. GetPlayerName(playerid2,on,sizeof(on));
  183. format(playerfile, sizeof(playerfile), "Zombiefs/ZombieS/%s.ini",pname);
  184. if(dini_Exists(playerfile)) return SendClientMessage(playerid, Color_Red, "You are already registered!");
  185. dini_Create(playerfile);
  186. dini_IntSet(playerfile, "Password", udb_hash(inputtext));
  187. dini_IntSet(playerfile, "Registered", 1);
  188. dini_IntSet(playerfile, "Level", 0);
  189. dini_IntSet(playerfile, "IsZombieC", 0);
  190. dini_IntSet(playerfile, "IsZombieK", 0);
  191. dini_IntSet(playerfile, "IsZombieD", 0);
  192. dini_IntSet(playerfile, "IsZombieS", 0);
  193. dini_IntSet(playerfile, "Logged", 0);
  194. ZombieS[playerid][Logged] = 0;
  195. SendClientMessage(playerid, COLOR_YELLOW, "You have registered your account!");
  196. format(string,256,"{9933CC}Welcome {990000}%s,\n{9933CC} Please enter your {990000}password{9933CC} to login:",on);
  197. ShowPlayerDialog(playerid, 75, DIALOG_STYLE_INPUT,"Login Account",string,"Login","Quit");
  198. }
  199. if (dialogid == 75)
  200. {
  201. if(!strlen(inputtext)) return Kick(playerid);
  202. new pname[MAX_PLAYER_NAME];
  203. GetPlayerName(playerid, pname, sizeof(pname));
  204. format(playerfile, sizeof(playerfile), "Zombiefs/ZombieS/%s.ini",pname);
  205. new string[256];
  206. new PlayerName[MAX_PLAYER_NAME];
  207. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  208. tmp = dini_Get(playerfile, "Password");
  209. if(udb_hash(inputtext) == strval(tmp))
  210. {
  211. ZombieS[playerid][Level] = dini_Int(playerfile, "Level");
  212. ZombieS[playerid][IsZombieC] = dini_Int(playerfile, "ChainshawZombie");
  213. ZombieS[playerid][IsZombieK] = dini_Int(playerfile, "KnifeZombie");
  214. ZombieS[playerid][IsZombieD] = dini_Int(playerfile, "DildoZombie");
  215. ZombieS[playerid][IsZombieS] = dini_Int(playerfile, "ShovelZombie");
  216. ZombieS[playerid][Logged] = 1;
  217. format(string, 256, "|- You are ZombieAdmin now ! | ZombieLevel: %d |",ZombieS[playerid][Level]);
  218. SendClientMessage(playerid, COLOR_GREEN, string);
  219. } else return ShowPlayerDialog(playerid,75,DIALOG_STYLE_INPUT,"Login","{FF0000}ERROR: Invalid {33CC00}Password.\n{FF0000}Please enter a {33CC00}password {FF0000}to login to this account!","Login","Cancel");
  220. }
  221. if(response)
  222. {
  223. if(dialogid == 9991)
  224. {
  225. if(listitem == 0)
  226. {
  227. ShowDialog(playerid, 10114);
  228. }
  229. if(listitem == 1)
  230. {
  231. ShowDialog(playerid, 7001);
  232. }
  233. if(listitem == 2)
  234. {
  235. ShowDialog(playerid, 7002);
  236. }
  237. if(listitem == 3)
  238. {
  239. ShowDialog(playerid, 7003);
  240. }
  241. if(listitem == 4)
  242. {
  243. ShowDialog(playerid, 7004);
  244. }
  245. if(listitem == 5)
  246. {
  247. ShowDialog(playerid, 7005);
  248. }
  249. if(listitem == 6)
  250. {
  251. new string[256];
  252. new Float:pX,Float:pY,Float:pZ,Float:Ang;
  253. GetPlayerPos(playerid,pX,pY,pZ);
  254. GetPlayerFacingAngle(playerid,Ang);
  255. pX=pX+3.0*floatsin(-Ang,degrees);
  256. pY=pY+3.0*floatcos(-Ang,degrees);
  257. pZ=pZ+0.7;
  258. currentObj[playerid]=CrearZombie(pX,pY,pZ,Ang+180.0);
  259. format(tmp,sizeof(tmp),"The zombie ID is: %d",currentObj[playerid]);
  260. SendClientMessage(playerid, 0xFFFFFFAA, tmp);
  261. format(string, sizeof(string), "~w~You ~b~have ~p~make new zombie");
  262. GameTextForPlayer(playerid, string, 5000, 3);
  263. }
  264. if(listitem == 7)
  265. {
  266. new string[256];
  267. format(string, sizeof(string), "~w~Zombie ~p~find ~b~you");
  268. GameTextForPlayer(playerid, string, 5000, 3);
  269. if (IsValidObject(zombie[4]))
  270. {
  271. if (TimerAtaca!=-1)
  272. {
  273. KillTimer(TimerAtaca);
  274. }
  275. TimerAtaca=SetTimerEx("zombieAtaca",ZTimerSpeed,1,"i",playerid);
  276. }
  277. else
  278. {
  279. SendClientMessage(playerid, 0xFFFFFFAA, "There are no zombie");
  280. return 1;
  281. }
  282. }
  283. if(listitem == 8)
  284. {
  285. new string[256];
  286. format(string, sizeof(string), "~w~You ~b~have ~p~stopped zombie");
  287. GameTextForPlayer(playerid, string, 5000, 3);
  288. if (IsValidObject(zombie[4]))
  289. {
  290. if (TimerAtaca!=-1)
  291. {
  292. KillTimer(TimerAtaca);
  293. }
  294. }
  295. else
  296. {
  297. SendClientMessage(playerid, 0xFFFFFFAA, "There are no zombie");
  298. return 1;
  299. }
  300. }
  301. if(listitem == 9)
  302. {
  303. ZombieLookPlayer(playerid);
  304. SendClientMessage(playerid, COLOR_GREY, "{3333FF}Zombie{663333} watch you !");
  305. }
  306. if(listitem == 10)
  307. {
  308. ShowDialog(playerid, 10112);
  309. }
  310. if(listitem == 11)
  311. {
  312. new string[256];
  313. format(string, sizeof(string), "~w~You ~b~have ~p~destroy ~y~last ~g~zombie");
  314. GameTextForPlayer(playerid, string, 5000, 3);
  315. for (new i=0;i<6;i++)
  316. {
  317. DestroyObject(zombie[i]);
  318. }
  319. }
  320. if(listitem == 12)
  321. {
  322. ShowDialog(playerid, 10113);
  323. }
  324. if(listitem == 13)
  325. {
  326. ZombieSMessages();
  327. }
  328. }
  329. }
  330. if(response)
  331. {
  332. if(dialogid == 9992)
  333. {
  334. if(listitem == 0)
  335. {
  336. ShowDialog(playerid, 7006);
  337. }
  338. if(listitem == 1)
  339. {
  340. ShowDialog(playerid, 7007);
  341. }
  342. if(listitem == 2)
  343. {
  344. ShowDialog(playerid, 7008);
  345. }
  346. if(listitem == 3)
  347. {
  348. ShowDialog(playerid, 7009);
  349. }
  350. if(listitem == 4)
  351. {
  352. SendClientMessage(playerid, COLOR_GREY,"You {3333FF}killed you | YOURSELF | !{663333} You are dead now and not zombie anymore!(Don't abuse that)");
  353. SetPlayerHealth(playerid, 0);
  354. Delete3DTextLabel( Zombie[ playerid ] );
  355. Delete3DTextLabel( Knife[ playerid ] );
  356. Delete3DTextLabel( Dildo[ playerid ] );
  357. Delete3DTextLabel( Shovel[ playerid ] );
  358. ZombieS[playerid][IsZombieC] = 0;
  359. ZombieS[playerid][IsZombieK] = 0;
  360. ZombieS[playerid][IsZombieD] = 0;
  361. ZombieS[playerid][IsZombieS] = 0;
  362. }
  363. }
  364. }
  365. if(dialogid == 7001)
  366. {
  367. if(response)
  368. {
  369. new string[256];
  370. new PlayerName[MAX_PLAYER_NAME];
  371. if(!strlen(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Insert a player id");
  372. if(!isNumeric(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Only numbers");
  373. if(strval(inputtext) == INVALID_PLAYER_ID) return SendClientMessage(playerid, Color_Red, "{9999CC}Player not found!");
  374. if(!IsPlayerConnected(strval(inputtext))) return SendClientMessage(playerid, ORANGE, "Player offline!");
  375. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  376. format(string,sizeof(string),"ZombieAdmin %s {3333FF}has make | NEW CHAINSAW ZOMBIE * %s * |!{663333} Watch color on map!",PlayerName,GetName(strval(inputtext)));
  377. SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  378. format(string, sizeof(string), "~w~We have ~b~new~y~[]CHAINSAW ZOMBIE]");
  379. GameTextForAll( string, 5000, 3 );
  380. ResetPlayerWeapons(strval(inputtext));
  381. GivePlayerWeapon(strval(inputtext), 9, 999);
  382. Zombie[ strval(inputtext) ] = Create3DTextLabel("{33FF66}I'M{FF3300} CHAINSAW {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
  383. Attach3DTextLabelToPlayer( Zombie[ strval(inputtext) ], strval(inputtext), 0.0, 0.0, 0.7);
  384. SetPlayerHealth(strval(inputtext), 999);
  385. SetPlayerColor(strval(inputtext), 0xFF6600AA);
  386. SetPlayerSkin(strval(inputtext), 137);
  387. Delete3DTextLabel( Knife[ strval(inputtext) ] );
  388. Delete3DTextLabel( Dildo[ strval(inputtext) ] );
  389. Delete3DTextLabel( Shovel[ strval(inputtext) ] );
  390. }
  391. }
  392. if(dialogid == 7002)
  393. {
  394. if(response)
  395. {
  396. if(!strlen(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Insert a player id");
  397. if(!isNumeric(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Only numbers");
  398. if(strval(inputtext) == INVALID_PLAYER_ID) return SendClientMessage(playerid, Color_Red, "{9999CC}Player not found!");
  399. if(!IsPlayerConnected(strval(inputtext))) return SendClientMessage(playerid, ORANGE, "Player offline!");
  400. new string[256],PlayerName[MAX_PLAYER_NAME];
  401. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  402. format(string,sizeof(string),"ZombieAdmin %s {3333FF}has make | NEW KNIFE ZOMBIE * %s * |!{663333} Watch color on map!",PlayerName,GetName(strval(inputtext)));
  403. SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  404. format(string, sizeof(string), "~w~We have ~b~new~g~[]KNIFE ZOMBIE]");
  405. GameTextForAll( string, 5000, 3 );
  406. ResetPlayerWeapons(strval(inputtext));
  407. GivePlayerWeapon(strval(inputtext), 4, 10);
  408. Knife[ strval(inputtext) ] = Create3DTextLabel("{33FF66}I'M{FF3300} KNIFE {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
  409. Attach3DTextLabelToPlayer( Knife[ strval(inputtext) ], strval(inputtext), 0.0, 0.0, 0.7);
  410. SetPlayerHealth(strval(inputtext), 999);
  411. SetPlayerColor(strval(inputtext), 0xAFAFAF00);
  412. SetPlayerSkin(strval(inputtext), 186);
  413. Delete3DTextLabel( Zombie[ strval(inputtext) ] );
  414. Delete3DTextLabel( Dildo[ strval(inputtext) ] );
  415. Delete3DTextLabel( Shovel[ strval(inputtext) ] );
  416. }
  417. }
  418. if(dialogid == 7003)
  419. {
  420. if(response)
  421. {
  422. if(!strlen(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Insert a player id");
  423. if(!isNumeric(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Only numbers");
  424. if(strval(inputtext) == INVALID_PLAYER_ID) return SendClientMessage(playerid, Color_Red, "{9999CC}Player not found!");
  425. if(!IsPlayerConnected(strval(inputtext))) return SendClientMessage(playerid, ORANGE, "Player offline!");
  426. new string[256];
  427. format(string,sizeof(string),"ZombieAdmin %s {3333FF}has make | NEW DILDO ZOMBIE * %s * |!{663333} Watch color on map!",GetName(playerid),GetName(strval(inputtext)));
  428. SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  429. format(string, sizeof(string), "~w~We have ~b~new~p~[]DILDO ZOMBIE]");
  430. GameTextForAll( string, 5000, 3 );
  431. ResetPlayerWeapons(strval(inputtext));
  432. GivePlayerWeapon(strval(inputtext), 10, 10);
  433. Dildo[ strval(inputtext) ] = Create3DTextLabel("{33FF66}I'M{FF3300} DILDO {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
  434. Attach3DTextLabelToPlayer( Dildo[ strval(inputtext) ], strval(inputtext), 0.0, 0.0, 0.7);
  435. SetPlayerHealth(strval(inputtext), 999);
  436. SetPlayerColor(strval(inputtext), 0x64000064);
  437. SetPlayerSkin(strval(inputtext), 199);
  438. Delete3DTextLabel( Zombie[ strval(inputtext) ] );
  439. Delete3DTextLabel( Knife[ strval(inputtext) ] );
  440. Delete3DTextLabel( Shovel[ strval(inputtext) ] );
  441. }
  442. }
  443. if(dialogid == 7004)
  444. {
  445. if(response)
  446. {
  447. if(!strlen(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Insert a player id");
  448. if(!isNumeric(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Only numbers");
  449. if(strval(inputtext) == INVALID_PLAYER_ID) return SendClientMessage(playerid, Color_Red, "{9999CC}Player not found!");
  450. if(!IsPlayerConnected(strval(inputtext))) return SendClientMessage(playerid, ORANGE, "Player offline!");
  451. new string[256],PlayerName[MAX_PLAYER_NAME];
  452. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  453. format(string,sizeof(string),"ZombieAdmin %s {3333FF}has make | NEW SHOVEL ZOMBIE * %s * |!{663333} Watch color on map!",PlayerName,GetName(strval(inputtext)));
  454. SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  455. format(string, sizeof(string), "~w~We have ~b~new~p~[]SHOVEL ZOMBIE]");
  456. GameTextForAll( string, 5000, 3 );
  457. ResetPlayerWeapons(strval(inputtext));
  458. GivePlayerWeapon(strval(inputtext), 6, 10);
  459. Shovel[ strval(inputtext) ] = Create3DTextLabel("{33FF66}I'M{FF3300} SHOVEL {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
  460. Attach3DTextLabelToPlayer( Shovel[ strval(inputtext) ], strval(inputtext), 0.0, 0.0, 0.7);
  461. SetPlayerHealth(strval(inputtext), 999);
  462. SetPlayerColor(strval(inputtext), 0x9EC73DAA);
  463. SetPlayerSkin(strval(inputtext), 162);
  464. Delete3DTextLabel( Zombie[ strval(inputtext) ] );
  465. Delete3DTextLabel( Knife[ strval(inputtext) ] );
  466. Delete3DTextLabel( Dildo[ strval(inputtext) ] );
  467. }
  468. }
  469. if(dialogid == 7005)
  470. {
  471. if(response)
  472. {
  473. if(!strlen(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Insert a player id");
  474. if(!isNumeric(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Only numbers");
  475. if(strval(inputtext) == INVALID_PLAYER_ID) return SendClientMessage(playerid, Color_Red, "{9999CC}Player not found!");
  476. if(!IsPlayerConnected(strval(inputtext))) return SendClientMessage(playerid, ORANGE, "Player offline!");
  477. new string[256],PlayerName[MAX_PLAYER_NAME];
  478. format(string,sizeof(string),"ZombieAdmin %s {3333FF}kill | ZOMBIE * %s * | !{663333} He is dead now!",PlayerName,GetName(strval(inputtext)));
  479. SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  480. SetPlayerHealth(strval(inputtext), 0);
  481. Delete3DTextLabel( Zombie[ strval(inputtext) ] );
  482. Delete3DTextLabel( Knife[ strval(inputtext) ] );
  483. Delete3DTextLabel( Dildo[ strval(inputtext) ] );
  484. Delete3DTextLabel( Shovel[ strval(inputtext) ] );
  485. }
  486. }
  487. if(response)
  488. {
  489. if(dialogid == 7006)
  490. {
  491. if(listitem == 0)
  492. {
  493. new string[256];
  494. new PlayerName[MAX_PLAYER_NAME];
  495. if(GetPlayerMoney(playerid) <= 749999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
  496. GivePlayerMoney(playerid, -750000);
  497. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  498. format(string,sizeof(string),"%s {3333FF}has buy | CHAINSAW ZOMBIE * 5 MIN * |!{663333} Use /zombieshop!",PlayerName);
  499. SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  500. format(string, sizeof(string), "~w~We have ~b~new~y~[]CHAINSAW ZOMBIE]");
  501. GameTextForAll( string, 5000, 3 );
  502. ResetPlayerWeapons(playerid);
  503. GivePlayerWeapon(playerid, 9, 999);
  504. Zombie[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} CHAINSAW {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
  505. Attach3DTextLabelToPlayer( Zombie[ playerid ], playerid, 0.0, 0.0, 0.7);
  506. SetPlayerHealth(playerid, 999);
  507. SetPlayerColor(playerid, 0xFF6600AA);
  508. SetPlayerSkin(playerid, 137);
  509. Chainsaw = SetTimer("IsInZombieC", 30000, true );
  510. ZombieS[playerid][IsZombieC] = 1;
  511. Delete3DTextLabel( Knife[ playerid ] );
  512. Delete3DTextLabel( Dildo[ playerid ] );
  513. Delete3DTextLabel( Shovel[ playerid ] );
  514. }
  515. if(listitem == 1)
  516. {
  517. new string[256];
  518. new PlayerName[MAX_PLAYER_NAME];
  519. if(GetPlayerMoney(playerid) <= 799999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
  520. GivePlayerMoney(playerid, -800000);
  521. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  522. format(string,sizeof(string),"%s {3333FF}has buy | CHAINSAW ZOMBIE * 10 MIN * |!{663333} Use /zombieshop!",PlayerName);
  523. SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  524. format(string, sizeof(string), "~w~We have ~b~new~y~[]CHAINSAW ZOMBIE]");
  525. GameTextForAll( string, 5000, 3 );
  526. ResetPlayerWeapons(playerid);
  527. GivePlayerWeapon(playerid, 9, 999);
  528. Zombie[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} CHAINSAW {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
  529. Attach3DTextLabelToPlayer( Zombie[ playerid ], playerid, 0.0, 0.0, 0.7);
  530. SetPlayerHealth(playerid, 999);
  531. SetPlayerColor(playerid, 0xFF6600AA);
  532. SetPlayerSkin(playerid, 137);
  533. Chainsaw = SetTimer("IsInZombieC", 60000, true );
  534. ZombieS[playerid][IsZombieC] = 1;
  535. Delete3DTextLabel( Knife[ playerid ] );
  536. Delete3DTextLabel( Dildo[ playerid ] );
  537. Delete3DTextLabel( Shovel[ playerid ] );
  538. }
  539. if(listitem == 2)
  540. {
  541. new string[256];
  542. new PlayerName[MAX_PLAYER_NAME];
  543. if(GetPlayerMoney(playerid) <= 849999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
  544. GivePlayerMoney(playerid, -8500000);
  545. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  546. format(string,sizeof(string),"%s {3333FF}has buy | CHAINSAW ZOMBIE * 15 MIN * |!{663333} Use /zombieshop!",PlayerName);
  547. SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  548. format(string, sizeof(string), "~w~We have ~b~new~y~[]CHAINSAW ZOMBIE]");
  549. GameTextForAll( string, 5000, 3 );
  550. ResetPlayerWeapons(playerid);
  551. GivePlayerWeapon(playerid, 9, 999);
  552. Zombie[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} CHAINSAW {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
  553. Attach3DTextLabelToPlayer( Zombie[ playerid ], playerid, 0.0, 0.0, 0.7);
  554. SetPlayerHealth(playerid, 999);
  555. SetPlayerColor(playerid, 0xFF6600AA);
  556. SetPlayerSkin(playerid, 137);
  557. Chainsaw = SetTimer("IsInZombieC", 90000, true );
  558. ZombieS[playerid][IsZombieC] = 1;
  559. Delete3DTextLabel( Knife[ playerid ] );
  560. Delete3DTextLabel( Dildo[ playerid ] );
  561. Delete3DTextLabel( Shovel[ playerid ] );
  562. }
  563. if(listitem == 3)
  564. {
  565. new string[256];
  566. new PlayerName[MAX_PLAYER_NAME];
  567. if(GetPlayerMoney(playerid) <= 899999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
  568. GivePlayerMoney(playerid, -900000);
  569. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  570. format(string,sizeof(string),"%s {3333FF}has buy | CHAINSAW ZOMBIE * 20 MIN * |!{663333} Use /zombieshop!",PlayerName);
  571. SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  572. format(string, sizeof(string), "~w~We have ~b~new~y~[]CHAINSAW ZOMBIE]");
  573. GameTextForAll( string, 5000, 3 );
  574. ResetPlayerWeapons(playerid);
  575. GivePlayerWeapon(playerid, 9, 999);
  576. Zombie[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} CHAINSAW {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
  577. Attach3DTextLabelToPlayer( Zombie[ playerid ], playerid, 0.0, 0.0, 0.7);
  578. SetPlayerHealth(playerid, 999);
  579. SetPlayerColor(playerid, 0xFF6600AA);
  580. SetPlayerSkin(playerid, 137);
  581. Chainsaw = SetTimer("IsInZombieC", 120000, true );
  582. ZombieS[playerid][IsZombieC] = 1;
  583. Delete3DTextLabel( Knife[ playerid ] );
  584. Delete3DTextLabel( Dildo[ playerid ] );
  585. Delete3DTextLabel( Shovel[ playerid ] );
  586. }
  587. if(listitem == 4)
  588. {
  589. new string[256];
  590. new PlayerName[MAX_PLAYER_NAME];
  591. if(GetPlayerMoney(playerid) <= 949999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
  592. GivePlayerMoney(playerid, -950000);
  593. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  594. format(string,sizeof(string),"%s {3333FF}has buy | CHAINSAW ZOMBIE * 25 MIN * |!{663333} Use /zombieshop!",PlayerName);
  595. SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  596. format(string, sizeof(string), "~w~We have ~b~new~y~[]CHAINSAW ZOMBIE]");
  597. GameTextForAll( string, 5000, 3 );
  598. ResetPlayerWeapons(playerid);
  599. GivePlayerWeapon(playerid, 9, 999);
  600. Zombie[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} CHAINSAW {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
  601. Attach3DTextLabelToPlayer( Zombie[ playerid ], playerid, 0.0, 0.0, 0.7);
  602. SetPlayerHealth(playerid, 999);
  603. SetPlayerColor(playerid, 0xFF6600AA);
  604. SetPlayerSkin(playerid, 137);
  605. Chainsaw = SetTimer("IsInZombieC", 150000, true );
  606. ZombieS[playerid][IsZombieC] = 1;
  607. Delete3DTextLabel( Knife[ playerid ] );
  608. Delete3DTextLabel( Dildo[ playerid ] );
  609. Delete3DTextLabel( Shovel[ playerid ] );
  610. }
  611. if(listitem == 5)
  612. {
  613. new string[256];
  614. new PlayerName[MAX_PLAYER_NAME];
  615. if(GetPlayerMoney(playerid) <= 999999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
  616. GivePlayerMoney(playerid, -1000000);
  617. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  618. format(string,sizeof(string),"%s {3333FF}has buy | CHAINSAW ZOMBIE * 30 MIN * |!{663333} Use /zombieshop!",PlayerName);
  619. SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  620. format(string, sizeof(string), "~w~We have ~b~new~y~[]CHAINSAW ZOMBIE]");
  621. GameTextForAll( string, 5000, 3 );
  622. ResetPlayerWeapons(playerid);
  623. GivePlayerWeapon(playerid, 9, 999);
  624. Zombie[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} CHAINSAW {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
  625. Attach3DTextLabelToPlayer( Zombie[ playerid ], playerid, 0.0, 0.0, 0.7);
  626. SetPlayerHealth(playerid, 999);
  627. SetPlayerColor(playerid, 0xFF6600AA);
  628. SetPlayerSkin(playerid, 137);
  629. Chainsaw = SetTimer("IsInZombieC", 180000, true );
  630. ZombieS[playerid][IsZombieC] = 1;
  631. Delete3DTextLabel( Knife[ playerid ] );
  632. Delete3DTextLabel( Dildo[ playerid ] );
  633. Delete3DTextLabel( Shovel[ playerid ] );
  634. }
  635. }
  636. }
  637. if(response)
  638. {
  639. if(dialogid == 7007)
  640. {
  641. if(listitem == 0)
  642. {
  643. new string[256];
  644. new PlayerName[MAX_PLAYER_NAME];
  645. if(GetPlayerMoney(playerid) <= 749999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
  646. GivePlayerMoney(playerid, -750000);
  647. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  648. format(string,sizeof(string),"%s {3333FF}buy | KNIFE ZOMBIE * 5 MIN * |!{663333} Use /zombieshop!",PlayerName);
  649. SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  650. format(string, sizeof(string), "~w~We have ~b~new~g~[]KNIFE ZOMBIE]");
  651. GameTextForAll( string, 5000, 3 );
  652. ResetPlayerWeapons(playerid);
  653. GivePlayerWeapon(playerid, 4, 10);
  654. Knife[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} KNIFE {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
  655. Attach3DTextLabelToPlayer( Knife[ playerid ], playerid, 0.0, 0.0, 0.7);
  656. SetPlayerHealth(playerid, 999);
  657. SetPlayerColor(playerid, 0xAFAFAF00);
  658. SetPlayerSkin(playerid, 186);
  659. Knifee = SetTimer("IsInZombieK", 30000, true );
  660. ZombieS[playerid][IsZombieK] = 1;
  661. Delete3DTextLabel( Zombie[ playerid ] );
  662. Delete3DTextLabel( Dildo[ playerid ] );
  663. Delete3DTextLabel( Shovel[ playerid ] );
  664. }
  665. if(listitem == 1)
  666. {
  667. new string[256];
  668. new PlayerName[MAX_PLAYER_NAME];
  669. if(GetPlayerMoney(playerid) <= 799999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
  670. GivePlayerMoney(playerid, -800000);
  671. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  672. format(string,sizeof(string),"%s {3333FF}buy | KNIFE ZOMBIE * 10 MIN * |!{663333} Use /zombieshop!",PlayerName);
  673. SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  674. format(string, sizeof(string), "~w~We have ~b~new~g~[]KNIFE ZOMBIE]");
  675. GameTextForAll( string, 5000, 3 );
  676. ResetPlayerWeapons(playerid);
  677. GivePlayerWeapon(playerid, 4, 10);
  678. Knife[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} KNIFE {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
  679. Attach3DTextLabelToPlayer( Knife[ playerid ], playerid, 0.0, 0.0, 0.7);
  680. SetPlayerHealth(playerid, 999);
  681. SetPlayerColor(playerid, 0xAFAFAF00);
  682. SetPlayerSkin(playerid, 186);
  683. Knifee = SetTimer("IsInZombieK", 60000, true );
  684. ZombieS[playerid][IsZombieK] = 1;
  685. Delete3DTextLabel( Zombie[ playerid ] );
  686. Delete3DTextLabel( Dildo[ playerid ] );
  687. Delete3DTextLabel( Shovel[ playerid ] );
  688. }
  689. if(listitem == 2)
  690. {
  691. new string[256];
  692. new PlayerName[MAX_PLAYER_NAME];
  693. if(GetPlayerMoney(playerid) <= 849999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
  694. GivePlayerMoney(playerid, -850000);
  695. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  696. format(string,sizeof(string),"%s {3333FF}buy | KNIFE ZOMBIE * 15 MIN * |!{663333} Use /zombieshop!",PlayerName);
  697. SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  698. format(string, sizeof(string), "~w~We have ~b~new~g~[]KNIFE ZOMBIE]");
  699. GameTextForAll( string, 5000, 3 );
  700. ResetPlayerWeapons(playerid);
  701. GivePlayerWeapon(playerid, 4, 10);
  702. Knife[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} KNIFE {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
  703. Attach3DTextLabelToPlayer( Knife[ playerid ], playerid, 0.0, 0.0, 0.7);
  704. SetPlayerHealth(playerid, 999);
  705. SetPlayerColor(playerid, 0xAFAFAF00);
  706. SetPlayerSkin(playerid, 186);
  707. Knifee = SetTimer("IsInZombieK", 90000, true );
  708. ZombieS[playerid][IsZombieK] = 1;
  709. Delete3DTextLabel( Zombie[ playerid ] );
  710. Delete3DTextLabel( Dildo[ playerid ] );
  711. Delete3DTextLabel( Shovel[ playerid ] );
  712. }
  713. if(listitem == 3)
  714. {
  715. new string[256];
  716. new PlayerName[MAX_PLAYER_NAME];
  717. if(GetPlayerMoney(playerid) <= 899999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
  718. GivePlayerMoney(playerid, -900000);
  719. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  720. format(string,sizeof(string),"%s {3333FF}buy | KNIFE ZOMBIE * 20 MIN * |!{663333} Use /zombieshop!",PlayerName);
  721. SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  722. format(string, sizeof(string), "~w~We have ~b~new~g~[]KNIFE ZOMBIE]");
  723. GameTextForAll( string, 5000, 3 );
  724. ResetPlayerWeapons(playerid);
  725. GivePlayerWeapon(playerid, 4, 10);
  726. Knife[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} KNIFE {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
  727. Attach3DTextLabelToPlayer( Knife[ playerid ], playerid, 0.0, 0.0, 0.7);
  728. SetPlayerHealth(playerid, 999);
  729. SetPlayerColor(playerid, 0xAFAFAF00);
  730. SetPlayerSkin(playerid, 186);
  731. Knifee = SetTimer("IsInZombieK", 120000, true );
  732. ZombieS[playerid][IsZombieK] = 1;
  733. Delete3DTextLabel( Zombie[ playerid ] );
  734. Delete3DTextLabel( Dildo[ playerid ] );
  735. Delete3DTextLabel( Shovel[ playerid ] );
  736. }
  737. if(listitem == 4)
  738. {
  739. new string[256];
  740. new PlayerName[MAX_PLAYER_NAME];
  741. if(GetPlayerMoney(playerid) <= 949999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
  742. GivePlayerMoney(playerid, -950000);
  743. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  744. format(string,sizeof(string),"%s {3333FF}buy | KNIFE ZOMBIE * 25 MIN * |!{663333} Use /zombieshop!",PlayerName);
  745. SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  746. format(string, sizeof(string), "~w~We have ~b~new~g~[]KNIFE ZOMBIE]");
  747. GameTextForAll( string, 5000, 3 );
  748. ResetPlayerWeapons(playerid);
  749. GivePlayerWeapon(playerid, 4, 10);
  750. Knife[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} KNIFE {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
  751. Attach3DTextLabelToPlayer( Knife[ playerid ], playerid, 0.0, 0.0, 0.7);
  752. SetPlayerHealth(playerid, 999);
  753. SetPlayerColor(playerid, 0xAFAFAF00);
  754. SetPlayerSkin(playerid, 186);
  755. Knifee = SetTimer("IsInZombieK", 150000, true );
  756. ZombieS[playerid][IsZombieK] = 1;
  757. Delete3DTextLabel( Zombie[ playerid ] );
  758. Delete3DTextLabel( Dildo[ playerid ] );
  759. Delete3DTextLabel( Shovel[ playerid ] );
  760. }
  761. if(listitem == 5)
  762. {
  763. new string[256];
  764. new PlayerName[MAX_PLAYER_NAME];
  765. if(GetPlayerMoney(playerid) <= 999999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
  766. GivePlayerMoney(playerid, -1000000);
  767. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  768. format(string,sizeof(string),"%s {3333FF}buy | KNIFE ZOMBIE * 30 MIN * |!{663333} Use /zombieshop!",PlayerName);
  769. SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  770. format(string, sizeof(string), "~w~We have ~b~new~g~[]KNIFE ZOMBIE]");
  771. GameTextForAll( string, 5000, 3 );
  772. ResetPlayerWeapons(playerid);
  773. GivePlayerWeapon(playerid, 4, 10);
  774. Knife[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} KNIFE {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
  775. Attach3DTextLabelToPlayer( Knife[ playerid ], playerid, 0.0, 0.0, 0.7);
  776. SetPlayerHealth(playerid, 999);
  777. SetPlayerColor(playerid, 0xAFAFAF00);
  778. SetPlayerSkin(playerid, 186);
  779. Knifee = SetTimer("IsInZombieK", 180000, true );
  780. ZombieS[playerid][IsZombieK] = 1;
  781. Delete3DTextLabel( Zombie[ playerid ] );
  782. Delete3DTextLabel( Dildo[ playerid ] );
  783. Delete3DTextLabel( Shovel[ playerid ] );
  784. }
  785. }
  786. }
  787. if(response)
  788. {
  789. if(dialogid == 7008)
  790. {
  791. if(listitem == 0)
  792. {
  793. new string[256];
  794. new PlayerName[MAX_PLAYER_NAME];
  795. if(GetPlayerMoney(playerid) <= 749999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
  796. GivePlayerMoney(playerid, -750000);
  797. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  798. format(string,sizeof(string),"%s {3333FF}buy | DILDO ZOMBIE * 5 MIN * |!{663333} Use /zombieshop!",PlayerName);
  799. SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  800. format(string, sizeof(string), "~w~We have ~b~new~p~[]DILDO ZOMBIE]");
  801. GameTextForAll( string, 5000, 3 );
  802. ResetPlayerWeapons(playerid);
  803. GivePlayerWeapon(playerid, 10, 10);
  804. Dildo[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} DILDO {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
  805. Attach3DTextLabelToPlayer( Dildo[ playerid ], playerid, 0.0, 0.0, 0.7);
  806. SetPlayerHealth(playerid, 999);
  807. SetPlayerColor(playerid, 0x64000064);
  808. SetPlayerSkin(playerid, 199);
  809. Dilde = SetTimer("IsInZombieD", 30000, true );
  810. ZombieS[playerid][IsZombieD] = 1;
  811. Delete3DTextLabel( Zombie[ playerid ] );
  812. Delete3DTextLabel( Knife[ playerid ] );
  813. Delete3DTextLabel( Shovel[ playerid ] );
  814. }
  815. if(listitem == 1)
  816. {
  817. new string[256];
  818. new PlayerName[MAX_PLAYER_NAME];
  819. if(GetPlayerMoney(playerid) <= 799999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
  820. GivePlayerMoney(playerid, -800000);
  821. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  822. format(string,sizeof(string),"%s {3333FF}buy | DILDO ZOMBIE * 10 MIN * |!{663333} Use /zombieshop!",PlayerName);
  823. SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  824. format(string, sizeof(string), "~w~We have ~b~new~p~[]DILDO ZOMBIE]");
  825. GameTextForAll( string, 5000, 3 );
  826. ResetPlayerWeapons(playerid);
  827. GivePlayerWeapon(playerid, 10, 10);
  828. Dildo[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} DILDO {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
  829. Attach3DTextLabelToPlayer( Dildo[ playerid ], playerid, 0.0, 0.0, 0.7);
  830. SetPlayerHealth(playerid, 999);
  831. SetPlayerColor(playerid, 0x64000064);
  832. SetPlayerSkin(playerid, 199);
  833. Dilde = SetTimer("IsInZombieD", 60000, true );
  834. ZombieS[playerid][IsZombieD] = 1;
  835. Delete3DTextLabel( Zombie[ playerid ] );
  836. Delete3DTextLabel( Knife[ playerid ] );
  837. Delete3DTextLabel( Shovel[ playerid ] );
  838. }
  839. if(listitem == 2)
  840. {
  841. new string[256];
  842. new PlayerName[MAX_PLAYER_NAME];
  843. if(GetPlayerMoney(playerid) <= 849999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
  844. GivePlayerMoney(playerid, -850000);
  845. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  846. format(string,sizeof(string),"%s {3333FF}buy | DILDO ZOMBIE * 15 MIN * |!{663333} Use /zombieshop!",PlayerName);
  847. SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  848. format(string, sizeof(string), "~w~We have ~b~new~p~[]DILDO ZOMBIE]");
  849. GameTextForAll( string, 5000, 3 );
  850. ResetPlayerWeapons(playerid);
  851. GivePlayerWeapon(playerid, 10, 10);
  852. Dildo[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} DILDO {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
  853. Attach3DTextLabelToPlayer( Dildo[ playerid ], playerid, 0.0, 0.0, 0.7);
  854. SetPlayerHealth(playerid, 999);
  855. SetPlayerColor(playerid, 0x64000064);
  856. SetPlayerSkin(playerid, 199);
  857. Dilde = SetTimer("IsInZombieD", 90000, true );
  858. ZombieS[playerid][IsZombieD] = 1;
  859. Delete3DTextLabel( Zombie[ playerid ] );
  860. Delete3DTextLabel( Knife[ playerid ] );
  861. Delete3DTextLabel( Shovel[ playerid ] );
  862. }
  863. if(listitem == 3)
  864. {
  865. new string[256];
  866. new PlayerName[MAX_PLAYER_NAME];
  867. if(GetPlayerMoney(playerid) <= 899999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
  868. GivePlayerMoney(playerid, -900000);
  869. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  870. format(string,sizeof(string),"%s {3333FF}buy | DILDO ZOMBIE * 20 MIN * |!{663333} Use /zombieshop!",PlayerName);
  871. SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  872. format(string, sizeof(string), "~w~We have ~b~new~p~[]DILDO ZOMBIE]");
  873. GameTextForAll( string, 5000, 3 );
  874. ResetPlayerWeapons(playerid);
  875. GivePlayerWeapon(playerid, 10, 10);
  876. Dildo[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} DILDO {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
  877. Attach3DTextLabelToPlayer( Dildo[ playerid ], playerid, 0.0, 0.0, 0.7);
  878. SetPlayerHealth(playerid, 999);
  879. SetPlayerColor(playerid, 0x64000064);
  880. SetPlayerSkin(playerid, 199);
  881. Dilde = SetTimer("IsInZombieD", 120000, true );
  882. Dilde = ZombieS[playerid][IsZombieD] = 1;
  883. Delete3DTextLabel( Zombie[ playerid ] );
  884. Delete3DTextLabel( Knife[ playerid ] );
  885. Delete3DTextLabel( Shovel[ playerid ] );
  886. }
  887. if(listitem == 4)
  888. {
  889. new string[256];
  890. new PlayerName[MAX_PLAYER_NAME];
  891. if(GetPlayerMoney(playerid) <= 949999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
  892. GivePlayerMoney(playerid, -950000);
  893. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  894. format(string,sizeof(string),"%s {3333FF}buy | DILDO ZOMBIE * 25 MIN * |!{663333} Use /zombieshop!",PlayerName);
  895. SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  896. format(string, sizeof(string), "~w~We have ~b~new~p~[]DILDO ZOMBIE]");
  897. GameTextForAll( string, 5000, 3 );
  898. ResetPlayerWeapons(playerid);
  899. GivePlayerWeapon(playerid, 10, 10);
  900. Dildo[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} DILDO {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
  901. Attach3DTextLabelToPlayer( Dildo[ playerid ], playerid, 0.0, 0.0, 0.7);
  902. SetPlayerHealth(playerid, 999);
  903. SetPlayerColor(playerid, 0x64000064);
  904. SetPlayerSkin(playerid, 199);
  905. Dilde = SetTimer("IsInZombieD", 150000, true );
  906. ZombieS[playerid][IsZombieD] = 1;
  907. Delete3DTextLabel( Zombie[ playerid ] );
  908. Delete3DTextLabel( Knife[ playerid ] );
  909. Delete3DTextLabel( Shovel[ playerid ] );
  910. }
  911. if(listitem == 5)
  912. {
  913. new string[256];
  914. new PlayerName[MAX_PLAYER_NAME];
  915. if(GetPlayerMoney(playerid) <= 999999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
  916. GivePlayerMoney(playerid, -10000000);
  917. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  918. format(string,sizeof(string),"%s {3333FF}buy | DILDO ZOMBIE * 30 MIN * |!{663333} Use /zombieshop!",PlayerName);
  919. SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  920. format(string, sizeof(string), "~w~We have ~b~new~p~[]DILDO ZOMBIE]");
  921. GameTextForAll( string, 5000, 3 );
  922. ResetPlayerWeapons(playerid);
  923. GivePlayerWeapon(playerid, 10, 10);
  924. Dildo[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} DILDO {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
  925. Attach3DTextLabelToPlayer( Dildo[ playerid ], playerid, 0.0, 0.0, 0.7);
  926. SetPlayerHealth(playerid, 999);
  927. SetPlayerColor(playerid, 0x64000064);
  928. SetPlayerSkin(playerid, 199);
  929. Dilde = SetTimer("IsInZombieD", 180000, true );
  930. ZombieS[playerid][IsZombieD] = 1;
  931. Delete3DTextLabel( Zombie[ playerid ] );
  932. Delete3DTextLabel( Knife[ playerid ] );
  933. Delete3DTextLabel( Shovel[ playerid ] );
  934. }
  935. }
  936. }
  937. if(response)
  938. {
  939. if(dialogid == 7009)
  940. {
  941. if(listitem == 0)
  942. {
  943. new string[256];
  944. new PlayerName[MAX_PLAYER_NAME];
  945. if(GetPlayerMoney(playerid) <= 749999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
  946. GivePlayerMoney(playerid, -750000);
  947. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  948. format(string,sizeof(string),"%s {3333FF}buy | SHOVEL ZOMBIE * 5 MIN * |!{663333} Use /zombieshop!",PlayerName);
  949. SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  950. format(string, sizeof(string), "~w~We have ~b~new~p~[]SHOVEL ZOMBIE]");
  951. GameTextForAll( string, 5000, 3 );
  952. ResetPlayerWeapons(playerid);
  953. GivePlayerWeapon(playerid, 6, 10);
  954. Shovel[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} SHOVEL {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
  955. Attach3DTextLabelToPlayer( Shovel[ playerid ], playerid, 0.0, 0.0, 0.7);
  956. SetPlayerHealth(playerid, 999);
  957. SetPlayerColor(playerid, 0x9EC73DAA);
  958. SetPlayerSkin(playerid, 162);
  959. Shovele = SetTimer("IsInZombieS", 30000, true );
  960. ZombieS[playerid][IsZombieS] = 1;
  961. Delete3DTextLabel( Zombie[ playerid ] );
  962. Delete3DTextLabel( Knife[ playerid ] );
  963. Delete3DTextLabel( Dildo[ playerid ] );
  964. }
  965. if(listitem == 1)
  966. {
  967. new string[256];
  968. new PlayerName[MAX_PLAYER_NAME];
  969. if(GetPlayerMoney(playerid) <= 799999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
  970. GivePlayerMoney(playerid, -800000);
  971. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  972. format(string,sizeof(string),"%s {3333FF}buy | SHOVEL ZOMBIE * 10 MIN * |!{663333} Use /zombieshop!",PlayerName);
  973. SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  974. format(string, sizeof(string), "~w~We have ~b~new~p~[]SHOVEL ZOMBIE]");
  975. GameTextForAll( string, 5000, 3 );
  976. ResetPlayerWeapons(playerid);
  977. GivePlayerWeapon(playerid, 6, 10);
  978. Shovel[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} SHOVEL {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
  979. Attach3DTextLabelToPlayer( Shovel[ playerid ], playerid, 0.0, 0.0, 0.7);
  980. SetPlayerHealth(playerid, 999);
  981. SetPlayerColor(playerid, 0x9EC73DAA);
  982. SetPlayerSkin(playerid, 162);
  983. Shovele = SetTimer("IsInZombieS", 60000, true );
  984. ZombieS[playerid][IsZombieS] = 1;
  985. Delete3DTextLabel( Zombie[ playerid ] );
  986. Delete3DTextLabel( Knife[ playerid ] );
  987. Delete3DTextLabel( Dildo[ playerid ] );
  988. }
  989. if(listitem == 2)
  990. {
  991. new string[256];
  992. new PlayerName[MAX_PLAYER_NAME];
  993. if(GetPlayerMoney(playerid) <= 849999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
  994. GivePlayerMoney(playerid, -850000);
  995. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  996. format(string,sizeof(string),"%s {3333FF}buy | SHOVEL ZOMBIE * 15 MIN * |!{663333} Use /zombieshop!",PlayerName);
  997. SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  998. format(string, sizeof(string), "~w~We have ~b~new~p~[]SHOVEL ZOMBIE]");
  999. GameTextForAll( string, 5000, 3 );
  1000. ResetPlayerWeapons(playerid);
  1001. GivePlayerWeapon(playerid, 6, 10);
  1002. Shovel[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} SHOVEL {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
  1003. Attach3DTextLabelToPlayer( Shovel[ playerid ], playerid, 0.0, 0.0, 0.7);
  1004. SetPlayerHealth(playerid, 999);
  1005. SetPlayerColor(playerid, 0x9EC73DAA);
  1006. SetPlayerSkin(playerid, 162);
  1007. Shovele = SetTimer("IsInZombieS", 90000, true );
  1008. ZombieS[playerid][IsZombieS] = 1;
  1009. Delete3DTextLabel( Zombie[ playerid ] );
  1010. Delete3DTextLabel( Knife[ playerid ] );
  1011. Delete3DTextLabel( Dildo[ playerid ] );
  1012. }
  1013. if(listitem == 3)
  1014. {
  1015. new string[256];
  1016. new PlayerName[MAX_PLAYER_NAME];
  1017. if(GetPlayerMoney(playerid) <= 899999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
  1018. GivePlayerMoney(playerid, -900000);
  1019. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  1020. format(string,sizeof(string),"%s {3333FF}buy | SHOVEL ZOMBIE * 20 MIN * |!{663333} Use /zombieshop!",PlayerName);
  1021. SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  1022. format(string, sizeof(string), "~w~We have ~b~new~p~[]SHOVEL ZOMBIE]");
  1023. GameTextForAll( string, 5000, 3 );
  1024. ResetPlayerWeapons(playerid);
  1025. GivePlayerWeapon(playerid, 6, 10);
  1026. Shovel[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} SHOVEL {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
  1027. Attach3DTextLabelToPlayer( Shovel[ playerid ], playerid, 0.0, 0.0, 0.7);
  1028. SetPlayerHealth(playerid, 999);
  1029. SetPlayerColor(playerid, 0x9EC73DAA);
  1030. SetPlayerSkin(playerid, 162);
  1031. Shovele = SetTimer("IsInZombieS", 120000, true );
  1032. ZombieS[playerid][IsZombieS] = 1;
  1033. Delete3DTextLabel( Zombie[ playerid ] );
  1034. Delete3DTextLabel( Knife[ playerid ] );
  1035. Delete3DTextLabel( Dildo[ playerid ] );
  1036. }
  1037. if(listitem == 4)
  1038. {
  1039. new string[256];
  1040. new PlayerName[MAX_PLAYER_NAME];
  1041. if(GetPlayerMoney(playerid) <= 949999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
  1042. GivePlayerMoney(playerid, -950000);
  1043. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  1044. format(string,sizeof(string),"%s {3333FF}buy | SHOVEL ZOMBIE * 25 MIN * |!{663333} Use /zombieshop!",PlayerName);
  1045. SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  1046. format(string, sizeof(string), "~w~We have ~b~new~p~[]SHOVEL ZOMBIE]");
  1047. GameTextForAll( string, 5000, 3 );
  1048. ResetPlayerWeapons(playerid);
  1049. GivePlayerWeapon(playerid, 6, 10);
  1050. Shovel[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} SHOVEL {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
  1051. Attach3DTextLabelToPlayer( Shovel[ playerid ], playerid, 0.0, 0.0, 0.7);
  1052. SetPlayerHealth(playerid, 999);
  1053. SetPlayerColor(playerid, 0x9EC73DAA);
  1054. SetPlayerSkin(playerid, 162);
  1055. Shovele = SetTimer("IsInZombieS", 150000, true );
  1056. ZombieS[playerid][IsZombieS] = 1;
  1057. Delete3DTextLabel( Zombie[ playerid ] );
  1058. Delete3DTextLabel( Knife[ playerid ] );
  1059. Delete3DTextLabel( Dildo[ playerid ] );
  1060. }
  1061. if(listitem == 5)
  1062. {
  1063. new string[256];
  1064. new PlayerName[MAX_PLAYER_NAME];
  1065. if(GetPlayerMoney(playerid) <= 999999) return SendClientMessage(playerid,COLOR_RED,"You don´t have so much money!");
  1066. GivePlayerMoney(playerid, -10000000);
  1067. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  1068. format(string,sizeof(string),"%s {3333FF}buy | SHOVEL ZOMBIE * 30 MIN * |!{663333} Use /zombieshop!",PlayerName);
  1069. SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  1070. format(string, sizeof(string), "~w~We have ~b~new~p~[]SHOVEL ZOMBIE]");
  1071. GameTextForAll( string, 5000, 3 );
  1072. ResetPlayerWeapons(playerid);
  1073. GivePlayerWeapon(playerid, 6, 10);
  1074. Shovel[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} SHOVEL {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
  1075. Attach3DTextLabelToPlayer( Shovel[ playerid ], playerid, 0.0, 0.0, 0.7);
  1076. SetPlayerHealth(playerid, 999);
  1077. SetPlayerColor(playerid, 0x9EC73DAA);
  1078. SetPlayerSkin(playerid, 162);
  1079. Shovele = SetTimer("IsInZombieS", 180000, true );
  1080. ZombieS[playerid][IsZombieS] = 1;
  1081. Delete3DTextLabel( Zombie[ playerid ] );
  1082. Delete3DTextLabel( Knife[ playerid ] );
  1083. Delete3DTextLabel( Dildo[ playerid ] );
  1084. }
  1085. }
  1086. }
  1087. if(dialogid == 10112)
  1088. {
  1089. if(response)
  1090. {
  1091. if(!strlen(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Insert a player id");
  1092. if(!isNumeric(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Only numbers");
  1093. if(strval(inputtext) == INVALID_PLAYER_ID) return SendClientMessage(playerid, Color_Red, "{9999CC}Player not found!");
  1094. if(!IsPlayerConnected(strval(inputtext))) return SendClientMessage(playerid, ORANGE, "Player offline!");
  1095. new string[256];
  1096. format(string, sizeof(string), "~w~Zombie ~p~follow you. Zombie moved by %s .",GetName(playerid));
  1097. GameTextForPlayer(strval(inputtext), string, 5000, 3);
  1098. SendClientMessage(playerid, COLOR_GREY, "{3333FF}Zombie{663333} follow now some other guy !");
  1099. if (IsValidObject(zombie[4]))
  1100. {
  1101. if (TimerAtaca!=-1)
  1102. {
  1103. KillTimer(TimerAtaca);
  1104. }
  1105. TimerAtaca=SetTimerEx("zombieAtaca1",ZTimerSpeed,1,"i",strval(inputtext));
  1106. }
  1107. else
  1108. {
  1109. SendClientMessage(playerid, 0xFFFFFFAA, "There are no zombie");
  1110. }
  1111. }
  1112. }
  1113. if(dialogid == 10113)
  1114. {
  1115. new string[256];
  1116. new ime[20];
  1117. GetPlayerName(playerid, ime, sizeof(ime));
  1118. if(response)
  1119. {
  1120. if(RandomMess == true)
  1121. {
  1122. format(string, sizeof(string), "Random Zombie Messages turned off by a ZombieAdmin:{9933CC} %s", ime);
  1123. SendClientMessageToAll(0xFF8000FF, string);
  1124. RandomMess = false;
  1125. }
  1126. }
  1127. if(!response)
  1128. {
  1129. if(RandomMess == false)
  1130. {
  1131. format(string, sizeof(string), "Random Zombie Messages turned on by a ZombieAdmin:{9933CC} %s", ime);
  1132. SendClientMessageToAll(0xFF8000FF, string);
  1133. RandomMess = true;
  1134. }
  1135. }
  1136. }
  1137. if(dialogid == 10114)
  1138. {
  1139. if(response)
  1140. {
  1141. ShowDialog(playerid, 10115);
  1142. }
  1143. if(!response)
  1144. {
  1145. ShowDialog(playerid, 10116);
  1146. }
  1147. }
  1148. if(dialogid == 10115)
  1149. {
  1150. if(response)
  1151. {
  1152. new level;
  1153. new str[256],str2[512];
  1154. if(!strlen(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Insert a player id");
  1155. if(!isNumeric(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Only numbers");
  1156. if(strval(inputtext) == INVALID_PLAYER_ID) return SendClientMessage(playerid, Color_Red, "{9999CC}Player not found!");
  1157. if(!IsPlayerConnected(strval(inputtext))) return SendClientMessage(playerid, ORANGE, "Player offline!");
  1158. ZombieS[strval(inputtext)][Level] = 0;
  1159. dini_IntSet(playerfile,"Level",level);
  1160. format(str,sizeof(str),"{33CC00}* You have take{990000} %s's {33CC00}ZombieAdmin status !",GetName(strval(inputtext)));
  1161. SendClientMessage(playerid,COLOR_BLUE,str);
  1162. format(str2,sizeof(str2),"{9933CC}* ZombieAdmin {990000}'%s' {9933CC}has take *{990000} %s {9933CC}* ZombieAdmin Status !",GetName(playerid),GetName(strval(inputtext)));
  1163. SendClientMessageToAll(COLOR_BLUE,str2);
  1164. format(str2,sizeof(str2),"{9933CC}* ZombieAdmin {990000}'%s' {9933CC}has take your ZombieAdmin Status !",GetName(playerid));
  1165. SendClientMessage(strval(inputtext),COLOR_BLUE,str2);
  1166. }
  1167. }
  1168. if(dialogid == 10116)
  1169. {
  1170. if(response)
  1171. {
  1172. new level;
  1173. new str[256],str2[512];
  1174. if(!strlen(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Insert a player id");
  1175. if(!isNumeric(inputtext)) return SendClientMessage(playerid, 0x0000D9AA, "Only numbers");
  1176. if(strval(inputtext) == INVALID_PLAYER_ID) return SendClientMessage(playerid, Color_Red, "{9999CC}Player not found!");
  1177. if(!IsPlayerConnected(strval(inputtext))) return SendClientMessage(playerid, ORANGE, "Player offline!");
  1178. ZombieS[strval(inputtext)][Level] = 1;
  1179. dini_IntSet(playerfile,"Level",level);
  1180. format(str,sizeof(str),"{33CC00}* You have make{990000} %s's {33CC00}to ZombieAdmin !",GetName(strval(inputtext)));
  1181. SendClientMessage(playerid,COLOR_BLUE,str);
  1182. format(str2,sizeof(str2),"{9933CC}* ZombieAdmin {990000}'%s' {9933CC}has make *{990000} %s {9933CC}* to ZombieAdmin !",GetName(playerid),GetName(strval(inputtext)));
  1183. SendClientMessageToAll(COLOR_BLUE,str2);
  1184. format(str2,sizeof(str2),"{9933CC}* ZombieAdmin {990000}'%s' {9933CC}has make you ZombieAdmin !",GetName(playerid));
  1185. SendClientMessage(strval(inputtext),COLOR_BLUE,str2);
  1186. }
  1187. }
  1188. return 0;
  1189. }
  1190. //=======================================================
  1191. stock ShowDialog(playerid, dialog)
  1192. {
  1193. new string[512];
  1194. switch(dialog)
  1195. {
  1196. case 75: ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_INPUT,"Login Account",string,"Login","Quit");
  1197. case 74: ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_INPUT,"Register Account",string,"Register","Quit");
  1198. case 7001: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_INPUT,"{003399}Select a {00FF66}Player ID","{00FF66}Insert Player ID, who you want to be chainsaw zombie !","Make","Exit");
  1199. case 7002: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_INPUT,"{003399}Select a {00FF66}Player ID","{00FF66}Insert Player ID, who you want to be knife zombie !","Make","Exit");
  1200. case 7003: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_INPUT,"{003399}Select a {00FF66}Player ID","{00FF66}Insert Player ID, who you want to be dildo zombie !","Make","Exit");
  1201. case 7004: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_INPUT,"{003399}Select a {00FF66}Player ID","{00FF66}Insert Player ID, who you want to be shovel zombie !","Make","Exit");
  1202. case 7005: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_INPUT,"{003399}Select a {00FF66}Player ID","{00FF66}Insert Player ID, who you want to kill zombie !","Kill","Exit");
  1203. case 7006: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_LIST,"{003399}C{00FF66}hoose {003399}T{00FF66}ime", "{6600CC}5 Min [750.000$]\n{990033}10 Min [800.000$]\n{339933}15 Min [850.000$]\n{FF6600}20 Min [900.000$]\n{FFCC33}25 Min [950.000$]\n30 Min [1.000.000$]","Buy", "Cancel");
  1204. case 7007: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_LIST,"{003399}C{00FF66}hoose {003399}T{00FF66}ime", "{6600CC}5 Min [750.000$]\n{990033}10 Min [800.000$]\n{339933}15 Min [850.000$]\n{FF6600}20 Min [900.000$]\n{FFCC33}25 Min [950.000$]\n30 Min [1.000.000$]","Buy", "Cancel");
  1205. case 7008: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_LIST,"{003399}C{00FF66}hoose {003399}T{00FF66}ime", "{6600CC}5 Min [750.000$]\n{990033}10 Min [800.000$]\n{339933}15 Min [850.000$]\n{FF6600}20 Min [900.000$]\n{FFCC33}25 Min [950.000$]\n30 Min [1.000.000$]","Buy", "Cancel");
  1206. case 7009: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_LIST,"{003399}C{00FF66}hoose {003399}T{00FF66}ime", "{6600CC}5 Min [750.000$]\n{990033}10 Min [800.000$]\n{339933}15 Min [850.000$]\n{FF6600}20 Min [900.000$]\n{FFCC33}25 Min [950.000$]\n30 Min [1.000.000$]","Buy", "Cancel");
  1207. case 9991: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_LIST,"{003399}Z{00FF66}ombies", "Make/Take ZombieAdmin\n{6600CC}Zombie With Chainsaw\n{990033}Zombie With Knife\n{339933}Zombie With Dildo\nZombie With Shovel\n{FFCC33}Kill Zombie\n{6600CC}Make Zombie\n{990033}Zombie Follow You\n{339933}Stop Zombie\n{FFCC33}Zombie Watch You\n{CC66CC}Zombie Follow Some Other Guy\nCleanLastZombie\n{FF6600}RandomMessage\n{FFCC33}ShowMessage","Next", "Cancel");
  1208. case 9992: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_LIST,"{003399}Z{00FF66}ombie {003399}S{00FF66}hop", "{6600CC}Be Zombie With Chainsaw \n{990033}Be Zombie With Knife \n{339933}Be Zombie With Dildo \n{FF6600}Be Zombie With Shovel \n{FFCC33}Be Back Normal","Next", "Cancel");
  1209. case 10111: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_INPUT,"{003399}Select a {00FF66}Player ID","{00FF66}Insert Player ID, who you want to be zombie \n{339933}After that come list, where you\n{FFCC33}CHOOSE ZOMBIE NAME !. ","Next","Exit");
  1210. case 10112: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_INPUT,"{003399}Select a {00FF66}Player ID","{00FF66}Insert Player ID, who you want to be zombie follow !. ","Follow","Exit");
  1211. case 10113: ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_MSGBOX, "{FF0000}Random Zombie Messages","{FF6600}You wan't to turn zombie random messages {6600CC}off{33CC00}/{00FFFF}on{FF6600} ?\n {00FFFF} Choose answer !","Off","On");
  1212. case 10114: ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_MSGBOX, "{003399}Z{00FF66}ombie Admin Level","{FF6600}You wan't to {6600CC}take{33CC00} someone ZombieAdmin Status ?\n{FF6600}Wan't to {6600CC}make{33CC00} someone to ZombieAdmin ?","Take","Make");
  1213. case 10115: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_INPUT,"{003399}Select a {00FF66}Player ID","{00FF66}Insert Player ID, who you want to take him ZombieAdmin Status !","Take","Exit");
  1214. case 10116: ShowPlayerDialog(playerid, dialog,DIALOG_STYLE_INPUT,"{003399}Select a {00FF66}Player ID","{00FF66}Insert Player ID, who you want to make ZombieAdmin !","Make","Exit");
  1215. }
  1216. return 0;
  1217. }
  1218. //==========================================PUBLICS AND OTHER STUFF=============
  1219. //========================PUBLICS AND OTHER STUFF===============================
  1220. CrearZombie(Float:pX,Float:pY,Float:pZ,Float:angle)
  1221. {
  1222. new Float:PEPE = floatsin((angle*3.14159/180.0));
  1223. new Float:PIPO = floatcos((angle*3.14159/180.0));
  1224. for (new i=0;i<6;i++)
  1225. {
  1226. zombie[i]=CreateObject(z1[i][partModel],pX+z1[i][RelX]*PIPO+PEPE*z2[i][RelX],pY+z1[i][RelY]*PIPO+PEPE*z2[i][RelY],pZ+z1[i][RelZ],z1[i][RelrX],z1[i][RelrY],angle);
  1227. }
  1228. return zombie[4];
  1229. }
  1230. //==============================================================================
  1231. ZombieLookPlayer(playerid)
  1232. {
  1233. new Float:pX,Float:pY,Float:pZ,Float:angle;
  1234. GetPlayerPos(playerid,pX,pY,pZ);
  1235. GetObjectPos(zombie[4],X,Y,Z);
  1236. angle = 180.0-atan2(X-pX,Y-pY);
  1237. printf("%f",angle);
  1238. for (new i=0;i<6;i++)
  1239. {
  1240. DestroyObject(zombie[i]);
  1241. }
  1242. new Float:ran = float(random(6))-3.0;
  1243. CrearZombie(X,Y,Z,angle+ran);
  1244. return zombie[4];
  1245. }
  1246. //==============================================================================
  1247. public zombieAtaca(playerid)
  1248. {
  1249. new Float:pX,Float:pY,Float:pZ,Float:angle;
  1250. GetPlayerPos(playerid,pX,pY,pZ);
  1251. GetObjectPos(zombie[4],X,Y,Z);
  1252. angle = 180.0-atan2(X-pX,Y-pY);
  1253. new Float:ran = float(random(vaiven)-vaiven/2);
  1254. angle=angle+ran;
  1255. new Float:PEPE = floatsin((angle*3.14159/180.0));
  1256. new Float:PIPO = floatcos((angle*3.14159/180.0));
  1257. for (new i=0;i<6;i++)
  1258. {
  1259. DestroyObject(zombie[i]);
  1260. zombie[i]=CreateObject(z1[i][partModel],X+z1[i][RelX]*PIPO+PEPE*z2[i][RelX],Y+z1[i][RelY]*PIPO+PEPE*z2[i][RelY],Z+z1[i][RelZ],z1[i][RelrX],z1[i][RelrY],angle);
  1261. }
  1262. for (new i=0;i<6;i++)
  1263. {
  1264. MoveObject(zombie[i],pX+z1[i][RelX]*PIPO+PEPE*z2[i][RelX],pY+z1[i][RelY]*PIPO+PEPE*z2[i][RelY],pZ+z1[i][RelZ]+0.7,Zspeed);
  1265. }
  1266. return 1;
  1267. }
  1268. //==============================================================================
  1269. public zombieAtaca1(playerid)
  1270. {
  1271. new Float:pX,Float:pY,Float:pZ,Float:angle;
  1272. GetPlayerPos(playerid,pX,pY,pZ);
  1273. GetObjectPos(zombie[4],X,Y,Z);
  1274. angle = 180.0-atan2(X-pX,Y-pY);
  1275. new Float:ran = float(random(vaiven)-vaiven/2);
  1276. angle=angle+ran;
  1277. new Float:PEPE = floatsin((angle*3.14159/180.0));
  1278. new Float:PIPO = floatcos((angle*3.14159/180.0));
  1279. for (new i=0;i<6;i++)
  1280. {
  1281. DestroyObject(zombie[i]);
  1282. zombie[i]=CreateObject(z1[i][partModel],X+z1[i][RelX]*PIPO+PEPE*z2[i][RelX],Y+z1[i][RelY]*PIPO+PEPE*z2[i][RelY],Z+z1[i][RelZ],z1[i][RelrX],z1[i][RelrY],angle);
  1283. }
  1284. for (new i=0;i<6;i++)
  1285. {
  1286. MoveObject(zombie[i],pX+z1[i][RelX]*PIPO+PEPE*z2[i][RelX],pY+z1[i][RelY]*PIPO+PEPE*z2[i][RelY],pZ+z1[i][RelZ]+0.7,Zspeed);
  1287. }
  1288. return 1;
  1289. }
  1290. //==============================================================================
  1291. public IsInZombieC(playerid)
  1292. {
  1293. ZombieS[playerid][IsZombieC] = 0;
  1294. SendClientMessage(playerid,ORANGE,"Your ZombieTime is now over ...");
  1295. SetPlayerHealth(playerid, 0);
  1296. KillTimer(Chainsaw);
  1297. return 1;
  1298. }
  1299. //==============================================================================
  1300. public IsInZombieK(playerid)
  1301. {
  1302. ZombieS[playerid][IsZombieK] = 0;
  1303. SendClientMessage(playerid,ORANGE,"Your ZombieTime is now over ...");
  1304. SetPlayerHealth(playerid, 0);
  1305. KillTimer(Knifee);
  1306. return 1;
  1307. }
  1308. //==============================================================================
  1309. public IsInZombieD(playerid)
  1310. {
  1311. ZombieS[playerid][IsZombieD] = 0;
  1312. SendClientMessage(playerid,ORANGE,"Your ZombieTime is now over ...");
  1313. SetPlayerHealth(playerid, 0);
  1314. KillTimer(Dilde);
  1315. return 1;
  1316. }
  1317. //==============================================================================
  1318. public IsInZombieS(playerid)
  1319. {
  1320. ZombieS[playerid][IsZombieS] = 0;
  1321. SendClientMessage(playerid,ORANGE,"Your ZombieTime is now over ...");
  1322. SetPlayerHealth(playerid, 0);
  1323. KillTimer(Shovele);
  1324. return 1;
  1325. }
  1326. //==============================================================================
  1327. public OnPlayerConnect(playerid)
  1328. {
  1329. ZombieS[playerid][Logged] = 0;
  1330. ZombieS[playerid][Registered] = 0;
  1331. ZombieS[playerid][Level] = 0;
  1332. ZombieS[playerid][IsZombieC] = 0;
  1333. ZombieS[playerid][IsZombieK] = 0;
  1334. ZombieS[playerid][IsZombieD] = 0;
  1335. ZombieS[playerid][IsZombieS] = 0;
  1336. new gsendid;
  1337. new shovel;
  1338. new dildo;
  1339. new knife;
  1340. Delete3DTextLabel( Zombie[ gsendid ] );
  1341. Delete3DTextLabel( Knife[ knife ] );
  1342. Delete3DTextLabel( Dildo[ dildo ] );
  1343. Delete3DTextLabel( Shovel[ shovel ] );
  1344. new PlayerName[MAX_PLAYER_NAME];
  1345. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  1346. format(playerfile,sizeof(playerfile),"Zombiefs/ZombieS/%s.ini",PlayerName);
  1347. return 1;
  1348. }
  1349. //==============================================================================
  1350. public OnPlayerDisconnect(playerid, reason)
  1351. {
  1352. new PlayerName[MAX_PLAYER_NAME];
  1353. GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
  1354. format(playerfile,sizeof(playerfile),"Zombiefs/ZombieS/%s.ini",PlayerName);
  1355. ZombieS[playerid][Logged] = 0;
  1356. dini_IntSet(playerfile,"Logged",0);
  1357. dini_IntSet(playerfile,"Level", ZombieS[playerid][Level]);
  1358. dini_IntSet(playerfile, "IsZombieC", ZombieS[playerid][IsZombieC]);
  1359. dini_IntSet(playerfile, "IsZombieK", ZombieS[playerid][IsZombieK]);
  1360. dini_IntSet(playerfile, "IsZombieD", ZombieS[playerid][IsZombieD]);
  1361. dini_IntSet(playerfile, "IsZombieS", ZombieS[playerid][IsZombieS]);
  1362. KillTimer(Chainsaw);
  1363. KillTimer(Knifee);
  1364. KillTimer(Dilde);
  1365. KillTimer(Shovele);
  1366. return 1;
  1367. }
  1368. //==============================================================================
  1369. public OnPlayerSpawn(playerid)
  1370. {
  1371. if(ZombieS[playerid][Registered] == 1 && ZombieS[playerid][Logged] == 0)
  1372. {
  1373. return 1;
  1374. }
  1375. return 1;
  1376. }
  1377. //==============================================================================
  1378. public ZombieSMessages()
  1379. {
  1380. if(RandomMess == true)
  1381. {
  1382. new string[128];
  1383. new mess = random(sizeof(ZombieMessages));
  1384. format(string, sizeof(string), "{FF6600}[Zombie News]: %s", ZombieMessages[mess]);
  1385. SetTimer("ZombieMessages", 3000, 0);
  1386. SendClientMessageToAll(0xFFFF00AA, string);
  1387. }
  1388. return 1;
  1389. }
  1390. //==============================================================================
  1391. stock GetName(playerid)
  1392. {
  1393. new name[MAX_PLAYER_NAME];
  1394. if(IsPlayerConnected(playerid))
  1395. {
  1396. GetPlayerName(playerid, name, sizeof(name));
  1397. }
  1398. else
  1399. {
  1400. name = "Unknown";
  1401. }
  1402. return name;
  1403. }
  1404. //==============================================================================
  1405. public OnPlayerDeath(playerid, killerid, reason)
  1406. {
  1407. if(ZombieS[playerid][IsZombieC] == 1)
  1408. {
  1409. ResetPlayerWeapons(playerid);
  1410. GivePlayerWeapon(playerid, 9, 999);
  1411. SetPlayerHealth(playerid, 999);
  1412. SetPlayerColor(playerid, 0xFF6600AA);
  1413. SetPlayerSkin(playerid, 137);
  1414. }
  1415. if(ZombieS[playerid][IsZombieK] == 1)
  1416. {
  1417. ResetPlayerWeapons(playerid);
  1418. GivePlayerWeapon(playerid, 4, 10);
  1419. SetPlayerHealth(playerid, 999);
  1420. SetPlayerColor(playerid, 0xAFAFAF00);
  1421. SetPlayerSkin(playerid, 186);
  1422. }
  1423. if(ZombieS[playerid][IsZombieD] == 1)
  1424. {
  1425. ResetPlayerWeapons(playerid);
  1426. GivePlayerWeapon(playerid, 10, 10);
  1427. SetPlayerHealth(playerid, 999);
  1428. SetPlayerColor(playerid, 0x64000064);
  1429. SetPlayerSkin(playerid, 199);
  1430. }
  1431. if(ZombieS[playerid][IsZombieS] == 1)
  1432. {
  1433. ResetPlayerWeapons(playerid);
  1434. GivePlayerWeapon(playerid, 6, 10);
  1435. SetPlayerHealth(playerid, 999);
  1436. SetPlayerColor(playerid, 0x9EC73DAA);
  1437. SetPlayerSkin(playerid, 162);
  1438. }
  1439. return 1;
  1440. }
  1441. //==============================================================================
  1442. //=============================[ End of the all ]===============================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement