Raised This Month: $51 Target: $400
 12% 

VIP ScoreBoard Not working correctly.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
proffs
Senior Member
Join Date: Jul 2013
Old 10-12-2013 , 15:55   VIP ScoreBoard Not working correctly.
Reply With Quote #1

I've coded a VIP system, And every VIP has VIP in their Scoreboard thing.
But I can't get it working properly.

This first code, works sometimes. Like on each 2th round.
PHP Code:
public MessageScoreAttrib(iMsgIdiDestiReceiver)
{
     new 
id get_msg_arg_int(1);
     
     if( !
g_bAccess[id] )
     {
      return;
     }
        
     if( 
g_bVipStatus[id] )
     {
      
set_msg_arg_int(2ARG_BYTE, (<< 1));
     }
     else
     {
      
set_msg_arg_int(2ARG_BYTE, (<< 0));
     }


This code does not work at all:
PHP Code:
public MessageScoreAttrib(iMsgIDiDestiReceiver
{
    new 
id get_msg_arg_int(1)
    if(
is_user_connected(id) && g_bAccess[id] == 1
        
set_msg_arg_int(2ARG_BYTEis_user_alive(id) ? SCOREATTRIB_VIP SCOREATTRIB_DEAD)


Last edited by proffs; 10-12-2013 at 16:15.
proffs is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 10-12-2013 , 16:18   Re: VIP ScoreBoard Not working correctly.
Reply With Quote #2

I don't know what g_bAccess[id] is but I suspect it's wrong.
If this doesn't work you have to check if it's even called.
Code:
public MessageScoreAttrib(iMsgId, iDest, iReceiver) {     new id = get_msg_arg_int(1);         if ( g_bVipStatus[id] )         set_msg_arg_int(2, ARG_BYTE, get_msg_arg_int(2) | 4); }
__________________
Black Rose is offline
proffs
Senior Member
Join Date: Jul 2013
Old 10-12-2013 , 16:31   Re: VIP ScoreBoard Not working correctly.
Reply With Quote #3

Quote:
Originally Posted by Black Rose View Post
I don't know what g_bAccess[id] is but I suspect it's wrong.
If this doesn't work you have to check if it's even called.
Code:
public MessageScoreAttrib(iMsgId, iDest, iReceiver) {     new id = get_msg_arg_int(1);         if ( g_bVipStatus[id] )         set_msg_arg_int(2, ARG_BYTE, get_msg_arg_int(2) | 4); }
Now, Some players doesn't see VIP in scoreboard.
And some players see all players have VIP in scoreboard.
PHP Code:
new g_iModel[MAXPLAYERS 1];
new 
g_szPlayerModel[MAXPLAYERS 1][32];

new 
bool:g_bAccess[MAXPLAYERS 1];
new 
bool:g_bVipStatus[MAXPLAYERS 1];
new 
bool:g_bVipConnect[MAXPLAYERS 1];
new 
bool:g_bVipSound[MAXPLAYERS 1];
new 
bool:g_bCustomModel[MAXPLAYERS 1];

new 
Float:g_iModel_TargetTime;
new 
Float:g_flRoundStart;

new 
g_iMaxPlayers;
new 
g_iVault
proffs is offline
RapZzw3rR
Member
Join Date: May 2012
Location: Romania
Old 10-12-2013 , 16:51   Re: VIP ScoreBoard Not working correctly.
Reply With Quote #4

Only the counter-terrorists can see the vips. You can't change it.
RapZzw3rR is offline
kNowo
Senior Member
Join Date: Apr 2011
Location: Malaysia
Old 10-12-2013 , 18:52   Re: VIP ScoreBoard Not working correctly.
Reply With Quote #5

I'm curious about this. Is there a workaround to make alive Terrorists to be able to see VIP players on scoreboard? Like setting their "status" to dead, messing around with their pev_flags or something. Has anyone tried this before?
kNowo is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-12-2013 , 20:09   Re: VIP ScoreBoard Not working correctly.
Reply With Quote #6

There is no workaround as it is the Client that renders the scoreboard
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Old 10-13-2013, 01:50
LordOfNothing
This message has been deleted by ConnorMcLeod. Reason: troll, or posting random confusing code, or posting for posts count
proffs
Senior Member
Join Date: Jul 2013
Old 10-13-2013 , 03:22   Re: VIP ScoreBoard Not working correctly.
Reply With Quote #7

So Terrorist can't see VIP on scoreboard.
Well can someone help me making the VIP status on the VIPs and not everybody?
proffs is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-13-2013 , 04:14   Re: VIP ScoreBoard Not working correctly.
Reply With Quote #8

Quote:
Originally Posted by proffs View Post
Well can someone help me making the VIP status on the VIPs and not everybody?
Where do you want the VIP status shown and how?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 10-13-2013 , 04:17   VIP ScoreBoard Not working correctly.
Reply With Quote #9

I believe terrorists can't see CT VIPs and vice versa. I saw 2 terrorist VIPs while being terror myself.
__________________
Black Rose is offline
proffs
Senior Member
Join Date: Jul 2013
Old 10-13-2013 , 04:19   Re: VIP ScoreBoard Not working correctly.
Reply With Quote #10

Quote:
Originally Posted by Black Rose View Post
I don't know what g_bAccess[id] is but I suspect it's wrong.
If this doesn't work you have to check if it's even called.
Code:
public MessageScoreAttrib(iMsgId, iDest, iReceiver) {     new id = get_msg_arg_int(1);         if ( g_bVipStatus[id] )         set_msg_arg_int(2, ARG_BYTE, get_msg_arg_int(2) | 4); }
Quote:
Originally Posted by YamiKaitou View Post
Where do you want the VIP status shown and how?
You know on the scoreboard where it says DEAD if you are dead? there it should say VIP even if they are CT,T or Dead.

I've seen on other servers that it says VIP even if i am ct, t or dead.
proffs 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 18:21.


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