hlsdk

Untitled

May 30th, 2010
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.74 KB | None | 0 0
  1. #include sourcemod
  2. #include sdktools
  3.  
  4. #pragma semicolon 1
  5.  
  6. #define Imogenheap_mp3      "sound/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.     AddFileToDownloadsTable(file);
  28. }
  29.  
  30. public Action:Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
  31. {
  32.     if (GetEventInt(event, "customkill") == 1)
  33.     {
  34.         //GetConVarString()
  35.         EmitSoundToAll(Imogenheap_mp3);
  36.     }
  37.     return Plugin_Continue;
  38. }
Add Comment
Please, Sign In to add comment