Raised This Month: $ Target: $400
 0% 

Player gets VIP on scoreboard when rank 1


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Reaper2331
Veteran Member
Join Date: Nov 2006
Location: Columbus,Ohio
Old 11-03-2008 , 21:54   Player gets VIP on scoreboard when rank 1
Reply With Quote #1

Is it possible to make it so people who are Rank #1 in my server to be a VIP on scoreboard.(like on as_ maps where it says VIP on scoreboard)
__________________

Reaper2331 is offline
Send a message via AIM to Reaper2331 Send a message via MSN to Reaper2331 Send a message via Yahoo to Reaper2331
{PHILMAGROIN}
Senior Member
Join Date: Aug 2007
Location: In the middle of the des
Old 11-03-2008 , 23:50   Re: Player gets VIP on scoreboard when rank 1
Reply With Quote #2

ScoreAttrib

Updates the scoreboard's attribute for the specified player. For the 2nd argument, 0 is nothing, (1<<0) i.e. 1 is dead, (1<<1) i.e. 2 is bomb, (1<<2) i.e. 4 is VIP.

Note: Flags is a bitwise value so if VIP player is dying with the bomb the Flags will be 7 i.e. bit sum of all flags.

Name: ScoreAttrib Structure: byte PlayerID byte Flags

http://wiki.amxmodx.org/Half-Life_1_...ts#ScoreAttrib

There is how to show the vip on the scoreboard. =]
__________________
[B]
{PHILMAGROIN} is offline
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 11-04-2008 , 02:10   Re: Player gets VIP on scoreboard when rank 1
Reply With Quote #3

VIP flag will be show only when player is playing in CT.
__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
Reaper2331
Veteran Member
Join Date: Nov 2006
Location: Columbus,Ohio
Old 11-04-2008 , 07:35   Re: Player gets VIP on scoreboard when rank 1
Reply With Quote #4

i have a code for VIP on scoreboard, but i just need to know how to find out who is rank 1
__________________

Reaper2331 is offline
Send a message via AIM to Reaper2331 Send a message via MSN to Reaper2331 Send a message via Yahoo to Reaper2331
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-04-2008 , 07:44   Re: Player gets VIP on scoreboard when rank 1
Reply With Quote #5

PHP Code:
/*    Copyright © 2008, ConnorMcLeod

    Rank1 -> VIP is free software;
    you can redistribute it and/or modify it under the terms of the
    GNU General Public License as published by the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Rank1 -> VIP; if not, write to the
    Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.
*/

#include <amxmodx>
#include <csx>

#define PLUGIN "Rank1 -> VIP"
#define AUTHOR "ConnorMcLeod"
#define VERSION "0.0.1"

#define SCOREATTRIB_VIP            (1<<2)

public plugin_init()
{
    
register_pluginPLUGINVERSIONAUTHOR )
    
register_message(get_user_msgid("ScoreAttrib"), "Message_ScoreAttrib")
}

public 
Message_ScoreAttrib(osef2talifeosef3talifeosef4talife)
{
    new 
id get_msg_arg_int(1)

    if( !
get_msg_arg_int(2) && get_user_team(id) == )
    {
        new 
osef[8]
        if( 
get_user_stats(idosefosef) == )
        {
            
set_msg_arg_int(2ARG_BYTESCOREATTRIB_VIP)
        }
    }

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 11-04-2008 at 09:31.
ConnorMcLeod is offline
koss_4life
BANNED
Join Date: Jun 2008
Location: Heaven
Old 11-04-2008 , 08:28   Re: Player gets VIP on scoreboard when rank 1
Reply With Quote #6

connorr is the GOD <333 You are always making fast and great plugins ! Thanks for that man! Gonna test this now, seems interesting
koss_4life is offline
hasta
Senior Member
Join Date: Aug 2004
Location: Ukraine, Kyiv
Old 11-04-2008 , 09:26   Re: Player gets VIP on scoreboard when rank 1
Reply With Quote #7

error when compil
hasta is offline
Send a message via ICQ to hasta
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-04-2008 , 09:31   Re: Player gets VIP on scoreboard when rank 1
Reply With Quote #8

Quote:
Originally Posted by hasta View Post
error when compil
Updated.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
hasta
Senior Member
Join Date: Aug 2004
Location: Ukraine, Kyiv
Old 11-04-2008 , 14:27   Re: Player gets VIP on scoreboard when rank 1
Reply With Quote #9

it works, but when player CT
hasta is offline
Send a message via ICQ to hasta
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 11-04-2008 , 14:32   Re: Player gets VIP on scoreboard when rank 1
Reply With Quote #10

Quote:
it works, but when player CT
Quote:
VIP flag will be show only when player is playing in CT.
Quote:
get_user_team(id) == 2
__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
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 20:09.


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