SA-MP Forums Archive
Automatic rcon login - 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: Automatic rcon login (/showthread.php?tid=119261)



Automatic rcon login - security - 07.01.2010

How can i make a automatic rcon login script? i want so that it looks to your ip, so i can put self the ip in it


Re: Automatic rcon login - Correlli - 07.01.2010

https://sampwiki.blast.hk/wiki/SendRconCommand


Re: Automatic rcon login - Streetplaya - 07.01.2010

Quote:
Originally Posted by Don Correlli
I'm afraid that would not work because you can't specify a playerid or whatever..


Re: Automatic rcon login - SiJ - 07.01.2010

Quote:
Originally Posted by security
How can i make a automatic rcon login script? i want so that it looks to your ip, so i can put self the ip in it
OnPlayerConnect, check Player IP using GetPlayerIP and strcmp (cause IP is a string)
Then use SendRconCommand("login password here");
And OnRconCommand check player's IP again, if it maches, use return 1;, if it don't use return 0;


Re: Automatic rcon login - Streetplaya - 07.01.2010

Quote:
Originally Posted by MaVe;
I'm afraid that would not work because you can't specify a playerid or whatever..
How would you pass the playerid that should get logged in?


Re: Automatic rcon login - SiJ - 07.01.2010

Quote:
Originally Posted by MaVe;
Quote:
Originally Posted by MaVe;
I'm afraid that would not work because you can't specify a playerid or whatever..
How would you pass the playerid that should get logged in?
Check my post :P


Re: Automatic rcon login - security - 07.01.2010

Quote:
Originally Posted by SiJ
Quote:
Originally Posted by MaVe;
Quote:
Originally Posted by MaVe;
I'm afraid that would not work because you can't specify a playerid or whatever..
How would you pass the playerid that should get logged in?
Check my post :P
gonna try can take a while first need to find out to make the damn code XD


Re: Automatic rcon login - Streetplaya - 07.01.2010

Quote:
Originally Posted by SiJ
Quote:
Originally Posted by MaVe;
Quote:
Originally Posted by MaVe;
I'm afraid that would not work because you can't specify a playerid or whatever..
How would you pass the playerid that should get logged in?
Check my post :P
How should SendRconCommand know which player you want to log in??..


Re: Automatic rcon login - SiJ - 07.01.2010

Quote:
Originally Posted by MaVe;
Quote:
Originally Posted by SiJ
Quote:
Originally Posted by MaVe;
Quote:
Originally Posted by MaVe;
I'm afraid that would not work because you can't specify a playerid or whatever..
How would you pass the playerid that should get logged in?
Check my post :P
How should SendRconCommand know which player you want to log in??..
Ohh.. that's what you meant.. I haven't thought about it..


Re: Automatic rcon login - security - 07.01.2010

i dont follow it any more xD