native
zp_register_zombie_special
Syntax
native zp_register_zombie_special(const name[], const model[], const knifemodel[], const pain_sound[], hp, speed, Float:gravity, flags, Float:knockback, aura_radius, glow, r, g, b);
Description
Registers a custom zombie special class which will be added to the admin menu of ZP.
Parameters
| name | Caption to display on the menu/hud. |
|---|---|
| model | Player model to be used. |
| knifemodel | Knife model to be used. |
| pain_sound | Pain sound to be used |
| hp | Initial health points. |
| speed | Maximum speed. |
| gravity | Gravity multiplier. |
| flags | Acess Flag to convert |
| knockback | Knockback multiplier. |
| aura_radius | Aura Radius Size. |
| glow | Have Glow? |
| r | |
| g | Special Class Aura/Nvision/Glow RGB Color |
| b |
Note
The returned special class ID can be later used to identify
the class when calling the zp_get_zombie_special_class() natives.
Return
An internal special class ID, or -1 on failure.
Error
If Special Class name alterady exists