Julek12
New Member
- Joined
- Feb 19, 2008
- Messages
- 160
- Reaction score
- 0
Witam,
Mam skrypt Creature: Anti Multi-Client - OpenTibia Fans
w anty_mc.lua mam
Skrypt działa ale w konsoli mam
TFS 0.3.2
Mam skrypt Creature: Anti Multi-Client - OpenTibia Fans
w anty_mc.lua mam
Code:
function onLogin(cid)
local list = {}
local ips = {}
local text = "MULTI-CLIENTING IS BLOCKED."
local players = getPlayersOnline()
for i, pid in ipairs(players) do
local ip = getPlayerIp(pid)
local tmp = table.find(ips, ip)
if(tmp ~= nil) then
if(table.countElements(list, ip) == 0) then
list[players[tmp]] = ip
end
list[pid] = ip
end
table.insert(ips, ip)
end
if(table.maxn(list) > 0) then
for pid, ip in pairs(list) do
doPlayerPopupFYI(cid, text)
doRemoveCreature(cid)
end
end
return TRUE
end
Code:
[23/03/2009 22:28:59] God jfggdfsggfdg has logged in.
[23/03/2009 22:29:00] God jfggdfsggfdg has logged out.
[23/03/2009 22:29:00] Lua Script Error: [CreatureScript Interface]
[23/03/2009 22:29:00] data/creaturescripts/scripts/anty_mc.lua:onLogin
[23/03/2009 22:29:00] luaDoPlayerPopupFYI(). Player not found
[23/03/2009 22:29:00] Lua Script Error: [CreatureScript Interface]
[23/03/2009 22:29:00] data/creaturescripts/scripts/anty_mc.lua:onLogin
[23/03/2009 22:29:00] luaDoRemoveCreature(). Creature not found
TFS 0.3.2
Last edited: