Списък с функции в zombieplague.inc

Функция Описание
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.
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.
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_override_user_model
Overrides ZP player model with a different custom model.

Note: This will last until player's next infection/humanization/respawn.

Note: Don't call more often than absolutely needed.
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_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_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 and ZP_TEAM_SURVIVOR can be used to make
an item available to Nemesis and Survivors respectively.
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.
zp_get_extra_item_id
Returns an extra item's ID.
zp_get_zombie_class_id
Returns a zombie class' ID.
zp_get_zombie_class_info
Returns a zombie class' description (passed by reference).
zp_round_started
Called when the ZP round starts, i.e. first zombie
is chosen or a game mode begins.
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_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_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.