Raised This Month: $ Target: $400
 0% 

[RoundSound] Custom Sounds


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mrs0nz
New Member
Join Date: Nov 2011
Old 05-04-2012 , 09:11   [RoundSound] Custom Sounds
Reply With Quote #1

Hello was trying to make Custom RoundSounds with ERS (End Round Sounds) http://forums.alliedmods.net/showthread.php?t=6784 The Plugin Works Fine, But i can't hear the music in-Game... Im willing to Pay a Amount If Somebody Helping/Coding For me. That Would be Great

Email me, If you able to help me.. ([email protected])

PHP Code:
#include <amxmodx>
public plugin_init() 

register_plugin("RoundSound","1.0","PaintLancer")
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,2)
client_cmd(0,"stopsound")
switch(
rand)
{
case 
0client_cmd(0,"spk sdgaming/01_05_2012/ct0")
case 
1client_cmd(0,"spk sdgaming/01_05_2012/ct1")
case 
2client_cmd(0,"spk sdgaming/01_05_2012/ct2")
case 
3client_cmd(0,"spk sdgaming/01_05_2012/ct3")
case 
4client_cmd(0,"spk sdgaming/01_05_2012/ct4")
case 
5client_cmd(0,"spk sdgaming/01_05_2012/ct5")
case 
6client_cmd(0,"spk sdgaming/01_05_2012/ct6")
}
return 
PLUGIN_CONTINUE
}
public 
ct_win()
{
new 
rand random_num(0,2)
client_cmd(0,"stopsound")
switch(
rand)
{
case 
0client_cmd(0,"spk sdgaming/01_05_2012/te0")
case 
1client_cmd(0,"spk sdgaming/01_05_2012/te1")
case 
2client_cmd(0,"spk sdgaming/01_05_2012/te2")
case 
3client_cmd(0,"spk sdgaming/01_05_2012/te3")
case 
4client_cmd(0,"spk sdgaming/01_05_2012/te4")
case 
5client_cmd(0,"spk sdgaming/01_05_2012/te5")
case 
6client_cmd(0,"spk sdgaming/01_05_2012/te6")
}
 
return 
PLUGIN_CONTINUE
}
public 
plugin_precache() 
{
precache_sound("sdgaming/01_05_2012/ct0.wav")
precache_sound("sdgaming/01_05_2012/ct1.wav")
precache_sound("sdgaming/01_05_2012/ct2.wav")
precache_sound("sdgaming/01_05_2012/ct3.wav")
precache_sound("sdgaming/01_05_2012/ct4.wav")
precache_sound("sdgaming/01_05_2012/ct5.wav")
precache_sound("sdgaming/01_05_2012/ct6.wav")
precache_sound("sdgaming/01_05_2012/te0.wav")
precache_sound("sdgaming/01_05_2012/te1.wav")
precache_sound("sdgaming/01_05_2012/te2.wav")
precache_sound("sdgaming/01_05_2012/te3.wav")
precache_sound("sdgaming/01_05_2012/te4.wav")
precache_sound("sdgaming/01_05_2012/te5.wav")
precache_sound("sdgaming/01_05_2012/te6.wav")
return 
PLUGIN_CONTINUE

Attached Files
File Type: sma Get Plugin or Get Source (roundsounds.sma - 434 views - 2.0 KB)

Last edited by Mrs0nz; 05-04-2012 at 10:37. Reason: sd
Mrs0nz is offline
 



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 00:26.


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