Jump to content

need help again :P


Recommended Posts

well as u know i am still learning so i was wondering how to make like a stats script for race/dm so when u type !stats your stats appear and u have like total dms and total wins and win percent i am not sure from where to even start and well as i said i am still learning so i still know just some basics not much but i really need this one and i was trying to make it but failed

Link to comment

You can use MTA Account System

setAccountData 
getAccountData 

And then addEventHandler onPlayerWasted:

addEventHandler("onPlayerWasted",root, 
function(_,killer) 
if getAccountData(killer,"totalKills") ~= false then 
setAccountData(killer,"totalKills",getAccountData(killer,"totalKills") + 1) 
else 
setAccountData(killer,"totalKills",0) 
end 
end) 
  
  

Just a start.

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