Raised This Month: $ Target: $400
 0% 

Gun fire / reload event


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 10-10-2010 , 06:54   Gun fire / reload event
Reply With Quote #1

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.
hornet is offline
zirualas
Senior Member
Join Date: Jun 2010
Location: Lithuania
Old 10-10-2010 , 07:07   Re: Gun fire / reload event
Reply With Quote #2

ETC is in JB manager I guess. It's like JB fight with deagle's
__________________
Still studying scripting...
zirualas is offline
Send a message via Skype™ to zirualas
QuickNet
Junior Member
Join Date: Jun 2010
Old 10-10-2010 , 07:32   Re: Gun fire / reload event
Reply With Quote #3

PHP Code:
cs_set_weapon_ammo(give_item(id"weapon_awp"), 1
QuickNet is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 10-10-2010 , 08:10   Re: Gun fire / reload event
Reply With Quote #4

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.
hornet is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-10-2010 , 08:18   Re: Gun fire / reload event
Reply With Quote #5

http://forums.alliedmods.net/showthread.php?p=728613

In amxx.cfg :
weapon_maxclip awp 1
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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