Raised This Month: $ Target: $400
 0% 

Give Damage to player[xxxx killed by xxx][HELP ME]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
byetovice
Senior Member
Join Date: Nov 2009
Location: Turkey
Old 11-08-2009 , 08:59   Give Damage to player[xxxx killed by xxx][HELP ME]
Reply With Quote #1

i need help.
i'm using this code for give damage to players :
Code:
new Weapon,bodypart,attacker = get_user_attacker(id,Weapon,bodypart);
if(Weapon==CSW_HEGRENADE && HasNade[attacker])
{
if(get_user_health(id)<=get_cvar_num("amx_nade_damage"))
{
user_kill(id)
}
else
{
set_user_health(id,get_user_health(id)-get_cvar_num("amx_nade_damage"))
}
}
it works..
i want to see death message like :
[IMG]http://img217.**************/img217/958/kiahah.png[/IMG]
But not knife icon,,skeleton icon i know my english is bad

how can i do it?please help me
byetovice is offline
unnyquee
Senior Member
Join Date: Jun 2009
Location: Constanta, Romania
Old 11-08-2009 , 09:52   Re: Give Damage to player[xxxx killed by xxx][HELP ME]
Reply With Quote #2

You could do something like...
PHP Code:
message_begin(MSG_BROADCASTget_user_msgid("DeathMsg"),_,_);
write_byte(killerID);
write_byte(victimID);
write_byte(0);
write_string("worldspawn");
message_end(); 
__________________
unnyquee is offline
byetovice
Senior Member
Join Date: Nov 2009
Location: Turkey
Old 11-08-2009 , 10:30   Re: Give Damage to player[xxxx killed by xxx][HELP ME]
Reply With Quote #3

thanks its working ++karma
byetovice is offline
unnyquee
Senior Member
Join Date: Jun 2009
Location: Constanta, Romania
Old 11-08-2009 , 11:01   Re: Give Damage to player[xxxx killed by xxx][HELP ME]
Reply With Quote #4

Glad to hear that
__________________
unnyquee 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 17:33.


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