Unban command help please
#4

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 :/).
Reply


Messages In This Thread
Unban command help please - by darkknight123 - 13.01.2011, 02:32
Re: Unban command help please - by cessil - 13.01.2011, 03:06
Re: Unban command help please - by darkknight123 - 13.01.2011, 03:13
Re: Unban command help please - by coole210 - 13.01.2011, 03:21

Forum Jump:


Users browsing this thread: 5 Guest(s)