SA-MP Forums Archive
Locking the RCON Screen - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Locking the RCON Screen (/showthread.php?tid=68260)



Locking the RCON Screen - harrold - 08.03.2009

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


Re: Locking the RCON Screen - Think - 08.03.2009

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


Re: Locking the RCON Screen - harrold - 08.03.2009

I need to return the rcon to 0?


Re: Locking the RCON Screen - Think - 08.03.2009

Код:
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;
}



Re: Locking the RCON Screen - harrold - 08.03.2009

Or...

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


Re: Locking the RCON Screen - Nero_3D - 08.03.2009

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


Re: Locking the RCON Screen - MenaceX^ - 08.03.2009

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;
}



Re: Locking the RCON Screen - Norn - 08.03.2009

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.