You should use the exhaustion function:
local exhaust = 3 --seconds
local eStorage = 55510
function onEquip(cid, item, slot)
if exhaustion.check(cid, eStorage) then
doPlayerSendCancel(cid, "You are exhausted.")
return false
end
exhaustion.set(cid, eStorage, exhaust)...