I am sorry but, my lua skills is not good enough.. been trying for an hour or so now. Could anyone please help me out? :)
this is what the code looks like now
function onUse(cid, item, frompos, item2, topos)
playerpos = getPlayerPosition(cid)
nplayer1pos = {x=572 , y=532 , z=12 } --...