Auto Login
#1

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 ); }
...
Reply
#2

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...
Reply
#3

Yes you can, but you had not the admin ip?
Reply
#4

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
Reply
#5

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.
Reply
#6

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
Reply
#7

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

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!
Reply
#9

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.
Reply
#10

and now?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)