hlmod.hu
https://hlmod.hu/

2 ugró zombi
https://hlmod.hu/viewtopic.php?f=29&t=5983
Oldal: 1 / 1

Szerző:  Pele [ 2012.09.15. 14:30 ]
Hozzászólás témája:  2 ugró zombi

Űdv.
Valaki irna nekem ehez 2 ugró zm et?
köszi előre is!


SMA Forráskód: [ Mindet kijelol ]
  1. /*================================================================================
  2.  
  3. -----------------------------------
  4. -*- [BB] Default Zombie Classes -*-
  5. -----------------------------------
  6.  
  7. ~~~~~~~~~~~~~~~
  8. - Description -
  9. ~~~~~~~~~~~~~~~
  10.  
  11. This plugin adds the default zombie classes from Zombie Plague
  12. into Base Builder. All credit belongs to MeRcyLeZZ.
  13.  
  14. All classes have been balanced, but feel free to edit them if
  15. you are not satisfied.
  16.  
  17. ================================================================================*/
  18.  
  19. #include <amxmodx>
  20. #include <basebuilder>
  21. #include <hamsandwich>
  22. #include <fun>
  23. #include <cstrike>
  24.  
  25. /*================================================================================
  26.  [Plugin Customization]
  27. =================================================================================*/
  28.  
  29. // Classic Zombie Attributes
  30. new const zclass1_name[] = { "Classic Zombie" }
  31. new const zclass1_info[] = { "=Balanced=" }
  32. new const zclass1_model[] = { "bb_classic" }
  33. new const zclass1_clawmodel[] = { "v_bloodyhands" }
  34. const zclass1_health = 3000
  35. const zclass1_speed = 260
  36. const Float:zclass1_gravity = 1.0
  37. const zclass1_adminflags = ADMIN_ALL
  38.  
  39. // Fast Zombie Attributes
  40. new const zclass2_name[] = { "Fast Zombie" }
  41. new const zclass2_info[] = { "HP-- Speed++" }
  42. new const zclass2_model[] = { "bb_fast" }
  43. new const zclass2_clawmodel[] = { "v_bloodyhands" }
  44. const zclass2_health = 2000
  45. const zclass2_speed = 325
  46. const Float:zclass2_gravity = 1.0
  47. const zclass2_adminflags = ADMIN_ALL
  48.  
  49. // Jumper Zombie Attributes
  50. new const zclass3_name[] = { "Jumper Zombie" }
  51. new const zclass3_info[] = { "HP- Jump+" }
  52. new const zclass3_model[] = { "bb_jumper" }
  53. new const zclass3_clawmodel[] = { "v_bloodyhands" }
  54. const zclass3_health = 2500
  55. const zclass3_speed = 285
  56. const Float:zclass3_gravity = 0.5
  57. const zclass3_adminflags = ADMIN_ALL
  58.  
  59. // Tanker Zombie Attributes
  60. new const zclass4_name[] = { "Tanker Zombie" }
  61. new const zclass4_info[] = { "HP++ Speed-" }
  62. new const zclass4_model[] = { "bb_tanker" }
  63. new const zclass4_clawmodel[] = { "v_bloodyhands" }
  64. const zclass4_health = 4000
  65. const zclass4_speed = 210
  66. const Float:zclass4_gravity = 1.0
  67. const zclass4_adminflags = ADMIN_ALL
  68. #define TANK_ARMOR 200
  69.  
  70. /*============================================================================*/
  71.  
  72. new g_zclass_tanker
  73.  
  74. // Zombie Classes MUST be registered on plugin_precache
  75. public plugin_precache()
  76. {
  77. register_plugin("[BB] Default Zombie Classes", "6.5", "Tirant")
  78.  
  79. // Register all classes
  80. bb_register_zombie_class(zclass1_name, zclass1_info, zclass1_model, zclass1_clawmodel, zclass1_health, zclass1_speed, zclass1_gravity, 0.0, zclass1_adminflags)
  81. bb_register_zombie_class(zclass2_name, zclass2_info, zclass2_model, zclass2_clawmodel, zclass2_health, zclass2_speed, zclass2_gravity, 0.0, zclass2_adminflags)
  82. bb_register_zombie_class(zclass3_name, zclass3_info, zclass3_model, zclass3_clawmodel, zclass3_health, zclass3_speed, zclass3_gravity, 0.0, zclass3_adminflags)
  83. g_zclass_tanker = bb_register_zombie_class(zclass4_name, zclass4_info, zclass4_model, zclass4_clawmodel, zclass4_health, zclass4_speed, zclass4_gravity, 0.0, zclass4_adminflags)
  84. }
  85.  
  86. #if defined TANK_ARMOR
  87. public plugin_init()
  88. {
  89. RegisterHam(Ham_Spawn, "player", "ham_PlayerSpawn_Post", 1)
  90. }
  91.  
  92. public ham_PlayerSpawn_Post(id)
  93. {
  94. if (!is_user_alive(id))
  95. return ;
  96.  
  97. if (bb_is_user_zombie(id) && bb_get_user_zombie_class(id) == g_zclass_tanker)
  98. {
  99. give_item(id, "item_assaultsuit");
  100. cs_set_user_armor(id, TANK_ARMOR, CS_ARMOR_VESTHELM);
  101. }
  102. }
  103. #endif
  104.  

Szerző:  ziman01 [ 2012.10.20. 18:23 ]
Hozzászólás témája:  Re: 2 ugró zombi

