Creating a own Money System ?
#1

Hey,
I would like to know, how to create your own money system.

Like the money is called 'Yuks' ( idk lol )
I would like to know this to prevent people using money hacks.

So actually what I mean is:
How do I create my own money system, so all transactions and other things are done with my money called 'Yuks' ?
You dont use dollars anymore but Yuks, and if you do something like /yuks, you can see your ammount of Yuks

Note: 'Yuks' is just a shitty name I just thought about 1 sec ago lol.

Reply
#2

Check some serverside money includes to learn what and how to do such a thing.
Reply
#3

Quote:
Originally Posted by $ЂЯĢ
Check some serverside money includes to learn what and how to do such a thing.
Excuse me, what's 'Serverside'?
Reply
#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
#5

Well, That's just for the normal money right ?

Reply
#6

Quote:
Originally Posted by Rickyboy30
Well, That's just for the normal money right ?
No, that's serversided money, since you do it customized using variables and not the client-side moneysystem ..
Reply
#7

Well, That server sided one, where can I find more information about it ?

I think it's not on Wiki right ?
Reply
#8

I mean: A whole new money system, you can see it like 'points', So dollars aint getting used anymore, your using points where you can buy stuff with and do similar things.

Do you know how to make that ?
Reply
#9

Just store the points into player variables, save and load them on connect disconnect and deduct them when buying something
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)