13.01.2011, 03:21
Well make a command like /unban (name)
Then inside the command check if the username exists, load the user's IP if it does, store it in a variable & do this:
format(string,sizeof(string),"unbanip %s",IPSTRINGHERE);
SendRconCommand(string);
SendRconCommand("reloadbans");
Remember to make the IP variable a string, not an integer (number :/).
Then inside the command check if the username exists, load the user's IP if it does, store it in a variable & do this:
format(string,sizeof(string),"unbanip %s",IPSTRINGHERE);
SendRconCommand(string);
SendRconCommand("reloadbans");
Remember to make the IP variable a string, not an integer (number :/).