• 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!

Please help how can i put exhastued on a script! Tfs 0.3.5 Rep+++

Printer

if Printer then print("LUA") end
Senator
Premium User
Joined
Dec 27, 2009
Messages
5,780
Solutions
31
Reaction score
2,299
Location
Sweden?
Please help how can i put exhastued on a script! Rep+++

Example if you you it once you need wait 30 secounds to use it again!


Please post! Rep+++
 
Last edited:
LUA:
local exhausttime = 30 * 1000
local exhaust = createConditionObject(4096)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, exhausttime)

------

doAddCondition(cid, exhaust)

or

LUA:
local waittime = 30 
local storage = 5560

----
exhaustion.set(cid, storage, waittime)
 
Last edited:
sync it didnt work, that okay but how can i fix! if the have pk they cant do !back to temple
 
for exhust try this
LUA:
	exhausted = 60, -- Time you are exhausted.
	storage = 1337, -- Storage used for "exhaust.
setPlayerStorageValue(cid, storage, os.time() + exhausted)

then to make an if players still exhust
LUA:
if(getPlayerStorageValue(cid, cfg.storage) > os.time()) then
 doPlayerSendCancel(cid,"you can't use this now")
end
 
Back
Top