Creating a own Money System ?
#4

Use your own variables instead of the default SA:MP Money functions.

Very basic example;

Somewhere (not in a function):
pawn Код:
new playerMoney[ MAX_PLAYERS ];
OnPlayerConnect:
pawn Код:
playerMoney[ playerid ] = 0; // Set the player money to 0
Examply a /cash command which gives you $25.000
pawn Код:
playerMoney[ playerid ] = playerMoney[ playerid ] + 25000; // Cash would give you $25000
At the same time you can use the SA:MP Money Functions for the Client-HUD, to make it look better.
Reply


Messages In This Thread
Creating a own Money System ? - by Rickyboy30 - 28.10.2009, 19:58
Re: Creating a own Money System ? - by Sergei - 28.10.2009, 19:59
Re: Creating a own Money System ? - by Rickyboy30 - 28.10.2009, 20:01
Re: Creating a own Money System ? - by woot - 28.10.2009, 20:05
Re: Creating a own Money System ? - by Rickyboy30 - 28.10.2009, 20:12
Re: Creating a own Money System ? - by woot - 28.10.2009, 20:13
Re: Creating a own Money System ? - by Rickyboy30 - 28.10.2009, 20:18
Re: Creating a own Money System ? - by Rickyboy30 - 29.10.2009, 00:03
Re: Creating a own Money System ? - by dice7 - 29.10.2009, 07:26

Forum Jump:


Users browsing this thread: 1 Guest(s)