ULX

Author Topic: Murder ULX Ranks on Scoreboard  (Read 2359 times)

0 Members and 1 Guest are viewing this topic.

Offline Shij?

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Murder ULX Ranks on Scoreboard
« on: January 21, 2015, 11:08:37 PM »
How do you put the ULX Groups that you made onto the Murder scoreboard?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Murder ULX Ranks on Scoreboard
« Reply #1 on: January 22, 2015, 03:15:00 PM »
There are several discussions here in the developers corner section of the forum regarding scoreboards, some of them even mentioning groups.
Try going to the main dev corner index page, and searching for the word "scoreboard".
Ive no idea if any are Murder specific, but any discussion of scoreboard would likely have similar GUI/derma code.

As i've mentioned in a few of the other scoreboard discussions, we have a nice command called "GetUserGroup" that would return the group the player is in.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Shij?

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Murder ULX Ranks on Scoreboard
« Reply #2 on: January 22, 2015, 08:33:01 PM »
I followed your advice and added "GetUserGroup" but the only problem is that it's not aligning in the center of the scoreboard.

Don't know if anyone knows how to fix this but, I'll try find a way to fix it.


Offline Avoid

  • Full Member
  • ***
  • Posts: 142
  • Karma: 42
Re: Murder ULX Ranks on Scoreboard
« Reply #3 on: January 23, 2015, 07:21:22 AM »
Hello,
thats because you are using the wrong x,y coordinates.

Code: [Select]
draw.DrawText(ply:GetUserGroup(), "ScoreboardPlayer", w/2, 9, color_black, 1)
Take a look at the wiki, hopefully this helps you a bit.
Avoid