But i want to add also exhaustion for relog (3 sec),and if players are more than 50 on servers than active are 5 temples if people is less than 50 people (1 temple is actived)function onLogin(cid)
local temple = {
{x=,y=,z=},
{x=,z=,z=},
{x=,y=,z=}
}
doTeleportThing(cid, swiatynie[math.random(1, #temple)])
return true
end
local temple = {
{x=,y=,z=},
{x=,z=,z=},
{x=,z=,z=},
{x=,z=,z=},
{x=,y=,z=}
}
local condition = createConditionObject(CONDITION_INFIGHT)
setConditionParam(condition, CONDITION_PARAM_TICKS, 3000)
function onLogin(cid)
doAddCondition(cid, condition)
doTeleportThing(cid, temple[math.random(getWorldCreatures(0) >= 50 and #temple or 1)])
return true
end
local temple = {
{x=,y=,z=},
{x=,z=,z=},
{x=,z=,z=},
{x=,z=,z=},
{x=,y=,z=}
}
local condition = createConditionObject(CONDITION_INFIGHT)
setConditionParam(condition, CONDITION_PARAM_TICKS, 3000)
[B][COLOR="red"]setConditionParam(condition, CONDITION_PARAM_SUBID, 1)[/COLOR][/B]
function onLogin(cid)
doAddCondition(cid, condition)
doTeleportThing(cid, temple[math.random(getWorldCreatures(0) >= 50 and #temple or 1)])
return true
end
function onLogout(cid)
if hasCondition(cid, CONDITION_INFIGHT, 1) then
doPlayerSendCancel(cid, 'Sorry, you can\'t relog for 3 seconds.')
return false
end
return true
end