Odp: Drzwi dla p?ci
[LUA]function onUse(cid, item, frompos, item2, topos)
if getPlayerSex(cid) == 1 then
pos = getPlayerPosition(cid)
if pos.x == topos.x then
if pos.y < topos.y then
pos.y = topos.y + 1
else
pos.y = topos.y - 1
end
elseif pos.y == topos.y then
if pos.x < topos.x then
pos.x = topos.x + 1
else
pos.x = topos.x - 1
end
else
doPlayerSendTextMessage(cid,22,'Stan na przeciwko drzwi.')
return true
end
doTeleportThing(cid, pos)
doSendMagicEffect(pos, 10)
else
doPlayerSendTextMessage(cid, 22, "Nie jestes facetem!")
end
return true
end[/LUA]
Jak chcesz dla kobitek to zmieniasz "getPlayerSex == 1" na 0.