zp_get_user_zombie_class

Returns a player's current zombie class ID.

Syntax

native zp_get_user_zombie_class(id) /** * Returns a player's next zombie class ID (for the next infection). * * @param id Player index. * @return Internal zombie class ID, or -1 if not yet chosen. */ native zp_get_user_next_class(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_set_user_zombie_class(id, classid) /** * Returns a player's ammo pack count. * * @param id Player index. * @return Number of ammo packs owned. */ native zp_get_user_ammo_packs(id) /** * Sets a player's ammo pack count. *

Usage

id Player index.

Return

Internal — zombie class ID, or -1 if not yet chosen.

Defined in zombieplague.inc at line 142 . This documentation was automatically generated from source.