alliedmodders/amxmodx — pull request #68 by Arkshine (2014-07-17 17:58:18+00:00)
Title: Feature improve client buy

Requested on the forum.

Originally ```CS_OnBuy``` was called somehow in the middle, after commands/menus issued by the player, and before any actual game checks (basically if an user can have this item).

The patch offers 2 main changes:
* ```CS_OnBuy``` is now reliable and called only when a player is going to get a weapon.
* Intrioduce a new ```CS_OnBuyAttempt``` forward to match any buy attempt, which is basically called right away when any buy commands are issued by the player...

Both forwards can be blocked.