Jump to content

Vip money ?


Electrosumm

Recommended Posts

VIPMoney = {} -- table that will store the players vip money 
  
function givePlayerVIPMoney ( player, money ) 
    if not VIPMoney[player] then VIPMoney[player] = 0 end 
    VIPMoney[player] = VIPMoney[player] + money 
    return true 
end 
  
function getPlayerVIPMoney ( player ) 
    return VIPMoney[player] or 0 
end 

just a basic script,

   

you can use givePlayerVIPMoney to give vip money to any player

and getPlayerVIPMoney to get it

   

if you need it sync between client and server you'll need to use element datas.

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