Upload files to "/"
This commit is contained in:
parent
50e9d87a5a
commit
2de196a13c
BIN
getout.wav
Normal file
BIN
getout.wav
Normal file
Binary file not shown.
48
headshot.sma
Normal file
48
headshot.sma
Normal file
@ -0,0 +1,48 @@
|
||||
#include <amxmodx>
|
||||
#include <hamsandwich>
|
||||
#include <engine>
|
||||
|
||||
public plugin_precache()
|
||||
{
|
||||
precache_sound("misc/headshot.wav");
|
||||
precache_sound("misc/getout.wav");
|
||||
}
|
||||
|
||||
public plugin_init()
|
||||
{
|
||||
register_plugin("headshot", "1.0", "bacalhau");
|
||||
register_event("DeathMsg", "headshot_detected", "a");
|
||||
}
|
||||
|
||||
public headshot_detected()
|
||||
{
|
||||
new victim = read_data(2);
|
||||
new killer = read_data(1);
|
||||
|
||||
if (read_data(3))
|
||||
{
|
||||
client_cmd(killer, "play misc/headshot.wav");
|
||||
message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0, 0, 0}, killer);
|
||||
write_short(1024);
|
||||
write_short(1024);
|
||||
write_short(0);
|
||||
write_byte(0);
|
||||
write_byte(200);
|
||||
write_byte(0);
|
||||
write_byte(75);
|
||||
message_end();
|
||||
|
||||
client_cmd(victim, "play misc/getout.wav");
|
||||
message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0, 0, 0}, victim);
|
||||
write_short(1024);
|
||||
write_short(1024);
|
||||
write_short(0);
|
||||
write_byte(255);
|
||||
write_byte(0);
|
||||
write_byte(0);
|
||||
write_byte(75);
|
||||
message_end();
|
||||
}
|
||||
|
||||
return PLUGIN_CONTINUE;
|
||||
}
|
BIN
headshot.wav
Normal file
BIN
headshot.wav
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user