by Dr. Shadowborg » Mon Feb 10, 2014 11:38 pm
Found what I needed:
string = getplayerkeyvalue(-1, "topcolor");
string = getplayerkeyvalue(-1, "bottomcolor");
Above returns color number as used by quake's color cvar from the player currently in the lead.
string = getplayerkeyvalue(-1, "topcolor_rgb");
string = getplayerkeyvalue(-1, "bottomcolor_rgb");
Returns rgb values from the player currently in the lead. Use stov() to convert to a vector.
Also:
string = getplayerkeyvalue(-2, "frags");
Returns frags from runner up player. Returns "" if no runner up, which can be used to determine if there are any other players.