native
cs_set_player_weap_restrict
Syntax
native cs_set_player_weap_restrict(id, set, allowed_bitsum = 0, allowed_default = 0)
Description
Enables/disables weapon restrictions for a specific player.
Note: if you pass an empty bitsum, all weapons will be restricted.
Parameters
| 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) |