Raised This Month: $ Target: $400
 0% 

Shouting Players!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lays
Junior Member
Join Date: Apr 2008
Old 04-29-2008 , 14:29   Shouting Players!
Reply With Quote #1

Hey,

I'm looking for a plugin which implements a shout function for players. What I mean is I'd like to have an effect when a player 'says' a predefined audio file when he is hit, killed, team attacking or killing others. I actually tried coding something but still no idea how to do it. I know it should involve events like taking damage and the emit_sound function. But how to write that? That would be pretty cool if anyone decided to do this
lays is offline
lays
Junior Member
Join Date: Apr 2008
Old 05-21-2008 , 15:28   Re: Shouting Players!
Reply With Quote #2

Ok, I managed to code some things but the problem is that when I kill a player, the kill sound is played twice. However it doesn't happen when I kill a bot (I hear him say it only once) or when I get killed - the death sound is always played once. What's wrong?

And how to define team attack (not team kill) event and assign a sound to it?
Attached Files
File Type: sma Get Plugin or Get Source (sounds.sma - 767 views - 1.9 KB)
lays is offline
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 08:16.


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