LUA:
local t = {
[1233] = {storage = 7890, level = {{enable = true, level = 50}}}
}
for k, v in pairs(t) do
if getPlayerStorageValue(cid,v.storage) < 0 then
if v.level.enable == false then
doPlayerAddExp(cid,99)
else
if getPlayerLevel(cid) >= v.level.level then
doPlayerAddExp(cid,100)
end
end
end
Am I using the enable = true part correctly? the level thing correctly too?
(I know script doesnt make any sense and its probably bugged, just wondering how to make that)
Thanks in advanced and of course rep+ ^_^