Raised This Month: $51 Target: $400
 12% 

Playing Sound to All Clients


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SamuraiBarbi
Senior Member
Join Date: Aug 2006
Location: United States
Old 09-19-2007 , 05:22   Playing Sound to All Clients
Reply With Quote #1

Hey guys, been wondering how can I play a sound to all clients ( clearly, as if they have played it themselves using the play command ) without going through this bs?

Code:
    new playersconnected;
    playersconnected = GetMaxClients();
    for (new i = 1; i <= playersconnected; i++)
    {
        if(IsClientInGame(i))
        {    
            ClientCommand(i,"play km/goodbye.wav");
        }
    }
SamuraiBarbi is offline
Send a message via AIM to SamuraiBarbi Send a message via MSN to SamuraiBarbi Send a message via Yahoo to SamuraiBarbi
 



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 02:09.


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