AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   VIP scoreboard status problem (https://forums.alliedmods.net/showthread.php?t=242666)

georgik57 06-22-2014 17:31

VIP scoreboard status problem
 
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:

http://i60.tinypic.com/n19s9e.png

How to fix it?

georgik57 08-08-2014 07:08

Re: VIP scoreboard status problem
 
bump

YamiKaitou 08-08-2014 07:11

Re: VIP scoreboard status problem
 
You are aware that Terrorist's cannot see or obtain VIP status, right?

georgik57 08-08-2014 07:13

Re: VIP scoreboard status problem
 
Quote:

Originally Posted by YamiKaitou (Post 2180896)
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.

YamiKaitou 08-08-2014 07:16

Re: VIP scoreboard status problem
 
Quote:

Originally Posted by georgik57 (Post 2180899)
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

georgik57 08-08-2014 07:27

Re: VIP scoreboard status problem
 
Quote:

Originally Posted by YamiKaitou (Post 2180902)
AFAIK, VIP is not shown on Terrorists or Spectators

as you can see, those who had deathmsg lose their vip status

http://i62.tinypic.com/voyflz.jpg


All times are GMT -4. The time now is 21:16.

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