Is there any function can hook the shoot event?
I need this kind of function, which likes the follow two functions.
forward client_damage(attacker,victim,damage,wpnindex ,hitplace,TA); forward client_death(killer,victim,wpnindex,hitplace, TK); I need to get the client id and weapon id when he is shooting, and do not care if this shoot will or not take any damages. |
Re: Is there any function can hook the shoot event?
|
Re: Is there any function can hook the shoot event?
Quote:
Could you format it as the follows please. forward client_shoot(attacker,wpnindex) |
Re: Is there any function can hook the shoot event?
You have just to copy the code. Where it's written "Gun fired" you ut your code.
But what do you want to do exactly ? |
Re: Is there any function can hook the shoot event?
Quote:
|
Re: Is there any function can hook the shoot event?
Invoker is the player's id. Weapon id is not passed here but you could use get_user_weapon(). Again, what do you want to do exactly ? Maybe there is another way to do what you want.
|
Re: Is there any function can hook the shoot event?
And what's the meaning of "flags" and "eventid", what's the use of them?
I were just making a database for myself(do not use the amxmodx data), I need to know a lot of data,so include the total shoot of the client. Thanks for your help. |
| All times are GMT -4. The time now is 01:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.