SA-MP Forums Archive
IP based account - 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)
+--- Thread: IP based account (/showthread.php?tid=283924)



IP based account - vent - 17.09.2011

Hello, again. So i want to make an ip based account, so if there is an account with the same ip, you cant make another one. Im using ini.


Re: IP based account - [MWR]Blood - 17.09.2011

When a player registers, save his IP in a file; then, check if that IP already exists and matches with the player's one.


Re: IP based account - vent - 17.09.2011

So under pInfo i add pIP?


Re: IP based account - =WoR=Varth - 17.09.2011

https://sampwiki.blast.hk/wiki/GetPlayerIp
https://sampwiki.blast.hk/wiki/Strcmp


Re: IP based account - vent - 17.09.2011

I'm sorry but i am not good at pawn. Maybe can you show me the code?
E: Um, with attempts, that means if you entered your password 3 times wrong, then you will be banned. ;>


Re: IP based account - Vince - 17.09.2011

Quote:
Originally Posted by vent
Посмотреть сообщение
Hello, again. So i want to make an ip based account, so if there is an account with the same ip, you cant make another one. Im using ini.
Possible, but hard to achieve with ini files. The more accounts you have, the longer it will take to open all files to check one simple value. This is pretty much exactly what SQL was made for: handling large portions of data.


Re: IP based account - linuxthefish - 17.09.2011

Just be warned, this is a crap way to handle accounts as most people have dynamic IP's...