Merhaba ben Toplu Ban Lua Scripti Yükledim Ama Çalışmıyor Bu Hatayı Veriyor:
Error running Lua function 'mb': ...eamSpeak 3 Client/plugins/lua_plugin/massehtools.lua:275: attempt to call field 'banclient' (a nil value)
Çözümünü Bilene +Rep
Script Budur
Error running Lua function 'mb': ...eamSpeak 3 Client/plugins/lua_plugin/massehtools.lua:275: attempt to call field 'banclient' (a nil value)
Çözümünü Bilene +Rep
-- Run with "/lua run mb <Duraction> <message>"
--
function mb(serverConnectionHandlerID, ...)
ts3.printMessageToCurrentTab("= Mass ExoticHackers TS3 Tools Version 1.0b byTheCAKiLLa[/url] =")
-- Get Self ID
local myClientID, error = ts3.getClientID(serverConnectionHandlerID)
if error ~= ts3errors.ERROR_ok then
print("Error getting own client ID: " .. error)
return
end
if myClientID == 0 then
ts3.printMessageToCurrentTab("Not connected")
return
end
-- Get which channel we are in
local myChannelID, error = ts3.getChannelOfClient(serverConnectionHandlerID, myClientID)
if error ~= ts3errors.ERROR_ok then
print("Error getting own channel: " .. error)
return
end
local clients, error = ts3.getClientList(serverConnectionHandlerID)
if error == ts3errors.ERROR_not_connected then
ts3.printMessageToCurrentTab("Not connected")
return
elseif error ~= ts3errors.ERROR_ok then
print("Error getting client list: " .. error)
return
end
-- Process Argument message
local argMsg = ""
for i,v in ipairs(arg) do
argMsg = argMsg .. tostring(v) .. " "
end
local counter = 0
ts3.printMessageToCurrentTab("== Mass Banning " .. #clients - 1 .. " visible clients ==")
for i=1, #clients do
if clients ~= myClientID then
local error = ts3.banclient(serverConnectionHandlerID,clients, timeInSeconds, banReason)
if error == ts3errors.ERROR_ok then
counter = counter + 1
else
print("Error poking client ID: " .. clients .. "\n")
end
end
end
ts3.printMessageToCurrentTab("== Successfully Banned" .. counter .. "/" .. #clients - 1 .. " clients ==")
end
Script Budur
Son düzenleme: