Raised This Month: $ Target: $400
 0% 

Hostage Sounds


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Evaldas
Member
Join Date: Jul 2005
Location: Lithuania
Old 10-22-2005 , 16:01   Hostage Sounds
Reply With Quote #1

I'm using one old AMX plugin, and want to make it work on my server. So here is what I have (done some changes):

Code:
#include <amxmodx> 

#define SOUNDS_NUM 8

new sounds_list[SOUNDS_NUM][] = {"misc/hostages/getouttahere.wav", "misc/hostages/illfollow.wav", "misc/hostages/youlead.wav", "misc/hostages/letsdoit.wav", "misc/hostages/letsgo.wav", "misc/hostages/letshurry.wav", "misc/hostages/letsmove.wav", "misc/hostages/okletsgo.wav"}

public plugin_precache()
{
	precache_sound("misc/hostages/getouttahere.wav")
	precache_sound("misc/hostages/illfollow.wav")
	precache_sound("misc/hostages/youlead.wav")
	precache_sound("misc/hostages/letsdoit.wav")
	precache_sound("misc/hostages/letsgo.wav")
	precache_sound("misc/hostages/letshurry.wav")
	precache_sound("misc/hostages/letsmove.wav")
	precache_sound("misc/hostages/okletsgo.wav")
}

public plugin_init()
{
	register_plugin("Hostage Sounds", "x.x", "xxxxx")
	return PLUGIN_CONTINUE
}

public EmitSound(entity, channel, const sample[])
{
	if(equal(sample, "hostage/hos1.wav") || equal(sample, "hostage/hos2.wav")
	|| equal(sample, "hostage/hos3.wav") || equal(sample, "hostage/hos4.wav")
	|| equal(sample, "hostage/hos5.wav") || equal(sample, "hostage/hos6.wav")
	|| equal(sample, "hostage/hos7.wav")) 
	{
		emit_sound(entity, CHAN_VOICE, sounds_list[random_num(0, SOUNDS_NUM-1)], 1.0, ATTN_NORM, 0, PITCH_NORM) 
		return PLUGIN_HANDLED
	}
	return PLUGIN_CONTINUE
}
Tested, but hostages still use hos...wav instead new ones. What is wrong?
__________________
Evaldas is offline
 


Thread Tools
Display Modes

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 23:53.


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