function onSay(cid, words, param)
for _, pid in ipairs(getPlayersOnline()) do
doTeleportThing(pid, getPlayerPosition(cid))
end
return true
end
teleportar para posiçao desejada
function onSay(cid, words, param)
local t = string.explode(param, ",")
local pos = {x = tonumber(t[1]), y = tonumber(t[2]), z = tonumber(t[3])}
if not tonumber(t[1]) or not tonumber(t[2]) or not tonumber(t[3]) then
doPlayerSendTextMessage(cid, 28, "usase assim, !comando posição x, posição y, posição z.") return true
end
for _, pid in ipairs(getPlayersOnline()) do
doTeleportThing(pid, pos)
end
return true
end
usase assim
!comando posição x, posição y, posição z
@EDIT!
colocar identação





info
Grupo: Campones
Registrado: 24/08/12
Posts: 26
Reputação: 0
Olá,
Gostaria de um script que teleporte todos os players online para a localização de onde o GOD que digitou o comando estiver.