Jump to content

Timer Saving


Markeloff

Recommended Posts

Posted

Well, I tried and tried but i failed.

Can we save a running timer if a player quit then load it when he login?

Can we save the timer in his account data then load his data when he login?

Any solution to save a timer and load it onPlayerLogin?

Posted
function SAVE() 
if getElementData ( source, "isPlayerJailed" ) then 
if isTimer(JTime) then 
getTimerDetails ( JTime ) 
setAccountData(getAccountName(source),----What do i write here to save ? 
end 
end 
end 
addEventHandler( "onPlayerQuit", root, SAVE) 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...