function doRemoveAbnormalSpeed(cid)
if not isCreature(cid) or not isPlayer(cid) then return false end
doChangeSpeed(cid, -500)
return true
end
function onSay(cid, words, param)
time = 10
needPremium = false
exhaustTime = 60
if needPremium and not isPremium(cid) then
doPlayerSendTextMessage(cid, 27, "Voce precisa de Premium Account para usar esse comando.")
return true
end
if exhaustion.get(cid, 8554) and exhaustion.get(cid, 8554) > 0 then
doPlayerSendTextMessage(cid, 27, "Por favor, espere "..exhaustion.get(cid, 8554).." segundos para usar esse comando novamente.")
return true
end
doChangeSpeed(cid,200)
addEvent(doRemoveAbnormalSpeed, time*1000, cid)
doCreatureSay(cid, "Strong Haste!", TALKTYPE_ORANGE_1)
exhaustion.set(cid, 8554, exhaustTime)
return true
end






info
Grupo: Campones
Registrado: 07/11/13
Posts: 86
Reputação: 0
Gostaria de colocar exhausted de 2 segundos para usar este comando novamente na seguinte talk: (Obs: Não retirem nenhuma função da talkaction porfavor).
function onSay(cid, words, param)
end