How to make?
#1

Hello!

How to make a /deposit and /withdraw command?
Reply
#2

I would suggest searching the forums. There are hundreds of gamemodes out there that already have that implemented. Look for Roleplay gamemodes.

Also see: http://forum.sa-mp.com/index.php?topic=2750.0

In direct reply to your question, make a variable that stores each player's money in the script, use this variable when you give or take money from a player. Make another variable that stores the money in their bank account. And adjust that variable accordingly when they use those commands. Finally, in your save/loading functions for the player, add these variables and you should be done. Though you may want to make a /balance command as well so they know how much is in their account.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)