Your Filebase for Games like Return to Castle Wolfenstein , Enemy Territory and more ...
--[[ Simple Lua protection by purple ]] function et_InitGame( levelTime, randomSeed, restart ) local SecName = "Simple Sec" et.RegisterModname(SecName) end function et_ClientConnect( clientNum, firstTime, isBot ) local clientIp = et.Info_ValueForKey( et.trap_GetUserinfo(clientNum), "ip" ) local banTime = "300y" -- change this to your ban duration local Reason = "Not Whitelisted." -- change this to your ban reason local adminLevel = "7" -- change this to your Admin level if et.G_shrubbot_level( clientNum ) == adminLevel and clientIp ~= "YOUR IP ADDRESS HERE" then -- put your ip address here. et.trap_SendConsoleCommand( et.EXEC_APPEND, "!ban ".. clientNum.." "..banTime.." "..Reason.." \n" ) --ban the user. end end
File size: 0 MB