next one..
is this correct?
I need it so it removes any item the player has, either all slots or specified :S disarm him!!
is this correct?
Lua:
function disarmPlayer(cid)
SLOTS = {1,2,3,4,5,6,7,8,9,10}
for i = 1, #SLOTS do
local itam = getPlayerSlotItem(cid, SLOTS[i])
if itam ~= 0 then
doPlayerRemoveItem(cid, itam.itemid, getPlayerItemCount(cid, itam.itemid))
end
return true
end
end
Last edited: