zp_get_current_mode

Returns the current game mode ID Note: For default game modes you can use, for eg. MODE_SWARM, to check if the current round is swarm mode. Note: For custom game modes you must have the custom game mode ID to detect it

Syntax

native zp_get_current_mode() /** * 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. * * @param id Player index who's model is to be retrieved. * @param model String in which the model name will be copied. * @param maxlen Number of characters (of the string) to copy. */ 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. *

Return

Current — game mode ID

Defined in zombie_plague_advance.inc at line 447 . This documentation was automatically generated from source.