SetPlayerColor Client function

From Gothic 2 Online: Wiki
Jump to navigation Jump to search

This function was added in version: 0.0.0

Changes the color, the name of the specified player is displayed in.

Syntax

void setPlayerColor(int id, int r, int g, int b)

Required Arguments

  • id: id of the player who's color you want to change.
  • r: red
  • g: green
  • b: blue

Example

function setPlayerAdmin(id, mode)
{
    if (mode)
        setPlayerColor(id, 255, 185, 15);
    else
        setPlayerColor(id, 255, 255, 255);
        
}

Related functions

Server

Shared