mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-10 06:34:16 +00:00
add "cmd_server" command which can run a command as server
This commit is contained in:
parent
b4dee531f2
commit
8f704ba720
1 changed files with 5 additions and 0 deletions
|
@ -22,6 +22,7 @@ namespace SanAndreasUnity.Commands
|
|||
new CommandManager.CommandInfo("connect", "connect to server", false),
|
||||
new CommandManager.CommandInfo("exit", "exit application", false),
|
||||
new CommandManager.CommandInfo("camera_disable", "disable or enable camera", false),
|
||||
new CommandManager.CommandInfo("cmd_server", "run command as server", false),
|
||||
};
|
||||
|
||||
foreach (var immutableCmd in commands)
|
||||
|
@ -64,6 +65,10 @@ namespace SanAndreasUnity.Commands
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (words[0] == "cmd_server")
|
||||
{
|
||||
return CommandManager.Singleton.ProcessCommandAsServer(restOfTheCommand);
|
||||
}
|
||||
else if (words[0] == "uptime")
|
||||
{
|
||||
response += F.FormatElapsedTime(Time.realtimeSinceStartup);
|
||||
|
|
Loading…
Reference in a new issue