zp_force_buy_extra_item
Forces a player to buy an extra item.
Syntax
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() /** * Returns whether the current round is a survivor round. * * @return True if it is, false otherwise. */ native zp_is_survivor_round() /** * Returns whether the current round is a swarm round. * * @return True if it is, false otherwise.
Usage
| id | Player index. |
| itemid | A valid extra item ID. |
| ignorecost | If set, item's cost won't be deduced from player. |
Return
True — on success, false otherwise.
Defined in
zombieplague.inc
at line 280
.
This documentation was automatically generated from source.