SA-MP Forums Archive
How to take $5 from player? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to take $5 from player? (/showthread.php?tid=491904)



How to take $5 from player? - Rudiz - 01.02.2014

Hi all!

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

Some suggestions?


Re: How to take $5 from player? - ikey07 - 01.02.2014

GivePlayerMoney(playerid,-5); ?


Re: How to take $5 from player? - Tamer - 01.02.2014

GivePlayerMoney(playerid,-5);

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


Re: How to take $5 from player? - pyrodojo25 - 01.02.2014

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


Re: How to take $5 from player? - Scenario - 01.02.2014

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.


Re: How to take $5 from player? - Rudiz - 01.02.2014

Thanks u all!..