Raised This Month: $ Target: $400
 0% 

How to set user to VIP only in scorebar


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Lukass
Junior Member
Join Date: Dec 2008
Old 02-22-2009 , 07:24   How to set user to VIP only in scorebar
Reply With Quote #1

Is it possible to set VIP in scorebar, but he will not be vip, not skin, just scorebar? (sorry for my poor english)
Lukass is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-22-2009 , 08:27   Re: How to set user to VIP only in scorebar
Reply With Quote #2

It's possible but you want what ? A command to apply on specific player ? Others ?
Arkshine is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 02-22-2009 , 08:51   Re: How to set user to VIP only in scorebar
Reply With Quote #3

PHP Code:
new g_scoreattrib
 
public plugin_init() 
g_scoreattrib get_user_msgid("ScoreAttrib")
 
stock set_user_scoreattrib(idattrib=0)
{
          
message_begin(MSG_BROADCASTg_scoreattrib_,0);
          
write_byte(id);
          
write_byte(attrib);
          
message_end();

attrib (4) is vip.
__________________

Last edited by AntiBots; 02-22-2009 at 09:10.
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 02-22-2009 , 09:03   Re: How to set user to VIP only in scorebar
Reply With Quote #4

sorry but why fm_ prefix? i dont see any fakemeta in it
__________________
xPaw is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 02-22-2009 , 09:10   Re: How to set user to VIP only in scorebar
Reply With Quote #5

Quote:
Originally Posted by xPaw View Post
sorry but why fm_ prefix? i dont see any fakemeta in it
I copy from my kz plugin to be more faster. So I remove the part of the stock that have fakemeta. Sorry now i edit.
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
Lukass
Junior Member
Join Date: Dec 2008
Old 02-22-2009 , 09:17   Re: How to set user to VIP only in scorebar
Reply With Quote #6

Code:
public client_connect(id) {

fm_set_user_scoreattrib(id,4);

}


Why it`s not working ?
Lukass is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 02-22-2009 , 09:23   Re: How to set user to VIP only in scorebar
Reply With Quote #7

set it in ResetHUD event
__________________
xPaw is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 02-22-2009 , 09:26   Re: How to set user to VIP only in scorebar
Reply With Quote #8

If you're CT and have VIP in scoreboard, people with cl_minmodels 1 setting will see your skin as VIP.
__________________
hleV is offline
Lukass
Junior Member
Join Date: Dec 2008
Old 02-22-2009 , 09:30   Re: How to set user to VIP only in scorebar
Reply With Quote #9

I'm novice in amxx scripting, and i don't wand to set this to everyone. Can you write full code ? I want to set this for players, who vips[id] is equal to "1", like:

Code:
if(vips[id] == 1) {

....

}
Lukass is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 02-22-2009 , 09:30   Re: How to set user to VIP only in scorebar
Reply With Quote #10

you tested?
__________________
xPaw 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 16:54.


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