Quote:
Originally Posted by instinctpt1
Yes its possible, here it is :
PHP Code:
#include <amxmodx>
public plugin_init() { register_plugin("Self Nade Kill", "1.0", "DiGiTaL") register_event("DeathMsg", "onDeathMsgEvent", "a"); }
public onDeathMsgEvent() { new id = read_data(2) new szWeapon[32]; read_data(4, szWeapon, charsmax(szWeapon)); if(equal(szWeapon, "grenade")) client_print(id, print_chat, "Self Nade kill xD") }
|
where is the part that check for the killer and victim? LOL
PHP Code:
#include <amxmodx>
#include <csx>
#include <cstrike>
public plugin_init()
{
register_plugin("AL AKHBAR","0.0.1","SmileY");
}
public client_death(Killer,Victim,WeaponId,HitPlace,TK)
{
if(Killer == Victim && WeaponId == CSW_HEGRENADE)
{
new Name[32];
get_user_name(Victim,Name,charsmax(Name));
client_print(0,print_chat,"%s says: AL AKHBAR",Name);
}
}
Not Tested
__________________