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 Ingame Name : |DGT|Puma DGT Clan Server 24/7 Owner/Scripter MultiGameMode in progress :
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") Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
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
JR10 Posted August 6, 2011 Posted August 6, 2011 You welcome. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
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