Raised This Month: $ Target: $400
 0% 

How to make a VIP?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 07-01-2009 , 01:49   How to make a VIP?
Reply With Quote #1

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.
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.
naven is offline
johnjg75
Veteran Member
Join Date: Mar 2004
Location: Delaware
Old 07-03-2009 , 10:19   Re: How to make a VIP?
Reply With Quote #2

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.
__________________

Last edited by johnjg75; 07-03-2009 at 10:22.
johnjg75 is offline
Send a message via AIM to johnjg75 Send a message via MSN to johnjg75 Send a message via Yahoo to johnjg75
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 07-03-2009 , 12:28   Re: How to make a VIP?
Reply With Quote #3

I don't really need model changing, I need only the VIP sign in scoresboard, and I want to set the terrorist team also
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.
naven is offline
johnjg75
Veteran Member
Join Date: Mar 2004
Location: Delaware
Old 07-03-2009 , 12:56   Re: How to make a VIP?
Reply With Quote #4

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.
__________________
johnjg75 is offline
Send a message via AIM to johnjg75 Send a message via MSN to johnjg75 Send a message via Yahoo to johnjg75
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 07-03-2009 , 13:21   Re: How to make a VIP?
Reply With Quote #5

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
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.
naven is offline
johnjg75
Veteran Member
Join Date: Mar 2004
Location: Delaware
Old 07-04-2009 , 15:50   Re: How to make a VIP?
Reply With Quote #6

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.
__________________

Last edited by johnjg75; 07-04-2009 at 15:55.
johnjg75 is offline
Send a message via AIM to johnjg75 Send a message via MSN to johnjg75 Send a message via Yahoo to johnjg75
johnjg75
Veteran Member
Join Date: Mar 2004
Location: Delaware
Old 07-04-2009 , 15:53   Re: How to make a VIP?
Reply With Quote #7

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 
__________________

Last edited by johnjg75; 07-04-2009 at 15:56.
johnjg75 is offline
Send a message via AIM to johnjg75 Send a message via MSN to johnjg75 Send a message via Yahoo to johnjg75
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 07-05-2009 , 10:03   Re: How to make a VIP?
Reply With Quote #8

Well thanks for your help, but if it won't work on TTs i don't need it
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.
naven is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 07-05-2009 , 10:20   Re: How to make a VIP?
Reply With Quote #9

Quote:
Originally Posted by N A V E N View Post
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
__________________
xPaw is offline
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 07-06-2009 , 02:14   Re: How to make a VIP?
Reply With Quote #10

Ohh great! I thought it's impossible. Which code should I use?
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.
naven 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 15:39.


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