Hello,
I'm learning C# and I'm trying to make a plugin that enable/disable respawn button depending conditions.
I tried many Arg but no one return the "respawn" value. Can you help me?
I'm learning C# and I'm trying to make a plugin that enable/disable respawn button depending conditions.
private object OnServerCommand(ConsoleSystem.Arg arg)
{
if (arg.Args[0].ToLower() == "respawn")
{
if (doAllowRespawn == true) {
Puts("Respawn allowed.");
return null;
}
else {
Puts("Respawn not allowed.");
return false;
}
}
else {
Puts("Not respawn command.");
return false;
}
}I tried many Arg but no one return the "respawn" value. Can you help me?