IP based account
#1

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

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

So under pInfo i add pIP?
Reply
#4

https://sampwiki.blast.hk/wiki/GetPlayerIp
https://sampwiki.blast.hk/wiki/Strcmp
Reply
#5

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

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)