Jump to content

Anyone can help me to create a moneyvip system


Akira

Recommended Posts

I dont know much about lua, and mta, but i know the basic because i know other languages like to java and python, so.. I dont know how the things work exactly at mta, and i need to make a moneyvip system, i think i will need to make the money script, and one mysql database, but i dont have idea of how to create an mysql database on my host ftp, and how to make an script that can modify write in the database, commands to add the money for players, and a log system, so.. Every information will help me so much

Ps: sorry for this english, i'm brazilian ;-;

Link to post

you want money vip system?

like what?

if you want give player money

function consoleGiveCash ( thePlayer, command, amount ) --when the givecash command is called
	givePlayerMoney ( thePlayer, amount ) --give the player money according to the amount
end
addCommandHandler ( "givecash", consoleGiveCash  ) --add a handler function for the command "givecash"

 

Link to post
--Client

Moneys = 0
addEventHandler("onClientRender", root,
    function()
        dxDrawText("Vip Money:"..Moneys, 1038, -3, 1366, 53, tocolor(255, 255, 255, 255), 2.00, "default", "left", "top", false, false, false, false, false)
    end
)
function GiveMoneys()
Moneys = Moneys + 1
end
addCommandHandler("Vip", GiveMoneys)

 

Link to post

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