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

getPlayerMaxCap(cid)?

Cadyan

Well-Known Member
Joined
Mar 30, 2008
Messages
844
Reaction score
63
Does a function like this exist for TFS 1.0? If not, can someone make one for me?
 
Doesnt work.
local player = Player(cid)
if getPlayerFreeCap(cid) == player:getCapacity() then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You meet the requirements.')
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You are not allowed to carry items.')
end
 
W6X3oBU.png

yOlFeBd.png


Works for me. :p
 
Back
Top