Something to disable some RCON commands?
#1

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?
Reply
#2

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
Reply
#3

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 >.<
Reply
#4

The rcon commands are handled internally, you could try creating another command that overrides the rcon one though.
Reply
#5

And how to do that? like... just make a command with 2 parameters(/rcon ban id) with a blank what-to-do?
Reply
#6

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.
Reply
#7

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.
}
Reply
#8

Way better to make a custom admin code, as someone suggested already.
Use PVar and zcmd.
Reply
#9

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
Reply
#10

Just don't give the pass to anyone.

You can use

Код:
rcon 0
To disable RCON in your server.cfg.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)