03.04.2016, 08:43
Hello,
i'm making a command (banip), but it doesn't work.
Everytime i ban someone using the command it shows:
When i ban a ip using the rcon, i get this:
The ip shows banned, but i still can join ingame.
This is my banip command:
What's wrong here and why doesn't it work?
i'm making a command (banip), but it doesn't work.
Everytime i ban someone using the command it shows:
Код:
127.0.0.1 [03/04/16 | 10:36:52] justjamie - (null)
Код:
127.0.0.1 [03/04/16 | 10:39:50] NONE - IP BAN
This is my banip command:
pawn Код:
COMMAND:banip(playerid, params[])
{
new eReason [ 64 ], iReason[ 128 ], tmp[ 64 ], string[ 128 ];
if(sscanf(params, "ss", eReason, iReason)) return SCP(playerid, "[IP Range][Reason]");
format(tmp, sizeof(tmp), "banip %s", eReason);
SendRconCommand(tmp);
SendRconCommand("reloadbans");
format(string, MAX_STRING, "4[ IPBAN ] IP address %s has been banned. Reason: %s", eReason, iReason);
iEcho(string);
return 1;
}