Witam szukam Anty MC pod TFS 0.2 Tibia 8.10.
Mogę dodać że posiadam souroce i dodałem tam funkcje takie jak:
-getPlayerIP
-getPlayersByIP
Ale żaden skrypt Anty MC nie chce działać proszę was wszystkich o pomoc!
Proszę was wszystkich razem z TFS Team
!
Posiadam skrypt:
27/04/2012 11:47:16] Lua Script Error: [CreatureScript Interface]
[27/04/2012 11:47:16] data/creaturescripts/scripts/antiMc.lua
nLogin
[27/04/2012 11:47:16] data/creaturescripts/scripts/antiMc.lua:9: attempt to call global 'getIPByPlayerName' (a nil value)
Mogę dodać że posiadam souroce i dodałem tam funkcje takie jak:
-getPlayerIP
-getPlayersByIP
Ale żaden skrypt Anty MC nie chce działać proszę was wszystkich o pomoc!
Proszę was wszystkich razem z TFS Team
Posiadam skrypt:
Błędy w TFS:local config = {
seconds = 2, -- in seconds
onlyWithSameIP = TRUE -- will work for all players (FALSE), or only check
player with same IP? (TRUE)
}
local m_lastLogin, m_lastIP = 0, 0
function onLogin(cid)
local timeNow, playerIP = os.time(), getIPByPlayerName(getPlayerName
(cid))
if(m_lastLogin + config.seconds >= timeNow and
(config.onlyWithSameIP == FALSE or m_lastIP == playerIP)) then
return FALSE
end
m_lastIP = playerIP
m_lastLogin = timeNow
return TRUE
end
27/04/2012 11:47:16] Lua Script Error: [CreatureScript Interface]
[27/04/2012 11:47:16] data/creaturescripts/scripts/antiMc.lua
[27/04/2012 11:47:16] data/creaturescripts/scripts/antiMc.lua:9: attempt to call global 'getIPByPlayerName' (a nil value)
Last edited: