19.03.2011, 22:53
How can i make every 10min player gets 100 % health?
SetTimer("RehealPlayers", 600*1000, true);
forward RehealPlayers();
public RehealPlayers()
{
for(new z = 0; z < MAX_PLAYERS; z += 1) { SetPlayerHealth(z, 100.00); }
}
forward HealAll();
public HealAll()
{
new playerid;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && (i != playerid)
{
SetPlayerHealth(i,100.0);
}
}
SetTimer("HealAll", 10000);