13.12.2011, 13:29
Hey!
What script makes player to have 1hp allways? Even if you get damaged you will have 1hp allways.
What script makes player to have 1hp allways? Even if you get damaged you will have 1hp allways.
public OnGameModeInit()
{
SetTimer("HPT", 1, true);
return 1;
}
forward HPT();
public HPT()
{
for(new i=0; i<GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
SetPlayerHealth(i, 1.0);
}
return 1;
}
Phanto is perfectly right. I would to say that 1000ms = 1second 1ms = 0.1 second why it could be checked in 1ms? It doesn't change anything in this case.
|