bb_register_zombie_class
Registers a custom class which will be added to the zombie classes menu of BB. Note: The returned zombie class ID can be later used to identify the class when calling the bb_get_user_zombie_class() natives.
Syntax
native bb_register_zombie_class(const name[], const info[], const model[], const clawmodel[], hp, speed, Float:gravity, Float:knockback = 0.0, adminflags = ADMIN_ALL, credits = 0 ) native zp_register_zombie_class(const name[], const info[], const model[], const clawmodel[], hp, speed, Float:gravity, Float:knockback = 0.0, adminflags = ADMIN_ALL, credits = 0 ) /** * Returns a zombie classes cost. * * @param classid A valid zombie class ID. */ native bb_get_class_cost(classid) /** * Returns a player's current zombie class ID. * * @param id Player index. * @return Internal zombie class ID, or -1 if not yet chosen. */ native bb_get_user_zombie_class(id) native zp_get_user_zombie_class(id) /** * Returns a player's next zombie class ID (when they respawn). * * @param id Player index. * @return Internal zombie class ID, or -1 if not yet chosen. */ native bb_get_user_next_class(id) native zp_get_user_next_class(id) /** * Sets a player's next zombie class ID (when they respawn).
Usage
| name | Caption to display on the menu. |
| info | Brief description of the class. |
| model | Player model to be used. |
| clawmodel | Claws model to be used. |
| hp | Initial health points. |
| speed | Maximum speed. |
| gravity | Gravity multiplier. |
| knockback | Empty value. |
| adminflags | Set flag of admin only class, ADMIN_USER is normal players. |
| credits | Cost of unlocking this class (if credits is enabled). |
Return
An — internal zombie class ID, or -1 on failure.
Defined in
basebuilder.inc
at line 78
.
This documentation was automatically generated from source.