Raised This Month: $ Target: $400
 0% 

Death Message Help.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 04-29-2007 , 15:03   Death Message Help.
Reply With Quote #1

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?
Styles is offline
Send a message via AIM to Styles
stupok
Veteran Member
Join Date: Feb 2006
Old 04-29-2007 , 21:43   Re: Death Message Help.
Reply With Quote #2

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.
stupok is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 04-29-2007 , 23:40   Re: Death Message Help.
Reply With Quote #3

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.
Styles is offline
Send a message via AIM to Styles
stupok
Veteran Member
Join Date: Feb 2006
Old 04-30-2007 , 00:42   Re: Death Message Help.
Reply With Quote #4

Well, the format is like this:

Code:
make_deathmsg ( killer, victim, headshot, weapon[] )
http://www.amxmodx.org/funcwiki.php?go=func&id=403
stupok is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 04-30-2007 , 22:58   Re: Death Message Help.
Reply With Quote #5

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. )
Styles is offline
Send a message via AIM to Styles
Rolnaaba
Veteran Member
Join Date: May 2006
Old 05-01-2007 , 09:49   Re: Death Message Help.
Reply With Quote #6

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();
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 05-01-2007 , 18:17   Re: Death Message Help.
Reply With Quote #7

do you think that might work better?
Styles is offline
Send a message via AIM to Styles
Rolnaaba
Veteran Member
Join Date: May 2006
Old 05-02-2007 , 10:08   Re: Death Message Help.
Reply With Quote #8

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)
__________________
DO NOT PM me about avp mod.
Rolnaaba 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 06:41.


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