If the player has any item equipped
helmet,armor,items like shield etc and backpack
you cannot use the command
helmet,armor,items like shield etc and backpack
you cannot use the command
Lua:
local test= TalkAction("!test")
function test.onSay(player, words, param)
for slot = CONST_SLOT_HEAD, CONST_SLOT_AMMO do
local slotItem = player:getSlotItem(slot)
if slotItem then
player:sendCancelMessage("have item")
return true
end
end
return false
end
test:register()
Last edited: