Queria que esse Script aqui pode-se leva o players para town 2 depois de 1 horas de relógio, E depois de outra hora de relógio votasse para town 1 de novo.
function ChangeMap(clean, save)
doChangeMap(TRUE, TRUE)
doPlayerPopupFYI(cid, "Map has been changed. New area is ".. townid[2] ..". You can now login.")
return TRUE
end
function onThink1(interval, lastExecution)
broadcastMessage("Auto-Kick for Map change in 1 second.", MESSAGE_STATUS_CONSOLE_BLUE)
addEvent(ChangeMap, 10)
return TRUE
end
function onThink2(interval, lastExecution)
broadcastMessage("Auto-Kick for Map change in 2 seconds.", MESSAGE_STATUS_CONSOLE_BLUE)
addEvent(onThink1, 10)
return TRUE
end
function onThink3(interval, lastExecution)
broadcastMessage("Auto-Kick for Map change in 3 seconds.", MESSAGE_STATUS_CONSOLE_BLUE)
addEvent(onThink2, 10)
return TRUE
end
function onThink4(interval, lastExecution)
broadcastMessage("Auto-Kick for Map change in 4 seconds.", MESSAGE_STATUS_CONSOLE_BLUE)
addEvent(onThink3, 10)
return TRUE
end
function onThink5(interval, lastExecution)
broadcastMessage("Auto-Kick for Map change in 5 seconds.", MESSAGE_STATUS_CONSOLE_BLUE)
addEvent(onThink4, 10)
return TRUE
end
function onThink6(interval, lastExecution)
broadcastMessage("Auto-Kick for Map change in 6 seconds.", MESSAGE_STATUS_CONSOLE_BLUE)
addEvent(onThink5, 10)
return TRUE
end
function onThink7(interval, lastExecution)
broadcastMessage("Auto-Kick for Map change in 7 seconds.", MESSAGE_STATUS_CONSOLE_BLUE)
addEvent(onThink6, 10)
return TRUE
end
function onThink8(interval, lastExecution)
broadcastMessage("Auto-Kick for Map change in 8 seconds.", MESSAGE_STATUS_CONSOLE_BLUE)
addEvent(onThink7, 10)
return TRUE
end
function onThink9(interval, lastExecution)
broadcastMessage("Auto-Kick for Map change in 9 seconds.", MESSAGE_STATUS_CONSOLE_BLUE)
addEvent(onThink8, 10)
return TRUE
end
function onThink10(interval, lastExecution)
broadcastMessage("Auto-Kick for Map change in 10 seconds.", MESSAGE_STATUS_CONSOLE_BLUE)
addEvent(onThink9, 10)
return TRUE
end
function onThink11(interval, lastExecution)
broadcastMessage("Auto-Kick for Map change in 30 seconds.", MESSAGE_STATUS_CONSOLE_BLUE)
addEvent(onThink10, 25)
return TRUE
end
function onThink12(interval, lastExecution)
broadcastMessage("Map will change in 1 minute.", MESSAGE_STATUS_CONSOLE_BLUE)
addEvent(onThink11, 30)
return TRUE
end
function onThink(interval, lastExecution)
broadcastMessage("Map will change in 5 minutes.", MESSAGE_STATUS_CONSOLE_BLUE)
addEvent(onThink12, 21)
end