Unban ip
#9

pawn Код:
COMMAND:unbanip(playerid, params[])
{
    new ip[16];
    if(sscanf(params, "s[16]", ip)) return SendClientMessage(playerid, -1, "USAGE: /unbanip [ip]");
    new string[256];
    format(string, sizeof string, "unbanip %s", ip);
    SendRconCommand(string);
    return 1;
}
There you are. You also need sscanf to make that code working.
Reply


Messages In This Thread
Unban ip - by Crazyboobs - 29.06.2012, 13:11
Re: Unban ip - by milanosie - 29.06.2012, 13:14
Re: Unban ip - by Crazyboobs - 29.06.2012, 13:15
Re: Unban ip - by milanosie - 29.06.2012, 13:16
Re: Unban ip - by Crazyboobs - 29.06.2012, 13:18
Re: Unban ip - by milanosie - 29.06.2012, 13:20
Re: Unban ip - by Crazyboobs - 29.06.2012, 13:22
Re: Unban ip - by JaKe Elite - 29.06.2012, 13:23
Re: Unban ip - by Calabresi - 29.06.2012, 13:25
Re: Unban ip - by Neil. - 29.06.2012, 13:26

Forum Jump:


Users browsing this thread: 3 Guest(s)