View Single Post
  #19  
Old 01-30-2012, 09:24 AM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Sending server console commands from script
Kick example

Code:
if (GamePlay is GameServerDef)
{
      GameServerDef gameServer = (GameServerDef)GamePlay;
      gameServer.consoleInput("kick player_name");
}
Therefore it is possible to automatically kick, ban, unban, save/load banlist and execute any other server commands from a script.

Thanks to Small_Bee for sharing.
Reply With Quote