Raised This Month: $ Target: $400
 0% 

Emit Sound with Timer


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Vit_amin
Senior Member
Join Date: Dec 2015
Location: Russian Federation
Old 01-16-2016 , 11:28   Emit Sound with Timer
Reply With Quote #1

Hello where is my mistake ?
PHP Code:
public Event_PlayerDamage(client)
{
    if (
cs_get_user_team(client) == CS_TEAM_T)
    {
        static 
b_StopSound[32] = false
        
if (!b_StopSound[client])
        {
            
b_StopSound[client] = true
            set_task
(0.5"Timer_SoundStopSpam", (clientb_StopSound[client]))
        }
    }
}

public 
Timer_SoundStopSpam(clientSoundOff[])
{
    if (
is_user_connected(client) && is_user_alive(client))
    {
        new 
sound_path[32]
        new 
sound_numb random_num(12)
        
formatex(sound_pathcharsmax(sound_path), "zombie/zo_pain%d.wav"sound_numb)
        
emit_sound(clientCHAN_VOICEsound_pathVOL_NORMATTN_NORM0PITCH_NORM)
        
SoundOff[client] = false
    
}

Vit_amin 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 09:23.


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