Jump to content

GTA Stats


Axel

Recommended Posts

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

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