24.08.2013, 20:05
can someone make me a script that makes a players hp go up by 5% over and over agian for example something like this
the thing that is wrong with this is that it only makes the players hp go up 5% once i need one that makes it go up over and over again +5
and while your at it (if u do it) can u make the player put in an amout (/td 1 or 2 or 3 etc) but if that amount is over 100 they die.
Код:
if (strcmp("/td", cmdtext, true, 10) == 0)
{
new Float:health;
GetPlayerHealth(playerid, health);
SetPlayerHealth(playerid, health+5);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "On Drugs");
ApplyAnimation(playerid,"SMOKING", "smoke_01", 4.0, 1, 0, 0, 0, 0);
return 1;
}
and while your at it (if u do it) can u make the player put in an amout (/td 1 or 2 or 3 etc) but if that amount is over 100 they die.


