• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

someone over? [Script 7 lines..]

Elexonic

Well-Known Member
Joined
Jun 18, 2008
Messages
1,920
Reaction score
59
This is the script

I need to exhausted, and will not let me say the word while I have this exaust How could I?
Thank you.


Code:
function onSay(cid, words, param)
if exhaustion.check(cid, 555666) == false then
exhaustion.set(cid, 555666, 3)
 
	else
 
		doPlayerSendCancel(cid, 'You should wait ' ..exhaustion.get(cid, 555666)..' sec to write report again.')
	end
 
	return false
end
 
Code:
function onSay(cid, words, param)
    if getPlayerStorageValue(cid, 555666) < os.time() then
       setPlayerStorageValue(cid, 555666, os.time() + 3)     
    else         
        doPlayerSendCancel(cid, "You should wait " ..getPlayerStorageValue(cid, 555666).." sec to write report again.")
    end     
    return false
end

:)
 
LUA:
function onSay(cid, words, param)
	if getPlayerStorageValue(cid, 555666) > os.time() then       
		doPlayerSendCancel(cid, 'You should wait ' .. getPlayerStorageValue(cid, 555666) - os.time() .. ' sec to write report again.')		
	else
		doPlayerSendCancel(cid, 'You can speak now.')
		setPlayerStorageValue(cid, 555666, os.time() + 3) 
	end 
	return true
end
 
This don`t work :S

function onSay(cid, words, param)
if exhaustion.check(cid, 65001) == 0 then
doPlayerSendCancel(cid, 'You should wait ' ..exhaustion.get(cid, 65001)..' sec to write report again.')
else
doPlayerSendCancel(cid, 'You can speak now.')
exhaustion.set(cid, 65001, 3)
end
return false
end
 
i think he wants the palyer to say the word if the effect happens, but not to say if he is exhausted

Code:
function onSay(cid, words, param)
    if getPlayerStorageValue(cid, 555666) < os.time() then
       setPlayerStorageValue(cid, 555666, os.time() + 3)
       return false
    else         
        doPlayerSendCancel(cid, "You should wait " ..getPlayerStorageValue(cid, 555666).." sec to write report again.")
        return true
    end
end

this maybe?
also, you didnt specified exactly that you wanted it like that in the first post..
 
Back
Top