GetPlayerColor

Category: Player
Since engine version: 1.0 OC

Description

Determines the player color. The player color is used to identify various owned objects such as flags or clonks as well as his text messages.

Syntax

int GetPlayerColor(int player);

Parameter

player:
Player to be checked

Example

Log("<c %x>%s</c> has a score of %d.", GetPlayerColor(0), GetPlayerName(0), GetScore(0));
Returns status information about the first player, highlighting the player's name in the player color.
See also: GetColor, SetColor
Sven2, 2013-12