Quote:
Originally Posted by Afronanny
You'll want to change this line:
PHP Code:
Pingaverage = Pinga / MaxClients;
The average would be not Pinga divided by MaxClients, but Pinga divided by the number of in-game players.
|
yeah, he/she did the calc for the number of in-game players:
Code:
new Players = 0; for (new i = 1; i <= MaxClients; i++) { if (IsClientConnected(i) && IsClientInGame(i) && !IsFakeClient(i)) Players++; }
he/she didn't use it, though.