[help] register_event(???) when shooting ?
I want to call a fuction when a player is shooting or using his knife,but I do not know which event can be registered? if you know, please tell me.Thanks a lot.
:arrow: :arrow: :arrow: |
CurWeapon event, but that wouldn't work with knife so you have to get player's buttons and check if he in_attack*.
|
Quote:
|
You said
Quote:
Yes, i know about weapon change, but you can filter that event out with a few variables. |
Quote:
flags is a combination of flags that determine if this event is forwarded: "a" - Global Event "b" - Event sent to a single target "c" - Send only once when repeated to other players "d" - Only if sent to a dead player "e" - Only if sent to an alive player Name: CurWeapon Structure: byte isActive byte WeaponID byte Ammo in weapon register_event (CurWeapon,"function","Flags","???") Flags must contain "e",any others? And the last "???", i don't know either. Thank you for your help. |
Code:
|
Quote:
I added this code to the function to judge whether a player is shooting.:D Code:
|
Quote:
|
Quote:
|
| All times are GMT -4. The time now is 20:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.