GetTaggedPlayerName
Category: Player
Since engine version: 4.9.6.0 CR
Description
Returns the name of a player, including color markup using the player color. If the specified player number is invalid, 0 is returned. Thus this function can also be used to determine whether a player of a given number exists.
Syntax
string GetTaggedPlayerName
(int iPlayer);
Parameter
- iPlayer:
Number of the player whose name to get
Remark
The markup color is chosen so the player name will be readable on black background. Dark player names are brightened up.
Example
protected func Activate(pClonk)
{
Message("%s hat das Objekt aktiviert!", 0, GetTaggedPlayerName(GetController(pClonk)));
return(1);
}
Object script: When activated, a global message will be shown telling that the player just activated this object.
Sven2, März 2006