Raised This Month: $ Target: $400
 0% 

play mp3


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 08-12-2009 , 09:01   play mp3
Reply With Quote #1

PHP Code:
public fwdThinkSpeedometeriEntity 
{
    static 
iFloat:vVelocity], Float:flSpeed;
    
    for( 
1<= gMaxplayersi++ ) 
    {
        if( !
gPlayerAlive[i] )
        continue;
        
        
pevipev_velocityvVelocity );
        
flSpeed vector_lengthvVelocity );
        
        
flSpeed flSpeed 3.5
    
    
        
if( flSpeed 999.0 )
            
cs_set_user_armori999CS_ARMOR_KEVLAR );
        else
            
cs_set_user_armorifloatroundflSpeed ), CS_ARMOR_KEVLAR );
        
        new 
gang 1
        flSpeed 
flSpeed xxx
        
if(flSpeed <= 100)
        {
            
            if(
flSpeed == 0)
            {
                
gang  1
            
}
        
        

            if(
is_user_alive(i))
            
set_user_health(i,gang)

        
        
        }
        if(
flSpeed >= xxxx && flSpeed <= xxxx)
        {
            
gang 2
            
if(is_user_alive(i))
            {

            
set_user_health(i,gang
            }
        }
        if(
raceStarted && flSpeed >= xxxx && flSpeed <= xxxx)
        {
            
gang 3
            
if(is_user_alive(i))
            {

                
set_user_health(i,gang
                
            }
            
client_cmd(i"mp3 play sound/gang3.mp3");
        }
        if(
raceStarted && flSpeed >= xxxxx && flSpeed <= xxxx)
        {
            
gang 4
            
if(is_user_alive(i))
            {
                
set_user_health(i,gang
                
            }
            
client_cmd(i"mp3 play sound/gang4.mp3");
        }
        if(
flSpeed >= xxxx && flSpeed <=xxxx)
        {
            
gang 5
            
if(is_user_alive(i))
            {
                
set_user_health(i,gang
            }
        }
        if(
flSpeed >= xxxx)
        {
            
gang 6
            
if(is_user_alive(i))
            {
                
set_user_health(i,gang
            }
        }
        new 
button pev(i,pev_button);
        if(
raceStarted && flSpeed >= && flSpeed <= 100 && button IN_FORWARD)
        {
            
client_cmd(i"mp3 play sound/GT2acceleration.mp3");
        }
      
    }
    
set_peviEntitypev_nextthinkget_gametime() + 0.1 );

any ideaS? i have loop by gang3.mp3 & gang4.mp3

or maybe any idea how to do that the mp3 played fully.imean its now so :
if is speed between 0 & 100 play gt2accerlation.mp3 but when speed is more then 100 & this should play gang3, my g2accerlation willbe stopped.
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-12-2009 , 11:28   Re: play mp3
Reply With Quote #2

Sorry, but what are your problems ?
__________________
Arkshine is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 08-12-2009 , 11:53   Re: play mp3
Reply With Quote #3

i have loops & my mp3 will not be played fully. i mean files 1 should be played & after this is finished the next file. i dont want to add an timer.
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
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 18:31.


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