AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Vip Scoreboard Question (https://forums.alliedmods.net/showthread.php?t=208693)

Jhob94 02-16-2013 14:05

Vip Scoreboard Question
 
Hi
Is possible to vip player have VIP in scoreboard if is terrorist in a mod that bomb doesnt exist?
If yes, please tell me how :)

Unkolix 02-16-2013 14:14

Re: Vip Scoreboard Question
 
No. VIP in scoreboard is available only for Counter-Terrorist team.

Jhob94 02-16-2013 14:32

Re: Vip Scoreboard Question
 
Yes i read somethings about it but of what i read Terro cant have because of bomb, and my question is possible if there isnt bomb on game mod

Backstabnoob 02-16-2013 15:41

Re: Vip Scoreboard Question
 
I guess it is, I've seen the VIP flag on terrorist team quite a lot of times. Why not try it?

Jhob94 02-16-2013 16:55

Re: Vip Scoreboard Question
 
i tested with this:
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
};

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

public MessageScoreAttrib( iMsgId, iDest, iReceiver )
{   
    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 );         
    }
}

Didnt worked for Terrorists xD
But no problem i gonna do quick edit on show admins online for VIPs :)

EDUTz 02-16-2013 19:04

Re: Vip Scoreboard Question
 
it works for Ts, but you must be CT or SPEC to see it, T's can't see the VIP status.

I found this on my computer, maybe you can use it:

Code:

#include <amxmodx>
#include <amxmisc>

new g_szVIPMap

public plugin_init()
{
    register_plugin("Admins are VIP's", "1.0", "PHP++")
    register_event("ResetHUD", "ResetHUD", "be")
   
    new szMapName[32]
    get_mapname(szMapName, 31)
   
    if (containi(szMapName, "as_") > -1)
        g_szVIPMap = 1
}

public ResetHUD(id)
{
    set_task(0.5, "VIP", id + 6910)
}

public VIP(TaskID)
{
    if (g_szVIPMap)
        return PLUGIN_HANDLED
       
    new id = TaskID - 6910
   
    if (get_user_flags(id) & ADMIN_LEVEL_C)
    {
        message_begin(MSG_ALL, get_user_msgid("ScoreAttrib"))
        write_byte(id)
        write_byte(4)
        message_end()
    }
   
    return PLUGIN_HANDLED
}


ANTICHRISTUS 02-16-2013 19:10

Re: Vip Scoreboard Question
 
  • search in my posts, I answered this question since some days ago.
  • all the players may get the v¡p flag, but only CTs can see it, as only Terrors can see the bomb tag.


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

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