Quote:
Originally Posted by ot_207
#4
A. Yes there is, you can use 2 methods. It really depends on what you want to do.
One is to use the Hamsandwich module, and use or the Ham_TraceAttack or Ham_TakeDamage forward.
Or you can use Damage event.
PHP Code:
register_event("Damage","Event_Damage","b")
And get the details of it.
For the damage event more can be found here -> http://wiki.amxmodx.org/Half-Life_1_Game_Events
For the Hamsandwich module you should check ham_const.inc
Question B. Yes, there is a function although I would not recommend doing it on important messages, SVC_TEMPENTITY should be good but not all of them.
register_message ( iMsgId, szFunction[] )
|
For Question A: I want to do things BEFORE someone is about to shoot a bullet or slash the knife etc. And I want to "alter" or at least stop functions to be runned (I'm bad at english). For example (this isn't I want to do) kick a player if he wants to shoot a bullet and spawn a chicken for it's last origin. This should be my favourite plugin haha.
B: Yes, I think this is I wanted.
Overall: [+karma]