IsClientObserver Function

Returns if a certain player is an observer/spectator.

bool IsClientObserver(int client)

Parameters

int client

Player index.

Return Value

True if player is an observer, false otherwise.

Errors

Invalid client index, client not in game, or no mod support.