God tiburons
New Member
- Joined
- Dec 18, 2010
- Messages
- 25
- Reaction score
- 0
I need help to mi script chnage map Perfect script Only dont remove pz
I need remove pz to change map
Mi script
function onThink(interval, lastExecution)
local config = {
pos = {x=1035,y=1023,z=7},
pos1 = {x=1388,y=1021,z=7},
pos2 = {x=1035,y=1023,z=7},
pos3 = {x=1388,y=1021,z=7},
pos4 = {x=1035,y=1023,z=7},
pos5 = {x=1388,y=1021,z=7}
}
function stor()
b = getGlobalStorageValue(62201)
if b < 0 then
b = 0
end
return b
end
doBroadcastMessage("The map change!!.")
for _, pid in ipairs(getPlayersOnline()) do
if stor() == 0 then
setGlobalStorageValue(62201,stor()+1)
doTeleportThing(pid,config.pos1)
elseif stor() == 1 then
doTeleportThing(pid,config.pos2)
setGlobalStorageValue(62201,stor()+1)
elseif stor() == 2 then
doTeleportThing(pid,config.pos3)
setGlobalStorageValue(62201,stor()+1)
elseif stor() == 3 then
doTeleportThing(pid,config.pos4)
setGlobalStorageValue(62201,stor()+1)
elseif stor() == 4 then
doTeleportThing(pid,config.pos5)
setGlobalStorageValue(62201,stor()+1)
elseif stor() >= 5 then
doTeleportThing(pid,config.pos)
setGlobalStorageValue(62201,stor()-5)
end
end
return TRUE
end
I reep plx
I need remove pz to change map
Mi script
function onThink(interval, lastExecution)
local config = {
pos = {x=1035,y=1023,z=7},
pos1 = {x=1388,y=1021,z=7},
pos2 = {x=1035,y=1023,z=7},
pos3 = {x=1388,y=1021,z=7},
pos4 = {x=1035,y=1023,z=7},
pos5 = {x=1388,y=1021,z=7}
}
function stor()
b = getGlobalStorageValue(62201)
if b < 0 then
b = 0
end
return b
end
doBroadcastMessage("The map change!!.")
for _, pid in ipairs(getPlayersOnline()) do
if stor() == 0 then
setGlobalStorageValue(62201,stor()+1)
doTeleportThing(pid,config.pos1)
elseif stor() == 1 then
doTeleportThing(pid,config.pos2)
setGlobalStorageValue(62201,stor()+1)
elseif stor() == 2 then
doTeleportThing(pid,config.pos3)
setGlobalStorageValue(62201,stor()+1)
elseif stor() == 3 then
doTeleportThing(pid,config.pos4)
setGlobalStorageValue(62201,stor()+1)
elseif stor() == 4 then
doTeleportThing(pid,config.pos5)
setGlobalStorageValue(62201,stor()+1)
elseif stor() >= 5 then
doTeleportThing(pid,config.pos)
setGlobalStorageValue(62201,stor()-5)
end
end
return TRUE
end
I reep plx