native
zp_register_human_class
Syntax
native zp_register_human_class(const name[], const info[], hp, armor, speed, Float:gravity, use_lang=0, const name_lang_key[]="ITEM_LANG_DEFAULT_KEY", const info_lang_key[]="ITEM_LANG_DEFAULT_KEY");
Description
Registers a custom class which will be added to the human classes menu of ZP.
Parameters
| name | Caption to display on the menu. |
|---|---|
| info | Brief description of the class. |
| hp | Initial health points. (0 - Use default human health) |
| armor | User armor. |
| speed | Maximum speed. |
| gravity | Gravity multiplier. |
| uselang | Use lang in class name/description? |
| name_lang_key | Class name Lang key in .txt lang file |
| info_lang_key | Class Description Lang key in .txt lang file |
Note
The returned human class ID can be later used to identify
the class when calling the zp_get_user_human_class() natives.
Return
Human class index.
Error
If Human Class real Name Alterady Exists