07.02.2013, 14:08
Hello, there!
Trying to make a /ban command with a twist. Instead of having them banned, I have set a PlayerVar to Banned=1 so that when they connect, it opens his/her file and checks if the person is banned, but if they join with another name, they're not banned.. How should I check for the IP? Should I make the script open all the files, aka. all the players that ever registered on the server, and check for the IP? Maybe put the banned IP in a file and then check that file for bans or is there a better way?
How would I go about doing this? Thanks in advance :3
Trying to make a /ban command with a twist. Instead of having them banned, I have set a PlayerVar to Banned=1 so that when they connect, it opens his/her file and checks if the person is banned, but if they join with another name, they're not banned.. How should I check for the IP? Should I make the script open all the files, aka. all the players that ever registered on the server, and check for the IP? Maybe put the banned IP in a file and then check that file for bans or is there a better way?
How would I go about doing this? Thanks in advance :3