AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Sound by steamip (https://forums.alliedmods.net/showthread.php?t=153278)

FlyingHorse 03-21-2011 06:45

Sound by steamip
 
Hello. i would like to know how i make a a sound play for example "Player has connected" If i configured that sound for Player's steamid. Or if i connect it will say flyinghorse has connected and blabla.. i already have the sounds.. just need to know how

nnajko 03-21-2011 09:07

Re: Sound by steamip
 
You mean something like this?
PHP Code:

public client_putinserver(id)
{
        new 
szAuth[35];
        
get_user_authid(idszAuthcharsmax(szAuth));
    
        if( 
equal(szAuth"-Your Steam ID-") )
        {
            
client_print(0print_chat"FlyingHorse has connected!");
        }
        else
        {
            new 
szName[32];
            
get_user_name(idszNamecharsmax(szName));
        
            
client_print(0print_chat"%s has connected!");
        }



FlyingHorse 03-21-2011 19:09

Re: Sound by steamip
 
ill try add sounds to that, and try it, thanks, ill come with a response when i did


All times are GMT -4. The time now is 14:31.

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