Raised This Month: $ Target: $400
 0% 

Solved Shoot Event


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 06-21-2017 , 09:58   Shoot Event
Reply With Quote #1

Hi,

Which event is called when a bullet is shot? Maybe TraceAttack is an option but it isn't the proper event.
__________________

Last edited by edon1337; 06-21-2017 at 13:41.
edon1337 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-21-2017 , 12:38   Re: Shoot Event
Reply With Quote #2

Use PlaybackEvent.
__________________
HamletEagle is offline
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 06-21-2017 , 13:18   Re: Shoot Event
Reply With Quote #3

Playbackevent is called when a player shoots.
TraceAttack is called when a player shoots to other entity
TakeDamage is called when a player shoots and take damage to other entity
Be careful: TraceAttack and TakeDamage can be called by a plugin using ExecuteHam

You can use Ham_Weapon_PrimaryAttack too. But pay attention about 0 ammo and reloading

Last edited by baneado; 06-21-2017 at 13:21.
baneado is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 06-21-2017 , 13:40   Re: Shoot Event
Reply With Quote #4

Thanks both, Playback is what I needed.
__________________
edon1337 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 22:52.


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