Making things coast $ ?? - 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: Making things coast $ ?? (
/showthread.php?tid=374820)
Making things coast $ ?? -
davve95 - 04.09.2012
Hi!
I tested abit to do a weapon shop.. But I don't know how to take the money
from a player.. GivePlayerMoney.. I lookt on the sa-mp Wiki but it didn't said
something just about that.
Sorry for dumb question but was abit ago I pratcied Pawn..
And also I'm still a beginner just a little bit...
Re: Making things coast $ ?? -
Ironboy - 04.09.2012
You just have to add -
pawn Код:
GivePlayerMoney(playerid,-100);
https://sampwiki.blast.hk/wiki/GivePlayerMoney
Re: Making things coast $ ?? -
davve95 - 04.09.2012
Oh so it should just be a " - "

.. Thanks alot!.
Re: Making things coast $ ?? -
MarkoN - 04.09.2012
but first check if the player has the required money or he will go into -$
if(GetPlayerMoney(playerid) >= 1000)
{
GivePlayerMoney(playerid, -1000);
}
else
{
SendClientMessage(playerid, -1, "You dont have enough money");
}