Raised This Month: $51 Target: $400
 12% 

Kill | Death sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
molotovas
Senior Member
Join Date: Jan 2008
Old 01-31-2008 , 13:12   Kill | Death sound
Reply With Quote #1

(For cs 1.6 )Can someone make plugin this, if i kill someone , only i can here sound and if i dead only i here sound other players dont here, sounds plays random, can someone do this plugin ?

Last edited by molotovas; 01-31-2008 at 13:31.
molotovas is offline
molotovas
Senior Member
Join Date: Jan 2008
Old 02-01-2008 , 15:28   Re: Kill | Death sound
Reply With Quote #2

Hey guys, comon do it somebody this plugin i saw one server, and i like it very much
molotovas is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-01-2008 , 15:45   Re: Kill | Death sound
Reply With Quote #3

could you explain it in more detail pl0x?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
[kirk]./musick`
Senior Member
Join Date: Jun 2007
Location: Tampa, Florida
Old 02-01-2008 , 20:44   Re: Kill | Death sound
Reply With Quote #4

The only part I understood was that if he kills someone, only himself hears a death sound.
__________________
[kirk]./musick` is offline
Send a message via AIM to [kirk]./musick`
Howdy!
Senior Member
Join Date: Feb 2007
Old 02-02-2008 , 06:17   Re: Kill | Death sound
Reply With Quote #5

Quote:
Originally Posted by [kirk]./musick` View Post
The only part I understood was that if he kills someone, only himself hears a random death sound.
;)
__________________
[IMG]http://img221.**************/img221/5608/howdyfinnishhq2.jpg[/IMG]
Howdy! is offline
molotovas
Senior Member
Join Date: Jan 2008
Old 02-03-2008 , 12:37   Re: Kill | Death sound
Reply With Quote #6

Quote:
Originally Posted by X-olent View Post
could you explain it in more detail pl0x?
In most server if you kill someone all here sound multikill, monster kill and other, but I play in one server and i kill and hear sound "dye bich" and only that sound hear I,only who kill people can here sounds, and if i dye only i hear that sound "damn".
Can make someone ?
molotovas is offline
chris-1337
Senior Member
Join Date: Jan 2008
Location: The United Kingdom Of Gr
Old 02-03-2008 , 16:51   Re: Kill | Death sound
Reply With Quote #7

I am pretty sure this should work for you:
Code:
#include <amxmodx>
#include <amxmisc>
#pragma semicolon 1
#define SOUND_DEATH "sound_of_death_file.wav"
#define SOUND_KILL "sound_of_kill_file.wav"
public plugin_init()
{
  register_plugin("Misc Sounds", "1.00", "chris-1337");
  register_event("DeathMsg", "handle_death", "a");
}
public handle_death()
{
  emit_sound(read_data(1), 0, SOUND_KILL, 1.0, 0.8, 0, 100);
  emit_sound(read_data(2), 0, SOUND_DEATH, 1.0, 0.8, 0, 100);
  return PLUGIN_CONTINUE;
}
public plugin_precache()
{
  precache_sound(SOUND_DEATH);
  precache_sound(SOUND_KILL);
}
#define SOUND_DEATH "sound_of_death_file.wav" - replace "sound_of_death_file.wav" with the name of your sound file to be played when someone has been killed.
#define SOUND_KILL "sound_of_kill_file.wav" - replace "sound_of_kill_file.wav" with the name of your sound file to be played when someone has killed someone else.
__________________
Microsoft Word has encountered an error.
As a result of this your bank account has been emptied, your credit cards maxed out & your family has been brutally murdered.
Thank-you for using Microsoft Products.
chris-1337 is offline
Send a message via MSN to chris-1337
mando127
Veteran Member
Join Date: Dec 2006
Location: virginia
Old 02-04-2008 , 08:10   Re: Kill | Death sound
Reply With Quote #8

hay chris-1337 can you remake this just for CT team
__________________
mando127 is offline
Send a message via Skype™ to mando127
molotovas
Senior Member
Join Date: Jan 2008
Old 02-04-2008 , 08:27   Re: Kill | Death sound
Reply With Quote #9

were is a bug, at same time then you dead play dead ant kill sound
and then you kill dont play nothing, only then dead.

Last edited by molotovas; 02-04-2008 at 08:43.
molotovas is offline
chris-1337
Senior Member
Join Date: Jan 2008
Location: The United Kingdom Of Gr
Old 02-04-2008 , 12:43   Re: Kill | Death sound
Reply With Quote #10

Quote:
Originally Posted by mando127 View Post
hay chris-1337 can you remake this just for CT team


Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#pragma semicolon 1
#define CT CsTeams:CS_TEAM_CT
#define SOUND_DEATH "sound_of_death_file.wav"
#define SOUND_KILL "sound_of_kill_file.wav"
public plugin_init()
{
  register_plugin("Misc Sounds", "1.00", "chris-1337");
  register_event("DeathMsg", "handle_death", "a");
}
public handle_death()
{
  new killer = read_data(1), victim = read_data(2);
  if(cs_get_user_team(killer) == CT)
  {
    emit_sound(killer, 0, SOUND_KILL, 1.0, 0.8, 0, 100);
  }
  else if(cs_get_user_team(victim) == CT)
  {
    emit_sound(victim, 0, SOUND_DEATH, 1.0, 0.8, 0, 100);
  }
  return PLUGIN_CONTINUE;
}
public plugin_precache()
{
  precache_sound(SOUND_DEATH);
  precache_sound(SOUND_KILL);
}
If you are CT & you kill somebody it should give you a sound, if you are CT & you die it should give you a sound. Unless I have not understood you, that should be what you want =)
__________________
Microsoft Word has encountered an error.
As a result of this your bank account has been emptied, your credit cards maxed out & your family has been brutally murdered.
Thank-you for using Microsoft Products.
chris-1337 is offline
Send a message via MSN to chris-1337
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode