0 Members and 1 Guest are viewing this topic.
procedure OnPlayerRespawn(ID:Byte);beginif ((GetPlayerStat(ID,'Team') = 2 then begin WriteConsole(ID, 'Wrong team, moving you to team Alpha', $90C2A0); Command('/setteam2 '+IntToStr(ID));end;
procedure OnJoinTeam(ID, Team: byte);begin if Team=2 then begin WriteConsole(ID, 'Wrong team, moving you to team Alpha', $90C2A0); Command('/setteam1' +inttostr(ID)); end;end;
Command('/setteam1 ' + inttostr(ID));