Drive Thru
#1

Hello once again SAMP playing people!!!

I need some help. Well today I made a drive thru dialog and all is actually pretty good, I did it so that if someone buys some item from the menu he gets +50 hp but the problem is, if the players will buy like 5 random things their hp wont stop to grow and it will continue growing, so players might abuse, So im wondering how to make it so that when player got 100 % of his hp, other food that player will buy wont actually give him more hp.

Thank you.

Here is one item from the Dialog, so you will know how it looks now:

Код:
if(listitem == 1)// 'Chicken Burger'
			{
				GetPlayerHealth(playerid, health);
  				SetPlayerHealth(playerid, health +50.0);
                                GivePlayerMoney(playerid, - 10);
                                TogglePlayerControllable(playerid,1);
			}
Reply


Messages In This Thread
Drive Thru - by Compton - 25.07.2011, 20:42
Re: Drive Thru - by dowster - 25.07.2011, 20:53
Re: Drive Thru - by Compton - 25.07.2011, 21:02
Re: Drive Thru - by dowster - 25.07.2011, 21:06
Re: Drive Thru - by geerdinho8 - 25.07.2011, 21:06
Re: Drive Thru - by dowster - 25.07.2011, 21:08
Re: Drive Thru - by iPLEOMAX - 25.07.2011, 21:09
Re: Drive Thru - by geerdinho8 - 25.07.2011, 21:13
Re: Drive Thru - by dowster - 25.07.2011, 21:19
Re: Drive Thru - by geerdinho8 - 25.07.2011, 21:45

Forum Jump:


Users browsing this thread: 6 Guest(s)