zp_class_human_get_next
Returns a player's next human class ID (for the next infection).
Syntax
native zp_class_human_get_next(id) /** * Sets a player's next human class ID (for the next infection). * * @param id Player index. * @param classid A valid human class ID. * @return True on success, false otherwise. */ native zp_class_human_set_next(id, classid) /** * 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. * * @param name Caption to display on the menu. * @param description Brief description of the class. * @param health Class health. * @param speed Class maxspeed (can be a multiplier). * @param gravity Class gravity multiplier. * @return An internal human class ID, or ZP_INVALID_HUMAN_CLASS on failure. */ 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.
Usage
| id | Player index. |
Return
Internal — human class ID, or ZP_INVALID_HUMAN_CLASS if not yet chosen.
Defined in
zp50_class_human.inc
at line 33
.
This documentation was automatically generated from source.