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