CS_OnGetWeaponPrice

Last Updated2011-06-29
Created At2011-06-26

Called when game retrieves a weapon's price for a player. Return Plugin_Continue to use default value or return a higher action to use a newly-set price.

Notes

This can be called multiple times per weapon purchase

Not all "weapons" call GetWeaponPrice. Example: c4, knife, vest, vest helmet, night vision.

forward Action CS_OnGetWeaponPrice(int client, const char[] weapon, int& price)

Parameters

int client
Client index
const char[] weapon
Weapon classname
int& price
Buffer param for the price of the weapon

Return Value

Action