TTeam.Player

From Soldat Community Wiki
Revision as of 13:08, 24 July 2013 by Mighty (talk | contribs) (new page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
property Player[i: Byte]: TPlayer
 Access mode: R

Description

An array of players in the Team

Example

This example sends "Hello" message to all players in Red team.
It's important to remember bout "- 1", otherwise you will try to send a message to a player that's not in game

var 
 i: Byte;
begin
 for i:=0 to Team[1].Count - 1 do
  Team[1].Player[i].Tell('Hello');
end;