13.01.2011, 01:32
Hello, Iam a semi-New scripter.. Ive searched for a long time on a tutorial for this.. But I have an entire weapon shop on my script iam working on.. But I want to to make it where you cannot buy weapons if you dont have enough money.. As of know, I cant find help on that.. So I decided to make a topic.. Here is what I have for a deagle.
How can I make it where if you dont have 1000 dollars you cannot buy this weapon etc..
Thanks
Код:
if (strcmp("/buygun deagle", cmdtext, true)==0){ SendClientMessage(playerid, COLOR_WHITE, "You have bought a Deagle for 1000 dollars!"); GivePlayerWeapon(playerid, 24, 40); GivePlayerMoney(playerid, -1000); return 1; }
Thanks