Player gets over 100% health
#2

pawn Код:
new Float:Leben;
GetPlayerHealth(playerid,Leben);
Leben+=10.0:
if(Leben>100.0)
{
    Leben=100.0;
}
SetPlayerHealth(playerid,Leben);
SendClientMessage(playerid, COLOR_PLAVA, "Du hast einen Hamburger bestellt.");
GivePlayerCash(playerid,-10);
GameTextForPlayer(playerid, "~r~ -10€", 3000, 1);
Reply


Messages In This Thread
Player gets over 100% health - by Dripac - 12.03.2012, 06:32
Re: Player gets over 100% health - by Babul - 12.03.2012, 06:48
Re: Player gets over 100% health - by Dripac - 12.03.2012, 07:06
Re: Player gets over 100% health - by Babul - 12.03.2012, 07:50

Forum Jump:


Users browsing this thread: 2 Guest(s)