ULX

Author Topic: Adding Utime to only show when someone holds Tab  (Read 1499 times)

0 Members and 2 Guests are viewing this topic.

Offline Shane648

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Adding Utime to only show when someone holds Tab
« on: January 23, 2013, 02:34:43 AM »
Would it be possible to make Utime only show when someone holds in tab/scorebaord ?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Adding Utime to only show when someone holds Tab
« Reply #1 on: January 23, 2013, 05:41:30 AM »
There are some scoreboards that integrate UTime, and the UTime GUI can be disabled by the client in the client settings (or you can force their default to be off).
Experiencing God's grace one day at a time.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Adding Utime to only show when someone holds Tab
« Reply #2 on: January 23, 2013, 07:42:31 AM »
add something like this to a clientside file...


Code: [Select]
function UTime_Show()

//UTime Code to Show UTime

end
hook.Add( "ScoreboardShow", "UTime_Show", UTime_Show )

function UTime_Hide()

//UTime Code to Hide UTime

end
hook.Add( "ScoreboardHide", "UTime_Hide", UTime_Hide )