MegastoRM

Untitled

May 16th, 2013
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include <amxmodx>
  4. #include <amxmisc>
  5.  
  6. #define PLUGIN "New Plug-In"
  7. #define VERSION "1.0"
  8. #define AUTHOR "author"
  9.  
  10.  
  11. public plugin_init() {
  12. register_plugin(PLUGIN, VERSION, AUTHOR)
  13.  
  14. register_event("DeathMsg", "hook_death", "b")
  15. }
  16.  
  17. public hook_death()
  18. {
  19. new attacker, victim
  20. attacker = read_data(1)
  21. victim = read_data(2)
  22.  
  23. if(!is_user_bot(victim) || !is_user_bot(attacker))
  24. return PLUGIN_CONTINUE
  25.  
  26.  
  27.  
  28. if(get_user_deaths(victim) == 5)
  29. {
  30. client_cmd(victim,"say /rs")
  31. }
  32. if(get_user_frags(attacker) == 30)
  33. {
  34. client_cmd(attacker,"say /rs")
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment