SA-MP Forums Archive
Armour & health for all every 30 seconds [SOLVED in 1min] - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Armour & health for all every 30 seconds [SOLVED in 1min] (/showthread.php?tid=201086)



Armour & health for all every 30 seconds [SOLVED in 1min] - LZLo - 20.12.2010

Armour & health for all every 30 seconds

how can i make it?


Re: Armour & health for all every 30 seconds - LZLo - 20.12.2010

sry DONE


Re: Armour & health for all every 30 seconds [SOLVED in 1min] - rjjj - 20.12.2010

I did it :

pawn Код:
//Put in OnGameModeInit:

SetTimer("ArmourHealth",30000,1);



//And, in the end of your gamemode:

forward ArmourHealth();
public ArmourHealth()
{
    for(new x=0; x<MAX_PLAYERS; x++)
    {
        if(IsPlayerConnected(x))
        {
            SetPlayerHealth(x, 100);
            SetPlayerArmour(x, 100);
        }
    }
}

I hope that i have helped