ďťż

Anty Crash Server [DZIAŁA POD STIGMA3]

PRzeSteR

Anty Crash Server [DZIAŁA POD STIGMA3]
  Ostatnio Kupiłem Silnik Stigma3 i były czesto CRASHE SERVERA. Znalazłem Pewien Skrypt i nie dzialal pod Stigme Więc go przerobiłem:
silnik ots/data/creaturescripts/scripts
i robimy plik anti
Cytat:
local config = {
seconds = 7, -- w sekundach, czas oznaczony jako opóźnienie reloga
onlyWithSameIP = "yes" -- dla wszystkich graczy ("yes"), 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
i robimy drugi plikanti2
Cytat:
local function gtfoMC(p)
if #getPlayersByIp(getPlayerIp(p.pid)) >= p.max then
doRemoveCreature(p.pid)
end
return TRUE
end
function onLogin(cid)
addEvent(gtfoMC, 1000, {pid = cid, max = 1})
return TRUE
end
a teraz w creaturescript.xml
Cytat:
<event type="login" name="Anti" event="script" value="anti.lua"/>
<event type="login" name="Anti2" event="script" value="ant2.lua"/>




  Działa pod tfs 0.3.6?

  Nie Wiem Testowałem Tylko pod Stigma 3... Ale Powinien działać

  To nie jest anti crash!
Tylko anti MC
zrobione przez KlekSu
Copyright (c) 2009 PRzeSteR | Powered by Wordpress. Fresh News Theme by WooThemes - Premium Wordpress Themes.