SA-MP Forums Archive
/td - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /td (/showthread.php?tid=459806)



/td - AIMigboboy - 24.08.2013

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.


Re: /td - x96664 - 24.08.2013

You need to use timer.


Re: /td - Konstantinos - 24.08.2013

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.


Re: /td - x96664 - 24.08.2013

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.


Re: /td - AIMigboboy - 25.08.2013

bump