zp_class_zombie_get_current

Returns a player's current zombie class ID.

Syntax

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

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