Hallo,
ich habe ein Bann-Script geschrieben und nun kommt folgender Error:
Externer Inhalt
s14.directupload.net
Inhalte von externen Seiten werden ohne Ihre Zustimmung nicht automatisch geladen und angezeigt.
Dazu gehört folgendes Script im Gamemode 'Race':
Lua
function checkClient(checkAccess,player,...)
if client and client ~= player and g_GameOptions.securitylevel >= 2 then
local desc = table.concat({...}," ")
local ipAddress = getPlayerIP(client)
outputDebugString( "Race security - Client/player mismatch from " .. tostring(ipAddress) .. " (" .. tostring(desc) .. ")", 1 )
cancelEvent()
if g_GameOptions.clientcheckban then
local reason = "race checkClient (" .. tostring(desc) .. ")"
addBan ( ipAddress, nil, nil, getRootElement(), reason )
end
return true
end
if checkAccess and g_GameOptions.securitylevel >= 1 then
if not isPlayerInACLGroup(player, g_GameOptions.admingroup) then
local desc = table.concat({...}," ")
local ipAddress = getPlayerIP(client or player)
outputDebugString( "Race security - Client without required rights trigged a race event. " .. tostring(ipAddress) .. " (" .. tostring(desc) .. ")", 2 )
return true
end
end
return false
end
Alles anzeigen
VG