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

Hear enemys radio if standing close


Post New Thread Reply   
 
Thread Tools Display Modes
VEN
Veteran Member
Join Date: Jan 2005
Old 12-24-2005 , 14:02  
Reply With Quote #11

You do not need to precache this sound and is_user_connected check.
VEN is offline
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 12-24-2005 , 15:55  
Reply With Quote #12

Ok, thx! (edited code)
how to make so the "Hostage Down!" radio command can be hearen by nearby enemys to? (adding into the hostage down plugin)
Sorry if im nagging
__________________
Sig(h)!
Obbin is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 12-25-2005 , 11:07  
Reply With Quote #13

I released the plugin Real Radio

Changes since beta version:
- now plugin uses SendAudio event so the source is much shorter
- "Fire in the hole" audio also supported
- added Fun Radio plugin support
VEN is offline
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 12-25-2005 , 14:27  
Reply With Quote #14

is there any way of adding my own sound played from the player when he kills a hostage?
__________________
Sig(h)!
Obbin is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 12-26-2005 , 10:50  
Reply With Quote #15

Okay.
Code:
// #include <amxmodx> #define SOUND "radio/hosdown.wav" #define CHAN CHAN_VOICE #define VOL VOL_NORM #define ATTN ATTN_STATIC #define FLAGS 0 #define PITCH PITCH_NORM #define CVAR_FUNRADIO "amx_funradio_playspeed" public plugin_precache() {     precache_sound(SOUND) } public plugin_init() {     register_plugin("Real Hostage Down [with Fun Radio support]", "0.1", "VEN")     register_event("TextMsg", "event_hostage_kill", "b", "2=#Killed_Hostage") } public event_hostage_kill(id) {     emit_sound(id, CHAN, SOUND, VOL, ATTN, FLAGS, cvar_exists(CVAR_FUNRADIO) ? get_cvar_num(CVAR_FUNRADIO) : PITCH) }
Quote:
is there any way of adding my own sound played from the player when he kills a hostage?
Just change SOUND to any other sound.
VEN is offline
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 12-26-2005 , 15:48  
Reply With Quote #16

Thx soo much!
K++
__________________
Sig(h)!
Obbin is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 12-27-2005 , 14:46  
Reply With Quote #17

Btw "Real Radio" 0.2 already released.
Upgrade your version if you have 0.1. ;)
VEN is offline
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 12-28-2005 , 05:31  
Reply With Quote #18

Thx again!!
I voted 5/5
__________________
Sig(h)!
Obbin is offline
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 12-31-2005 , 12:24  
Reply With Quote #19

Hmm.. real radio works just fine. GJ again.

But the "hostage down!-realradio" makes the message sound wierd to the one that sends it, and maybe (havn't tested width moore than one person) to anyone from the same team standing close enough (he/they can hear both of the radio comm's so it sounds wierd).


anyway solving it?

Edit: saw someting about a channel in the source, maybe making theese plugins using the same channel and let the first (The one using "Spk %s") "override" the other? (Not affecting the sound quallity)
I dont know
__________________
Sig(h)!
Obbin is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 12-31-2005 , 12:50  
Reply With Quote #20

Do you have this plugin also enabled?
Code:
#include <amxmodx> #include <cstrike> #define PLUGIN    "Hostage Down (v3x)" // ...

If so then you shouldn't exec spk client cmd on hostage killer.
VEN 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 10:46.


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