How to add line connect/joining player's on the TTT scoreboard?
5 replies, posted
How to add line connect/joining player's on the TTT scoreboard? please help me
You'd use GM/PlayerConnect to send a message to your scoreboard and then GM/PlayerInitialSpawn to update once in the game.
You forgot about if a player gives up connecting
This will register if the player disconnects while connecting or ingame disconnect.
gameevent.Listen( "player_disconnect" )
hook.Add( "player_disconnect", "player_disconnect_example", function( data )
local name = data.name // Same as Player:Nick()
local steamid = data.networkid // Same as Player:SteamID()
local id = data.userid // Same as Player:UserID()
local bot = data.bot // Same as Player:IsBot()
local reason = data.reason // Text reason for disconnected such as "Kicked by console!", "Timed out!", etc...
// Player has disconnected - this is more reliable than PlayerDisconnect
end )
More info at gameevent.Listen
I do not particularly understand lua and coding, could you write me a ready lua who will do it?
no.
you're the server owner. run your server.
I spoonfed you enough. However, 〈CODE BLUE〉has great lua tutorials on youtube!
If you run a server i highly suggest you to learn atleast the basics of lua. Trust me, It's really usefull.
Sorry, you need to Log In to post a reply to this thread.