Jump to content

GTA Stats


Axel

Recommended Posts

Posted

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?

Posted

yes you can do that but you need something when to add the skill like if you drive 1h you get skill or ...

Ingame Name : |DGT|Puma

DGT Clan Server 24/7 Owner/Scripter

MultiGameMode in progress :

n-560x95_FFFFFF_FFFFFF_0283C4_000000.png

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

Ingame Name : |DGT|Puma

DGT Clan Server 24/7 Owner/Scripter

MultiGameMode in progress :

n-560x95_FFFFFF_FFFFFF_0283C4_000000.png

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