Gun shop help :/
#3

i edited code bit, because there was errors.Cant see red checkpoint anywhere.not working at all



Код:
    if(strcmp(cmdtext, "/deserteagle", true) == 0)
	{
		if(IsPlayerConnected(playerid))
       	{
			if(IsPlayerInRangeOfPoint(playerid, 1568.5647,-1693.0901,5.8906,183.4294)) // you set coords where you should be to initiate this cmd
          	{
   				if(GetPlayerMoney(playerid) < 1000)
					    {
					        SendClientMessage(playerid, COLOR_GREY, "You don't have enough money for Desert Eagle");
					        return 1;
                        }
					    else
					    {
	             			SendClientMessage(playerid, COLOR_LIGHTBLUE, "You bought Desert Eagle for 1000$");
	             			GivePlayerMoney(playerid, - 1000);
	             			GivePlayerWeapon(playerid, 24, 100); // 24 is gun ID of deagle, you can find them all on samp wiki, 100 is ammo
						}
			    }
		}
		return 1;
	}
Reply


Messages In This Thread
Gun shop help :/ - by Randomai - 21.02.2011, 15:27
Re: Gun shop help :/ - by 77ther - 21.02.2011, 15:37
Re: Gun shop help :/ - by Randomai - 21.02.2011, 16:05
Re: Gun shop help :/ - by 77ther - 21.02.2011, 16:37

Forum Jump:


Users browsing this thread: 1 Guest(s)