hlsdk

Untitled

May 30th, 2010
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.77 KB | None | 0 0
  1. #include sourcemod
  2. #include sdktools
  3.  
  4. #pragma semicolon 1
  5.  
  6. #define Imogenheap_mp3      "bsm/imogenheap.mp3"
  7.  
  8.  
  9. public Plugin:myinfo =
  10. {
  11.     name = "Headshot Sound player",
  12.     author = "HL-SDK",
  13.     description = "Plays a sound cool sound to all the cool people",
  14.     version = "1.2",
  15.     url = "http://www.bsmclan.com"
  16. }
  17.  
  18. public OnPluginStart()
  19. {
  20.     HookEvent("player_death", Event_PlayerDeath);
  21. }
  22.  
  23. public OnMapStart()
  24. {
  25.     PrecacheSound(Imogenheap_mp3);
  26.     decl String:file[64];
  27.     Format(file, 63, "sound/%s", Boom);
  28.     AddFileToDownloadsTable(file);
  29. }
  30.  
  31. public Action:Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
  32. {
  33.     if (GetEventInt(event, "customkill") == 1)
  34.     {
  35.         //GetConVarString()
  36.         EmitSoundToAll(Imogenheap_mp3);
  37.     }
  38.     return Plugin_Continue;
  39. }
Add Comment
Please, Sign In to add comment