Raised This Month: $ Target: $400
 0% 

VIP scoreboard status problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 06-22-2014 , 17:31   VIP scoreboard status problem
Reply With Quote #1

So, I have the following code which sets the VIP status:

Code:
public plugin_init()        register_message(get_user_msgid("ScoreAttrib"), "Message_ScoreAttrib") public Message_ScoreAttrib() {     if (get_msg_arg_int(2))         return;     /*  static id     id = get_msg_arg_int(1);         if (!is_user_alive(id))         return;     */     if (g_iTime || g_iVIP[get_msg_arg_int(1)])         set_msg_arg_int(2, ARG_BYTE, (1<<2)) }

...but on infection(ZP 4.3 Fix5a), a death message is sent, immediately followed by a fix dead attrib("alive") message:

Code:
// Send death notice and fix the "dead" attrib on scoreboard SendDeathMsg(infector, id) FixDeadAttrib(id)

Code:
// Send Death Message for infections SendDeathMsg(attacker, victim) {     message_begin(MSG_BROADCAST, get_user_msgid("DeathMsg"))     write_byte(attacker) // killer     write_byte(victim) // victim     write_byte(1) // headshot flag     write_string("infection") // killer's weapon     message_end() } // Fix Dead Attrib on scoreboard FixDeadAttrib(id) {     message_begin(MSG_BROADCAST, get_user_msgid("ScoreAttrib"))     write_byte(id) // id     write_byte(0) // attrib     message_end() }

...and the players lose their VIP status but don't regain it back:



How to fix it?
__________________

Last edited by georgik57; 06-22-2014 at 17:33.
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 08-08-2014 , 07:08   Re: VIP scoreboard status problem
Reply With Quote #2

bump
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-08-2014 , 07:11   Re: VIP scoreboard status problem
Reply With Quote #3

You are aware that Terrorist's cannot see or obtain VIP status, right?
__________________
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
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 08-08-2014 , 07:13   Re: VIP scoreboard status problem
Reply With Quote #4

Quote:
Originally Posted by YamiKaitou View Post
You are aware that Terrorist's cannot see or obtain VIP status, right?
They can't see but they can obtain it.
And alive CTs or Spectators should be able to see it.
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-08-2014 , 07:16   Re: VIP scoreboard status problem
Reply With Quote #5

Quote:
Originally Posted by georgik57 View Post
They can't see but they can obtain it.
And alive CTs or Spectators should be able to see it.
AFAIK, VIP is not shown on Terrorists or Spectators
__________________
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
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 08-08-2014 , 07:27   Re: VIP scoreboard status problem
Reply With Quote #6

Quote:
Originally Posted by YamiKaitou View Post
AFAIK, VIP is not shown on Terrorists or Spectators
as you can see, those who had deathmsg lose their vip status

__________________

Last edited by georgik57; 08-08-2014 at 07:29.
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Old 08-18-2014, 11:00
georgik57
This message has been deleted by YamiKaitou. Reason: wait 14 days before you bump
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 21:16.


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