• 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

Premium User
Premium User
Joined
Jan 24, 2011
Messages
88
Best answers
2
Reaction score
6
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:
OP
ssiwyy158

ssiwyy158

Premium User
Premium User
Joined
Jan 24, 2011
Messages
88
Best answers
2
Reaction score
6
~~REF~~
 
OP
ssiwyy158

ssiwyy158

Premium User
Premium User
Joined
Jan 24, 2011
Messages
88
Best answers
2
Reaction score
6
~~REF~~
 
OP
ssiwyy158

ssiwyy158

Premium User
Premium User
Joined
Jan 24, 2011
Messages
88
Best answers
2
Reaction score
6
buuuuuuuuuuuuuump
 

Okke

Voidcore 7.4
Joined
Jul 19, 2015
Messages
943
Best answers
20
Reaction score
462
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