sprunk machine
#1

Hey so i made this code for sprunk machine and it doesnt work as i want to
when i press f it takes money but doesnt heal player
and when i spam f it just takes money without waiting

Код:
	if(GetPlayerMoney(playerid) >= 1)
	{
		if(PRESSED(KEY_SECONDARY_ATTACK))
		{
			if(IsPlayerInRangeOfPoint(playerid, 1.0, 320.1455,1733.6205,997.6163))
			{
				new Float:HP;
                if(HP >= 101)
				SetPlayerHealth(playerid, HP+20);
				GetPlayerHealth(playerid, HP);
				GivePlayerMoney(playerid, -1);
				ApplyAnimation(playerid,"VENDING","VEND_Use",1.4,0 ,1,1,0,2500,1);
		 	}
		}
	}
hope any one can help me fix it thanks
Reply


Messages In This Thread
sprunk machine - by rambalili2 - 02.11.2015, 17:21
Re: sprunk machine - by AbyssMorgan - 02.11.2015, 17:26
Re: sprunk machine - by rambalili2 - 02.11.2015, 17:31
Re: sprunk machine - by AbyssMorgan - 02.11.2015, 17:37
Re: sprunk machine - by rambalili2 - 02.11.2015, 17:42

Forum Jump:


Users browsing this thread: 1 Guest(s)