Saving players ip (Custom ban system)
#8

Mugalito: You are totally right, however I am about joining the adventure of making it, I beleive there are people, that are going to support me doing it, anyways I highly appreciate all of you include Rogue for helping, but I will make it on my own. Learning constantly, thats what I want.

So...

Quote:
Originally Posted by ISmokezU
Посмотреть сообщение
Your entire idea is correct and I’ll further guide you.

I think you should a timer when the player connects to load their stats right? Since you’re using Y_ini data should be stored into files, you should then create a separate file by the name Bans and store players name, ip, ban date etc. when they connect and data is being loaded you should check if they were any records in the ban file to match the current connecting player. Functions like Strcmp would be great in checking IPs.
Nice, I will more than welcome your help.

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
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)