Raised This Month: $32 Target: $400
 8% 

Fake DeathMsg


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
safetymoose
Senior Member
Join Date: Feb 2015
Old 11-13-2017 , 05:46   Fake DeathMsg
Reply With Quote #1

Hey everyone,

I need to do something tricky, i want to send fake death messages, but not have the player show up as dead in the scoreboard.



I'm using the DeathMsg event.
PHP Code:
message_begin(MSG_BROADCASTget_user_msgid("DeathMsg"), {0,0,0}, 0);
write_byte(killer);
write_byte(victim);
write_byte(headshot);
write_string(weapon);
message_end(); 
But i need to prevent it from showing the victim as DEAD in the scoreboard. Any ideas? Any alternative methods?
safetymoose is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 11-13-2017 , 05:50   Re: Fake DeathMsg
Reply With Quote #2

I'm sure DeathMsg doesn't display the player as DEAD in the scoreboard?
Anyway, to alter the scoreboard status you can send ScoreAttrib message.
klippy is offline
safetymoose
Senior Member
Join Date: Feb 2015
Old 11-13-2017 , 05:54   Re: Fake DeathMsg
Reply With Quote #3

Solved it, i used an extra ScoreAttrib message

PHP Code:
message_beginMSG_BROADCASTget_user_msgid("ScoreAttrib"),{0,0,0},0
write_byte(victim
write_byte(0
message_end() 
Refer to: https://forums.alliedmods.net/showthread.php?t=830

EDIT:
Quote:
Originally Posted by KliPPy View Post
I'm sure DeathMsg doesn't display the player as DEAD in the scoreboard?
Anyway, to alter the scoreboard status you can send ScoreAttrib message.
Didnt refresh page to see your reply, but that's exactly what i needed, thanks.

Last edited by safetymoose; 11-13-2017 at 05:56.
safetymoose is offline
Reply


Thread Tools
Display Modes

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 09:31.


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