triplesnake Posted August 6, 2011 Posted August 6, 2011 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
Castillo Posted August 6, 2011 Posted August 6, 2011 Well, firstly you'll need a way to store the data of the player (can be account data, sqlite, mysql, xml), you can check how is done some of the scripts in the MTA community (there are some which has this). https://community.multitheftauto.com/index.php?p=resources
JR10 Posted August 6, 2011 Posted August 6, 2011 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.
triplesnake Posted August 6, 2011 Author Posted August 6, 2011 ty jr in help and hmmm about the race part bec i cant find it in the community at all
Castillo Posted August 6, 2011 Posted August 6, 2011 My race userpanel: https://community.multitheftauto.com/index.php?p= ... ils&id=811 race_starter_pack: https://community.multitheftauto.com/index.php?p= ... ils&id=821
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