When the timers started: --------------------------------------- - ||||||||||||||||||||||||||||||||||| - - ||||||||||||||||||||||||||||||||||| - --------------------------------------- When the one second pasted: --------------------------------------- - |||||||||||||||||||||||||||||||||| - - |||||||||||||||||||||||||||||||||| - ---------------------------------------
forward l(playerid);
public l(playerid)
{
new count, multip = 0;
multip++;
count = 400.0 - 2 * multip;
TextDrawHideForPlayer(playerid, gTextDrawData[E_REVIVE_PERCENTAGE_BOX][playerid]);
TextDrawHideForPlayer(playerid, gTextDrawData[E_REVIVE_PERCENTAGE][playerid]);
if(multip == 10)
{
SendClientMessage(playerid, COLOR_YELLOW, "hello.");
}
TextDrawTextSize(gTextDrawData[E_REVIVE_PERCENTAGE][playerid], count, 15.000000);
TextDrawShowForPlayer(playerid, gTextDrawData[E_REVIVE_PERCENTAGE_BOX][playerid]);
TextDrawShowForPlayer(playerid, gTextDrawData[E_REVIVE_PERCENTAGE][playerid]);
}
new PlayerStatus[MAX_PLAYERS];
PlayerStatus[playerid] = /*Here you enter the amount of textsize at the beginning*/;
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;
}
Thanks, lol i never thought that method, worked. Just converted into a Float so i can configure out its decimal places.
|