General > Developers Corner
Hide players from TTT Scoreboard
iViscosity:
I've been looking through the TTT hooks page but I can't find anything there that could help me with this. This is just a small idea I had to be able to hide certain players or ULib groups from the scoreboard, in-case someone wanted to keep an eye on something without it being obvious that they're there. Just wondering if anyone knows how to do that or has done it themself.
MrPresident:
You'll have to modify the scoreboard file. Find where it does the player loop and then set a conditional to skip any players (groups) you wish.
iViscosity:
--- Quote from: MrPresident on September 04, 2017, 04:17:51 PM ---You'll have to modify the scoreboard file. Find where it does the player loop and then set a conditional to skip any players (groups) you wish.
--- End quote ---
That's what I thought it was going to have to come to but I wanted a cleaner way to do it with an add-on. Oh well, I guess.
Sent from my XT1710-02 using Tapatalk
JamminR:
--- Quote ---TTTScoreboardColorForPlayer (ply)
Client
Called to determine what colour a player's name should be on the scoreboard. Hence, it must return a Color object, or return nil (or nothing at all). The "ply" parameter contains a player object, so you can for example check the player's SteamID and give certain people a special colour. Note that TTT also uses this hook for the default colours, so you should return nil for players that you do not want to do anything special with.
--- End quote ---
Have you tested trying to set the color of the player the exact same as the background?
I doubt it would work well, but might be something to try.
iViscosity:
I did think about that, but I thought it would just leave a blank space in the middle with other values in the board still.
Sent from my XT1710-02 using Tapatalk
Navigation
[0] Message Index
[#] Next page
Go to full version