AMXX-BG.INFO zombie_plague_special.inc

zombie_plague_special

Browse all symbols documented inside this include file.

Constants

Functions

Name Description
zp_get_user_zombie Returns whether a player is a zombie.
zp_get_user_nemesis Returns whether a player is a nemesis.
zp_get_user_survivor Returns whether a player is a survivor.
zp_get_user_first_zombie Returns whether a player is the first zombie.
zp_get_user_last_zombie Returns whether a player is the last zombie.
zp_get_user_last_human Returns whether a player is the last human.
zp_get_user_zombie_class Returns a player's current zombie class ID.
zp_get_user_next_class Returns a player's next zombie class ID (for the next infection).
zp_set_user_zombie_class Sets a player's next zombie class ID (for the next infection).
zp_get_user_ammo_packs Returns a player's ammo pack count.
zp_set_user_ammo_packs Sets a player's ammo pack count.
zp_get_zombie_maxhealth Returns the default maximum health of a zombie. Note: Takes into account first zombie's HP multiplier.
zp_get_user_batteries Returns a player's custom flashlight batteries charge.
zp_set_user_batteries Sets a player's custom flashlight batteries charge.
zp_get_user_nightvision Returns whether a player has night vision.
zp_set_user_nightvision Sets whether a player has night vision.
zp_infect_user Forces a player to become a zombie. Note: Unavailable for last human/survivor/sniper/berserker.
zp_disinfect_user Forces a player to become a human. Note: Unavailable for last zombie/nemesis.
zp_make_user_nemesis Forces a player to become a nemesis. Note: Unavailable for last human/survivor/sniper/berserker.
zp_make_user_survivor Forces a player to become a survivor. Note: Unavailable for last zombie/nemesis.
zp_respawn_user Respawns a player into a specific team.
zp_force_buy_extra_item Forces a player to buy an extra item.
zp_get_user_sniper Returns whether a player is a sniper.
zp_make_user_sniper Forces a player to become a sniper. Note: Unavailable for last zombie/nemesis/assassin.
zp_get_user_assassin Returns whether a player is an assassin.
zp_get_user_predator Returns whether a player is an predator.
zp_get_user_bombardier Returns whether a player is an bombardier.
zp_get_user_dragon Returns whether a player is an dragon.
zp_make_user_assassin Forces a player to become a assassin. Note: Unavailable for last human/survivor/sniper.
zp_make_user_predator Forces a player to become a predator. Note: Unavailable for last human/survivor/sniper.
zp_make_user_bombardier Forces a player to become a bombardier. Note: Unavailable for last human/survivor/sniper.
zp_make_user_dragon Forces a player to become a dragon. Note: Unavailable for last human/survivor/sniper.
zp_get_user_berserker Returns whether a player is a sniper.
zp_make_user_berserker Forces a player to become a berserker. Note: Unavailable for last zombie/nemesis/assassin.
zp_get_user_wesker Returns whether a player is a sniper.
zp_make_user_wesker Forces a player to become a wesker. Note: Unavailable for last zombie/nemesis/assassin.
zp_get_user_spy Returns whether a player is a spy
zp_make_user_spy Forces a player to become a spy. Note: Unavailable for last zombie/nemesis/assassin.
zp_has_round_started Returns whether the ZP round has started, i.e. first zombie has been chosen or a game mode has begun.
zp_is_nemesis_round Returns whether the current round is a nemesis round.
zp_is_survivor_round Returns whether the current round is a survivor round.
zp_is_swarm_round Returns whether the current round is a swarm round.
zp_is_plague_round Returns whether the current round is a plague round.
zp_is_lnj_round Returns whether the current round is a Armageddon round.
zp_get_zombie_count Returns number of alive zombies.
zp_get_human_count Returns number of alive humans.
zp_get_nemesis_count Returns number of alive nemesis.
zp_get_survivor_count Returns number of alive survivors.
zp_is_sniper_round Returns whether the current round is a sniper round.
zp_is_assassin_round Returns whether the current round is a assassin round.
zp_is_predator_round Returns whether the current round is a predator round.
zp_is_bombardier_round Returns whether the current round is a bombardier round.
zp_is_dragon_round Returns whether the current round is a dragon round.
zp_is_berserker_round Returns whether the current round is a berserker round.
zp_is_wesker_round Returns whether the current round is a wesker round.
zp_is_spy_round Returns whether the current round is a spy round.
zp_get_sniper_count Returns number of alive snipers.
zp_get_assassin_count Returns number of alive assassins.
zp_get_predator_count Returns number of alive predators.
zp_get_bombardier_count Returns number of alive bombardiers.
zp_get_dragon_count Returns number of alive dragons.
zp_get_berserker_count Returns number of alive berserkers.
zp_get_wesker_count Returns number of alive weskers.
zp_get_spy_count Returns number of alive spys.
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
zp_get_last_mode
zp_get_extra_item_id Returns an extra item's ID.
zp_get_zombie_class_id Returns a zombie class' ID.
zp_register_game_mode 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.
zp_register_extra_item Registers a custom item which will be added to the extra items menu of ZP. Note: The returned extra item ID can be later used to catch item purchase events for the zp_extra_item_selected() forward. Note: ZP_TEAM_NEMESIS, ZP_TEAM_SURVIVOR, ZP_TEAM_ASSASSIN, ZP_TEAM_SNIPER and ZP_TEAM_BERSERKER can be used to make an item available to Nemesis, Survivors, Assassins, Snipers and Berserkers.
zp_extra_item_textadd
zp_zombie_class_textadd
zp_get_user_infectnade
zp_set_user_infectnade
zp_get_user_frozen
zp_set_user_frozen
zp_get_user_burn
zp_set_user_burn
zp_get_user_madness
zp_set_user_madness
zp_get_human_special_class
zp_get_zombie_special_class
zp_set_user_rendering
zp_reset_user_rendering
zp_get_extra_item_cost
zp_get_extra_item_name
zp_set_user_maxspeed
zp_get_user_maxspeed
zp_reset_user_maxspeed
zp_set_extra_damage
zp_get_zombie_class_info
zp_get_zombie_class_name
zp_set_extra_item_cost
zp_set_extra_item_name
zp_set_extra_item_team
zp_get_extra_item_realname
zp_has_round_ended
zp_get_current_mode_name
zp_override_user_model
zp_register_zombie_special
zp_make_user_special
zp_set_custom_game_mod
zp_get_special_count
zp_register_human_special
zp_reset_player_model
zp_special_class_name
zp_get_zombie_class_realname
zp_get_special_class_id
zp_get_custom_special_count
zp_get_gamemodes_count
zp_get_zclass_count
zp_get_extra_item_count
zp_get_gamemode_id
zp_is_escape_map
zp_do_random_spawn
zp_register_zombie_class Registers a custom class which will be added to the zombie classes menu of ZP. Note: The returned zombie class ID can be later used to identify the class when calling the zp_get_user_zombie_class() natives.

