GetMapTimeLeft Function

Returns an estimate of the time left before the map ends. If the server has not processed any frames yet (i.e. no players have joined the map yet), then the time left returned will always be infinite.

bool GetMapTimeLeft(int& timeleft)


int& timeleft

Variable to store the time, in seconds. If the value is less than 0, the time limit is infinite.

Return Value

True if the operation is supported, false otherwise.