native

cs_get_player_weap_restrict

Syntax

native cs_get_player_weap_restrict(id, &allowed_bitsum=0, &allowed_default=0)

Description

Returns whether a player has weapon restrictions enabled. In the case
that he does, also returns allowed_bistum and allowed_default (by referenced).

Parameters

id Player index.
allowed_bitsum Bitsum containing allowed weapons.
allowed_default Default allowed weapon to switch back to. (in CSW_ format)

Return

True if restrictions are enabled, false otherwise.