SA-MP Forums Archive
My shop! [Help please :)] - 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: My shop! [Help please :)] (/showthread.php?tid=250551)



My shop! [Help please :)] - fie - 23.04.2011

I have made a command /shop
when you type it, it comes up with a list in chat.

one of the weapons is a deagle. you have to type /deagle

Now the problem is that you can buy the deagle even if you dont have the money! The deagle costs $1000
How can i make it say you dont have the money if they dont have the money?


Thanks, you guys help loadss!!


Re: My shop! [Help please :)] - [L3th4l] - 23.04.2011

pawn Код:
if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, COLOR_RED, "You don't have enough cash!");
Put that at the beginning of the /deagle cmd


Re: My shop! [Help please :)] - fie - 23.04.2011

Thankyou )