Raised This Month: $ Target: $400
 0% 

Removing "DEAD" flag on scoreboard (CS)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-20-2015 , 21:14   Re: Removing "DEAD" flag on scoreboard (CS)
Reply With Quote #4

Quote:
Originally Posted by HamletEagle View Post
You can hide or alter the scoreboard flags with ScoreAttrib message(check https://wiki.alliedmods.net/Half-Lif...ts#ScoreAttrib).
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_messageget_user_msgid"ScoreAttrib" ) , "msgScoreAttrib" );
}

public 
msgScoreAttrib(message_idmessage_destid)
{
    if ( !
is_user_aliveget_msg_arg_int) ) )
        
set_msg_arg_intARG_BYTE );

__________________

Last edited by Bugsy; 11-20-2015 at 21:14.
Bugsy is offline
 



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 18:14.


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