Raised This Month: $51 Target: $400
 12% 

Solved Chat say when kill or die. Say hp killer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
4ever16
Veteran Member
Join Date: Apr 2015
Old 12-03-2016 , 20:34   Chat say when kill or die. Say hp killer
Reply With Quote #1

Can someone make this one?

When i die.

[AMXX DIE PLUGIN] Dead | Enemy HP: 56

When i kill.

[AMXX DIE PLUGIN] Kill

Last edited by 4ever16; 01-10-2017 at 22:44.
4ever16 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 12-04-2016 , 17:26   Re: Chat say when kill or die. Say hp killer
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <colorchat>

#define PLUGIN "Death Message"
#define VERSION "1.0"
#define AUTHOR "NapoleoN#"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event("DeathMsg""eDeath""a""1>0")
}

public 
eDeath() {
    new 
iKiller read_data(1)
    new 
iVictim read_data(2)
    new 
iHealth get_user_health(iKiller)
    
    
ColorChat(iVictimRED"[AMXX DIE PLUGIN] Dead | Enemy HP: %i"iHealth)
    
ColorChat(iKillerBLUE"[AMXX DIE PLUGIN] Kill")

__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
4ever16
Veteran Member
Join Date: Apr 2015
Old 12-06-2016 , 08:52   Re: Chat say when kill or die. Say hp killer
Reply With Quote #3

Nice i will test it.
Thanks!

I will come with feedback later.

Everything works fine.

Can u make so.

ColorChat(iVictim, RED, "[AMXX DIE PLUGIN] Dead | Enemy HP: %i", iHealth)
ColorChat(iVictim, RED, "[AMXX DIE PLUGIN] Dead | ''NICKNAME'' HP: %i", iHealth)

Last edited by 4ever16; 12-06-2016 at 09:31.
4ever16 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-06-2016 , 14:57   Re: Chat say when kill or die. Say hp killer
Reply With Quote #4

PHP Code:
#include <amxmodx>
#include <colorchat>

#define PLUGIN "Death Message"
#define VERSION "1.0"
#define AUTHOR "NapoleoN#"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event("DeathMsg""eDeath""a""1>0""2>0""2!1")
}

public 
eDeath() {
    new 
iKiller read_data(1)
    new 
iVictim read_data(2)
    new 
iHealth get_user_health(iKiller)
    
    new 
szName[32]
    
get_user_name(iKillerszNamecharsmax(szName))
    
    
ColorChat(iVictimRED"[AMXX DIE PLUGIN] Dead | %s HP: %i"szNameiHealth)
    
ColorChat(iKillerBLUE"[AMXX DIE PLUGIN] Kill")

__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
4ever16
Veteran Member
Join Date: Apr 2015
Old 12-06-2016 , 15:10   Re: Chat say when kill or die. Say hp killer
Reply With Quote #5

Working good thanks!
4ever16 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 02:01.


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