function onUse(cid, item, frompos, item2, topos)
if item.uid == [COLOR="Red"]10010[/COLOR] and item.itemid == [COLOR="DarkOrange"]1945[/COLOR] then
player1pos = [COLOR="Cyan"]{x=1095, y=1199, z=8, stackpos=253}[/COLOR]
player1 = getThingfromPos(player1pos)
if player1.itemid > 0 then
[COLOR="Magenta"]nplayer1pos = {x=1095, y=1198, z=7}[/COLOR]
doSendMagicEffect(player1pos,2)
doTeleportThing(player1.uid,nplayer1pos)
doSendMagicEffect(nplayer1pos,6)
else
doPlayerSendCancel(cid,"You need 1 players.") -- ten tekst mozesz zmienic
end
else
return 0
end
return 1
end