Functions

zp50_core.inc

zombie plague 5.0

Function Type Description
zp_fw_core_cure forward Called when a player turns back to human.
zp_fw_core_cure_post forward This function has no description.
zp_fw_core_cure_pre forward This function has no description.
zp_fw_core_infect forward Called when a player gets infected.
zp_fw_core_infect_post forward This function has no description.
zp_fw_core_infect_pre forward Called on a player infect/cure attempt. You can block it by
returning PLUGIN_HANDLED in your plugin.
zp_fw_core_last_human forward This function has no description.
zp_fw_core_last_zombie forward Called when a player becomes the last zombie/human.

Note: This is called for the first zombie too.
zp_fw_core_spawn_post forward Called when a player spawns, before applying human/zombie attributes to him.
zp_core_cure native Turns a player into a human.
zp_core_force_cure native This function has no description.
zp_core_force_infect native Forces a player to become a zombie/human.

Note: use this only when previous checks need to be skipped.
zp_core_get_human_count native Returns number of alive humans.
zp_core_get_zombie_count native Returns number of alive zombies.
zp_core_infect native Turns a player into a zombie.
zp_core_is_first_zombie native Returns whether a player is the first zombie.
zp_core_is_last_human native Returns whether a player is the last human.
zp_core_is_last_zombie native Returns whether a player is the last zombie.
zp_core_is_zombie native Returns whether a player is a zombie.
zp_core_respawn_as_zombie native Sets whether the player will be respawned as zombie or human.