xLosT
Member
I have a script that needs to get the config, 1 true 0 false, I want to stay true and not check anything in the config. and must join the script below
script
add in
script
PHP:
if block_ip == 1 then
if getDefendPlayersInEvent() ~= FALSE then
for _,info in pairs(getDefendPlayersInEvent()) do
if isPlayerOnline(info.name) then
if getPlayerIp(cid) == getIpByName(info.name) then
doPlayerSendCancel(cid,"Ja existe um membro com mesmo IP no evento.")
doTeleportThing(cid,fromPosition)
return TRUE
end
end
end
end
end
add in
PHP:
]]></movevent>
<movevent type="StepIn" actionid="3435" event="script"><![CDATA[
domodlib('CTF')
domodlib('CTF-lib')
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if getStorage(Event_Tile_Close) > 0 then
if getPlayerLevel(cid) < Min_Join_Level then
doTeleportThing(cid,fromPosition,false)
doSendMagicEffect(fromPosition,10)
doPlayerSendTextMessage(cid,21,"Only players of level "..Min_Join_Level.." are allowed to pass.")
else
doTeleportThing(cid,Wait_Place,false)
doSendMagicEffect(Wait_Place,10)
end
else
doTeleportThing(cid,fromPosition,false)
doSendMagicEffect(fromPosition,10)
doPlayerSendTextMessage(cid,21,"CTF event is closed now.")
end
return true
end
]]></movevent>