The online racing simulator
The Helath take down spectactors. :/
Hello.
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; }
}

anyone can help me?
Can you type in your native language and then ill translate it because I don't understand your post.
Sorry. I know, my english is very bad.

My cruise insim Take down a energy (health) from spectactors. And than health is on -.
I'm left for the night on spectacte and morning i have - 1780 energy (health)
Now you understand?
// Health Timer
private void HCount_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
foreach (clsPlayer Ply in Players)
{
Connections[GetConnIdx(Ply.UniqueID)].Health -= 2;
}
}

Should only work for players on track now
Quote from dougie-lampkin :
// Health Timer
private void HCount_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
foreach (clsPlayer Ply in Players)
{
Connections[GetConnIdx(Ply.UniqueID)].Health -= 2;
}
}

Should only work for players on track now

Thanks man that all work. Thank You.

FGED GREDG RDFGDR GSFDG