Raised This Month: $ Target: $400
 0% 

sound emiting


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
3Di
Member
Join Date: Sep 2009
Location: #php_title
Old 10-03-2009 , 15:30   Re: sound emiting
Reply With Quote #1

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

#define VERSION    "0.1"

new const SoundHere[ ] = "sound/soundhere.wav";

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

public 
plugin_precache( )
{
    
precache_soundSoundHere );
}

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_ITEMSoundHere1.0ATTN_NORM0PITCH_HIGH );
            }
        }
    }
    
    return 
PLUGIN_CONTINUE;

3Di 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 05:57.


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