Jump to content

I need stats script.


Danger~

Recommended Posts

Here Total Wins:

addEventHandler("onPlayerFinish",root, 
function(rank,time) 
if rank == 1 then 
if getElementData(source,"totalWins") ~= false then 
setElementData(source,"totalWins",getElementData(source,"totalWins") + 1) 
else 
setElementData(source,"totalWins",1) 
end 
end 
end) 

Not tested, should work.

Later you can get the totalWins by using:

getElementData(player,"totalWins") 

Link to comment
Here Total Wins:
addEventHandler("onPlayerFinish",root, 
function(rank,time) 
if rank == 1 then 
if getElementData(source,"totalWins") ~= false then 
setElementData(source,"totalWins",getElementData(source,"totalWins") + 1) 
else 
setElementData(source,"totalWins",1) 
end 
end 
end) 

Not tested, should work.

Later you can get the totalWins by using:

getElementData(player,"totalWins") 

wow, thanks you men :wink:

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