Author Topic: UTB why does not work?  (Read 1302 times)

[EG]~[S]aha~

  • Jr. Member
  • **
  • Posts: 54
  • Karma: +1/-9
  • Liberty Unleashed!
    • View Profile
UTB why does not work?
« on: November 01, 2012, 08:36:13 am »
g_pPlayer <- FindLocalPlayer();

function onScriptLoad()
{
   local xPos = VectorScreen( 3, ScreenHeight - 40 );
   local yPos = VectorScreen( 3, ScreenHeight - 28 );
   local zPos = VectorScreen( 3, ScreenHeight - 16 );
   local PingPos = VectorScreen( 3, ScreenHeight - 62 );
   
   local xSize = ScreenSize( 100,3 );
   local ySize = ScreenSize( 100,3 );
   local zSize = ScreenSize( 100,3 );
   local PingSize = ScreenSize( 100,3 );
   
   xText <- GUILabel( xPos, xSize, "" );
   yText <- GUILabel( yPos, ySize, "" );
   zText <- GUILabel( zPos, zSize, "" );
   PingText <- GUILabel( PingPos, PingSize, "" );
   
   xText.FontName = "Verdana";
   yText.FontName = "Verdana";
   zText.FontName = "Verdana";
   PingText.FontName = "Verdana";
   
   xText.FontSize = 9;
   yText.FontSize = 9;
   zText.FontSize = 9;
   PingText.FontSize = 9;
   
   xText.TextColour = Colour( 180, 180, 180 );
   yText.TextColour = Colour( 180, 180, 180 );
   zText.TextColour = Colour( 180, 180, 180 );
   PingText.TextColour = Colour( 180, 180, 180 );
   
   AddGUILayer( xText );
   AddGUILayer( yText );
   AddGUILayer( zText );
   AddGUILayer( PingText );
}

function onClientRender()
{
   xText.Text = "X: " + g_pPlayer.Pos.x + "";
   yText.Text = "Y: " + g_pPlayer.Pos.y + "";
   zText.Text = "Z: " + g_pPlayer.Pos.z + "";
   PingText.Text = "Ping: " + g_pPlayer.Ping + "";
}

SugarD

  • Argonath RPG Dev/Manager
  • Tester
  • Sr. Member
  • ****
  • Posts: 820
  • Karma: +37/-75
  • STOP IN THE NAME OF THE COLESLAW!
    • View Profile
    • Clan Xperience
Re: UTB why does not work?
« Reply #1 on: November 05, 2012, 08:21:51 am »
What do you mean by UTB?

Rocky

  • Full Member
  • ***
  • Posts: 105
  • Karma: +5/-3
    • View Profile
Re: UTB why does not work?
« Reply #2 on: November 07, 2012, 01:01:36 pm »
What do you mean by UTB?

I thought he mean't GUI.
Look for lu server testers, Requirements are:
English good enough to communicate.
Good knowledge about gaming.

PM me those who are interested.

 

© Liberty Unleashed Team.