Пример #1
0
 public void Ban(coGameConnection client)
     {
     MessageAll("MsgAdminForce", console.ColorEncode(@"\c2The Admin has banned %1."), client["playerName"]);
     if (!client.isAIControlled())
         console.Call_Classname("BanList", "add", new[] {client["guid"], client.getAddress(), sGlobal["$Pref::Server::BanTime"]});
     client.delete("You have been banned from this server");
     }
        public void GameConnectionLoadMission(coGameConnection client)
            {
            // Send over the information that will display the server info
            // when we learn it got there, we'll send the data blocks

            client["currentPhase"] = "0";

            if (client.isAIControlled())
                GameConnectionOnClientEnterGame(client);
            else
                {
                if (client.isObject())
                    console.commandToClient(client, "MissionStartPhase1", new[] {sGlobal["$missionSequence"], sGlobal["$Server::MissionFile"], sGlobal["MissionGroup.musicTrack"]});
                console.print("*** Sending mission load to client: " + sGlobal["$Server::MissionFile"]);
                }
            }