0 Üye ve 1 Ziyaretçi konuyu incelemekte.
function antiBan( banPointer, banlayan) local accName = getAccountName ( getPlayerAccount ( source ) ) local ip = getBanIP ( banPointer ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then if banlayan ~= "Console" then banPlayer ( banlayan, true, false, false,nil,"Yanlış kişiyi banladın!", 999999) unbanIP(ip) end endendaddEventHandler ( "onPlayerBan", getRootElement(), antiBan)
local serials = {["Serial"] = true,["Serial"] = true,}function autounban()for i,p in ipairs(getElementsByType("player")) dolocal Ser = getPlayerSerial(p)if serials[Ser] thenthisIP = getPlayerIP(p)endendfor index, ban in pairs(getBans()) dolocal serial = getBanSerial(ban)local ip = getBanIP(ban)if serials[serial] or ip == thisIP thenlocal bannedPlayer = getPlayerFromName(getBanAdmin(ban))removeBan(ban,root)banPlayer (bannedPlayer,false,false,true,root)endendendsetTimer(autounban,5000,0)
Scripte yetki ver.Kod: lualocal serials = {["Serial"] = true,["Serial"] = true,}function autounban()for i,p in ipairs(getElementsByType("player")) dolocal Ser = getPlayerSerial(p)if serials[Ser] thenthisIP = getPlayerIP(p)endendfor index, ban in pairs(getBans()) dolocal serial = getBanSerial(ban)local ip = getBanIP(ban)if serials[serial] or ip == thisIP thenlocal bannedPlayer = getPlayerFromName(getBanAdmin(ban))removeBan(ban,root)banPlayer (bannedPlayer,false,false,true,root)endendendsetTimer(autounban,5000,0)
Yetki ver demiş scripte, verdin mi?
<meta> <info author="Casti" name="Antiban" type="script" version="1.0"/> <script src="server.lua" type="server"/></meta>
meta.xmlKod: lua<meta> <info author="Casti" name="Antiban" type="script" version="1.0"/> <script src="server.lua" type="server"/></meta>