#include <amxmodx>
#include <amxmisc>
public plugin_init() {
register_plugin("Kill Effect", "1.0", "Dom1no_[KZ]");
register_event("DeathMsg", "event_death", "a");
}
public event_death(id) {
new headshot = read_data(3);
if(headshot == 1){
client_cmd(killer,"spk ultimate_sounds/headshot")
}
}
public plugin_precache(){
precache_sound("ultimate_sounds/headshot.wav");
}
Даже не компилится на 1.8.3Код:#include <amxmodx> #include <amxmisc> public plugin_init() { register_plugin("Kill Effect", "1.0", "Dom1no_[KZ]"); register_event("DeathMsg", "event_death", "a"); } public event_death(id) { new headshot = read_data(3); if(headshot == 1){ client_cmd(killer,"spk ultimate_sounds/headshot") } } public plugin_precache(){ precache_sound("ultimate_sounds/headshot.wav"); }
От души))