| Home Page | Recent Changes | Preferences

Admin

UT2003 :: Object >> AdminBase >> Admin (Package: Engine)
Postal 2 :: Object >> AdminBase >> Admin (Package: Engine)

An Object within the PlayerController class that allows players to login as server administrators and perform various administrative functions.

In UT200x this class is only used if the AccessControlClass is set to Engine.AccessControl, i.e. the basic admin interface. The advanced admin interface XAdmin.AccessControlIni? uses the AdminIni? class for handling logged-in admins.

In Postal 2 this is the only Admin class besides AdminBase and it is the default for all Postal 2 gametypes.

Functions [all exec]

Note: In order for exec functions within this class to be executed, they must be preceded with the word "admin". This is coded within PlayerController.

DoLogin(string Password)
Attempts to log the player in as an administrator. This is done by calling the AccessControl's AdminLogin function and comparing the given password with the AccessControl's admin password. If successful, the bAdmin value is set to true.
DoLogout()
Logs the player out of administrator.
KickBan(string S)
Instructs the GameInfo to kick and ban the player specified by S.
Kick(string S)
Instructs the GameInfo to kick the player specified by S.
PlayerList()
Logs a list of all players in the game along with their pings.
RestartMap()
Supposedly restarts the map. However, due to a bug in the function, it simply causes the player giving the command to reconnect to the server.
Switch(string URL)
Tells the server to switch to the specified URL. URL can be a mapname or a full-blown URL with gametype, mutators, etc.
NextMap()
Tells the server to switch to the next map.

Related Topics


Category Class (UT2003)
Category Class (UT2004)
Category Class (P2)

The Unreal Engine Documentation Site

Wiki Community

Topic Categories

Image Uploads

Random Page

Recent Changes

Offline Wiki

Unreal Engine

Console Commands

Terminology

FAQs

Help Desk

Mapping Topics

Mapping Lessons

UnrealEd Interface

UnrealScript Topics

UnrealScript Lessons

Making Mods

Class Tree

Modeling Topics

Chongqing Page

Log In