Raised This Month: $ Target: $400
 0% 

round start sound


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Closer456
Member
Join Date: May 2013
Old 06-08-2013 , 23:35   round start sound
Reply With Quote #1

How do you change the "Go Go Go" , "Alright let's move out" and so on.. sound at round start?

heres my attemp and it does not work
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx> 
#include <amxmisc>
#include <cstrike>
#include <engine>
#include <csx>
#include <fakemeta>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

new const round_play[][] = {
    
"player/new/startgo.wav",
    
"player/new/startmove.wav",
    
"player/new/startlock.wav"
}

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_forward(FM_EmitSound"startround")
    
// Add your code here...
}
public 
plugin_precache() {

    for(new 
ii<3i++)
    {
    
precache_soundround_play[i] )
    }
}
public 
startround(idchannel, const sound[], Float:volumeFloat:attenuationflagspitch)  
{  

    if(!
is_user_connected(id))
    return 
FMRES_IGNORED;  
        
//Checks if the user is connected 

    
if(containi(sound"com_go") != -|| containi(sound"moveout") != -|| containi(sound"locknload") != -1  || containi(sound"go") != -|| containi(sound"letsgo") != -1
    {  
        
// Here it will play your sound and block the old one
    
engfunc(EngFunc_EmitSoundidchannelround_play[random_num(0sizeof round_play 1)], 1.00.92flagspitch);  
          
    return 
FMRES_SUPERCEDE;  
    }  
      
    return 
FMRES_IGNORED;  


Last edited by Closer456; 06-09-2013 at 00:54.
Closer456 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 16:19.


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