forked from TeamUlysses/ulx
add support for line breaks and server uptime in welcome message
more specifically: %n% and %uptime%
This commit is contained in:
parent
4fd0013c4d
commit
3ba3c8ce0e
@ -311,6 +311,8 @@ local function showWelcome( ply )
|
||||
message = string.gsub( message, "%%curmap%%", game.GetMap() )
|
||||
message = string.gsub( message, "%%host%%", GetConVarString( "hostname" ) )
|
||||
message = string.gsub( message, "%%ulx_version%%", ULib.pluginVersionStr( "ULX" ) )
|
||||
message = string.gsub( message, "%%n%%", "\n" )
|
||||
message = string.gsub( message, "%%uptime%%", string.FormattedTime(SysTime(), "%02iH %02iM") )
|
||||
|
||||
ply:ChatPrint( message ) -- We're not using tsay because ULib might not be loaded yet. (client side)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user