How to make a gun charge you instead of getting it for free?
#2

Код:
public OnPlayerSelectedMenuRow(playerid, row)
{
  new Menu:current;
  new WeaponID;
  new WeaponCost;

//-----------------Change These-------------------
WeaponCost = ;
WeaponID = ;
//--------------------------------------------------


  current = GetPlayerMenu(playerid);
  if(current == weapon4)
  {
    switch(row)
    {
      case 0:
      {
			if (GetPlayerMoney(playerid) >= WeaponCost)
			{
				GivePlayerMoney(playerid, -WeaponCost); //Use a negative number to subtract
				GivePlayerWeapon(playerid, WeaponID, 500);
			}
      }
    }
  }
  return 1;
}
Reply


Messages In This Thread
How to make a gun charge you instead of getting it for free? - by Studio - 09.06.2009, 08:02
Re: How to make a gun charge you instead of getting it for free? - by LaNiZ - 09.06.2009, 09:24

Forum Jump:


Users browsing this thread: 1 Guest(s)