Raised This Month: $ Target: $400
 0% 

Solved [Request] Edit Vip Scoreboard


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
WhiteFang1319
Senior Member
Join Date: Jan 2017
Old 12-19-2017 , 08:11   [Request] Edit Vip Scoreboard
Reply With Quote #1

Hello. Can anybody edit this plugin so that the VIP tag in scoreboard is only shown when the vip is alive? Also I got a bug while using this plugin. When the VIP dies, sometimes it just shows VIP and sometimes it just doesn't show anything.
PHP Code:
#include < amxmodx >
#include < amxmisc >

#define ADMIN_VIP ADMIN_LEVEL_H

enum {
    
SCOREATTRIB_ARG_PLAYERID 1,
    
SCOREATTRIB_ARG_FLAGS
};

enum ( <<= ) {
    
SCOREATTRIB_FLAG_NONE 0,
    
SCOREATTRIB_FLAG_DEAD 1,
    
SCOREATTRIB_FLAG_BOMB,
    
SCOREATTRIB_FLAG_VIP
};

new 
pCvar_AdminVIP;

public 
plugin_init( ) {
    
register_plugin"Admin VIP ScoreBoard""0.0.1""Exolent" );
    
    
register_messageget_user_msgid"ScoreAttrib" ), "MessageScoreAttrib" );
    
    
pCvar_AdminVIP register_cvar"amx_adminvip""1" );
}

public 
MessageScoreAttribiMsgIdiDestiReceiver 
{
    if( 
get_pcvar_numpCvar_AdminVIP ) ) 
    {
        new 
iPlayer get_msg_arg_intSCOREATTRIB_ARG_PLAYERID );
        
        if( 
accessiPlayerADMIN_VIP ) ) 
    {    
            
set_msg_arg_intSCOREATTRIB_ARG_FLAGSARG_BYTESCOREATTRIB_FLAG_VIP );
        }

    }


Last edited by WhiteFang1319; 12-20-2017 at 07:36. Reason: Solved
WhiteFang1319 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 02:23.


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