0 Members and 1 Guest are viewing this topic.
//Scropt written by Dirol [RUS]procedure EndTrain();begin Command ('/kick Boogie Man'); Command ('/kick Kruger'); Command ('/kick Sniper'); Command ('/kick Dutch'); Command ('/kick Admiral'); Command ('/kick Terminator'); Command ('/kick John'); Command ('/kick Billy'); Command ('/kick Danko'); Command ('/kick Poncho'); Command ('/kick D Dave'); Command ('/kick Blain'); Command ('/kick Srg. Mac'); Command ('/kick Stevie'); Command ('/kick Roach'); Command ('/kick Commando'); Command ('/kick Zombie');end;procedure OnJoinTeam(IP, Nickname: string;Team: byte);begin Command('/pm '+inttostr(NameToID(Nickname))+' Say !commands to view a list of available commands'); if (NumPlayers=1) then begin if (Team=1) then Command('/addbot2 '+RandomBot); if (Team=2) then Command('/addbot1 '+RandomBot); end; if (NumPlayers-NumBots=2) then EndTrain(); if (NumPlayers=0) then EndTrain();end;procedure OnLeaveGame(IP, Nickname: string;Team: byte);begin if (NumPlayers=1) then begin if (Team=1) then Command('/addbot1 '+RandomBot); if (Team=2) then Command('/addbot2 '+RandomBot); end; if (NumPlayers=NumBots) then EndTrain();end;procedure OnPlayerSpeak(Name,Text: string);begin if (Text='!addbotA') then //some manual manipulations, which are accessible to players begin Command('/say Random bot has been added to Alpha team. Type !end to remove all bots'); Command('/addbot1 '+RandomBot); end; if (Text='!addbotB') then begin Command('/say Random bot has been added to Bravo team. Type !end to remove all bots'); Command('/addbot2 '+RandomBot); end; if (Text='!end') then //player can manually delete all bots, by saying !end begin Command ('/say '+Name+' has ended training'); EndTrain(); end;end;
BotBalanceTeams=1
if (NumPlayers=1) then begin if (AlphaPlayers=1) then Command('/addbot2 '+RandomBot); if (BravoPlayers=1) then Command('/addbot1 '+RandomBot); end;