jak można nie wiedzieć czy ma się ustawiony global save?porażka xD
aa i mega bomb;/ szkoda ze nie ma skryptu na anty mega bomb
local config = {
seconds = 5, -- odstęp między logowaniem na tym samym ip.
onlyWithSameIP = TRUE(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
local config = {
seconds = 10, -- w sekundach, czas oznaczony jako opóźnienie reloga
onlyWithSameIP = "yes" -- dla wszystkich graczy ("no"), lub dla tego samego ip ("yes")
}
--DONT MODIFY
config.onlyWithSameIP = getBooleanFromString(config.onlyWithSameIP)
local m_lastLogin, m_lastIP = 0, 0
function onLogin(cid)
local timeNow, playerIP = os.time(), getPlayerIp(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
<event type="login" name="AntiMC" event="script" value="antiMc.lua"/>
<event type="login" name="Antycrash" event="script" value="antycrash.lua"/>
maxItemsPerPZTile = 50
maxItemsPerHouseTile = 50
Do 2h maksymalnie cleany zrób, tak najlepiej![]()
20 h uptime to nic![]()