AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] VIP in ScoreBoard (https://forums.alliedmods.net/showthread.php?t=117845)

reinert 02-05-2010 08:05

[HELP] VIP in ScoreBoard
 
Hello, could someone make this code, to write in Scoreboard VIP, when player is ADMIN_LEVEL_H or ADMIN_RESERVATION. i got code but it only show's CT VIP'S not T's.

here it is:

PHP Code:

#include < amxmodx >

#define ADMIN_VIP ADMIN_RESERVATION

#define SCOREATTRIB_NONE    0
#define SCOREATTRIB_DEAD    ( 1 << 0 )
#define SCOREATTRIB_BOMB    ( 1 << 1 )
#define SCOREATTRIB_VIP  ( 1 << 2 )

public plugin_init( ) {
    
register_plugin"VIP Admin""0.0.1""Exolent" );
    
    
register_messageget_user_msgid"ScoreAttrib" ), "MessageScoreAttrib" );
}

public 
MessageScoreAttribiMsgIDiDestiReceiver ) {
    new 
iPlayer get_msg_arg_int);
    if( 
is_user_connectediPlayer )
    && ( 
get_user_flagsiPlayer ) & ADMIN_VIP ) ) {
         
set_msg_arg_int2ARG_BYTEis_user_aliveiPlayer ) ? SCOREATTRIB_VIP SCOREATTRIB_DEAD );
    }







skillmaker 02-06-2010 02:59

Re: [HELP] VIP in ScoreBoard
 
This is impossible.

reinert 02-06-2010 06:50

Re: [HELP] VIP in ScoreBoard
 
okay, but is it possible to leave my models alone, because with this plugin, all ADMIN's/VIP's are VIP Model. i want default models ;/

crazyeffect 02-06-2010 07:09

Re: [HELP] VIP in ScoreBoard
 
Quote:

Originally Posted by skillmaker (Post 1080099)
This is impossible.

Who says that?

matsi 02-06-2010 07:25

Re: [HELP] VIP in ScoreBoard
 
AFAIK you can't have VIP for terrorists.


All times are GMT -4. The time now is 07:21.

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