Raised This Month: $ Target: $400
 0% 

Blocking death itself


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
capndurk
Senior Member
Join Date: Feb 2006
Old 03-27-2006 , 16:18   Blocking death itself
Reply With Quote #1

Well, not quite. I just want to block the message (that sends to statsx.amxx or whatever file) that adds a death when the user dies to his rank.

Can anyone help me?

So far, I've tried, in vain, the following:
  • set_msg_block()
  • register_event("DeathMsg","hook_death","a")
  • register_message(get_user_msgid("DeathMsg"), "hook_death")
  • client_death() function in csx.inc (which, by the way, doesn't need the csx include to work ;))
__________________
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
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 03-27-2006 , 16:53  
Reply With Quote #2

Try blocking StatusInfo
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
capndurk
Senior Member
Join Date: Feb 2006
Old 03-27-2006 , 17:05  
Reply With Quote #3

Er... What exactly is StatusInfo?

If you mean StatusValue, I've already tried that too, with the register_event() function, because I looked in statsx.sma in the CVS and saw that as an event registered.

If I can remember correctly, this was my code:

Code:
register_event("StatusValue", "hook_status", "b")

I ended up returning PLUGIN_HANDLED in hook_status() if it met the requirements, and that failed. I'll try register_message(), if you're still talking about StatusValue.
__________________
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
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 03-27-2006 , 17:06  
Reply With Quote #4

That's what I meant, sorry. If that doesn't work then I can't help you.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
capndurk
Senior Member
Join Date: Feb 2006
Old 03-27-2006 , 17:06  
Reply With Quote #5

Okay, thanks for the help.
__________________
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:30.


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