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?
Original link of script: http://otland.net/f81/teleport-party-61061/
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/