Raised This Month: $ Target: $400
 0% 

Learning scripting in amx mod x but I can't find the functions of "register_event"


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
deprale
Senior Member
Join Date: Oct 2018
Location: Leeds
Old 03-12-2023 , 01:23   Re: Learning scripting in amx mod x but I can't find the functions of "register_event
Reply With Quote #2

Look in csx.inc, hamsandwich.inc, fun.inc, cstrike.inc and other .inc files to see what you can do. They are located in addons/amxmodx/scripting/include/

Especially look for the keyword "forward", the documentation is all there. Do NOT use the amxx api web references as they are outdated, instead use your local include files to search through what you need.

You already linked twice where all the register_event functions are at, and that page also explains the parameters you can check for the event.

"hooked_death" can be achieved with register_event MsgDeath, csx.inc's client_death and client_damage forwards, hamsandwich.inc's ham_playerkilled and ham_takedamage hooks, and im pretty sure there are other forwards you can use to detect a player's death.
__________________
deprale is offline
 



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 10:13.


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