Difference between revisions of "TActivePlayer.Team"
(Created page with " '''''property TActivePlayer.Team: Byte''''' Acess mode: RW ==Description== Number representing the current team of a player. Available values:<br><br> 0: No team<br> 1: Alp...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
'''''property TActivePlayer.Team: Byte''''' | '''''property TActivePlayer.Team: Byte''''' | ||
− | + | Access mode: RW | |
==Description== | ==Description== | ||
Number representing the current team of a player. Available values:<br><br> | Number representing the current team of a player. Available values:<br><br> | ||
Line 15: | Line 15: | ||
i: byte; | i: byte; | ||
begin | begin | ||
− | for i := 1 to 32 do if Players[i].Team = 5 then Players[i].WriteConsole('Stop occupying player slots!',$FF0000); //sends a message to all spectators | + | for i := 1 to 32 do if Players[i].Team = 5 then |
+ | Players[i].WriteConsole('Stop occupying player slots!',$FF0000); //sends a message to all spectators | ||
end; | end; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:TActivePlayer]] | [[Category:TActivePlayer]] |
Latest revision as of 20:41, 26 June 2013
property TActivePlayer.Team: Byte Access mode: RW
Description
Number representing the current team of a player. Available values:
0: No team
1: Alpha
2: Bravo
3: Charlie
4: Delta
5: Spectators
Example
var
i: byte;
begin
for i := 1 to 32 do if Players[i].Team = 5 then
Players[i].WriteConsole('Stop occupying player slots!',$FF0000); //sends a message to all spectators
end;