zp_class_zombie_get_next
Returns a player's next zombie class ID (for the next infection).
Syntax
native zp_class_zombie_get_next(id) /** * Sets a player's next zombie class ID (for the next infection). * * @param id Player index. * @param classid A valid zombie class ID. * @return True on success, false otherwise. */ native zp_class_zombie_set_next(id, classid) /** * Returns the default maximum health for a specific zombie class. * * Note: does not take into account any kind of HP multipliers. * * @param id Player index. * @param classid A valid zombie class ID. * @return Maximum amount of health points, -1 on error. */ native zp_class_zombie_get_max_health(id, classid) /** * Registers a custom class which will be added to the zombie classes menu of ZP. * * Note: The returned zombie class ID can be later used to identify * the class when calling the zp_get_user_zombie_class() natives. * * @param name Caption to display on the menu. * @param description Brief description of the class.
Usage
| id | Player index. |
Return
Internal — zombie class ID, or ZP_INVALID_ZOMBIE_CLASS if not yet chosen.
Defined in
zp50_class_zombie.inc
at line 32
.
This documentation was automatically generated from source.