TPlayers.Player

From Soldat Community Wiki
Jump to: navigation, search
property Player[i: Byte]: TActivePlayer
 i: ID of a player. 1-32
 Access mode: R

Description

An Array representing players in game

Example

 var
  i: byte;
 begin
  for i := 1 to 32 do if Players.Player[i].Team = 5 then
   Players.Player[i].WriteConsole('Stop occupying player slots!',$FF0000); //sends a message to all spectators
 end;