Hello.
The health on my cruise button take down a health spectactors... how to make only for a players not spectactors...
Codes:
Form1.cs:
clsConnections.cs:
The health on my cruise button take down a health spectactors... how to make only for a players not spectactors...
Codes:
Form1.cs:
// Health Timer
private void HCount_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
try
{
foreach (clsConnection Ply in Connections)
{
Ply.Health -= 2;
}
}
catch { }
}
clsConnections.cs:
public int Health
{
get { return _health; }
set { _health = value; }
}