Hook bought weapon
Hi. How can I hook the moment when e.g. weapon_m4a1 is bought from the shop? |
Re: Hook bought weapon
Quote:
|
Re: Hook bought weapon
Or use cs_buy forward from ConnorMcLeod if you don't want to use 1.8.3
|
Re: Hook bought weapon
Thanks, I will check it. Won't Weappickup do in my case?
|
Re: Hook bought weapon
WeapPickup event is called only an entity pickup a weapon( like from the ground ). If you want to detect the moment when a weapon is added to player hook Ham_AddPlayerItem( pickup, buy, given by other plugins etc ). If you need to catch the moment when he buy it from the shop use cs_buy forward.
|
Re: Hook bought weapon
Thanks a lot Ham_AddPlayerItem will perfectly do!
|
| All times are GMT -4. The time now is 17:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.