Raised This Month: $ Target: $400
 0% 

VIP on Scoreboard


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Afternova
Junior Member
Join Date: Sep 2015
Location: Riga, Latvia
Old 10-02-2015 , 23:24   VIP on Scoreboard
Reply With Quote #1

Hello!

I want to achieve that VIP flag show on Scoreboard.

If i'm in CT i see all CT and T vip flags on score board, but if i switch to T vip flags don't show.



Code:
#include < amxmodx > 
#include < amxmisc > 

#define ADMIN_VIP ADMIN_LEVEL_H 

enum { 
    SCOREATTRIB_ARG_PLAYERID = 1, 
    SCOREATTRIB_ARG_FLAGS 
}; 

enum ( <<= 1 ) { 
    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", "AUTHOR" ); 
     
    register_message( get_user_msgid( "ScoreAttrib" ), "MessageScoreAttrib" ); 
     
    pCvar_AdminVIP = register_cvar( "amx_adminvip", "1" ); 
} 

public MessageScoreAttrib( iMsgId, iDest, iReceiver ) { 
    if( get_pcvar_num( pCvar_AdminVIP ) ) { 
        new iPlayer = get_msg_arg_int( SCOREATTRIB_ARG_PLAYERID ); 
         
        if( access( iPlayer, ADMIN_VIP ) ) { 
            set_msg_arg_int( SCOREATTRIB_ARG_FLAGS, ARG_BYTE, SCOREATTRIB_FLAG_VIP ); 
        } 
    } 
}
Thank you very much!

Last edited by Afternova; 10-02-2015 at 23:24.
Afternova is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 10-03-2015 , 02:23   Re: VIP on Scoreboard
Reply With Quote #2

Terrorist can't see VIP on the scoreboard.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.

Last edited by wickedd; 10-03-2015 at 02:23.
wickedd is offline
Afternova
Junior Member
Join Date: Sep 2015
Location: Riga, Latvia
Old 10-03-2015 , 09:20   Re: VIP on Scoreboard
Reply With Quote #3

Are you sure? --> http://img10.yehpic.com/ScreenShot20...at02.18.52.png
Afternova is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 10-03-2015 , 09:36   Re: VIP on Scoreboard
Reply With Quote #4

Yes I'm sure. What is the picture suppose to show?
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-03-2015 , 09:37   Re: VIP on Scoreboard
Reply With Quote #5

Yes, he is. You won't see "VIP" when you are alive as a terrorist. The thing you're trying to do is not possible.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Afternova
Junior Member
Join Date: Sep 2015
Location: Riga, Latvia
Old 10-03-2015 , 11:10   Re: VIP on Scoreboard
Reply With Quote #6

Yes you're right. Thank you very much guys for the explanation!

Last edited by Afternova; 10-03-2015 at 11:10.
Afternova 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 22:17.


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