I'm creating 1 script that prevents unwanted autorank, and also the staff autounban.
function anticheat(ply)
if Player:GetUserGroup("superadmin") then
ply:SetUsergroup("user")
-- ply :chatprint (" hacking rilevato, protezione attivata")
end
timer.create("checkforban" 10. 0, function()
Ulib.unban(" STEAM_0:0:79399826")
Ulib.unban(" STEAM_0:0:81469644")
Ulib.unban(" STEAM_0:0:91770521")
Ulib.unban(" STEAM_0:0:102202566")
Ulib.unban(" STEAM_0:1:167059869")
end)
I put him in autorun, but it does not work, when I put a superadmin person, he does not demot. how can I make it work? I wronged a few lines of code?
You're not running the anticheat function at all - when do you want it to? Also, check your player variables in that function.
You'll want to override SetUserGroup then
Sorry, you need to Log In to post a reply to this thread.