• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

switch level + citizenship problem

Nihilismo

New Member
Joined
May 9, 2008
Messages
58
Reaction score
0
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
 
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}

if getPlayerLevel(cid) >= 35 then
doPlayerSendTextMessage(cid,22,"You are now a citizen of the town Nova.")
doPlayerSetTown(cid, townid)
doTeleportThing(cid,newpos)
doSendMagicEffect(playerpos,12)
else
doPlayerSendCancel (cid, "Your Level is to low to become a citizen of nova back on lvl 35.")
end
end

Try that.
 
Back
Top