Raised This Month: $ Target: $400
 0% 

missing radar after make_deathmsg


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mogel
Senior Member
Join Date: Jan 2007
Old 05-05-2007 , 10:53   missing radar after make_deathmsg
Reply With Quote #1

Hi,

i use the function make_deathmsg ... after the call for the player (he is not full died), the radar is disappeared ... only the radar, the other hud-info's (like ammo/money/...) not ... i try following the messages to open the radar again
  • HideWeapon (flags set to 0)
  • ResetHUD
  • InitHUD
  • Radar
but nothing work

hand, mogel
__________________
mogel is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 05-06-2007 , 08:13   Re: missing radar after make_deathmsg
Reply With Quote #2

Code?
VEN is offline
mogel
Senior Member
Join Date: Jan 2007
Old 05-07-2007 , 00:01   Re: missing radar after make_deathmsg
Reply With Quote #3

Hi,

in client_damage

Code:
            // oben rechts anzeigen
            make_deathmsg(attacker, victim, 0, weapon)

            // durch die Death-Msg wird das Radar deaktiviert ... damit wieder aktiviert
            //message_begin(MSG_ONE, get_user_msgid("HideWeapon"), {0, 0, 0}, victim)
            //write_byte(127)
            //message_end()
when i comment the make_deathmsg()-funktion then it will work ... full code is in the attachement

hand, mogel
Attached Files
File Type: sma Get Plugin or Get Source (blackmesa-main.sma - 544 views - 43.2 KB)
File Type: inc blackmesa.inc (9.1 KB, 113 views)
__________________
mogel is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 05-07-2007 , 04:09   Re: missing radar after make_deathmsg
Reply With Quote #4

Try to use make_deathmsg() in a standalone plugin for test to see whether it's your code problem or not.
VEN is offline
mogel
Senior Member
Join Date: Jan 2007
Old 05-07-2007 , 14:47   Re: missing radar after make_deathmsg
Reply With Quote #5

Hi,

remove the radar from HUD

Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>


#define PLUGIN "New Plug-In"
#define VERSION "0.0.1"
#define AUTHOR "mogel"


public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    
    register_clcmd("fakedeath", "CMD_fakedeath")
}
public CMD_fakedeath(player) {
    make_deathmsg(0, player, 0, "deagle")
}
hand, mogel
__________________
mogel is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 05-08-2007 , 03:49   Re: missing radar after make_deathmsg
Reply With Quote #6

This is happen because of clientside effect. Client dll suppose that player are dead so it hide the radar. If you want to unhide it send ScoreAttrib to a client with appropriate flag parameter. See http://wiki.amxmodx.org/index.php/Ha...ts#ScoreAttrib for details.
VEN is offline
mogel
Senior Member
Join Date: Jan 2007
Old 05-08-2007 , 13:59   Re: missing radar after make_deathmsg
Reply With Quote #7

Hi,

Code:
message_begin(MSG_ONE, get_user_msgid("ScoreAttrib"), _, player)
write_byte(player)
write_byte(0)
message_end()
will restore the radar, thanks, mogel
__________________
mogel is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 05-08-2007 , 16:42   Re: missing radar after make_deathmsg
Reply With Quote #8

As i said
Quote:
appropriate flag parameter
i.e. you better check whether player is VIP or bomb carrier and set coresponding flag. See the above link for corresponding flags.
VEN is offline
mogel
Senior Member
Join Date: Jan 2007
Old 05-08-2007 , 23:50   Re: missing radar after make_deathmsg
Reply With Quote #9

Hi,

zombies don't play CT on AS-Maps and drop the bomb if they "die"

hand, mogel
__________________
mogel 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 10:42.


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