How to add the damage?
#2

I assume you using a timer to make it go away.

I'll give you the part of the code you need for this from my script its smillier to what you made only I used textdraws

pawn Код:
if(dmgdealt[issuerid] == true) KillTimer(dmgdlttmr[issuerid]);
        dmgdlttmr[issuerid] = SetTimerEx("destroydmgTD",3000,false,"dd",issuerid,playerid);
        dmgdealt[issuerid] = true;
What I did is I made a bool var so I know if to kill the timer or not, if the player keeps damaging the other player the dmgdealt will be true and it will kill the timer before it even starts so it doesnt destroy the textdraw.
Reply


Messages In This Thread
How to add the damage? - by Captain_Mani - 07.08.2013, 10:31
Re: How to add the damage? - by Edix - 07.08.2013, 12:23
Re: How to add the damage? - by Captain_Mani - 07.08.2013, 12:50
Re: How to add the damage? - by Edix - 07.08.2013, 12:53
Re: How to add the damage? - by Captain_Mani - 08.08.2013, 07:43
Re: How to add the damage? - by Captain_Mani - 09.08.2013, 11:18
Re: How to add the damage? - by Captain_Mani - 13.08.2013, 05:20

Forum Jump:


Users browsing this thread: 1 Guest(s)