SA-MP Forums Archive
Decrease textdrawtextsize every 1 sec - 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: Decrease textdrawtextsize every 1 sec (/showthread.php?tid=665486)



Decrease textdrawtextsize every 1 sec - zowzow - 06.04.2019




PHP Code:
public SecondCount()
{
    foreach (new 
Player)
    {
        if(
Bar[i] >= 100)
        {
            
// Normal bar
            
PlayerTextDrawTextSize(iTextdraws[i][0], 200.00014.029999);
            
PlayerTextDrawShow(iTextdraws[i][0]);
        } else {
            
// Decrease every 1 sec
            
PlayerTextDrawTextSize(iTextdraws[i][0], 190.00014.029999); 
            
PlayerTextDrawShow(iTextdraws[i][0]);
        }
    }
    return 
1;

I want Textdraws[i][0] to keep decrease -10 until 0 How to build something like this