Author Topic: Connect to a server UI Script  (Read 4702 times)

Lonly

  • Posts: 231
  • Turrets: +9/-39
    • Host-Man
Connect to a server UI Script
« on: February 07, 2009, 02:02:22 pm »
I am working on my Mod's Hud and I added new features but I want to make a text connect to a server. Like /connect but in UI script form.

This is what I got.

Code: [Select]
    itemDef
    {
      name mainmenu
      text "Update"
      type ITEM_TYPE_BUTTON
      style WINDOW_STYLE_EMPTY
      textstyle ITEM_TEXTSTYLE_NORMAL
      rect X (Y+ELEM_H) W ELEM_H
      textalign ALIGN_CENTER
      textscale .416
      forecolor 1 1 1 1
      visible MENU_TRUE
      action
      {
        play "sound/misc/menu1.wav";
(Here I need the UI Script to connect to 67.163.190.79:32123)
      }
    }

So that every time you click Update (Since the server is up 24/7) you connect to the Mod's host server. I tried nearly everything that came to mind. I searched but I didn't find anything. Can I get the UI Script Action.

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Connect to a server UI Script
« Reply #1 on: February 07, 2009, 04:39:49 pm »
connect 67.163.190.79:32123?
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

Lonly

  • Posts: 231
  • Turrets: +9/-39
    • Host-Man
Re: Connect to a server UI Script
« Reply #2 on: February 07, 2009, 06:21:59 pm »
connect 67.163.190.79:32123?

Tried it it says the following:::

Code: [Select]
unknown UI script 67.163.190.79
unknown UI script 32123

remember

  • Posts: 10
  • Turrets: +1/-0
Re: Connect to a server UI Script
« Reply #3 on: February 07, 2009, 06:49:04 pm »
Try this :
Code: [Select]
exec "connect 67.163.190.79:32123"

Lonly

  • Posts: 231
  • Turrets: +9/-39
    • Host-Man
Re: Connect to a server UI Script
« Reply #4 on: February 07, 2009, 07:02:52 pm »
Try this :
Code: [Select]
exec "connect 67.163.190.79:32123"

THANKS SO MUCH!