zp_respawn_user

Respawns a player into a specific team.

Syntax

native zp_respawn_user(id, team) /** * Forces a player to buy an extra item. * * @param id Player index. * @param itemid A valid extra item ID. * @param ignorecost If set, item's cost won't be deduced from player. * @return True on success, false otherwise. */ native zp_force_buy_extra_item(id, itemid, ignorecost = 0) /** * Returns whether the ZP round has started, i.e. first zombie * has been chosen or a game mode has begun. * * @return 0 - Round not started * 1 - Round started * 2 - Round starting */ native zp_has_round_started() /** * Returns whether the current round is a nemesis round. * * @return True if it is, false otherwise. */ native zp_is_nemesis_round() /**

Usage

id Player index to be respawned.
team Team to respawn the player into (ZP_TEAM_ZOMBIE or ZP_TEAM_HUMAN).

Return

True — on success, false otherwise.

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