Results 1 to 10 of 22

Thread: Sound when the player connect and log in to server script.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private Wesleyw3zep's Avatar
    Join Date
    Feb 2016
    Posts
    38
    Thanks
    1
    Thanked 4 Times in 4 Posts
    Quote Originally Posted by thOuMta View Post
    PHP Code:
    Callback_PlayerConnect()
    {
         
    level notify("connected"self);
        
         if(!
    level.splitscreen)
              
    iprintln(&"MP_CONNECTED"self.name);

         
    self iprintlnbold("Welcome to X mod"); //put your message here
         
    wait(0.5);
         
    self playlocalsound("YOUR_WELCOME_SOUND"); //put your sound here

    I just remember this thing but i didnt tested it, so i dont know if is working


    Callback_PlayerConnect()
    {
    thread dummy();

    self.statusicon = "hud_status_connecting";
    self waittill("begin");
    self.statusicon = "";

    level notify("connected", self);

    if(!level.splitscreen)
    iprintln(&"MP_CONNECTED", self.name);

    self iprintlnbold("^3Welcome to unionsqd-gaming "); //put your message here
    self playlocalsound("us_welcome.mp3"); //put your sound here

    //PAM TEMP!
    self.pers["dvarenforcement"] = 1;

    //self setclientcvar("hud_enable", 1);
    Last edited by Wesleyw3zep; 11th December 2016 at 04:47. Reason: sorry my bad i hope i do it good this time ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •