ULX

Author Topic: Scoreboard | Display Points code line  (Read 2498 times)

0 Members and 4 Guests are viewing this topic.

Offline howzy

  • Newbie
  • *
  • Posts: 6
  • Karma: -1
Scoreboard | Display Points code line
« on: January 22, 2016, 04:53:27 AM »
Coins On Scoreboard - Example
So on the left of the options there is 'Coins' I was wondering if anyone had the code for this.

draw.SimpleText("Lahids: "..#game.PointshopLahids(), "_sb_title1", 105, 45, Color(255,255,255,255), 0, 2)
(previously had = draw.SimpleText("Lahids: "..#lahids.GetAll(), "_sb_title1", 105, 45, Color(255,255,255,255), 0, 2)
This is what I have, but I dont know if it will work.


draw.SimpleText("Total players: "..#player.GetAll().." / "..game.MaxPlayers(), "_sb_title1", 105, 25, Color(255,255,255,255), 0, 2)
This is the code above which I was trying to copy but modify to show my 'Lahids' (pointshop points renamed) but cant get the code.
« Last Edit: January 22, 2016, 06:28:06 AM by howzy »

Offline roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: Scoreboard | Display Points code line
« Reply #1 on: January 22, 2016, 11:30:36 AM »
Maybe I'm alone in this, but I have no idea what you want.

"I don't know if it will work"
Then why don't you test it?
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.

Offline monkeymacman

  • Newbie
  • *
  • Posts: 44
  • Karma: 13
Re: Scoreboard | Display Points code line
« Reply #2 on: January 22, 2016, 03:17:47 PM »
Look at the TTT hook documentation.. There is a hook that is made specifically for making your own columns so you don't have to do any special code (assuming that's TTT) and it shows exactly how to do it, it's really easy.

Offline Im Howzy

  • Newbie
  • *
  • Posts: 3
  • Karma: 1
Re: Scoreboard | Display Points code line
« Reply #3 on: January 22, 2016, 06:50:01 PM »
It's a code to show player pointshop points, I wanted to know the code for this. The Link I posted was to show an example of what it does. On the left at the top it says "coins" and below in a row it says the layer pointshop points.

I have tried to code and it does not work

Offline roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: Scoreboard | Display Points code line
« Reply #4 on: January 22, 2016, 10:11:40 PM »
Could you give us more details about how it doesn't work? Are there any errors in console? Describe what happens, and what you want to happen.
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.

Offline howzy

  • Newbie
  • *
  • Posts: 6
  • Karma: -1
Re: Scoreboard | Display Points code line
« Reply #5 on: January 24, 2016, 02:21:26 AM »
Could you give us more details about how it doesn't work? Are there any errors in console? Describe what happens, and what you want to happen.
There is an error in console saying cant find "lahids" or something.

All I want it to do is, instead of going into pointshop and pressing the bind for it, you can hold tab for a second to check your points there. No one else can see it but you.

That image was not mine, I got it off a website as an example of what sort of thing I want. But only I can see MY coins.

Offline monkeymacman

  • Newbie
  • *
  • Posts: 44
  • Karma: 13
Re: Scoreboard | Display Points code line
« Reply #6 on: January 24, 2016, 06:02:09 AM »
Oh wait... This is deathrun? I just saw the facepunch thread... also it's in the wrong section of facepunch but that's aside the point. Which version of deathrun are you using, and are you using the default scoreboard for it?