AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Death Message Help. (https://forums.alliedmods.net/showthread.php?t=54590)

Styles 04-29-2007 15:03

Death Message Help.
 
Okay, im having a problem. We have plugins on this server that do damage like blasting with magic gay shit like that eect..

When u kill a player because of a hit or knife it was registering the victim and attacker right. But when u used magic it was saying the attacker is the victim and victim is attacker. I don't know why. So what I tried doing was a deammessage check to see who is alive still. But that isan't working. Any ideas?

stupok 04-29-2007 21:43

Re: Death Message Help.
 
It sounds like the "blasting with magic" plugin is not properly coded. I think you should post it and we should be able to fix it.

Styles 04-29-2007 23:40

Re: Death Message Help.
 
well again this kinda ties in with my othwer post about FakeDamage. Right now I have to use

Code:

                if(get_user_health(targetid) <= 10)
                {
                        user_silentkill(targetid)
                        make_deathmsg (id,targetid,0,"Gayness")
                }
                else set_user_health(targetid,get_user_health(targetid)-10)

because fake damage doesn't work properly.

stupok 04-30-2007 00:42

Re: Death Message Help.
 
Well, the format is like this:

Code:

make_deathmsg ( killer, victim, headshot, weapon[] )
http://www.amxmodx.org/funcwiki.php?go=func&id=403

Styles 04-30-2007 22:58

Re: Death Message Help.
 
Yes I know but im saying fakedamage wont workr and its calling it odd I was thinking of something like making it so it checks whos alive still but that doesn't seem to work, ( If you could possibly make an example if that WOUld work. )

Rolnaaba 05-01-2007 09:49

Re: Death Message Help.
 
you could call deathmsg manually like so:
Code:
message_begin(MSG_ALL, get_user_msgid("DeathMsg"), {0,0,0}, 0); write_byte(attacker_id); write_byte(victim_id); write_byte(0); write_string("weapon"); message_end();

Styles 05-01-2007 18:17

Re: Death Message Help.
 
do you think that might work better?

Rolnaaba 05-02-2007 10:08

Re: Death Message Help.
 
i use it so i know the message it sent and dont rely on another module, but it is more or less prefferance (sorry I cant spell at all)


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

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