20.12.2010, 10:18
Armour & health for all every 30 seconds
how can i make it?
how can i make it?
//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);
}
}
}