tell me how to do this - suffer terribly when tracing commands with no arguments - get the description of the plugin - if there are arguments , then check what is the argument and for further action by C#
What do you mean?tell me how to do this - suffer terribly when tracing commands with no arguments - get the description of the plugin - if there are arguments , then check what is the argument and for further action by C#
Say prescribed command /test - get a description of the plug - in if /then test go a different action - if /test start something elseWhat do you mean?
Fucked....Still don't really understand =/
if (cmd == "test")
{
if (args.Length == 0)
{
Server.Broadcast("description");
return;
}
if (args[0] == "start")
{
Server.Broadcast("start");
}
else if (args[0] == "go")
{
Server.Broadcast("go");
}
}
That's what I was trying to find outC#:if (cmd == "test") { if (args.Length == 0) { Server.Broadcast("description"); return; } if (args[0] == "start") { Server.Broadcast("start"); } else if (args[0] == "go") { Server.Broadcast("go"); } }
I'm just doing at the moment PRG systems - and unfortunately was not able to do auto-level rise - will have to do to the players themselves through the team raised the levelC#:if (cmd == "test") { if (args.Length == 0) { Server.Broadcast("description"); return; } if (args[0] == "start") { Server.Broadcast("start"); } else if (args[0] == "go") { Server.Broadcast("go"); } }