Help With dcmd_unban
#6

Then, you need to add two fields in the account saves:
-pIP
-pBanned

When the player connect to your server refresh the pIP field, and save it to his file.
Edit your ban command, and before the Ban(id); Add
pawn Код:
PlayerInfo[id][pBanned] = 1; //edit this in base of your script
Then in the unban command open the file with the name written in the command, get the two fields, set pBanned = 0
and get the IP as string, then use
pawn Код:
new bcmd[32];
format(bcmd, sizeof(bcmd), "unban %s", IP); //WHERE IP is the IP read from the file
SendRconCommad(bcmd);
Reply


Messages In This Thread
Help With dcmd_unban - by HitterHitman - 24.12.2013, 11:36
Re: Help With dcmd_unban - by HitterHitman - 24.12.2013, 11:52
Re: Help With dcmd_unban - by Sk1lleD - 24.12.2013, 12:04
Re: Help With dcmd_unban - by HitterHitman - 24.12.2013, 12:07
Re: Help With dcmd_unban - by SilentSoul - 24.12.2013, 12:19
Re: Help With dcmd_unban - by Sk1lleD - 24.12.2013, 12:23
Re: Help With dcmd_unban - by HitterHitman - 24.12.2013, 12:24
Re: Help With dcmd_unban - by SilentSoul - 24.12.2013, 12:27
Re: Help With dcmd_unban - by HitterHitman - 24.12.2013, 12:28
Re: Help With dcmd_unban - by Kells - 24.12.2013, 12:34

Forum Jump:


Users browsing this thread: 3 Guest(s)