native
zp_class_human_register
Syntax
native zp_class_human_register(const name[], const description[], health, Float:speed, Float:gravity)
Description
Registers a custom class which will be added to the human classes menu of ZP.
Note: The returned human class ID can be later used to identify
the class when calling the zp_get_user_human_class() natives.
Parameters
| name | Caption to display on the menu. |
|---|---|
| description | Brief description of the class. |
| health | Class health. |
| speed | Class maxspeed (can be a multiplier). |
| gravity | Class gravity multiplier. |
Return
An internal human class ID, or ZP_INVALID_HUMAN_CLASS on failure.