AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   missing radar after make_deathmsg (https://forums.alliedmods.net/showthread.php?t=54840)

mogel 05-05-2007 10:53

missing radar after make_deathmsg
 
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

VEN 05-06-2007 08:13

Re: missing radar after make_deathmsg
 
Code?

mogel 05-07-2007 00:01

Re: missing radar after make_deathmsg
 
2 Attachment(s)
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

VEN 05-07-2007 04:09

Re: missing radar after make_deathmsg
 
Try to use make_deathmsg() in a standalone plugin for test to see whether it's your code problem or not.

mogel 05-07-2007 14:47

Re: missing radar after make_deathmsg
 
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

VEN 05-08-2007 03:49

Re: missing radar after make_deathmsg
 
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.

mogel 05-08-2007 13:59

Re: missing radar after make_deathmsg
 
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

VEN 05-08-2007 16:42

Re: missing radar after make_deathmsg
 
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.

mogel 05-08-2007 23:50

Re: missing radar after make_deathmsg
 
Hi,

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

hand, mogel


All times are GMT -4. The time now is 06:42.

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