Raised This Month: $ Target: $400
 0% 

FM_AlertMessage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
VEN
Veteran Member
Join Date: Jan 2005
Old 03-28-2006 , 12:02  
Reply With Quote #1

It didn't work because you didn't get how it's work.

Your message contains not only, for example, "Butcher<5><BOT><TERRORIST>".
VEN is offline
capndurk
Senior Member
Join Date: Feb 2006
Old 03-28-2006 , 12:19  
Reply With Quote #2

What the hell?!

Code:

Code:
register_forward(FM_AlertMessage, "block_suicide")

Code:
public block_suicide(at_type, message[]) {       if(containi(message, "suicide") != -1 && containi(message, "world") != -1)     {         return FMRES_SUPERCEDE     }         return PLUGIN_CONTINUE }

If I type kill in the console or if I switch teams, it still stores it in the rank... Anyone know why? This is supposed to protect rank, as FMRES_SUPERCEDE blocks the message from logging.....
__________________
I have left these forums because a certain respected member has been acting immaturely lately and has decided that I am not welcome in this community.
capndurk is offline
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 03-28-2006 , 12:26  
Reply With Quote #3

AFAIK the rank thing is done in another plugin / module. So MRES_SUPERCEDE won't do anything there. MRES_SUPERCEDE means: supercede the original function. Other hooks on the same function will be called no matter what you do (except for some serious hacking). At least it worked that way in metamod.

If you want to stop another plugin from capturing a logevent; it'd be easier to actually modify the plugin in question.
__________________
hello, i am pm
PM is offline
capndurk
Senior Member
Join Date: Feb 2006
Old 03-28-2006 , 12:27  
Reply With Quote #4

It only protects from rank if you kill yourself with worldspawn (i.e. fall to death). It doesn't protect when I type kill in console or when I switch teams and it kills me automatically.
__________________
I have left these forums because a certain respected member has been acting immaturely lately and has decided that I am not welcome in this community.
capndurk is offline
capndurk
Senior Member
Join Date: Feb 2006
Old 03-28-2006 , 12:29  
Reply With Quote #5

Quote:
Originally Posted by PM
AFAIK the rank thing is done in another plugin / module. So MRES_SUPERCEDE won't do anything there. MRES_SUPERCEDE means: supercede the original function. Other hooks on the same function will be called no matter what you do (except for some serious hacking). At least it worked that way in metamod.
EDIT

Yeah, you're right PM. That block_suicide function turned out to do absolutely nothing, and I bet Rabid Baboon's plugin doesn't even protect from rank. back to square one.
__________________
I have left these forums because a certain respected member has been acting immaturely lately and has decided that I am not welcome in this community.
capndurk is offline
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 16:29.


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