Post by Eagle on Jun 1, 2016 16:52:22 GMT
Today i'm gonna show all how ot create zombie_class[normal]
example ==> zombie_source
*Note : you should have model [zombie and knife] > zombie_source.
This code should write in amxmodstudio like below :
example ==> zombie_source
*Note : you should have model [zombie and knife] > zombie_source.
This code should write in amxmodstudio like below :
/*================================================================================
------------------------------------
-*- [ZPA] Default Zombie Classes -*-
------------------------------------
~~~~~~~~~~~~~~~
- Description -
~~~~~~~~~~~~~~~
This plugin adds the default zombie classes to Zombie Plague Advance.
Feel free to modify their attributes to your liking.
Note: If zombie classes are disabled, the first registered class
will be used for all players (by default, Classic Zombie).
================================================================================*/
#include <amxmodx>
#include <fakemeta>
#include <zombie_plague_advance>
/*================================================================================
[Plugin Customization]
=================================================================================*/
// Classic Zombie Attributes
new const zclass_name[] = { "Zombie_Source" }
new const zclass_info[] = { "Normal" }
new const zclass_model[] = { "zombie_source" }
new const zclass_clawmodel[] = { "v_knife_zombie_source.mdl" }
const zclass_health = 2200
const zclass_speed = 205
const Float:zclass_gravity = 1.0
const Float:zclass_knockback = 1.0
/*============================================================================*/
// Zombie Classe MUST be registered on plugin_precache
public plugin_precache()
{
register_plugin("[ZP] Default Zombie Classe", "4.3", "MeRcyLeZZ")
// Register all classe
zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)
}