Stock variable canbuy? - 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: Stock variable canbuy? (
/showthread.php?tid=300048)
Stock variable canbuy? -
Admigo - 28.11.2011
Heey all,
How can i make a stock with variable that detect if a player can buy it and make a textdraw red or green(red =cant buy,green is can buy)
Example:
Код:
format(str1,sizeof(str1),"1-Deagle %s $500 ~n~2-Sniper Rifle %s $1000",canbuy[playerid]);//so if the player can buy it,it adds a ~g~ and if player cant buy it adds ~r~ so the price changes to other colour.
I dont know if its possible.
Thanks Admigo.