[IMG]http://gyazo.com/0d96be47a67c6ed12731bfda97082450.png[/IMG]
Is there anyway to stop the message from shifting up and being covered?
Nope.
Make smaller messages.
[QUOTE=Wizard of Ass;36030589]Nope.
Make smaller messages.[/QUOTE]
[url]http://www.facepunch.com/threads/695636[/url]
gatekeeper is good for removing the "Kicked by Console : {reason}"
but for making smaller messages i can only suggest printing the reason to their console but setting the actual disconnect message to something like "Check your console!"
I used the combination of what G4MB!T did and what Tyler is suggesting. Here's what I did.
[lua]
--server
SendUserMessage( "SendBanInfo", ply, server, length, left, reason, admin )
timer.Simple( 1, function()
gatekeeper.Drop(ply:UserID(), "Banned for " .. tostring( left ) .. " minutes! More info in console" )
end )
end
--client
usermessage.Hook( "SendBanInfo", function( um )
local server, length, left, reason, admin = um:ReadString(), um:ReadLong(), um:ReadLong(), um:ReadString(), um:ReadString()
if length == 0 then length, left = "Permanent", "Never" else length, left = tostring( length ), tostring( left ) end
chat.AddText( evolve.colors.red,
[[----------------------------------------------------------
Appeal your ban at: ]], evolve.colors.blue, "", evolve.colors.red, [[
Server: ]], evolve.colors.blue, server, evolve.colors.red, [[
Length: ]], evolve.colors.blue, tostring( length ), evolve.colors.red, [[
Time Left: ]], evolve.colors.blue, tostring( left ), evolve.colors.red, [[
Reason: ]], evolve.colors.blue, reason, evolve.colors.red, [[
Admin who banned you: ]], evolve.colors.blue, admin, evolve.colors.red, [[
----------------------------------------------------------]] )
[/lua]
[QUOTE=InfernalCookie;36045940]I used the combination of what G4MB!T did and what Tyler is suggesting.[/QUOTE]
its funny cos my name is actually Tyler XD
[QUOTE=G4MB!T;36045792]gatekeeper is good for removing the "Kicked by Console : {reason}"
but for making smaller messages i can only suggest printing the reason to their console but setting the actual disconnect message to something like "Check your console!"[/QUOTE]
Thanks for the advice thats exactly what i did, but i just looked back at this post xD
[QUOTE=InfernalCookie;36045940]I used the combination of what G4MB!T did and what Tyler is suggesting. Here's what I did.
--serverSendUserMessage( "SendBanInfo", ply, server, length, left, reason, admin ) timer.Simple( 1, function() gatekeeper.Drop(ply:UserID(), "Banned for " .. tostring( left ) .. " minutes! More info in console" ) end )end--clientusermessage.Hook( "SendBanInfo", function( um ) local server, length, left, reason, admin = um:ReadString(), um:ReadLong(), um:ReadLong(), um:ReadString(), um:ReadString() if length == 0 then length, left = "Permanent", "Never" else length, left = tostring( length ), tostring( left ) end chat.AddText( evolve.colors.red,[[----------------------------------------------------------Appeal your ban at: ]], evolve.colors.blue, "", evolve.colors.red, [[ Server: ]], evolve.colors.blue, server, evolve.colors.red, [[ Length: ]], evolve.colors.blue, tostring( length ), evolve.colors.red, [[Time Left: ]], evolve.colors.blue, tostring( left ), evolve.colors.red, [[Reason: ]], evolve.colors.blue, reason, evolve.colors.red, [[Admin who banned you: ]], evolve.colors.blue, admin, evolve.colors.red, [[ ----------------------------------------------------------]] )[/QUOTE]
Thanks for the example but i already finished it before i checked back xD
[LUA]require("gatekeeper")
AllowedPlayers = {
'STEAM_0:0:33029261'
}
local function PasswordCheck(name, pass, steam, ip)
print(Format("User: '%s' Pass: '%s' SteamID: '%s'", name, pass, steam))
if table.HasValue(AllowedPlayers, steam) then Msg("Access Granted\n") return true
else return {false, "You do not have permission to join this server.\nTo gain permission to enter the server contact Jeff\nhttp://steamcommunity.com/id/unknown_bio"}
end
end
hook.Add("PlayerPasswordAuth", "test", PasswordCheck)[/LUA]
I just use a table to allow certain players in :p
Sorry, you need to Log In to post a reply to this thread.