Forwards

Name Description
zp_round_started Called when the ZP round starts, i.e. first zombie is chosen or a game mode begins.
zp_round_started_pre Called before the ZP round starts. This is only called for custom game modes. Note: The custom game mode id can be used to start the game mode externally Note: returning ZP_PLUGIN_HANDLED will cause the game mode to be blocked and other game modes will be given a chance.
zp_round_ended Called when the round ends.
zp_user_infected_pre Called when a player gets infected.
zp_user_infected_post
zp_user_humanized_pre Called when a player turns back to human.
zp_user_humanized_post
zp_user_infect_attempt Called on a player infect/cure attempt. You can use this to block an infection/humanization by returning ZP_PLUGIN_HANDLED in your plugin. Note: Right now this is only available after the ZP round starts, since some situations (like blocking a first zombie's infection) are not yet handled.
zp_user_humanize_attempt
zp_game_mode_selected Called when an admin selects a custom game mode from the ZP admin menu. Note: You should trigger the custom game mode here with out any checks
zp_player_spawn_post Called when a player spawns. This is also called for CZ bots which are spawning Note: You should use this, instead of other spawn forwards, when you want to change some one's class after spawning. Note: If you have used this forward then you must return ZP_PLUGIN_HANDLED to inform the main plugin that you have used this forward
zp_extra_item_selected Called when a player buys an extra item from the ZP menu. Note: You can now return ZP_PLUGIN_HANDLED in your plugin to block the purchase and the player will be automatically refunded.
zp_extra_item_selected_pre
zp_user_frozen_pre
zp_user_frozen_post
zp_user_burn_pre
zp_user_burn_post
zp_user_unfrozen Called when a player gets unfrozen (frostnades).
zp_user_last_zombie Called when a player becomes the last zombie. Note: This is called for the first zombie too.
zp_user_last_human Called when a player becomes the last human.
zp_zombie_class_choosed_pre
zp_zombie_class_choosed_post
zp_user_rendering_reset_pre
zp_user_rendering_reset_post
zp_user_model_change_pre
zp_user_model_change_post
zp_human_special_choosed_pre
zp_zombie_special_choosed_pre
zp_human_special_choosed_post
zp_zombie_special_choosed_post
zp_game_mode_selected_pre

Stocks

Name Description
zp_get_alive_players