Saving players ip (Custom ban system)
#9

Quote:
Originally Posted by MrakBuster
Посмотреть сообщение
So, if I understood right, I need to make it somehow like this?

- When I ban player -> create file, save his IP into it (I guess i need GetPlayerIp)
- When the banned player tries to connect, compare his IP with IP i save to string with strcmp (?)
- If the comparison gets right (his IP is on list of banned ones - in the file) i kick him out

If you confirm, I am hoppin on it
yes, that's right. u can also create one file and write all of the banned IPs here (with names included later for unban)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)