#2 pev_button works this way. To get it.
PHP Code:
new button = pev(id, pev_button)
To set it.
PHP Code:
new button = IN_ATTACK | IN_BACK | IN_ALT
set_pev(id, pev_button, button)
#3 Well there isn't a full list but you can do 2 things with this. You can check the header [.inc] files in the folder: "amxmodx/scripting/include/"
You can check this out, hasn't all of them but most could come in handy ->
http://www.amxmodx.org/funcwiki.php
For the being spectated you should check out that plugin to understand the method.
#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
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[] )
__________________