0 Members and 1 Guest are viewing this topic.
procedure OnJoinTeam(ID, Team: byte);begin PTeam[ID] := Team;end;procedure OnJoinGame(ID, Team: byte);begin PTeam[ID] := Team; Command('/setteam5 1');end;procedure OnLeaveGame(ID, Team: byte; Kicked: boolean);begin PTeam[ID] := 0;end;
procedure OnJoinTeam(ID, Team: byte);begin if not(Joined = ID) then PTeam[ID] := Team else Joined := 0;end;procedure OnJoinGame(ID, Team: byte);begin Command('/setteam5 1'); PTeam[ID] := 5; Joined := ID;end;procedure OnLeaveGame(ID, Team: byte; Kicked: boolean);begin PTeam[ID] := 0;end;
Also it is possible to connect with a server, but if u dont pick you team fast it might turn out that somebody else joined during your team picking and the servers full aready. The game would just freeze. then, only thing i could do is quit to lobby.I was thinking about booleans also, was a choice between a little faster process and less variables. Or there's no difference?