Hello guys,
Need to make a script that:
• If a player with the same ip trying to enter the tp return to function:
follow the script:
Need to make a script that:
• If a player with the same ip trying to enter the tp return to function:
Code:
doTeleportThing(cid, fromPosition, true)
Code:
local pos = {
go = {x = 899, y = 846, z = 7}
}
local function checkIpOnBattlefield(condition)
local ips = {}
local ip = getPlayerIp(cid)
local i = 1
table.insert(ips, i, ip)
i = i + 1
if ips[i] == getPlayerIp(cid) then
condition = "true"
end
local condition
return condition
end
function onStepIn(cid, item, position, fromPosition)
if checkIpOnBattlefield("true") then
doTeleportThing(cid, fromPosition, true)
doBroadcastMessage(ips[1])
else
doBroadcastMessage(getPlayerIp(cid))
doTeleportThing(cid, pos.go, true)
doSendMagicEffect(pos.go, 10)
end
return true
end