Raised This Month: $ Target: $400
 0% 

sound emiting


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
3Di
Member
Join Date: Sep 2009
Location: #php_title
Old 10-03-2009 , 15:53   Re: sound emiting
Reply With Quote #5

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fakemeta>
#include <engine>

#define VERSION    "0.1"

new SoundsHere][ ] = 
{
    
"sound/soundhere1.wav""sound/soundhere2.wav""sound/soundhere3.wav"
}

public 
plugin_init( )
{
    
register_plugin"Footsteps Example"VERSION"3Di" );
    
    
register_forwardFM_PlayerPreThink"PlayerThink");
}

public 
plugin_precache( )
{
    
precache_sound"sound/soundhere1.wav" );
    
precache_sound"sound/soundhere2.wav" );
    
precache_sound"sound/soundhere3.wav" );
}

public 
PlayerThinkid )
{
    if( !
is_user_aliveid ) )
        return 
PLUGIN_HANDLED;
    
    new 
CsTeams:CheckTeam cs_get_user_teamid );
    
    new 
ButtonId get_user_buttonid );
    
    if( ( 
ButtonId IN_FORWARD ) || ( ButtonId IN_BACK ) || ( ButtonId IN_MOVELEFT ) || ( ButtonId IN_MOVERIGHT ) )
    {
        switch( 
CheckTeam )
        {
            case 
CS_TEAM_T:
            {
                
emit_soundidCHAN_ITEMSoundsHererandom_num0) ], 1.0ATTN_NORM0PITCH_HIGH );
            }
        }
    }
    
    return 
PLUGIN_CONTINUE;


Last edited by 3Di; 10-03-2009 at 15:56.
3Di 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 22:33.


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