Wazzap
Killing Elite
/data/creaturescripts/scripts/anti.lua
/data/creaturescripts/scripts/anti2.lua
creaturescript.xml
if you use this script add my rep+++ i work 3 hours to make this script
Lua:
local config = {
seconds = 7,
onlyWithSameIP = "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
/data/creaturescripts/scripts/anti2.lua
Lua:
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
creaturescript.xml
Lua:
<event type="login" name="Anti" event="script" value="anti.lua"/>
<event type="login" name="Anti2" event="script" value="ant2.lua"/>
if you use this script add my rep+++ i work 3 hours to make this script