Difference between revisions of "TGame.OnJoin"
(new page) |
m (→Example) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
'''''property OnJoin''''' | '''''property OnJoin''''' | ||
Access mode: RW | Access mode: RW | ||
+ | Event handler type: [[TOnJoinGameEvent]] | ||
Event handler declaration: procedure (Player: [[TActivePlayer]]; Team: [[TTeam]]); | Event handler declaration: procedure (Player: [[TActivePlayer]]; Team: [[TTeam]]); | ||
Line 27: | Line 28: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | [[Category:TGame]] | + | [[Category:TGame]][[Category:Events]] |
Latest revision as of 13:27, 26 July 2013
property OnJoin Access mode: RW Event handler type: TOnJoinGameEvent Event handler declaration: procedure (Player: TActivePlayer; Team: TTeam);
Description
Event property called when a player joins the server.
Example
procedure SpecOnJoin(Player: TActivePlayer; Team: TTeam);
begin
Player.Team := 5;
end;
// ...
begin
// assign OnJoin handler
Game.OnJoin := @SpecOnJoin;
// ...
// unassign
Game.OnJoin := nil;
end;