Advertisement
Guest User

Untitled

a guest
Dec 18th, 2012
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. //CREDITS:: KillStreak Functions Made by [FU]Victious (BANNED). Death Machine Stuff made by Postalityjr. Merged by Postalityjr and Ajam (release on 2012 )
  2.  
  3.  
  4. #include <a_samp>
  5. #include <zcmd>
  6.  
  7. #define YELLOW 0xF2FF00AA
  8.  
  9. public OnFilterScriptInit()
  10. {
  11. print("\n--------------------------------------");
  12. print(" Death Machine KillStreak By Kross");
  13. print("--------------------------------------\n");
  14. return 1;
  15. }
  16.  
  17. public OnPlayerDeath(playerid, killerid, reason)
  18. {
  19. SetPVarInt(killerid,"KillStreak",GetPVarInt(killerid,"KillStreak") + 1);
  20. SetPVarInt(playerid, "KillStreak", 0);
  21. if(GetPVarInt(killerid,"KillStreak") >= 11)
  22. {
  23. GameTextForPlayer(killerid,"~r~11 Kill Streak! Type /DeathMachine to use your KillStreak!",5000,3);
  24. return 1;
  25. }
  26. return 1;
  27. }
  28.  
  29. CMD:deathmachine(playerid,params[])
  30. {
  31. if(GetPVarInt(playerid,"KillStreak") >= 11)
  32. {
  33. GivePlayerWeapon(playerid,38,250);
  34. SetPVarInt(playerid,"KillStreak",0);
  35. //return 1;
  36. }
  37. else
  38. if(GetPVarInt(playerid,"KillStreak") <= 10)
  39. {
  40. GameTextForPlayer(playerid,"~r~You Don't have a Death Machine",5000,3);
  41. }
  42. return 1;
  43. }
  44.  
  45. CMD:deathmachineadmin(playerid,params[])
  46. {
  47. if(IsPlayerAdmin(playerid))
  48. {
  49. GivePlayerWeapon(playerid,38,250);
  50. }
  51. return 1;
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement