SA-MP Forums Archive
Buying - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Buying (/showthread.php?tid=144593)



Buying - ViruZZzZ_ChiLLL - 28.04.2010

Question:
How can I make a certain thing not buyable if he/she doesn't have enough money for it.
So that his/her money doesn't go negative (-$100)


Problem:
I don't know how make it not buyable if he/she doesn't have enough money.
________
HONDA F.C. HISTORY


Re: Buying - Rac3r - 28.04.2010

Код:
if( GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid, COLOR, "ERROR : blah blah not enough money")';



Re: Buying - ViruZZzZ_ChiLLL - 28.04.2010

Quote:
Originally Posted by Rac3r
Код:
if( GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid, COLOR, "ERROR : blah blah not enough money")';
Okay, thanks Rac3r
________
Roll a joint