Axel Posted July 30, 2011 Share Posted July 30, 2011 Is there a way to use GTA Stats and make progress with it in MTA? What i mean is like this : When you drive a car/bike for some time you get 1%. Like Driving skill: 10%, Diving Skill: 10%, Cycling Skill:10%,Flying skill:10%, Deagle Skill:10%. Can someone help me? Link to comment
bandi94 Posted July 30, 2011 Share Posted July 30, 2011 yes you can do that but you need something when to add the skill like if you drive 1h you get skill or ... Link to comment
bandi94 Posted July 30, 2011 Share Posted July 30, 2011 local account local skill local time = 0 function getdata (player) account=getPlayerAccount(player) if not account or isGuestAccount(account) then return end skill = getAccountData(account,"skill") if not skill then setAccountData(account,"skill",0) end end addEventHandler("onPlayerLogin",root,getdata) ----- this function give 1 exp when player drived a car for 1 hour------ function addskill() if isPedInVehicle(getLocalPlayer()) then time = time+1 end if time == 3600 then setAccountData(account,"skill",tonumber(accountData)+1) time =0 end end setTimer(addskill,1000,0) Link to comment
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