Jump to content

Help to change zombie rank o drift rank


Sil3nT

Recommended Posts

  • Replies 58
  • Created
  • Last Reply

Top Posters In This Topic

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 

Link to comment
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!

Link to comment

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...