zp_class_human_get_current

Returns a player's current human class ID.

Syntax

native zp_class_human_get_current(id) /** * Returns a player's next human class ID (for the next infection). * * @param id Player index. * @return Internal human class ID, or ZP_INVALID_HUMAN_CLASS if not yet chosen. */ 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.

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 25 . This documentation was automatically generated from source.