mohamedabdoyod
New Member
- Joined
- Jun 27, 2015
- Messages
- 24
- Reaction score
- 1
How To Make It
function onSay(cid, words, param, channel)
if getPlayerFreeCap(cid) >= (getItemWeightById(1998, 1)) then
if doPlayerAddItem(cid, 1998, 1, false) ~= RETURNVALUE_NOERROR then
doPlayerSendCancel(cid, "You require free inventory space to get more backpacks.")
end
else
doPlayerSendCancel(cid, "You require ".. (getItemWeightById(1998, 1)).." capacity to get more backpacks.")
end
return true
end
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -300000000, 0, -600000000)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 50, -300000000, 50, -600000000)