TFS 0.X [MOD] Task

ssiwyy158

Well-Known Member
Joined
Jan 24, 2011
Messages
31
Best answers
0
Reaction score
1
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:

Okke

Voidcore 7.4
Joined
Jul 19, 2015
Messages
913
Best answers
17
Reaction score
426
Location
germany
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
 
Top