Jump to content

time random


eduher

Recommended Posts

  
local money = 0 -- variable that's used for storing the money, you must have this in order to raise the money by 50 every time 
  
setTimer(function() 
        local randomPlayer = getRandomPlayer() -- function for getting a random player 
        money = money + 50 -- increases the money every time executed by 50 
        givePlayerMoney(randomPlayer, money) -- function to give the random player money 
end, 5000, 0) -- if you dont know what these numbers are, go search "setTimer syntax MTA" 
  

It's not hard to make, try doing it yourself next time.

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