• 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!

Add Script

xLosT

Member
Joined
Jan 11, 2010
Messages
1,022
Reaction score
13
Location
Brasil, Rio Grande do Sul
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
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>
 
Im not sure what you want, but try this..
Lua:
]]></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
			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) 
							end 
						end 
					end 
				end 
			end
			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>

I added your second code to your first one..
 
He want that this script do with that the player that have the same IP not come in in the event approached.. i dont have idea how i can help u
 
He want that this script do with that the player that have the same IP not come in in the event approached.. i dont have idea how i can help u

yes, is this scripts
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

need add to my movements.
 
Back
Top