Pele írta:
Űdv.
Valaki irna nekem ehez 2 ugró zm et?
köszi előre is!


SMA Forráskód: [ Mindet kijelol ]
  1. /*================================================================================
  2.  
  3. -----------------------------------
  4. -*- [BB] Default Zombie Classes -*-
  5. -----------------------------------
  6.  
  7. ~~~~~~~~~~~~~~~
  8. - Description -
  9. ~~~~~~~~~~~~~~~
  10.  
  11. This plugin adds the default zombie classes from Zombie Plague
  12. into Base Builder. All credit belongs to MeRcyLeZZ.
  13.  
  14. All classes have been balanced, but feel free to edit them if
  15. you are not satisfied.
  16.  
  17. ================================================================================*/
  18.  
  19. #include <amxmodx>
  20. #include <basebuilder>
  21. #include <hamsandwich>
  22. #include <fun>
  23. #include <cstrike>
  24.  
  25. /*================================================================================
  26.  [Plugin Customization]
  27. =================================================================================*/
  28.  
  29. // Classic Zombie Attributes
  30. new const zclass1_name[] = { "Classic Zombie" }
  31. new const zclass1_info[] = { "=Balanced=" }
  32. new const zclass1_model[] = { "bb_classic" }
  33. new const zclass1_clawmodel[] = { "v_bloodyhands" }
  34. const zclass1_health = 3000
  35. const zclass1_speed = 260
  36. const Float:zclass1_gravity = 1.0
  37. const zclass1_adminflags = ADMIN_ALL
  38.  
  39. // Fast Zombie Attributes
  40. new const zclass2_name[] = { "Fast Zombie" }
  41. new const zclass2_info[] = { "HP-- Speed++" }
  42. new const zclass2_model[] = { "bb_fast" }
  43. new const zclass2_clawmodel[] = { "v_bloodyhands" }
  44. const zclass2_health = 2000
  45. const zclass2_speed = 325
  46. const Float:zclass2_gravity = 1.0
  47. const zclass2_adminflags = ADMIN_ALL
  48.  
  49. // Jumper Zombie Attributes
  50. new const zclass3_name[] = { "Jumper Zombie" }
  51. new const zclass3_info[] = { "HP- Jump+" }
  52. new const zclass3_model[] = { "bb_jumper" }
  53. new const zclass3_clawmodel[] = { "v_bloodyhands" }
  54. const zclass3_health = 2500
  55. const zclass3_speed = 285
  56. const Float:zclass3_gravity = 0.5
  57. const zclass3_adminflags = ADMIN_ALL
  58.  
  59. // Tanker Zombie Attributes
  60. new const zclass4_name[] = { "Tanker Zombie" }
  61. new const zclass4_info[] = { "HP++ Speed-" }
  62. new const zclass4_model[] = { "bb_tanker" }
  63. new const zclass4_clawmodel[] = { "v_bloodyhands" }
  64. const zclass4_health = 4000
  65. const zclass4_speed = 210
  66. const Float:zclass4_gravity = 1.0
  67. const zclass4_adminflags = ADMIN_ALL
  68. #define TANK_ARMOR 200
  69.  
  70. /*============================================================================*/
  71.  
  72. new g_zclass_tanker
  73.  
  74. // Zombie Classes MUST be registered on plugin_precache
  75. public plugin_precache()
  76. {
  77. register_plugin("[BB] Default Zombie Classes", "6.5", "Tirant")
  78.  
  79. // Register all classes
  80. bb_register_zombie_class(zclass1_name, zclass1_info, zclass1_model, zclass1_clawmodel, zclass1_health, zclass1_speed, zclass1_gravity, 0.0, zclass1_adminflags)
  81. bb_register_zombie_class(zclass2_name, zclass2_info, zclass2_model, zclass2_clawmodel, zclass2_health, zclass2_speed, zclass2_gravity, 0.0, zclass2_adminflags)
  82. bb_register_zombie_class(zclass3_name, zclass3_info, zclass3_model, zclass3_clawmodel, zclass3_health, zclass3_speed, zclass3_gravity, 0.0, zclass3_adminflags)
  83. g_zclass_tanker = bb_register_zombie_class(zclass4_name, zclass4_info, zclass4_model, zclass4_clawmodel, zclass4_health, zclass4_speed, zclass4_gravity, 0.0, zclass4_adminflags)
  84. }
  85.  
  86. #if defined TANK_ARMOR
  87. public plugin_init()
  88. {
  89. RegisterHam(Ham_Spawn, "player", "ham_PlayerSpawn_Post", 1)
  90. }
  91.  
  92. public ham_PlayerSpawn_Post(id)
  93. {
  94. if (!is_user_alive(id))
  95. return ;
  96.  
  97. if (bb_is_user_zombie(id) && bb_get_user_zombie_class(id) == g_zclass_tanker)
  98. {
  99. give_item(id, "item_assaultsuit");
  100. cs_set_user_armor(id, TANK_ARMOR, CS_ARMOR_VESTHELM);
  101. }
  102. }
  103. #endif
  104.  


Tedd be a multijump plugint vagy neked ugy kell h csak a zombi ugorjon 2-öt?

Szerző:  kiki [ 2012.10.20. 19:26 ]
Hozzászólás témája:  Re: 2 ugró zombi

Add basebuilder függvénytárat!

Oldal: 1 / 1 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/