SA-MP Forums Archive
Auto 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: Auto Login (/showthread.php?tid=109021)



Auto Login - SureShot - 17.11.2009

hey,
i have problems with my auto login (ip) script. i dont use dini.

Exemple for my account saving sys.

i saw in a admin fs with dini -.- this: tmp2 = dini_Get(connect,"IP");

How is that in my system?

Код:
if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strval( val ); }
if( strcmp( key , "TeamKills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTeamKills] = strval( val ); }
...


Re: Auto Login - Benne - 17.11.2009

So stupid to make a "auto-login" thing, then if I know who's admin on the server then I can just change my name to his name and then join the game and BOOM, then I'm admin...


Re: Auto Login - SureShot - 17.11.2009

Yes you can, but you had not the admin ip?


Re: Auto Login - dirkblok - 17.11.2009

Quote:
Originally Posted by SureShot
Yes you can, but you had not the admin ip?
So then you can't login from anywhere else... it's stupid man, try something different


Re: Auto Login - Benne - 17.11.2009

Quote:
Originally Posted by dirkblok
Quote:
Originally Posted by SureShot
Yes you can, but you had not the admin ip?
So then you can't login from anywhere else... it's stupid man, try something different
I agree, then if you are at some LAN party and register to the server and then you go home and want to connect again but you can't... But then you should make it like you may log in from another place too but you have to type in the password first.


Re: Auto Login - dice7 - 17.11.2009

How the hell do you people think that automatic logins work then ? They're based on ips duh

And that's the same as your examples in your system. Just write his ip (https://sampwiki.blast.hk/wiki/GetPlayerIp) in a file when he registers and on connect, if the names match, then match his current ip with the one from the file


Re: Auto Login - darkrider366 - 17.11.2009

it's stupid that they run on IP's, because if your IP is dynamic...ROFL...Just make it a normal login system...


Re: Auto Login - SureShot - 17.11.2009

why
i know that the ip is dynamic, but if a player wants to login and that ip isnt the same as in the file, than the player must use the command to login and thats so unreal that a player get the same ip, and the chance that the player had in this moment the name where the ip is same...
crazy!


Re: Auto Login - darkrider366 - 18.11.2009

Ever though about IP stealers? Proxy's, they can make fake ip's, but i'd just do a normal login if I were you.


Re: Auto Login - SureShot - 22.11.2009

and now?