• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Teleport all players to my position

Ghazer

Member
Joined
Mar 13, 2009
Messages
350
Reaction score
6
Hello!
I have this script... teleport players from party to my position

I want this script but teleport all players online to my position, anyone can help please?

Well this is a simple script, Could be used for events and things like that. What it does is you say "/command PLAYERNAME" and it will teleport every player in param's party to cid
LUA:
 function onSay(cid, words, param, channel)
local player = getPlayerByNameWildcard(param)
   if(not player) then return true
     end
 
  for _, party in ipairs(getPartyMembers(player)) do
 
    doTeleportThing(party, getCreaturePosition(cid))
     doSendMagicEffect(getCreaturePosition(party), math.random(0, CONST_ME_LAST))
      doPlayerSendTextMessage(party, MESSAGE_INFO_DESCR, "Your team has been teleported by "..getCreatureName(cid)..".")
   end
 
      doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "All players in the party of "..param.." have been teleported to you.")
    return true
      end

Original link of script: http://otland.net/f81/teleport-party-61061/
 
I guess something like this should be used for it. :p
LUA:
for _, pid in ipairs(getPlayersOnline()) do
doTeleportThing(pid, getCreaturePosition(cid))
 
Back
Top