Jump to content

takePlayerMoney


Astari

Recommended Posts

Use something like this:

SERVER-SIDE ONLY SCRIPT

if getPlayerMoney ( player ) > amountToTakeFromPlayer then --If the money of the player is higher than the money you want to take him from, 
    takePlayerMoney ( player, amountToTakeFromPlayer ) --take the money. 
else setPlayerMoney ( player, 0 ) --Otherwise, take all the money from him. 
end  

THIS WILL NOT WORK. IT'S JUST AN EXAMPLE!

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