zp_core_is_last_zombie
Returns whether a player is the last zombie.
Syntax
native zp_core_is_last_zombie(id) /** * Returns whether a player is the last human. * * @param id Player index. * @return True if it is, false otherwise. */ native zp_core_is_last_human(id) /** * Returns number of alive zombies. * * @return Zombie count. */ native zp_core_get_zombie_count() /** * Returns number of alive humans. * * @return Human count. */ native zp_core_get_human_count() /** * Turns a player into a zombie. * * @param id Player index to be infected. * @param attacker Player who triggered the infection. (optional) * @return True on success, false otherwise.
Usage
| id | Player index. |
Return
True — if it is, false otherwise.
Defined in
zp50_core.inc
at line 39
.
This documentation was automatically generated from source.