Raised This Month: $ Target: $400
 0% 

[Explain] register_event


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ezio_auditore
Senior Member
Join Date: May 2013
Old 03-18-2014 , 12:17   [Explain] register_event
Reply With Quote #1

To hook player damage, i saw this on a tutorial
PHP Code:
public plugin_init(){
.
.
.
register_event("Damage""funcName"/*something like "2!0" etc*/
so, can anyone explain what exactly are 'things like "2!0"'
__________________
ezio_auditore is offline
Send a message via Skype™ to ezio_auditore
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-18-2014 , 12:20   Re: [Explain] register_event
Reply With Quote #2

https://hg.alliedmods.net/amxmodx-ce...xmodx.inc#l141
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).

Last edited by YamiKaitou; 03-18-2014 at 12:20.
YamiKaitou is offline
ezio_auditore
Senior Member
Join Date: May 2013
Old 03-18-2014 , 23:41   Re: [Explain] register_event
Reply With Quote #3

That was a pretty long page
PHP Code:
public plugin_init(){
          .
          .
          .
          
register_event("Damage""PlayerTookDamage""b""2!0""3=0""4!0")

I am still confused what "b", "2!0", "3=0", "4!0" means...
__________________
ezio_auditore is offline
Send a message via Skype™ to ezio_auditore
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-19-2014 , 06:23   Re: [Explain] register_event
Reply With Quote #4

I sent you to the function header. Try reading just the comment block I showed you
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
DavidJr
Senior Member
Join Date: Apr 2012
Old 03-19-2014 , 06:27   Re: [Explain] register_event
Reply With Quote #5

Try to look into amxmodx.org
http://www.amxmodx.org/funcwiki.php?...vent&go=search
__________________
What are you looking for here?
DavidJr is offline
ezio_auditore
Senior Member
Join Date: May 2013
Old 03-19-2014 , 10:23   Re: [Explain] register_event
Reply With Quote #6

ah.
thanks
it means the second parameter is not 0, 3rd parameter is 0, 4th parameter is not 0
__________________
ezio_auditore is offline
Send a message via Skype™ to ezio_auditore
Reply



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 05:56.


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