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 a player is a sniper. * * @param id Player index. * @return True if it is, false otherwise. */ native zp_get_user_sniper(id) /** * Forces a player to become a sniper. * * Note: Unavailable for last zombie/nemesis/assassin. * * @param id Player index to turn into sniper. * @return True on success, false otherwise. */ native zp_make_user_sniper(id)
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
zombie_plague_special.inc
at line 286
.
This documentation was automatically generated from source.