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.55 KB | None | 0 0
  1. #pragma semicolon 1
  2.  
  3. #include <sourcemod>
  4. #include <sdktools>
  5.  
  6. public void OnPluginStart()
  7. {
  8. HookEvent("player_death", Event_PlayerDeath);
  9. }
  10.  
  11. public void OnMapStart()
  12. {
  13. AddFileToDownloadsTable("sounds/quakesounds/humiliation.mp3");
  14. PrecacheSoundAny("quakesounds/humiliation.mp3");
  15. }
  16.  
  17. public Action Event_PlayerDeath(Event event, const char[] name, bool dontBroadcast)
  18. {
  19. event.GetString(weapon, sizeof(weapon), "weapon");
  20. if(StrContains(weapon, "knife"))
  21. EmitSoundToAllAny("quakesounds/humiliation.mp3");
  22.  
  23. return Plugin_Continue;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement