function onUse(cid, item, frompos, item2, topos)
local townid = 1 -- townid of the temple
local playerpos = getPlayerPosition(cid)
local newpos = {x=435, y=483, z=7}
doPlayerSendTextMessage(cid,22,"You are now a citizen of the town Nova.")
doPlayerSetTown(cid, townid)
doTeleportThing(cid,newpos)
doSendMagicEffect(playerpos,12)
if getPlayerLevel(cid) <= 35
doPlayerSendCancel (cid, "Your Level is to low to become a citizen of nova back on lvl 35.")
end
can someone tell me whats wrong with this script it doesn't work please
local townid = 1 -- townid of the temple
local playerpos = getPlayerPosition(cid)
local newpos = {x=435, y=483, z=7}
doPlayerSendTextMessage(cid,22,"You are now a citizen of the town Nova.")
doPlayerSetTown(cid, townid)
doTeleportThing(cid,newpos)
doSendMagicEffect(playerpos,12)
if getPlayerLevel(cid) <= 35
doPlayerSendCancel (cid, "Your Level is to low to become a citizen of nova back on lvl 35.")
end
can someone tell me whats wrong with this script it doesn't work please