zp_class_human_register
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.
Syntax
native zp_class_human_register(const name[], const description[], health, Float:speed, Float:gravity) /** * Registers a custom player model for a given human class. * * @param classid A valid human class ID. * @param model Player model's short name. * @return True on success, false otherwise. */ native zp_class_human_register_model(classid, const model[]) /** * Returns a human class' ID. * * @param name Class name to look for. * @return Internal human class ID, or ZP_INVALID_HUMAN_CLASS if not found. */ native zp_class_human_get_id(const real_name[]) /** * Returns a human class' name. * * @param classid A valid human class ID. * @param name The buffer to store the string in. * @param len Character size of the output buffer. * @return True on success, false otherwise. */ native zp_class_human_get_name(classid, name[], len) /**
Usage
| 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.
Defined in
zp50_class_human.inc
at line 57
.
This documentation was automatically generated from source.