Question about Rcon -
Sascha - 20.06.2010
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
Re: Question about Rcon -
Kar - 20.06.2010
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
Re: Question about Rcon -
Sascha - 20.06.2010
na..I mean without entering the RCON pass:P...
...something to force the player into rcon..
Re: Question about Rcon -
Jefff - 20.06.2010
U cant login player into rcon without /rcon login pass
Re: Question about Rcon -
Sascha - 20.06.2010
isn't it possible somehow to make them login via the script...like SendPlayerMessage...or so?
Re: Question about Rcon -
Hiddos - 20.06.2010
Impossible. (What'd happen if you'd add a 'playerid' to SendRconCommand?
)
Maybe useful for future versions, though I won't recommend it.
Re: Question about Rcon -
Sascha - 20.06.2010
haha...lol I will try that at /login:
SendRconCommand(login xxxx);
Re: Question about Rcon -
Hiddos - 20.06.2010
Like I said, SendRconCommand doesn't uses any ID, so it's impossible to check.
Re: Question about Rcon -
Mina - 20.06.2010
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...
Re: Question about Rcon -
DowNlOaD_ - 20.06.2010
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