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

End Round Sounds


Post New Thread Reply   
 
Thread Tools Display Modes
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 02-01-2008 , 15:47   Re: End Round Sounds
Reply With Quote #111

Nice ! Good plugin (4 fun)
__________________

anakin_cstrike is offline
PanGrubyJeff
New Member
Join Date: Mar 2008
Old 03-30-2008 , 08:01   Re: End Round Sounds
Reply With Quote #112

Can anyone tell me what`s wrong? Thx! It download mp3s and there are no errors in console but there is just silence after round.

//RoundSound.amxx -by PaintLancer
// mp3-Support added by Isobold


// How to use this plugin:
// Configure the plugin by adding/replacing the Filenames and functioncalls in pluginprecache() as described below.
// Pay attention to use the specific method for wav and mp3-Files.
// Place the sma-file into your amxmodx/scripting-Folder and compile it.
// Copy the result amxmodx/scripting/compiled/roundsound.amxx into amxmodx/plugins.
// Add plugin name to /amxmodx/config/plugin.ini
// Upload all sounds into the folders you have specified
// Change map and enjoy the sounds at round end

// Following dirs and files are assumed for examples below:
// cstrike
// |
// \-- mp3
// | |
// | \-- mympegfile.mp3
// |
// \-- sound
// |
// \-- misc
// |
// \-- mywavfile.wav

// Precache and play a mp3-File:
// Precache:
// precache_generic("mp3-Path")
// Example:
// precache_generic("mp3/mympegfile.mp3")
// Play example:
// play_any_sound("mp3/mympegfile.mp3")

// Precache and play a wav-File:
// Precache:
// precache_sound("wav-Path")
// Example:
// precache_sound("misc/mywavfile.wav")
// Play example:
// play_any_sound("misc/mywavfile")
// !!!!!! Attention, dont append the .wav-Ending here !!!!!!

// Make sure to have an equal number of sounds for T and CT.
// Make sure to adjust MAX_RAND before compile, if you changed the number of sounds.

#include <amxmodx>

#define MAX_RAND 5

public plugin_init()
{
register_plugin("RoundSound","1.1","PaintLanc er&Isobold")
register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin")
register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin")
}

public t_win()
{
new rand = random_num(0,MAX_RAND)

client_cmd(0,"stopsound")

switch(rand)
{
case 0: play_any_sound("misc/tterro1")
case 1: play_any_sound("misc/tterro2")
case 2: play_any_sound("misc/tterro3")
case 3: play_any_sound("misc/tterro4")
case 4: play_any_sound("misc/tterro5")
case 5: play_any_sound("misc/tterro6")
}

return PLUGIN_HANDLED
}

public ct_win()
{
new rand = random_num(0,5)

client_cmd(0,"stopsound")

switch(rand)
{
case 0: play_any_sound("misc/cete1.mp3")
case 1: play_any_sound("misc/cete2.mp3")
case 2: play_any_sound("misc/cete3.mp3")
case 3: play_any_sound("misc/cete4.mp3")
case 4: play_any_sound("misc/cete5.mp3")
case 5: play_any_sound("misc/cete6.mp3")
}

return PLUGIN_HANDLED
}

public play_any_sound(sound[])
{
new is_mpeg = ( containi(sound, ".mp") != -1 )
if ( is_mpeg )
client_cmd(0, "mp3 play ^"%s^"", sound)
else
client_cmd(0, "spk ^"%s^"", sound)
}

public plugin_precache()
{
precache_sound("misc/cete1.mp3")
precache_sound("misc/cete2.mp3")
precache_sound("misc/cete3.mp3")
precache_sound("misc/cete4.mp3")
precache_sound("misc/cete5.mp3")
precache_sound("misc/cete6.mp3")
precache_sound("misc/tterro1.mp3")
precache_sound("misc/tterro2.mp3")
precache_sound("misc/tterro3.mp3")
precache_sound("misc/tterro4.mp3")
precache_sound("misc/tterro5.mp3")
precache_sound("misc/tterro6.mp3")

return PLUGIN_CONTINUE
}
PanGrubyJeff is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-30-2008 , 08:15   Re: End Round Sounds
Reply With Quote #113

Don't you want to use this one :
http://forums.alliedmods.net/showthread.php?p=499872
?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
PanGrubyJeff
New Member
Join Date: Mar 2008
Old 03-30-2008 , 09:46   Re: End Round Sounds
Reply With Quote #114

Doesn`t work for me too
PanGrubyJeff is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-30-2008 , 12:51   Re: End Round Sounds
Reply With Quote #115

My plugin ( Alternative end round sounds ) works fine, PanGrubyJeff. But since you don't provide any useful informations, nobody can help you.
__________________
Arkshine is offline
spiderbites
Senior Member
Join Date: Nov 2007
Old 04-01-2008 , 01:38   Re: End Round Sounds
Reply With Quote #116

@connorr

"Alternative end round sounds" plays sound at the end of round in addition to sound "terrorist/counter terrorist win"

but this "End Round Sound" replaces those "terrorist/counter terrorist win" sound with one you specify.
spiderbites is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-01-2008 , 01:56   Re: End Round Sounds
Reply With Quote #117

Quote:
but this "End Round Sound" replaces those "terrorist/counter terrorist win" sound with one you specify.
It doesn't replace at all. It plays the command 'stopsound' before playing the sound. I don't like that. It will stop all current sounds playing.

In the next release of my plugin, you are able to replace really the original sounds without using such command.
__________________

Last edited by Arkshine; 04-01-2008 at 02:03.
Arkshine is offline
spiderbites
Senior Member
Join Date: Nov 2007
Old 04-01-2008 , 01:59   Re: End Round Sounds
Reply With Quote #118

Quote:
Originally Posted by arkshine View Post
You're wrong. This plugin does the same thing than my plugin. In the next release, such of feature is already integrated and more.
didnt you say that feature will be done in next release? so that means in current version, it doesnt yet replace cs default end round sounds
spiderbites is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-01-2008 , 02:05   Re: End Round Sounds
Reply With Quote #119

Quote:
didnt you say that feature will be done in next release? so that means in current version, it doesnt yet replace cs default end round sounds
I've edited my message before your answer.
__________________
Arkshine is offline
matanm123
New Member
Join Date: Apr 2008
Old 04-03-2008 , 17:29   Re: End Round Sounds
Reply With Quote #120

After a lot, and i mean a LOT of searches, i've managed to get one of the song names:

Punjabi Mc - Mundian To Bach Ke

But what's the name of the other one?
(btw sorry for my bad english)

Last edited by matanm123; 04-03-2008 at 17:53.
matanm123 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 16:18.


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