zp_class_human_set_next

Sets a player's next human class ID (for the next infection).

Syntax

native zp_class_human_set_next(id, classid) /** * Registers a custom class which will be added to the human classes menu of ZP. * * Note: The returned human class ID can be later used to identify * the class when calling the zp_get_user_human_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 human class ID, or ZP_INVALID_HUMAN_CLASS on failure. */ native zp_class_human_register(const name[], const description[], health, Float:speed, Float:gravity) /** * Registers a custom player model for a given human class. * * @param classid A valid human class ID. * @param model Player model's short name. * @return True on success, false otherwise. */ native zp_class_human_register_model(classid, const model[]) /** * Returns a human class' ID. * * @param name Class name to look for.

Usage

id Player index.
classid A valid human class ID.

Return

True — on success, false otherwise.

Defined in zp50_class_human.inc at line 42 . This documentation was automatically generated from source.