Purple Posted March 8, 2015 Share Posted March 8, 2015 We all know there are always going to be some sort of exploit in ET always has always will so for me and my server what i've gone ahead and done just to prevent any way shape or form of guid spoofing mainly is a simple lua file that just whitelists your admin level. --[[ 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 hellreturn 1 Quote Link to comment Share on other sites More sharing options...
Management hellreturn Posted March 9, 2015 Management Share Posted March 9, 2015 http://mygamingtalk.com/forums/files/category/8-lua/ Thank you Quote Link to comment Share on other sites More sharing options...
Management gaoesa Posted March 9, 2015 Management Share Posted March 9, 2015 For silEnT mod, the mod built admin level protection (http://mygamingtalk.com/wiki/Silent_Mod_Server_Cvar#g_adminProtection) works both reliably and with less inconvenience than this. twt_thunder, Dragonji and hellreturn 3 Quote Link to comment Share on other sites More sharing options...
twt_thunder Posted March 9, 2015 Share Posted March 9, 2015 good idea, but for me its useless as I have dynamic ip and it changes.... Quote Link to comment Share on other sites More sharing options...
Management hellreturn Posted March 10, 2015 Management Share Posted March 10, 2015 Could be helpful to NQ users or any mod which needs protection. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.