• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Anty MC TFS 0.2 - 8.1

Ezaqu

New Member
Joined
Oct 19, 2009
Messages
24
Reaction score
0
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 :D!
Posiadam skrypt:
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
Błędy w TFS:
27/04/2012 11:47:16] Lua Script Error: [CreatureScript Interface]
[27/04/2012 11:47:16] data/creaturescripts/scripts/antiMc.lua:onLogin

[27/04/2012 11:47:16] data/creaturescripts/scripts/antiMc.lua:9: attempt to call global 'getIPByPlayerName' (a nil value)
 
Last edited:
PHP:
getIPByPlayerName(getPlayerName

(cid))


zamień na

PHP:
getIpByName(getPlayerName(cid))
 
Back
Top