Nuno Silva wrote: > Does UTIL_PlayerByIndex really take indices like that? 1 to n? > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please > visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > I think it does, 1 - 32 (example for a 32 player server), not 0 - 31. But it's been a long time so feel free to prove me wrong.
And yes, UTIL_PlayerByIndex will return NULL if the passed index is not currently inhabited by a player. Maxclients is the maximum number of the clients the server can handle, not the number of clients connected to the server. _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

