TextDrawHideForPlayer after 2 seconds
#8

Quote:
Originally Posted by maramizo
Посмотреть сообщение
Where do you create your textdraw?
edit:
Here's how the code should be:
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
{
    new str[40];
    format(str, 40, "%.0f", amount);
    TextDrawSetString(Textdraw0, str);
    TextDrawShowForPlayer(playerid, Textdraw0);
    SetTimerEx("hideplayertd", 2000, 0, "i", playerid)
    return 1;
}

forward hideplayertd(p);
public hideplayertd(p)
{
        TextDrawHideForPlayer(p, Textdraw0);
        return 1;
}
Thanks bro. It worked. Now can you tell me that, when I give damage, the damaged number is shown below, but when I hit again, it shows the damaged number again. Instead I want all that damaged number to be added and inserted that had been hit within 2 seconds. How to do that?
Reply


Messages In This Thread
TextDrawHideForPlayer after 2 seconds - by Captain_Mani - 14.12.2012, 12:01
Re: TextDrawHideForPlayer after 2 seconds - by Captain_Mani - 14.12.2012, 14:33
Re: TextDrawHideForPlayer after 2 seconds - by Threshold - 14.12.2012, 14:39
Re: TextDrawHideForPlayer after 2 seconds - by Threshold - 14.12.2012, 14:46
Re: TextDrawHideForPlayer after 2 seconds - by maramizo - 14.12.2012, 14:51
Re: TextDrawHideForPlayer after 2 seconds - by Captain_Mani - 14.12.2012, 15:08
Re: TextDrawHideForPlayer after 2 seconds - by maramizo - 14.12.2012, 15:25
Re: TextDrawHideForPlayer after 2 seconds - by Captain_Mani - 15.12.2012, 09:30
Re: TextDrawHideForPlayer after 2 seconds - by maramizo - 15.12.2012, 21:34
Re: TextDrawHideForPlayer after 2 seconds - by Captain_Mani - 16.12.2012, 01:20

Forum Jump:


Users browsing this thread: 1 Guest(s)