CS_GetWeaponPrice
Gets a weapon's price
Notes
c4, knife and shield will always return 0. vest, vest helmet and night vision will always return default price.
native int CS_GetWeaponPrice(int client, CSWeaponID id, bool defaultprice = false)Parameters
int client
Client to check weapon price for.
Weapon id for the weapon to check
bool defaultprice
Set to true to get defaultprice.
Return Value
int Returns price of the weapon (even if modified)Error
Invalid client, failing to get weapon info, or failing to get price offset.