zp_class_zombie_set_next
Sets a player's next zombie class ID (for the next infection).
Syntax
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. * @param health Class health. * @param speed Class maxspeed (can be a multiplier). * @param gravity Class gravity multiplier. * @return An internal zombie class ID, or ZP_INVALID_ZOMBIE_CLASS on failure. */ native zp_class_zombie_register(const name[], const description[], health, Float:speed, Float:gravity) /** * Registers a custom player model for a given zombie class.
Usage
| id | Player index. |
| classid | A valid zombie class ID. |
Return
True — on success, false otherwise.
Defined in
zp50_class_zombie.inc
at line 41
.
This documentation was automatically generated from source.