How can i do that you cant buy if you dont have enough money ?
#3

Quote:
Originally Posted by hardstop
Код:
	if(listitem == 0) //M4
	{
	SendClientMessage(playerid, COLOR_PURPLE, "* Sa ostsid M4");
	GivePlayerMoney(playerid,-30);
 	GivePlayerWeapon(playerid,31,500);
Problem is that if you even have $0 then you can buy and your money goes -30 example.
I want that if you dont have enough money you cant buy how can i do like that?

Код:
if(listitem == 0) //M4
 {
 if(GetPlayerMoney(playerid) < 30)
 {	
  SendClientMessage(playerid, COLOR_PURPLE, "* Sa ostsid M4");
  GivePlayerMoney(playerid,-30);
  GivePlayerWeapon(playerid,31,500);
 }
Reply


Messages In This Thread
How can i do that you cant buy if you dont have enough money ? - by hardstop - 06.03.2010, 20:56
Re: How can i do that you cant buy if you dont have enough money ? - by pen_theGun - 06.03.2010, 21:35
Re: How can i do that you cant buy if you dont have enough money ? - by Peep - 06.03.2010, 21:37
Re: How can i do that you cant buy if you dont have enough money ? - by hardstop - 06.03.2010, 21:37

Forum Jump:


Users browsing this thread: 1 Guest(s)