Quote:
Originally Posted by Karan007
PHP код:
COMMAND:banip(playerid, params[])
{
new eReason [ 64 ], iReason[ 128 ], tmp[ 64 ], string[ 128 ];
if(sscanf(params, "ss", eReason, iReason)) return SendClientMessage(playerid, -1,"[IP Range][Reason]");
format(tmp, sizeof(tmp), "banip %s", eReason);
SendRconCommand(tmp);
SendRconCommand("reloadbans");
format(string, sizeof(string), "4[ IPBAN ] IP address %s has been banned. Reason: %s", eReason, iReason);
iEcho(string);
return 1;
}
Not sure if it'll work but try it WITHOUT changing anything in my code.
|
It works now, but i can still connect with that IP.