Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. #pragma semicolon 1
  2.  
  3. #include <sourcemod>
  4. #include <sdktools>
  5. #include <emitsoundany>
  6.  
  7. public void OnPluginStart()
  8. {
  9. HookEvent("player_death", Event_PlayerDeath);
  10. }
  11.  
  12. public void OnMapStart()
  13. {
  14. AddFileToDownloadsTable("sounds/quakesounds/humiliation.mp3");
  15. PrecacheSoundAny("quakesounds/humiliation.mp3");
  16. }
  17.  
  18. public Action Event_PlayerDeath(Event event, const char[] name, bool dontBroadcast)
  19. {
  20. char weapon[128];
  21. event.GetString("weapon", weapon, sizeof(weapon));
  22. if(StrContains(weapon, "knife"))
  23. EmitSoundToAllAny("quakesounds/humiliation.mp3");
  24.  
  25. return Plugin_Continue;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement