Kod: Tümünü seç
#include <amxmodx>
public Event_DeathMsg() {
new att=read_data(1),olen=read_data(2);
if(get_user_team(olen) != get_user_team(att) && olen!=att) {
new isim[33],name[33],silah[33];
get_user_name(olen,isim,charsmax(isim));
get_user_name(att,name,charsmax(name));
get_weaponname(get_user_weapon(att), silah, charsmax(silah));
replace(silah, charsmax(silah), "weapon_", "");
client_print_color(0, 0, "^1[^3%s^1] ^4isimli oyuncu ^1[^3%s^1]^4 tarafindan ^1%s^4 silahi ile olduruldu.",isim,name,silah);
}
}
public plugin_init() {
register_plugin("PLUGIN", "VERSION", "nd");
register_event("DeathMsg", "Event_DeathMsg", "a");
}