Drive Thru
#2

pawn Код:
if(listitem == 1)// 'Chicken Burger'
            {
                GetPlayerHealth(playerid, health);
                health = (health+50);
                if(health > 100) SetPlayerHealth(playerid, 100);
                else SetPlayerHealth(playerid, health );//Removed the +50 from this line since the health variable has already gotten 50 added to it, it was then adding a hundred, sorry
                GivePlayerMoney(playerid, - 10);
                TogglePlayerControllable(playerid,1);
            }
this should work, i didnt test it just typed it in the reply box
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: 1 Guest(s)