Banip help
#9

PHP код:
COMMAND:banip(playeridparams[])
{
    new 
eReason 64 ], iReason128 ], tmp64 ], string128 ];
    if(
sscanf(params"ss"eReasoniReason)) return SendClientMessage(playerid, -1,"[IP Range][Reason]");

    
format(tmpsizeof(tmp), "banip %s"eReason);
    
SendRconCommand(tmp);
    
SendRconCommand("reloadbans");

    
format(stringsizeof(string), "4[ IPBAN ] IP address %s has been banned. Reason: %s"eReasoniReason);
    
iEcho(string);
    return 
1;

Not sure if it'll work but try it WITHOUT changing anything in my code.
Reply


Messages In This Thread
Banip help - by justjamie - 03.04.2016, 08:43
Re: Banip help - by justjamie - 03.04.2016, 09:21
Re: Banip help - by AndySedeyn - 03.04.2016, 09:26
Re: Banip help - by justjamie - 03.04.2016, 09:54
Re: Banip help - by iKevin - 03.04.2016, 09:57
Re: Banip help - by justjamie - 03.04.2016, 10:01
Re: Banip help - by Tingesport - 03.04.2016, 10:08
Re: Banip help - by justjamie - 03.04.2016, 10:53
Re: Banip help - by Karan007 - 03.04.2016, 11:02
Re: Banip help - by justjamie - 03.04.2016, 11:19

Forum Jump:


Users browsing this thread: 1 Guest(s)