cs_weap_restrict_api functions
All callable symbols documented in this include, grouped by declaration type.
Natives
| Name | Signature |
|---|---|
| cs_get_player_weap_restrict | native cs_get_player_weap_restrict(id, &allowed_bitsum=0, &allowed_default=0) |
| cs_set_player_weap_restrict | 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) |