AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to make a VIP? (https://forums.alliedmods.net/showthread.php?t=96128)

naven 07-01-2009 01:49

How to make a VIP?
 
Hey, I want to do another VIP plugin, I want it only feature the "VIP"(same as on as_ maps) after player name in score table, how to do this?
None of available plugins does not feature this.

johnjg75 07-03-2009 10:19

Re: How to make a VIP?
 
http://www.amxmodx.org/funcwiki.php?go=func&id=202
Depending on what you're doing, you might have to get the player's model before using the command then set it back. I'm not sure if there is a better way to do this through enigine or what. But theres my suggestion.

naven 07-03-2009 12:28

Re: How to make a VIP?
 
I don't really need model changing, I need only the VIP sign in scoresboard, and I want to set the terrorist team also

johnjg75 07-03-2009 12:56

Re: How to make a VIP?
 
Well i'm not sure how well it works on the terrorist team but using that function and setting scoreboard=1 will put VIP in the scoreboard.

naven 07-03-2009 13:21

Re: How to make a VIP?
 
I knew this function, but it changes model too, how players would recognize if he it TT or CT when he is a VIP? They would not...(mp_playerid must be 1)Thing that I am exactly looking for is only setting the VIP in scoreboard, no model, no nothing else. And I need it for both teams

johnjg75 07-04-2009 15:50

Re: How to make a VIP?
 
PHP Code:

    new VIP_ID get_user_msgid("ScoreAttrib")
    
#define SCOREATTRIB_VIP 4
    
message_begin(MSG_ALL,VIP_ID)
    
write_byte(id)
    
write_byte(SCOREATTRIB_VIP)
    
message_end() 

Thats all i came up with so far. It doesn't work for terrorists though. It will set it to VIP if you're a CT. I'll let you know if i figure something out.

johnjg75 07-04-2009 15:53

Re: How to make a VIP?
 
And here's a couple more attributes you can pass in case you need them.
PHP Code:

#define SCOREATTRIB_NOTHING 0
#define SCOREATTRIB_DEAD 1
#define SCOREATTRIB_BOMB 2 


naven 07-05-2009 10:03

Re: How to make a VIP?
 
Well thanks for your help, but if it won't work on TTs i don't need it

xPaw 07-05-2009 10:20

Re: How to make a VIP?
 
Quote:

Originally Posted by N A V E N (Post 864862)
Well thanks for your help, but if it won't work on TTs i don't need it

It`s impossible. No... its possible but only ct`s or dead will see it :mrgreen:

naven 07-06-2009 02:14

Re: How to make a VIP?
 
Ohh great! I thought it's impossible. Which code should I use?


All times are GMT -4. The time now is 15:39.

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