Something to disable some RCON commands? -
henry jiggy - 11.08.2011
When i make ppl admin, i dont want them having the possibility to change the RCON password and i dont want them to use the /RCON ban [ID] command, i want them to use /ban instead.
any way to disable some RCON commands?
Re: Something to disable some RCON commands? -
Unknown_Killer - 11.08.2011
hmm show us the /rcon ban cmd or just set the rcon ban to admin level 6 (owner) and for /ban set it to the lvl u want
Re: Something to disable some RCON commands? -
henry jiggy - 11.08.2011
i was hoping for someone to give which file and line where RCON command Functions are located or atleast the File. guess i gotta wait abit >.<
Re: Something to disable some RCON commands? -
linuxthefish - 11.08.2011
The rcon commands are handled internally, you could try creating another command that overrides the rcon one though.
Re: Something to disable some RCON commands? -
henry jiggy - 11.08.2011
And how to do that? like... just make a command with 2 parameters(/rcon ban id) with a blank what-to-do?
Re: Something to disable some RCON commands? -
=WoR=Varth - 12.08.2011
You better make costum admin code instead make them to be RCON admin.
And for answer of your question, RCON command disabled only for non-RCON admin player.
Respuesta: Something to disable some RCON commands? -
Alex_Obando - 12.08.2011
pawn Код:
if (strcmp("/ban", cmdtext, true, 10) == 0)
if(IsPlayerAdmin(playerid))
{
return 1;
}
return 0;
}
Why you want them to have the RCON password?
Just dont give them the password and you can do some same commands.
Like this:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/gmx", cmdtext, true, 10) == 0)
{
SendRconCommand("gmx");
return 1;
}
if (strcmp("/say", cmdtext, true, 10) == 0)
{
SendRconCommand("say");
return 1;
}
if (strcmp("/hostname", cmdtext, true, 10) == 0)
{
SendRconCommand("hostname");
return 1;
}
if (strcmp("/gamemodetext", cmdtext, true, 10) == 0)
{
SendRconCommand("gamemodetext");
return 1;
}
return 0;
//You need to change it to your own.
}
Re: Something to disable some RCON commands? -
Kayaque - 12.08.2011
Way better to make a custom admin code, as someone suggested already.
Use PVar and zcmd.
Re: Something to disable some RCON commands? -
TouR - 12.08.2011
Personaly i think that only the server owner should know the rcon password. Don't let admins know your password. Else make custom commands such as /rcon ban id
Re: Something to disable some RCON commands? -
Danny - 12.08.2011
Just don't give the pass to anyone.
You can use
To disable RCON in your server.cfg.