AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Blocking death itself (https://forums.alliedmods.net/showthread.php?t=26147)

capndurk 03-27-2006 16:18

Blocking death itself
 
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 ;))

Hawk552 03-27-2006 16:53

Try blocking StatusInfo

capndurk 03-27-2006 17:05

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.

Hawk552 03-27-2006 17:06

That's what I meant, sorry. If that doesn't work then I can't help you.

capndurk 03-27-2006 17:06

Okay, thanks for the help.


All times are GMT -4. The time now is 16:30.

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