General > Developers Corner

Scoreboard | Display Points code line

(1/2) > >>

howzy:
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.

roastchicken:
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?

monkeymacman:
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.

Im Howzy:
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

roastchicken:
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.

Navigation

[0] Message Index

[#] Next page

Go to full version