Class GameServer
Static class for functionality of the actual server process
Assembly: SlipeServer.dll
Syntax
public static class GameServer
Properties
|
Improve this Doc
View Source
Announcement
Returns the MTA Server Log
Declaration
public static Announcement Announcement { get; }
Property Value
|
Improve this Doc
View Source
Config
Get the server config handler
Declaration
public static Config Config { get; }
Property Value
|
Improve this Doc
View Source
Console
Declaration
public static MtaConsole Console { get; }
Property Value
|
Improve this Doc
View Source
Debug
Declaration
public static MtaDebug Debug { get; }
Property Value
|
Improve this Doc
View Source
FpsLimit
Get and set the limit at which clients can run their game on this server
Declaration
public static int FpsLimit { get; set; }
Property Value
|
Improve this Doc
View Source
FPSLimit
Get and set the FPS limit
Declaration
public static int FPSLimit { get; set; }
Property Value
|
Improve this Doc
View Source
HTTPPort
Get the HTTP port of this server
Declaration
public static int HTTPPort { get; }
Property Value
|
Improve this Doc
View Source
IsVoiceEnabled
Get if voice is currently enabled
Declaration
public static bool IsVoiceEnabled { get; }
Property Value
|
Improve this Doc
View Source
Log
Declaration
public static ServerLog Log { get; }
Property Value
|
Improve this Doc
View Source
MaxPlayers
Get and set the player limit
Declaration
public static int MaxPlayers { get; set; }
Property Value
|
Improve this Doc
View Source
Name
Get the name of this server
Declaration
public static string Name { get; }
Property Value
|
Improve this Doc
View Source
Password
Get and set the server password
Declaration
public static string Password { get; set; }
Property Value
|
Improve this Doc
View Source
Port
Get the port this server runs on
Declaration
public static int Port { get; }
Property Value
|
Improve this Doc
View Source
TickCount
Get the amount of time that the system has been running in milliseconds.
Declaration
public static int TickCount { get; }
Property Value
|
Improve this Doc
View Source
Version
Get the current MTA version of this server
Declaration
public static SystemVersion Version { get; }
Property Value
Methods
|
Improve this Doc
View Source
IsGlitchEnabled(Glitch)
Check if a certain GTA glitch is enabled
Declaration
public static bool IsGlitchEnabled(Glitch glitch)
Parameters
Type |
Name |
Description |
Glitch |
glitch |
|
Returns
|
Improve this Doc
View Source
SetGlitchEnabled(Glitch, Boolean)
Enable or disable a certain known GTA glitch
Declaration
public static bool SetGlitchEnabled(Glitch glitch, bool enabled)
Parameters
Returns
|
Improve this Doc
View Source
Shutdown(String)
Terminates the server process
Declaration
public static void Shutdown(string reason)
Parameters
Type |
Name |
Description |
String |
reason |
|
Events
|
Improve this Doc
View Source
OnPlayerConnect
Declaration
public static event GameServer.OnPlayerConnectHandler OnPlayerConnect
Event Type
|
Improve this Doc
View Source
OnPreStart
Declaration
public static event GameServer.OnPreStartHandler OnPreStart
Event Type
|
Improve this Doc
View Source
OnSettingChange
Declaration
public static event GameServer.OnSettingChangeHandler OnSettingChange
Event Type
|
Improve this Doc
View Source
OnStart
Declaration
public static event GameServer.OnStartHandler OnStart
Event Type
|
Improve this Doc
View Source
OnStop
Declaration
public static event GameServer.OnStopHandler OnStop
Event Type