zp_get_user_model

Allows you to properly retrieve a player's model Note: You should use this native for retrieving a player's current model instead of other methods Note: The model name which is retrieved is the model's folder name for eg: zombie_source and is not the model's actual name.

Syntax

native zp_get_user_model(id, const model[], maxlen) /** * 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. * * @param id Player index who's model needs to be set. * @param model String containing the model folder name. */ 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[])

Usage

id Player index who's model is to be retrieved.
model String in which the model name will be copied.
maxlen Number of characters (of the string) to copy.
Defined in zombie_plague_advance.inc at line 462 . This documentation was automatically generated from source.