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

Set Player Storage Value to all Players Online with globalevent

neiriwi

New Member
Joined
Feb 14, 2009
Messages
3
Reaction score
0
when execute the event, add a StorageValue, after X mins delete that value (set to 0)
please, if posible tell me how i do that ...
i use TFS 0.3.4 patch 2
thanks! :)

(sorry for my bad english xD)
 
i know how add the storage, and how remove too
but don't works :/ still have the storage

@EDIT:

LOOOOOOOOOL
i forgett to add the value XD

thanks for all, close this plz :)
 
Code:
for _, cid in ipairs(getPlayersOnline()) do
	setPlayerStorageValue(cid, 12345, 1)
	addEvent(setPlayerStorageValue, 60 * 1000, cid, 12345, 0)
end
 
Back
Top