Example:
- Player A will and the active lever!
- Soon after the player B will try to activate and get the following message (The lever has been active for another player. Wait 10 minutes to activate it again)
Is it possible?
I want to add time to all players in this script, such a delay.
If a player clicks, the next player can click only 10 minutes!
Thanks!
- Player A will and the active lever!
- Soon after the player B will try to activate and get the following message (The lever has been active for another player. Wait 10 minutes to activate it again)
Is it possible?
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
addEvent(wait1,1000,piece1pos)
end
function wait1(piece1pos)
local raids = {'Ghazbaran', 'Orshabaal', 'Morgaroth'}
local r = math.random(1,3)
doExecuteRaid(raids[r])
end
I want to add time to all players in this script, such a delay.
If a player clicks, the next player can click only 10 minutes!
Thanks!
Last edited: