Hey guys i found this script,
made by Sync.
And i want to change this so it works with onStepIn, i dont get it to work.. so if you can then please help me
Also if you want you can add so it just teleport players from Safe Zones or when you attacked a player. or give directions how to.
thank you!
Code:
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
And i want to change this so it works with onStepIn, i dont get it to work.. so if you can then please help me
Also if you want you can add so it just teleport players from Safe Zones or when you attacked a player. or give directions how to.
thank you!