zp_class_zombie_get_max_health

Returns the default maximum health for a specific zombie class. Note: does not take into account any kind of HP multipliers.

Syntax

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. * * @param classid A valid zombie class ID. * @param model Player model's short name. * @return True on success, false otherwise. */ native zp_class_zombie_register_model(classid, const model[]) /** * Registers a custom claw model for a given zombie class. * * @param classid A valid zombie class ID.

Usage

id Player index.
classid A valid zombie class ID.

Return

Maximum — amount of health points, -1 on error.

Defined in zp50_class_zombie.inc at line 52 . This documentation was automatically generated from source.