Jump to content

Need some help with server.


Ready

Recommended Posts

Go to the MTA Wiki and search for setTimer and SetPlayerMoney ( server )

Example:

richGuy = getPlayerFromName("ready") -- get your element, change ready to in-game name 
oldCash = getPlayerMoney(richGuy) --get your old amount of cash  
setTimer(setPlayerMoney, 10000, 0, richGuy,oldCash+1000) --Set a timer to setPlayerMoney(richGuy,oldcash+1000) every ten seconds ( time is in ms ) for a infinite time. 
-- Dunno if this is what you want but it should help you 

Start the resource when your in-game and it should give you 1000 every 10 seconds.

Dont forget the meta.xml ( wiki )

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