Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma semicolon 1
- #include <sourcemod>
- #include <sdktools>
- public void OnPluginStart()
- {
- HookEvent("player_death", Event_PlayerDeath);
- }
- public void OnMapStart()
- {
- AddFileToDownloadsTable("sounds/quakesounds/humiliation.mp3");
- PrecacheSoundAny("quakesounds/humiliation.mp3");
- }
- public Action Event_PlayerDeath(Event event, const char[] name, bool dontBroadcast)
- {
- event.GetString(weapon, sizeof(weapon), "weapon");
- if(StrContains(weapon, "knife"))
- EmitSoundToAllAny("quakesounds/humiliation.mp3");
- return Plugin_Continue;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement