Locking the RCON Screen
#1

Possible?
Then if i press ban 35
Then it says The Rcon Is Locked
Reply
#2

You want to make it or does it happen to you with your script
Reply
#3

I need to return the rcon to 0?
Reply
#4

Код:
new rconlock = 0;
any command to make it locked set it to 1 and to 0 you create that.

Код:
public OnRconCommand(cmd[])
{
	if(rconlock == 1)
	{
		SendClientMessage(playerid, 0xAA3333AA, "Sorry the rcon is locked");
		return 0;
	}
	return 1;
}
Reply
#5

Or...

pawn Код:
public OnRconCommand(cmd[])
{
    if(rconlock == 1)
    {
        return 0;
    }
    return 1;
}
cause the playerid can't !
Reply
#6

Its just not possible to block hard coded commands (/rcon kick / ban ...)
And the public OnRconCommand doesnt get called in your gm
Reply
#7

Quote:
Originally Posted by ♣ ⓐⓢⓢ
Its just not possible to block hard coded commands (/rcon kick / ban ...)
And the public OnRconCommand doesnt get called in your gm
I'm not sure about that.
pawn Код:
public OnRconCommand(cmd[])
{
  return 1;
}
Reply
#8

Quote:
Originally Posted by MenaceX^
Quote:
Originally Posted by ♣ ⓐⓢⓢ
Its just not possible to block hard coded commands (/rcon kick / ban ...)
And the public OnRconCommand doesnt get called in your gm
I'm not sure about that.
pawn Код:
public OnRconCommand(cmd[])
{
  return 1;
}
Return 1 allows it to further lol.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)