Guest User

Script_Zombie

a guest
Jul 20th, 2013
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.54 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3. #include <sscanf2>
  4. #include <foreach>
  5. #include <streamer>
  6.  
  7. #if defined FILTERSCRIPT
  8.  
  9. public OnFilterScriptInit()
  10. {
  11. print("\n--------------------------------------");
  12. print(" Blank Filterscript by your name here");
  13. print("--------------------------------------\n");
  14. return 1;
  15. }
  16.  
  17. public OnFilterScriptExit()
  18. {
  19. return 1;
  20. }
  21.  
  22. #else
  23.  
  24. #define COLOR_RED 0xAA3333AA
  25.  
  26. main()
  27. {
  28. print("\n----------------------------------");
  29. print(" Blank Gamemode by your name here");
  30. print("----------------------------------\n");
  31. }
  32.  
  33. #endif
  34.  
  35. new connect_timer[MAX_PLAYERS];
  36.  
  37. new targetid;
  38.  
  39. public OnGameModeInit()
  40. {
  41. AddPlayerClass(0,1484.4785,-1640.0005,14.1484,87.1447,0,0,0,0,0,0); // spawn
  42. AddPlayerClass(0,1477.9440,-1639.4468,14.1484,267.1447,0,0,0,0,0,0); // spawn camera
  43. AddStaticVehicle(400,1482.0426,-1620.5505,14.1320,217.0313,123,1); // car test
  44. return 1;
  45. }
  46.  
  47. public OnGameModeExit()
  48. {
  49. return 1;
  50. }
  51.  
  52. public OnPlayerRequestClass(playerid, classid)
  53. {
  54. switch(classid)
  55. {
  56. case 0:
  57. {
  58. SetPlayerColor(playerid, COLOR_RED);
  59. SetPlayerTeam(playerid, 111);
  60. SetPlayerSkin(playerid, 128);
  61. SetPlayerHealth(playerid, 100);
  62. GameTextForPlayer(playerid, "~r~Zombie MUAHAHAHA", 5000, 5);
  63. SetPlayerPos(playerid,1484.4785,-1640.0005,14.1484);
  64. SetPlayerCameraPos(playerid,1477.9440,-1639.4468,14.1484);
  65. SetPlayerCameraLookAt(playerid,1484.4785,-1640.0005,14.1484);
  66. SetPlayerFacingAngle(playerid,87.1447);
  67.  
  68. }
  69.  
  70. case 1:
  71. {
  72.  
  73. SetPlayerColor(playerid, COLOR_RED);
  74. SetPlayerTeam(playerid, 111);
  75. SetPlayerSkin(playerid, 129);
  76. SetPlayerHealth(playerid, 100);
  77. GameTextForPlayer(playerid, "~r~Zombie MUAHAHAHAA", 5000, 5);
  78. SetPlayerPos(playerid,1484.4785,-1640.0005,14.1485);
  79. SetPlayerCameraPos(playerid,1477.9440,-1639.4468,14.1484);
  80. SetPlayerCameraLookAt(playerid,1484.4785,-1640.0005,14.1484);
  81. SetPlayerFacingAngle(playerid,87.1447);
  82. }
  83.  
  84. case 2:
  85. {
  86.  
  87. SetPlayerColor(playerid, COLOR_RED);
  88. SetPlayerTeam(playerid, 111);
  89. SetPlayerSkin(playerid, 157);
  90. SetPlayerHealth(playerid, 100);
  91. GameTextForPlayer(playerid, "~r~Zombie MUAHAHAHASA", 5000, 5);
  92. SetPlayerPos(playerid,1484.4785,-1640.0005,14.1487);
  93. SetPlayerCameraPos(playerid,1477.9440,-1639.4468,14.1484);
  94. SetPlayerCameraLookAt(playerid,1484.4785,-1640.0005,14.1484);
  95. SetPlayerFacingAngle(playerid,87.1447);
  96. }
  97.  
  98. case 3:
  99. {
  100. SetPlayerColor(playerid, COLOR_RED);
  101. SetPlayerTeam(playerid, 111);
  102. SetPlayerSkin(playerid, 200);
  103. SetPlayerHealth(playerid, 100);
  104. GameTextForPlayer(playerid, "~r~Zombie MUAHAHAASAHA", 5000, 5);
  105. SetPlayerPos(playerid,1484.4785,-1640.0005,14.1482);
  106. SetPlayerCameraPos(playerid,1477.9440,-1639.4468,14.1484);
  107. SetPlayerCameraLookAt(playerid,1484.4785,-1640.0005,14.1484);
  108. SetPlayerFacingAngle(playerid,87.1447);
  109. }
  110.  
  111. case 4:
  112. {
  113. SetPlayerColor(playerid, COLOR_RED);
  114. SetPlayerTeam(playerid, 111);
  115. SetPlayerSkin(playerid, 162);
  116. SetPlayerHealth(playerid, 100);
  117. GameTextForPlayer(playerid, "~r~Zombie MUAHAHAASA", 5000, 5);
  118. SetPlayerPos(playerid,1484.4785,-1640.0005,14.1480);
  119. SetPlayerCameraPos(playerid,1477.9440,-1639.4468,14.1484);
  120. SetPlayerCameraLookAt(playerid,1484.4785,-1640.0005,14.1484);
  121. SetPlayerFacingAngle(playerid,87.1447);
  122. }
  123.  
  124. }
  125.  
  126. return 1;
  127. }
  128.  
  129. public OnPlayerConnect(playerid)
  130. {
  131.  
  132. return 1;
  133. }
  134.  
  135. public OnPlayerDisconnect(playerid, reason)
  136. {
  137. return 1;
  138. }
  139.  
  140. public OnPlayerSpawn(playerid)
  141. {
  142. return 1;
  143. }
  144.  
  145. public OnPlayerDeath(playerid, killerid, reason)
  146. {
  147. return 1;
  148. }
  149.  
  150. public OnVehicleSpawn(vehicleid)
  151. {
  152. return 1;
  153. }
  154.  
  155. public OnVehicleDeath(vehicleid, killerid)
  156. {
  157. return 1;
  158. }
  159.  
  160. public OnPlayerText(playerid, text[])
  161. {
  162. return 1;
  163. }
  164.  
  165. public OnPlayerCommandText(playerid, cmdtext[])
  166. {
  167. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  168. {
  169. // Do something here
  170. return 1;
  171. }
  172. return 0;
  173. }
  174.  
  175.  
  176.  
  177. CMD:bitel(playerid, params[])
  178. {
  179. if(GetPlayerTeam(playerid) == 111)
  180. {
  181. if(GetPlayerSkin(playerid) == 128)
  182. {
  183. if(GetPlayerScore(playerid) == 0)
  184. {
  185. new Float:health;
  186. new Float:x, Float:y, Float:z;
  187. if(sscanf(params,"u",targetid)) return SendClientMessage(playerid, -1, "USAGE: /bitel <id/name>, Make Sure you are in range");
  188. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xFFFFFFF,"That player is not connected to the server!");
  189. GetPlayerHealth(playerid,health);
  190. GetPlayerPos(targetid, x, y, z);
  191. if(IsPlayerInRangeOfPoint(playerid, 3.0, x, y, z))
  192. {
  193. SetPlayerHealth(playerid, health-20);
  194. TogglePlayerControllable(playerid,0);
  195. TogglePlayerControllable(playerid,1);
  196. GameTextForPlayer(playerid, "~r~You just scarched his dick", 5000, 5);
  197. }
  198. }
  199. }
  200. }
  201. else
  202. {
  203. SendClientMessage(playerid,COLOR_RED,"You've Kind of Failed");
  204. }
  205. return 1;
  206. }
  207.  
  208. CMD:bitem(playerid, params[])
  209. {
  210. if(GetPlayerTeam(playerid) == 111)
  211. if(GetPlayerSkin(playerid) == 129)
  212. if(GetPlayerScore(playerid) == 5)
  213. {
  214. new Float:health;
  215. new Float:x, Float:y, Float:z;
  216. if(sscanf(params,"u",targetid)) return SendClientMessage(playerid, -1, "USAGE: /bitem <id/name>, Make Sure you are in range");
  217. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xFFFFFFF,"That player is not connected to the server!");
  218. GetPlayerHealth(playerid,health);
  219. GetPlayerPos(targetid, x, y, z);
  220. if(IsPlayerInRangeOfPoint(playerid, 4.0, x, y, z))
  221. {
  222. SetPlayerHealth(playerid, health-25);
  223. TogglePlayerControllable(playerid,0);
  224. TogglePlayerControllable(playerid,1);
  225. GameTextForPlayer(playerid, "~r~You just scarched his dick-less head", 5000, 5);
  226. GameTextForPlayer(targetid, "~r~You just got your dick scarched", 5000, 5);
  227. }
  228. }
  229. return 1;
  230. }
  231.  
  232. CMD:biteh(playerid, params[])
  233. {
  234. if(GetPlayerTeam(playerid) == 111)
  235. if(GetPlayerSkin(playerid) == 157)
  236. if(GetPlayerScore(playerid) == 10)
  237. {
  238. new Float:health;
  239. new Float:x, Float:y, Float:z;
  240. if(sscanf(params,"u",targetid)) return SendClientMessage(playerid, -1, "USAGE: /biteh <id/name>, Make Sure you are in range");
  241. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xFFFFFFF,"That player is not connected to the server!");
  242. GetPlayerHealth(playerid,health);
  243. GetPlayerPos(targetid, x, y, z);
  244. if(IsPlayerInRangeOfPoint(playerid, 5.0, x, y, z))
  245. {
  246. SetPlayerHealth(playerid, health-45);
  247. TogglePlayerControllable(playerid,0);
  248. TogglePlayerControllable(playerid,1);
  249. GameTextForPlayer(playerid, "~r~You just raped his/her dick/dickless", 5000, 5);
  250. GameTextForPlayer(targetid, "~r~You just got raped", 5000, 5);
  251. }
  252. }
  253. return 1;
  254. }
  255.  
  256. CMD:ibite(playerid, params[])
  257. {
  258. if(GetPlayerTeam(playerid) == 111)
  259. if(GetPlayerSkin(playerid) == 200)
  260. if(GetPlayerScore(playerid) == 20)
  261. {
  262. new Float:health;
  263. new Float:x, Float:y, Float:z;
  264. if(sscanf(params,"u",targetid)) return SendClientMessage(playerid, -1, "USAGE: /ibite <id/name>, Make Sure you are in range");
  265. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xFFFFFFF,"That player is not connected to the server!");
  266. GetPlayerHealth(playerid,health);
  267. GetPlayerPos(targetid, x, y, z);
  268. if(IsPlayerInRangeOfPoint(playerid, 3.5, x, y, z))
  269. {
  270. SetPlayerHealth(playerid, health-15);
  271. TogglePlayerControllable(playerid,0);
  272. TogglePlayerControllable(playerid,1);
  273. GameTextForPlayer(playerid, "~r~You just opens a hole and injects a sperm", 5000, 5);
  274. GameTextForPlayer(targetid, "~r~You are infected by a sperm, soon you gonna be a zombie, prey to god NOW!!!", 5000, 5);
  275. connect_timer[targetid] = SetTimerEx("Infection", 120000, true, "i", playerid);
  276.  
  277. }
  278. }
  279. return 1;
  280. }
  281.  
  282. CMD:puke(playerid, params[])
  283. {
  284. if(GetPlayerTeam(playerid) == 111)
  285. if(GetPlayerSkin(playerid) == 162)
  286. if(GetPlayerScore(playerid) == 20)
  287. {
  288. new Float:health;
  289. new Float:x, Float:y, Float:z;
  290. if(sscanf(params,"u",targetid)) return SendClientMessage(playerid, -1, "USAGE: /puke <id/name>, Make Sure you are in range");
  291. if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xFFFFFFF,"That player is not connected to the server!");
  292. GetPlayerHealth(playerid,health);
  293. GetPlayerPos(targetid, x, y, z);
  294. if(IsPlayerInRangeOfPoint(playerid, 10.0, x, y, z))
  295. {
  296. SetPlayerHealth(playerid, health-5);
  297. TogglePlayerControllable(playerid,0);
  298. TogglePlayerControllable(playerid,1);
  299. GameTextForPlayer(playerid, "~r~You just puked on her chest", 5000, 5);
  300. GameTextForPlayer(targetid, "~r~You just got puked on your chest", 5000, 5);
  301. }
  302. }
  303. return 1;
  304. }
  305.  
  306.  
  307. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  308. {
  309. return 1;
  310. }
  311.  
  312. public OnPlayerExitVehicle(playerid, vehicleid)
  313. {
  314. return 1;
  315. }
  316.  
  317. public OnPlayerStateChange(playerid, newstate, oldstate)
  318. {
  319. return 1;
  320. }
  321.  
  322. public OnPlayerEnterCheckpoint(playerid)
  323. {
  324. return 1;
  325. }
  326.  
  327. public OnPlayerLeaveCheckpoint(playerid)
  328. {
  329. return 1;
  330. }
  331.  
  332. public OnPlayerEnterRaceCheckpoint(playerid)
  333. {
  334. return 1;
  335. }
  336.  
  337. public OnPlayerLeaveRaceCheckpoint(playerid)
  338. {
  339. return 1;
  340. }
  341.  
  342. public OnRconCommand(cmd[])
  343. {
  344. return 1;
  345. }
  346.  
  347. public OnPlayerRequestSpawn(playerid)
  348. {
  349. return 1;
  350. }
  351.  
  352. public OnObjectMoved(objectid)
  353. {
  354. return 1;
  355. }
  356.  
  357. public OnPlayerObjectMoved(playerid, objectid)
  358. {
  359. return 1;
  360. }
  361.  
  362. public OnPlayerPickUpPickup(playerid, pickupid)
  363. {
  364. return 1;
  365. }
  366.  
  367. public OnVehicleMod(playerid, vehicleid, componentid)
  368. {
  369. return 1;
  370. }
  371.  
  372. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  373. {
  374. return 1;
  375. }
  376.  
  377. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  378. {
  379. return 1;
  380. }
  381.  
  382. public OnPlayerSelectedMenuRow(playerid, row)
  383. {
  384. return 1;
  385. }
  386.  
  387. public OnPlayerExitedMenu(playerid)
  388. {
  389. return 1;
  390. }
  391.  
  392. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  393. {
  394. return 1;
  395. }
  396.  
  397. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  398. {
  399. return 1;
  400. }
  401.  
  402. public OnRconLoginAttempt(ip[], password[], success)
  403. {
  404. return 1;
  405. }
  406.  
  407. public OnPlayerUpdate(playerid)
  408. {
  409. return 1;
  410. }
  411.  
  412. public OnPlayerStreamIn(playerid, forplayerid)
  413. {
  414. return 1;
  415. }
  416.  
  417. public OnPlayerStreamOut(playerid, forplayerid)
  418. {
  419. return 1;
  420. }
  421.  
  422. public OnVehicleStreamIn(vehicleid, forplayerid)
  423. {
  424. return 1;
  425. }
  426.  
  427. public OnVehicleStreamOut(vehicleid, forplayerid)
  428. {
  429. return 1;
  430. }
  431.  
  432. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  433. {
  434. return 1;
  435. }
  436.  
  437. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  438. {
  439. return 1;
  440. }
  441.  
  442. forward Infection(playerid);
  443. public Infection(playerid)
  444. {
  445. SetPlayerColor(targetid, COLOR_RED);
  446. SetPlayerTeam(targetid, 111);
  447. SetPlayerSkin(targetid, 128);
  448. SetPlayerHealth(targetid, 100);
  449. GameTextForPlayer(targetid, "~r~Zombie, MUAHAHAHA", 5000, 5);
  450. SetPlayerPos(targetid,1484.4785,-1640.0005,14.1484);
  451. SetPlayerCameraPos(targetid,1477.9440,-1639.4468,14.1484);
  452. SetPlayerCameraLookAt(targetid,1484.4785,-1640.0005,14.1484);
  453. SetPlayerFacingAngle(targetid,87.1447);
  454. GetPlayerWeapon(targetid);
  455. KillTimer(connect_timer[targetid]);
  456. return 1;
  457. }
Advertisement
Add Comment
Please, Sign In to add comment