Difference between revisions of "TPlayers.Player"

From Soldat Community Wiki
Jump to: navigation, search
(new page)
 
(No difference)

Latest revision as of 06:54, 25 July 2013

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;