EliminatePlayer

Category: Player
Since engine version: 4.6.5.0 CP

Description

Eliminates a player. The round counts as 'lost' for all eliminated players.

Syntax

bool EliminatePlayer (int iPlr, bool fQuiet);

Parameters

iPlr:
Number of the player to be eliminated
fQuiet:
If true no message is shown and no sound is played. Furthermore the player file isn't saved and the delay between the call and the actual player removal is skipped. The behaviour is similar to a connection abort in network mode.

Example

if (!FindObjectOwner(FLAG, 0)) EliminatePlayer(0);
The first player is eliminated if he has no more flags.
See also: GameOver
Sven2, November 2001