Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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!
Great this work:
setCreatureMaxHealth(cid,getCreatureMaxHealth(cid)+health)
but this nope:
doPlayerSetMaxCapacity(cid,getPlayerMaxCap(cid)+cap)
getPlayerMaxCap< i dont know how to check max capacity
getPlayerFreeCap< its work but check only free capacity
function getPlayerMaxCapacity(cid)
local info = db.getResult("SELECT `cap` FROM `players` WHERE `id` = " .. getPlayerGUID(cid))
if info:getID() ~= -1 then
local cap = info:getDataInt("cap")
info:free()
return cap
end
return false
end
function getPlayerMaxCapacity(cid)
local info = db.getResult("SELECT `cap` FROM `players` WHERE `id` = " .. getPlayerGUID(cid))
if info:getID() ~= -1 then
local cap = info:getDataInt("cap")
info:free()
return cap
end
return false
end