How to make an automatic rcon login?
#1

Hi guys, im getting sick of having to login to rcon each time. So is there anyway to make it login me in as admin automaticly? Like it does automaticly /rcon login hello123. Just log me in to the Standard RCON Admin :P Would be really cool and handy..

Thanks!
Reply
#2

Not sure about that.
Never tried / tought about something like that,
I'm might sure you can do it by OnPlayerConnect, When an admins connects it auto logs him to the RCON.
Reply
#3

When you do /login. Just check if the player's name is yourname by doing a simple
pawn Код:
GetPlayerName( playerid , pName , sizeof( pName ) );
Then check if it's yours with strcmp.
If so, use SendRconCommand.
Reply
#4

Quote:
Originally Posted by Marcel
When you do /login. Just check if the player's name is yourname by doing a simple
pawn Код:
GetPlayerName( playerid , pName , sizeof( pName ) );
Then check if it's yours with strcmp.
If so, use SendRconCommand.
Wouldnt be that smart , if a other guy tries to login with your name.
Reply
#5

Quote:
Originally Posted by Biofreeze
Quote:
Originally Posted by Marcel
When you do /login. Just check if the player's name is yourname by doing a simple
pawn Код:
GetPlayerName( playerid , pName , sizeof( pName ) );
Then check if it's yours with strcmp.
If so, use SendRconCommand.
Wouldnt be that smart , if a other guy tries to login with your name.
It will be, read the text I made bold. Just do it after you have checked the password.
Reply
#6

and check the ip too ^^
Reply
#7

Quote:
Originally Posted by Marcel
When you do /login. Just check if the player's name is yourname by doing a simple
pawn Код:
GetPlayerName( playerid , pName , sizeof( pName ) );
Then check if it's yours with strcmp.
If so, use SendRconCommand.
Well, If he doesn't have a login system?..
Reply
#8

Then check on OnPlayerConnect for the name and IP.
Reply
#9

But i still dont know how to log in then..anybody help?
Reply
#10

You guys know,
pawn Код:
SendRconCommand(arguments);
is a function that just sends RCON commands,
how will the script/server know who exactly has logged into rcon with this function..?

I don't think there is another way to login into RCON, don't be lazy or use a keybind
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)