#1

can someone make me a script that makes a players hp go up by 5% over and over agian for example something like this

Код:
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;
}
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.
Reply
#2

You need to use timer.
Reply
#3

Someone already made something close to the one you want in your previous thread. Anyways, just a note; the number after true is the lenght. "/td" has 3 as lenght, not 10. The lenght actually is optional, so it's better not to use it at all.
Reply
#4

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Someone already made something close to the one you want in your previous thread. Anyways, just a note; the number after true is the lenght. "/td" has 3 as lenght, not 10. The lenght actually is optional, so it's better not to use it at all.
Better is to use ZCMD.
Reply
#5

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)