• Is it possible to change Kick reason?
    4 replies, posted
I don't mean Kick( " because you're a tard" ) I mean when it says Disconnected: Kicked by Console: because you're a tard Can I change it to say Admin: Reason InfernalCookie: because you're a tard
something like this?: [lua]function ccKick(ply, cmd, args) for k, v in pairs(player.GetAll()) do --loop through everyone if v:UserID() == tonumber(args[1]) then --convert the player's userid to a number since console commands pass strings local player = player.GetByID(tonumber(args[1])) --Find The Player player:Kick(ply:Nick()..": "..args[2]) --Kick them with your nickname(steam name) inserted end end end concommand.Add("INF_Kick", ccKick)[/lua]
Yeah but I'm pretty sure that will kick them like: Disconnected: Kicked by Console: Player: reason
You can use the gatekeeper module.
Thanks, that's perfect! :)
Sorry, you need to Log In to post a reply to this thread.