How to take $5 from player?
#1

Hi all!

So.. I try to make a small Sprunk system, but I don't know how to take $5 from player.

Some suggestions?
Reply
#2

GivePlayerMoney(playerid,-5); ?
Reply
#3

GivePlayerMoney(playerid,-5);

I'm not sure if you ment this or not though lol.
Reply
#4

pawn Код:
GivePlayerMoney(playerid, -5);
Edit: Fuuuu, I was slow
Reply
#5

For questions like this on native SA:MP functions, you can always refer to the SA:MP Wiki. For example, all you had to do was go to this page and read the parameter descriptions and you would of noticed that giving a negative (-) value will take money from a player.
Reply
#6

Thanks u all!..
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)