Help with money limits
#1

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.
Код:
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;
	}
How can I make it where if you dont have 1000 dollars you cannot buy this weapon etc..
Thanks
Reply


Messages In This Thread
Help with money limits - by Jacob_T_Harden - 13.01.2011, 01:32
Re: Help with money limits - by cessil - 13.01.2011, 01:38
Re: Help with money limits - by JamesC - 13.01.2011, 01:39
Re: Help with money limits - by Jacob_T_Harden - 13.01.2011, 01:52
Re: Help with money limits - by California - 13.01.2011, 02:19
Re: Help with money limits - by California - 13.01.2011, 02:21
Re: Help with money limits - by Jacob_T_Harden - 13.01.2011, 02:32
Re: Help with money limits - by coole210 - 13.01.2011, 03:38

Forum Jump:


Users browsing this thread: 4 Guest(s)