View Single Post
Bimbo1
Senior Member
Join Date: Jan 2010
Location: brazil
Old 01-17-2013 , 01:11   Re: get average ping
Reply With Quote #4

Quote:
Originally Posted by Afronanny View Post
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.
Bimbo1 is offline