Need help iwth buying gun
#1

Hey guys. I scripted that when you do /buygun tec-9 in the ammunation you will get a tec-9

But I want that if you don't have enough money it says: You don't have enough money. but now when I
Have not enough money my money just go to RED and you can buy it.

This is my script

Код:
  }
	if (strcmp("/buygun tec-9", cmdtext, true, 10) == 0)
	{
  if(IsPlayerInRangeOfPoint(playerid, 1.0, 294.7390,-38.4376,1001.5156))
  {

	GivePlayerMoney(playerid,-2500);
	GivePlayerWeapon(playerid,32,500);
	
	SendClientMessage(playerid, 0x33AA33AA, "You do not have enough money!");
	}
	else
	SendClientMessage(playerid, 0x33AA33AA, "You are not inside the ammunation or you don't have enough money");
Reply


Messages In This Thread
Need help iwth buying gun - by bartje01 - 16.02.2010, 20:57
Re: Need help iwth buying gun - by Joe Staff - 16.02.2010, 21:14
Re: Need help iwth buying gun - by bartje01 - 16.02.2010, 21:21
Re: Need help iwth buying gun - by adsy - 16.02.2010, 23:39

Forum Jump:


Users browsing this thread: 2 Guest(s)