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
Last edited: