16.04.2011, 15:39
Okey, so I suggest this:
Where the timer starts:
Timer:
If this is not working as you wish, then please give me the two TextDraws where they get created as well.
Regards,
Jeffry
pawn Код:
new PlayerStatus[MAX_PLAYERS];
pawn Код:
PlayerStatus[playerid] = /*Here you enter the amount of textsize at the beginning*/;
pawn Код:
forward l(playerid);
public l(playerid)
{
PlayerStatus[playerid]-=/*Here the amount of lowering it.*/;
TextDrawHideForPlayer(playerid, gTextDrawData[E_REVIVE_PERCENTAGE_BOX][playerid]);
TextDrawHideForPlayer(playerid, gTextDrawData[E_REVIVE_PERCENTAGE][playerid]);
if(multip <= 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "hello.");
return 1;
}
TextDrawTextSize(gTextDrawData[E_REVIVE_PERCENTAGE][playerid], PlayerStatus[playerid], 15.000000);
TextDrawShowForPlayer(playerid, gTextDrawData[E_REVIVE_PERCENTAGE_BOX][playerid]);
TextDrawShowForPlayer(playerid, gTextDrawData[E_REVIVE_PERCENTAGE][playerid]);
return 1;
}
If this is not working as you wish, then please give me the two TextDraws where they get created as well.
Regards,
Jeffry
![Cool](images/smilies/cool.gif)