Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include sourcemod
- #include sdktools
- #pragma semicolon 1
- #define Imogenheap_mp3 "sound/imogenheap.mp3"
- public Plugin:myinfo =
- {
- name = "Headshot Sound player",
- author = "HL-SDK",
- description = "Plays a sound cool sound to all the cool people",
- version = "1.2",
- url = "http://www.bsmclan.com"
- }
- public OnPluginStart()
- {
- HookEvent("player_death", Event_PlayerDeath);
- }
- public OnMapStart()
- {
- PrecacheSound(Imogenheap_mp3);
- decl String:file[64];
- AddFileToDownloadsTable(file);
- }
- public Action:Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
- {
- if (GetEventInt(event, "customkill") == 1)
- {
- //GetConVarString()
- EmitSoundToAll(Imogenheap_mp3);
- }
- return Plugin_Continue;
- }
Add Comment
Please, Sign In to add comment