Raised This Month: $ Target: $400
 0% 

Add VIP Tag to terrorist.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DataCore
Junior Member
Join Date: Jun 2014
Old 08-04-2014 , 16:18   Add VIP Tag to terrorist.
Reply With Quote #1

Hello!

I have vipmenu, and there adds VIP tag to CT http://prntscr.com/49jwhy, but how can i add it to terrorists to if user is VIP.

PHP Code:
const VipFlags 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
};

public 
MessageScoreAttribiMsgId iDest iReceiver ) {
    new 
iPlayer get_msg_arg_intSCOREATTRIB_ARG_PLAYERID );
    
    if( 
is_user_aliveiPlayer ) && get_user_flagsiPlayer ) & VipFlags && cs_get_user_teamiPlayer ) == CS_TEAM_CT )
        
set_msg_arg_intSCOREATTRIB_ARG_FLAGS ARG_BYTE SCOREATTRIB_FLAG_VIP );


Last edited by DataCore; 08-04-2014 at 16:50.
DataCore is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 08-04-2014 , 17:06   Re: Add VIP Tag to terrorist.
Reply With Quote #2

Not possible

Edit: Only CTs will be able to see VIP on the scoreboard
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.

Last edited by wickedd; 08-04-2014 at 17:09.
wickedd is offline
DataCore
Junior Member
Join Date: Jun 2014
Old 08-04-2014 , 17:11   Re: Add VIP Tag to terrorist.
Reply With Quote #3

I`ve seen VIP tag on terrorists...
DataCore is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 08-04-2014 , 17:20   Re: Add VIP Tag to terrorist.
Reply With Quote #4

Search the forum and you will see that only CTs can see VIP on the scoreboard.

Edit: Just to clarify. You can set a VIP tag on anyone (CT or TT), but only the CT team will be able to see it.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.

Last edited by wickedd; 08-04-2014 at 17:29.
wickedd is offline
Old 08-13-2014, 07:49
popeye10
This message has been deleted by popeye10.
popeye10
Senior Member
Join Date: May 2014
Location: Navi Mumbai (India)
Old 08-13-2014 , 07:51   Re: Add VIP Tag to terrorist.
Reply With Quote #6

Nothing is impossible ....
popeye10 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-13-2014 , 08:36   Re: Add VIP Tag to terrorist.
Reply With Quote #7

Quote:
Originally Posted by popeye10 View Post
Nothing is impossible ....
It's impossible since the way in which cs is build block it. This is because the vip has to be protected on maps like as_oilrig. Your code has the same limitations, T can't see the vip tag.
__________________

Last edited by HamletEagle; 08-13-2014 at 08:37.
HamletEagle is offline
popeye10
Senior Member
Join Date: May 2014
Location: Navi Mumbai (India)
Old 08-13-2014 , 07:55   Re: Add VIP Tag to terrorist.
Reply With Quote #8

PHP Code:
public plugin_init()

        
register_event("ResetHUD","Event_reset_hud","be")
}

public 
Event_reset_hud(id)
    if(
get_user_flags(id) & VIP_ACCESSsetVipScoreAttrib(id)

stock setVipScoreAttrib(id)
{
    if(
is_user_alive(id)){
        
message_begin(MSG_ALL,84,{0,0,0},id)
        
write_byte(id)
        
write_byte(4)
        
message_end()
    }


Last edited by popeye10; 08-13-2014 at 07:56.
popeye10 is offline
Old 08-13-2014, 10:50
fl0werD
This message has been deleted by fl0werD. Reason: nooob
DataCore
Junior Member
Join Date: Jun 2014
Old 08-14-2014 , 14:55   Re: Add VIP Tag to terrorist.
Reply With Quote #10

Thanks guys!

Last edited by DataCore; 08-14-2014 at 14:57.
DataCore 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 12:52.


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