Quote:
Originally Posted by HamletEagle
|
Lol, duh, I think that has been established. But hooking the message and altering it doesn't seem to work consistently like you would expect; it would either hide everything or not work at all. Your method seems to work, but I wonder if the message will be sent again eventually and clear out what you set when the player died.
Here is what would be best, if it would work. So if any future messages are sent to update the score board, it would reflect correctly.
PHP Code:
#include <amxmodx>
public plugin_init()
{
register_message( get_user_msgid( "ScoreAttrib" ) , "msgScoreAttrib" );
}
public msgScoreAttrib(message_id, message_dest, id)
{
if ( !is_user_alive( get_msg_arg_int( 1 ) ) )
set_msg_arg_int( 2 , ARG_BYTE , 0 );
}
__________________