zp_get_zombie_class_id

Returns a zombie class' ID.

Syntax

native zp_get_zombie_class_id(const name[]) /** * Called when the ZP round starts, i.e. first zombie * is chosen or a game mode begins. * * @param gamemode Mode which has started. * @param id Affected player's index (if applicable). */ forward zp_round_started(gamemode, id) /** * Called when the round ends. * * @param winteam Team which has won the round. */ forward zp_round_ended(winteam) /** * Called when a player gets infected. * * @param id Player index who was infected. * @param infector Player index who infected him (if applicable). * @param nemesis Whether the player was turned into a nemesis. */ forward zp_user_infected_pre(id, infector, nemesis) forward zp_user_infected_post(id, infector, nemesis) /** * Called when a player turns back to human.

Usage

name Class name to look for.

Return

Internal — zombie class ID, or -1 if not found.

Defined in zombieplague.inc at line 396 . This documentation was automatically generated from source.