• 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!

a function need help

Rachaw

Experienced Member
Joined
Oct 17, 2009
Messages
602
Reaction score
1
Location
Tha Sweden
well i gonna make an exp scroll for donators.

If the players uses it when hes over lvl 600 then he gets a error message

is this posibel?
Lua:
ifPlayerGetExperience (cid, ==600) then
error;                doCreatureSay(cid, "Sorry, You are over level 600 you can't use me more, Make a new character :).", TALKTYPE_BLUE_1)


need a new function?
 
you don't need a function for that just
if..then..return true...end clause
edit:
Lua:
if getPlayerLevel(cid) >= 600 then
doCreatureSay(cid, "Sorry, you are over level 600, you can't use me more. Make a new character :).", TALKTYPE_BLUE_1)
return true
end

test it
 
Back
Top