native
zp_register_human_special
Syntax
native zp_register_human_special(const name[], const model[], hp, speed, Float:gravity, flags, clip_type, aura_radius, glow, r, g, b);
Description
Registers a custom human 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. |
| hp | Initial health points. |
| speed | Maximum speed. |
| gravity | Gravity multiplier. |
| flags | Acess Flag to convert |
| clip_type | 0 - Normal Clip | 1 - Unlimited Ammo | 2 - Unlimited Clip |
| 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_human_special_class() natives.
Return
An internal special class ID, or -1 on failure.
Error
If Special Class name alterady exists