AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to set user to VIP only in scorebar (https://forums.alliedmods.net/showthread.php?t=86195)

Lukass 02-22-2009 07:24

How to set user to VIP only in scorebar
 
Is it possible to set VIP in scorebar, but he will not be vip, not skin, just scorebar? (sorry for my poor english)

Arkshine 02-22-2009 08:27

Re: How to set user to VIP only in scorebar
 
It's possible but you want what ? A command to apply on specific player ? Others ?

AntiBots 02-22-2009 08:51

Re: How to set user to VIP only in scorebar
 
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.

xPaw 02-22-2009 09:03

Re: How to set user to VIP only in scorebar
 
sorry but why fm_ prefix? i dont see any fakemeta in it

AntiBots 02-22-2009 09:10

Re: How to set user to VIP only in scorebar
 
Quote:

Originally Posted by xPaw (Post 766595)
sorry but why fm_ prefix? i dont see any fakemeta in it

:D 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.

Lukass 02-22-2009 09:17

Re: How to set user to VIP only in scorebar
 
Code:

public client_connect(id) {

fm_set_user_scoreattrib(id,4);

}



Why it`s not working ?

xPaw 02-22-2009 09:23

Re: How to set user to VIP only in scorebar
 
set it in ResetHUD event

hleV 02-22-2009 09:26

Re: How to set user to VIP only in scorebar
 
If you're CT and have VIP in scoreboard, people with cl_minmodels 1 setting will see your skin as VIP.

Lukass 02-22-2009 09:30

Re: How to set user to VIP only in scorebar
 
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) {

....

}


xPaw 02-22-2009 09:30

Re: How to set user to VIP only in scorebar
 
you tested?


All times are GMT -4. The time now is 16:54.

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