-_-Varial^_^ Posted April 22, 2012 Posted April 22, 2012 hi guys, its me again. can someone send me a script that player gives money and they can see n the scoreboard? [that it gives money when they win a race] Saur Roleplay CReative PWNS
Castillo Posted April 22, 2012 Posted April 22, 2012 -- server side: exports [ "scoreboard" ]:addScoreboardColumn ( "Money", 3 ) -- Add the "Money" column to the scoreboard. function updatePlayersMoney ( ) -- Create "updatePlayersMoney" function. for index, player in ipairs ( getElementsByType "player" ) do -- Loop through all online players. setElementData ( player, "Money", getPlayerMoney ( player ) ) -- Set "Money" element data to the player money. end -- End our loop. end -- End our function. setTimer ( updatePlayersMoney, 2500, 0 ) -- Set a infinite 2.5 seconds timer to execute "updatePlayersMoney" function. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
-_-Varial^_^ Posted April 23, 2012 Author Posted April 23, 2012 solid snake does this has a client side to? and can u send me the meta? if u do : thnx alot if u dont :(D: Saur Roleplay CReative PWNS
Absence2 Posted April 23, 2012 Posted April 23, 2012 adding that in any serverside script will work. no client, that script solid posted is what you want. https://wiki.multitheftauto.com/wiki/Meta.xml
-_-Varial^_^ Posted April 23, 2012 Author Posted April 23, 2012 i have one more question to solid. does this work when a player wins a race he gets money like 340 or 1000? Saur Roleplay CReative PWNS
Smart. Posted April 23, 2012 Posted April 23, 2012 i have one more question to solid.does this work when a player wins a race he gets money like 340 or 1000? Why not try? But to answer your questions, yes it should. It takes the players money, and updates is every 2.5 seconds. lol
Castillo Posted April 23, 2012 Posted April 23, 2012 i have one more question to solid.does this work when a player wins a race he gets money like 340 or 1000? The money will update as long as your script uses the default money system. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
-_-Varial^_^ Posted April 25, 2012 Author Posted April 25, 2012 thnx a lot solid ur a really nice guy Saur Roleplay CReative PWNS
Castillo Posted April 25, 2012 Posted April 25, 2012 You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now