Hi,
is there a way to transmit code direcktly to the server so it executes for example env.time 10 when i use the [Command("timeset")]?
Thx.
is there a way to transmit code direcktly to the server so it executes for example env.time 10 when i use the [Command("timeset")]?
[Command("timeset")]
private void TestCommand(IPlayer player, string command, string[] args)
{
string envtime;
float hour;
hour = 12.2f;
envtime = "env.time " + hour;
player.Reply(envtime);
}when i use this command ingame with "/timeset" it just replays ingame into chat env.time 10 but does not execute the command to the server it self.Thx.