Castillo Posted January 25, 2014 Posted January 25, 2014 Well, the best drift is already being saved ( is what ranks use ), and total drift, you can save it same way as best drift.
Sil3nT Posted January 25, 2014 Author Posted January 25, 2014 Like when i loged in the score apear in tab yes?
Castillo Posted January 25, 2014 Posted January 25, 2014 To save it you must get the element data "Total Drift" when the player quits and save it using setAccountData.
Sil3nT Posted January 25, 2014 Author Posted January 25, 2014 How it looks in script? I dont even know where to start.
Castillo Posted January 25, 2014 Posted January 25, 2014 addEventHandler ( "onPlayerQuit", root, function ( ) local account = getPlayerAccount ( source ) if ( not isGuestAccount ( account ) ) then setAccountData ( account, "totalDrift", getElementData ( source, "Total Drift" ) ) end end ) That'll save the drift on quit, now you have to make the script to load it. Use the event: onPlayerLogin with the following functions: getAccountData setElementData
Sil3nT Posted January 25, 2014 Author Posted January 25, 2014 If it doesn't output anything, then you either copied what I gave you wrong, or you aren't drifting at all, since I just tested it and it did output something when I finished my drift.Download this: https://www.dropbox.com/s/hzpl4b1bc8knlpx/resources.rar it contains both drift and drift rank resources. DUDE! your script have some bug! in some time all players have timeout! IDK what script mybe that drift script what u change mybe rank script!
Castillo Posted January 25, 2014 Posted January 25, 2014 That script can't make a player time out. Plus, I only edited the script, I didn't make it.
Karuzo Posted January 25, 2014 Posted January 25, 2014 lol, it works fine , i just tried it . But it doesn't save the Best Drift .
Sil3nT Posted January 25, 2014 Author Posted January 25, 2014 noooooooooo if u run that script some time like one hour then everybody have timeouts!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now