MegastoRM

Untitled

Apr 16th, 2013
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. /*================================================================================
  2.  
  3. -----------------------------------
  4. -*- [ZP] Default Zombie Classes -*-
  5. -----------------------------------
  6.  
  7. ~~~~~~~~~~~~~~~
  8. - Description -
  9. ~~~~~~~~~~~~~~~
  10.  
  11. This plugin adds the default zombie classes to Zombie Plague.
  12. Feel free to modify their attributes to your liking.
  13.  
  14. Note: If zombie classes are disabled, the first registered class
  15. will be used for all players (by default, Classic Zombie).
  16.  
  17. ================================================================================*/
  18.  
  19. #include <amxmodx>
  20. #include <fakemeta>
  21. #include <zombieplague>
  22.  
  23. /*================================================================================
  24. [Plugin Customization]
  25. =================================================================================*/
  26.  
  27. // Classic Zombie Attributes
  28. new const zclass_name[] = { "VIP Zombie" }
  29. new const zclass_info[] = { "=-=" }
  30. new const zclass_model[] = { "model1" }
  31. new const zclass_clawmodel[] = { "v_knife_zombie.mdl" }
  32. const zclass_health = 1800
  33. const zclass_speed = 190
  34. const Float:zclass_gravity = 1.0
  35. const Float:zclass_knockback = 1.0
  36.  
  37. new g_zclass_vip
  38.  
  39. // Zombie Classes MUST be registered on plugin_precache
  40. public plugin_precache()
  41. {
  42. register_plugin("[ZP] Default Zombie Classes", "4.3 Fix5", "MeRcyLeZZ")
  43.  
  44. // Register all classes
  45. g_zclass_vip = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)
  46. }
  47.  
  48. public zp_user_infected_pre(id) {
  49. if(!(get_user_flags(id) & ADMIN_LEVEL_H))
  50. {
  51. if(zp_get_user_next_class(id) == g_zclass_vip)
  52. {
  53. zp_set_user_zombie_class(id, 0)
  54. client_print(id, print_center, "Nemas pristup VIP klasi!")
  55. }
  56. }
  57. }
Advertisement
Add Comment
Please, Sign In to add comment