Jump to content

Vip money ?


Electrosumm

Recommended Posts

Posted
Hi,

I want to do "vip money" but i dont know what i need to use.Can someone write what arguments etc..need to create "vip money" ?

What do you mean?

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

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