XIIIMP
Class XIIIAdmin

source: C:\XIII\XIIIMP\Classes\XIIIAdmin.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Controller
         |
         +--Engine.PlayerController
            |
            +--XIII.XIIIPlayerController
               |
               +--XIIIMP.XIIIMPPlayerController
                  |
                  +--XIIIMP.XIIIAdmin
Direct Known Subclasses:None

class XIIIAdmin
extends XIIIMP.XIIIMPPlayerController

//----------------------------------------------------------- // //-----------------------------------------------------------

Function Summary
 void Admin(string CommandLine)
     
//_____________________________________________________________________________
// Execute an administrative console command on the server.
exec 
 void Kick(string S)
     
//_____________________________________________________________________________
 void KickBan(string S)
     
//_____________________________________________________________________________
 void PlayerList()
     
//_____________________________________________________________________________



Source Code


00001	//-----------------------------------------------------------
00002	//
00003	//-----------------------------------------------------------
00004	class XIIIAdmin extends XIIIMPPlayerController;
00005	
00006	//_____________________________________________________________________________
00007	replication
00008	{
00009	  reliable if( Role<ROLE_Authority )
00010	     Kick, KickBan;
00011	}
00012	
00013	/*
00014	//_____________________________________________________________________________
00015	// Execute an administrative console command on the server.
00016	exec function Admin( string CommandLine )
00017	{
00018	    local string Result;
00019	
00020	    Result = ConsoleCommand( CommandLine );
00021	    if( Result!="" )
00022	      ClientMessage( Result );
00023	}
00024	*/
00025	
00026	//_____________________________________________________________________________
00027	exec function KickBan( string S )
00028	{
00029	    if ( S ~= PlayerReplicationInfo.PlayerName )
00030	      return; // no self-kick ?
00031	    Level.Game.KickBan(S);
00032	}
00033	
00034	//_____________________________________________________________________________
00035	exec function Kick( string S )
00036	{
00037	    if ( S ~= PlayerReplicationInfo.PlayerName )
00038	      return; // no self-kick ?
00039	    Level.Game.Kick(S);
00040	}
00041	
00042	//_____________________________________________________________________________
00043	exec function PlayerList()
00044	{
00045	    local PlayerReplicationInfo PRI;
00046	
00047	    log("Player List:");
00048	    ForEach DynamicActors(class'PlayerReplicationInfo', PRI)
00049	      log("'"$PRI.PlayerName$"' ( ping"@PRI.Ping$")");
00050	}
00051	
00052	
00053	
00054	defaultproperties
00055	{
00056	}

End Source Code