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

TFS 0.X [MOD] Task

ssiwyy158

Member
Joined
Jan 24, 2011
Messages
128
Solutions
2
Reaction score
13
Sorry for my English.

I have a problem with task system [MOD] . Everything works but we can repeat task all time np. !task dragon. When we're done task and get rewards (addons) we can repeat task on dragons.
How to make it impossible to repeat ?

TFS 0.4 r3884

CODE:

Wklejka #3392655 – Wklej.org

function: onlyOneTime = true did not work ;/
 
Last edited:
Hint: A storage check before starting the task can be the solution for you.

Lua:
if getPlayerStorageValue(cid,storagenumber) == x then
    doPlayerSendCancel(cid, "You have done this task already")
return false

Now learn lua and build it into your tasks script!

Best Wishes,
Okke
 
Back
Top