Raised This Month: $51 Target: $400
 12% 

Score Board VIP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 02-01-2010 , 16:30   Score Board VIP
Reply With Quote #1

Possible to show in Score Board VIP to TT team? If not then fix this code becose then TT spawned on SB doesn't show Bomb... Only if drop and pick up..


PHP Code:
#include < amxmodx >
#include < cstrike >

public plugin_init( )
{
    
register_plugin"Vip In Scoreboard""1.0""vL." );
    
    
register_event"ResetHUD""ResetHUD""be" )
}

public 
ResetHUDid )
{
    
set_task0.5"VIP"id 6910 )

    if ( 
cs_get_user_teamid ) == CS_TEAM_T )
    {
        if ( 
get_user_weaponid ) == CSW_C4 )
        {
            
set_task0.6"Bomb"id 6910 )            
        }
    }
}

public 
VIPTaskIDid )
{
    new 
id TaskID 6910

    
if ( get_user_flagsid ) & ADMIN_LEVEL_H 
    {
        
message_beginMSG_ALLget_user_msgid"ScoreAttrib" ) )
        
write_byteid )
        
write_byte)
        
message_end( )
    }

    return 
PLUGIN_HANDLED

Debesėlis is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 02-01-2010 , 16:48   Re: Score Board VIP
Reply With Quote #2

Not quite understanding your post, and whats TT and SB?
__________________
M249-M4A1 is offline
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 02-01-2010 , 17:32   Re: Score Board VIP
Reply With Quote #3

TT - Terrorist
SB - Score Board
Debesėlis is offline
reinert
Veteran Member
Join Date: Feb 2007
Old 02-02-2010 , 17:31   Re: Score Board VIP
Reply With Quote #4

Here is half of code, now when T spawns with Bomb it will be shown as bomb not VIP player. but when you drop bomb it can't get back to VIP and i dont know how to fix it :[

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

new bool:HasC4[33]

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event"ResetHUD""ResetHUD""be" )
}

public 
ResetHUDid )
{
    
set_task0.5"VIP"id 6910 )

    if (
user_has_weapon(idCSW_C4) && get_user_team(id) == 1)
        {
            
HasC4[id] = true;
            
set_task0.5"Bomb"id 6910 )
        }
}

public 
VIPTaskIDid )
{
    new 
id TaskID 6910

    
if ( get_user_flagsid ) & ADMIN_LEVEL_H 
    {
        
message_beginMSG_ALLget_user_msgid"ScoreAttrib" ) )
        
write_byteid )
        
write_byte)
        
message_end( )
    }

    return 
PLUGIN_HANDLED

reinert is offline
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 02-02-2010 , 17:42   Re: Score Board VIP
Reply With Quote #5

For you in Terrorist team show VIP when you drop and pick up the bomb...? For me no... And when spawned need to drop c4 and pick up becose doesn't show "Bomb"...
Debesėlis is offline
lazarev
Veteran Member
Join Date: Sep 2008
Old 02-02-2010 , 17:45   Re: Score Board VIP
Reply With Quote #6

only CT's can see VIP status.
lazarev is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-02-2010 , 17:47   Re: Score Board VIP
Reply With Quote #7

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_message( get_user_msgid( "ScoreAttrib" ), "MessageScoreAttrib" ); } public MessageScoreAttrib( iMsgID, iDest, iReceiver ) {     new iPlayer = get_msg_arg_int( 1 );     if( is_user_connected( iPlayer )     && ( get_user_flags( iPlayer ) & ADMIN_VIP ) ) {         set_msg_arg_int( 2, ARG_BYTE, is_user_alive( iPlayer ) ? SCOREATTRIB_VIP : SCOREATTRIB_DEAD );     } }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 02-02-2010 , 17:51   Re: Score Board VIP
Reply With Quote #8

PHP Code:
    if( is_user_connectediPlayer ) && ( get_user_flagsiPlayer ) & ADMIN_VIP ) ) 
forget add #define ADMIN_VIP


EDIT: i test it and for Terrorist doesn't show Bomb and VIP nothing... Even i drop and pick..

Last edited by Debesėlis; 02-02-2010 at 17:54.
Debesėlis is offline
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 02-02-2010 , 18:01   Re: Score Board VIP
Reply With Quote #9

Quote:
Originally Posted by lazarev View Post
only CT's can see VIP status.
why only CT can see? T team see when CT are VIP. Maybe not possible to T add VIP?
Debesėlis is offline
DadoDz
Junior Member
Join Date: Jul 2021
Old 11-29-2021 , 05:00   Re: Score Board VIP
Reply With Quote #10

Quote:
Originally Posted by Debesėlis View Post
why only CT can see? T team see when CT are VIP. Maybe not possible to T add VIP?
Yes I Dont Know Why?

Any Help?
DadoDz 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 03:26.


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