AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Gun fire / reload event (https://forums.alliedmods.net/showthread.php?t=140259)

hornet 10-10-2010 06:54

Gun fire / reload event
 
I'm trying to make it so my AWP only has 1 bullet in the clip so must reload after firing it. I can put the 1 bullet in the clip. But what event must I hook to find the moment when the gun is fired? So then I can put 1 bullet in the users BP and hence the gun will auto reload.
Thanks.

zirualas 10-10-2010 07:07

Re: Gun fire / reload event
 
ETC is in JB manager I guess. It's like JB fight with deagle's

QuickNet 10-10-2010 07:32

Re: Gun fire / reload event
 
PHP Code:

cs_set_weapon_ammo(give_item(id"weapon_awp"), 1


hornet 10-10-2010 08:10

Re: Gun fire / reload event
 
Thanks Quick but that's why I stated that I know how to fill the 1 bullet - I just don't know which event to hook the BP ammo in.

ConnorMcLeod 10-10-2010 08:18

Re: Gun fire / reload event
 
http://forums.alliedmods.net/showthread.php?p=728613

In amxx.cfg :
weapon_maxclip awp 1


All times are GMT -4. The time now is 10:22.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.