Discovery
Developing myself
LUA:
function onStepIn(cid, item, pos, fromPos)
if isPlayer(cid) then
local n, t = 0, getPlayersOnline()
for i = 1, #t do
if getPlayerAccess(t[i]) == 0 then
n = n + 1
end
end
local cur, outfit, position = getCreatureOutfit(cid)
if n % 2 == 0 then -- even
outfit = {lookType=cur.lookType, lookHead=0, lookBody=0, lookLegs=0, lookFeet=0, lookAddons=3}
position = {x=1090, y=1097, z=7}
else -- odd
outfit = {lookType=cur.lookType, lookHead=0, lookBody=0, lookLegs=0, lookFeet=0, lookAddons=3}
position = {x=1188, y=1074, z=7}
end
doCreatureChangeOutfit(cid, outfit)
doTeleportThing(cid, position)
end
end
I need outfit fixed player pass to teleport (not position).
thanks for reading
Last edited by a moderator: