05.06.2015, 09:39
Hello to all. Today I wanna implement a function in my admin tool filterscript. As I'm new on INI and similars and never saved text to .txt files, I would like to know how to do few things.
- OnPlayerConnect:
Save name of the player on a newline in a txt file (/n playername)
Save ip of the previous guy in another txt file
OnPlayerUpdate (maybe I'm wrong but I think it's correct)
If he got banned when next login, this system check into the previous 2 files if in him account name and IP there is a ban. If so, get kicked with date, him details and the reason.
I dunno if for this is better MySQL or anything else. As I've never used it, I'm totally on Yours hand. I will give a big thanx to who will help me out with this!
- OnPlayerConnect:
Save name of the player on a newline in a txt file (/n playername)
Save ip of the previous guy in another txt file
OnPlayerUpdate (maybe I'm wrong but I think it's correct)
If he got banned when next login, this system check into the previous 2 files if in him account name and IP there is a ban. If so, get kicked with date, him details and the reason.
I dunno if for this is better MySQL or anything else. As I've never used it, I'm totally on Yours hand. I will give a big thanx to who will help me out with this!