Question about Rcon
#1

Hi guys...
I'm wondering if it is possible to make a player auto-login into rcon...
for example:

If Admin Level 5 joins, he gets auto-logged in into Rcon when he logs in into his acc
Reply
#2

go in samp and right click the server

click on properties and type in rcon password and click save.

idk if it auto logs in though
Reply
#3

na..I mean without entering the RCON pass:P...
...something to force the player into rcon..
Reply
#4

U cant login player into rcon without /rcon login pass
Reply
#5

isn't it possible somehow to make them login via the script...like SendPlayerMessage...or so?
Reply
#6

Impossible. (What'd happen if you'd add a 'playerid' to SendRconCommand? )

Maybe useful for future versions, though I won't recommend it.
Reply
#7

haha...lol I will try that at /login:


SendRconCommand(login xxxx);

Reply
#8

Like I said, SendRconCommand doesn't uses any ID, so it's impossible to check.
Reply
#9

Quote:
Originally Posted by Sascha
haha...lol I will try that at /login:


SendRconCommand(login xxxx);

Won't work.

Just on player command add a command which can check if player is admin then pass cmd to rcon with SendRconCommand...
Reply
#10

how do you want to add playerid to SendRconCommand lol?

//edit: you can try that:

pawn Код:
if(!strcmp(cmdtext, "/login", true)){
new string[256];
new rcon[256];
GetServerVarAsString("rcon_password", rcon, 256);
format(string, 256, "login %s", rcon);
SendRconCommand(string);
SendClientMessage(playerid,COLOR_WHITE,"SERVER: You are logged in as admin.");
return 1;
}
the command get's the rcon from server.cfg but it doesnt log the player
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)