Danger~ Posted August 6, 2011 Posted August 6, 2011 Hi all, I need stats script for my server, but race system stats, that count wins,dms,ratio etc... please, help me.
bandi94 Posted August 6, 2011 Posted August 6, 2011 https://wiki.multitheftauto.com/wiki/Main_Page or pay somebody to make this for you and we will help you after you have some codes you need to use getAccountData() setAccountData() -- for stats get saved when player left the server
NotAvailable Posted August 6, 2011 Posted August 6, 2011 @Bandi94 You forgot one link https://wiki.multitheftauto.com/wiki/RU/Resource:Race
JR10 Posted August 6, 2011 Posted August 6, 2011 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")
Danger~ Posted August 6, 2011 Author Posted August 6, 2011 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
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