cs_set_player_weap_restrict

Enables/disables weapon restrictions for a specific player. Note: if you pass an empty bitsum, all weapons will be restricted.

Syntax

native cs_set_player_weap_restrict(id, set, allowed_bitsum = 0, allowed_default = 0) /** * Returns whether a player has weapon restrictions enabled. In the case * that he does, also returns allowed_bistum and allowed_default (by referenced). * * @param id Player index. * @param allowed_bitsum Bitsum containing allowed weapons. * @param allowed_default Default allowed weapon to switch back to. (in CSW_ format) * @return True if restrictions are enabled, false otherwise. */ native cs_get_player_weap_restrict(id, &allowed_bitsum=0, &allowed_default=0)

Usage

id Player index.
set True to enable, false to remove restrictions.
allowed_bitsum Bitsum containing allowed weapons.
allowed_default Default allowed weapon to switch back to. (in CSW_ format)
Defined in cs_weap_restrict_api.inc at line 25 . This documentation was automatically generated from source.