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

A 'wait' function.

cobaia99

New Member
Joined
Jul 29, 2007
Messages
5
Reaction score
0
Hey guys. Is there a lua function that puts a target player to 'wait' before doing an action? For example, i need a player to wait before using an item with id XXXX - something like exausted, but for ordinary itens.
 
Hey guys. Is there a lua function that puts a target player to 'wait' before doing an action? For example, i need a player to wait before using an item with id XXXX - something like exausted, but for ordinary itens.

Lua:
dofile(getDataDir() .. "lib/exhaustion.lua")
exhaustion.check(cid, STORAGE_ID) // return true == exhausted, return false == not exhausted
exhaustion.set(cid,STORAGE_ID,SECONDS)

tfs 0.3
 
Back
Top