zp_set_user_model

Properly sets the given model for the player. Note: You should use this native for setting a player's model instead of other methods. Note: The model name which is passed should be the model's folder name for eg: zombie_source and the folder should contain the actual model file in it eg: zombie_source.mdl Note: The model you are setting should be precached in the sub-plugin using the plugin_precache forward to prevent problems. Note: It is highly advised to set the models with an additional delay during round start to prevent SVC_BAD errors/kicks.

Syntax

native zp_set_user_model(id, const model[]) /** * Returns an extra item's ID. * * @param name Item name to look for. * @return Internal extra item ID, or -1 if not found. */ native zp_get_extra_item_id(const name[]) /** * Returns a zombie class' ID. * * @param name Class name to look for. * @return Internal zombie class ID, or -1 if not found. */ native zp_get_zombie_class_id(const name[]) /** * Registers a custom game mode which will be added to the admin menu of ZP * * Note: The returned game mode ID can later be used to detect the game mode * which is called in zp_round_started_pre. There you can start the game mode * externally by using this game mode ID. * * @param name The game mode's name which will help in identifing it. * @param flags Access flags required by the admins to start this game mode. * @param chance Chance level of this game mode. (1 in X). * @param allow Whether to permit infection after zombie to player attacks. * @param dm_mode Death match mode which will be used during this game.

Usage

id Player index who's model needs to be set.
model String containing the model folder name.
Defined in zombie_plague_advance.inc at line 483 . This documentation was automatically generated from source.