Temat do zamkniecia a nizej dla chetnych daje kod.
Kod PHP:
function onUse(cid, item, frompos, item2, topos)
if item.actionid == 7100 and isPremium(cid) then
local 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,'Przepraszam, dzwi dostepne dla graczy z Premium Account.')
end
doTeleportThing(cid,pos)
end
end
Zakładki