Unban-IP Command doenst work
#6

current code :

Код:
ocmd:unbanip(playerid,params[])
{
    new SpielerIP[18], str[64];
    new adminstr[128];
    if(!IsAdmin(playerid,2))return noaccess
    if(sscanf(params,"n",SpielerIP)) return SendClientMessage(playerid,-1,"/unbanip <IP>");
    {
        format(str,sizeof(str),"unbanip %s",SpielerIP);
        format(adminstr,sizeof(adminstr),"%s hat die IP %d erfolgreich entbannt!",PlayerName(playerid),SpielerIP);
        for(new i=0; i<GetMaxPlayers(); i++)
        {
            if(!PlayerOnline(i))continue;
            if(!IsAdmin(i,2))continue;
            SendClientMessage(i,GELB,adminstr);
        }
        new logstr[128];
        format(logstr,sizeof(logstr),"%s hat die IP-Adresse : %d erfolgreich entbannt!",PlayerName(playerid),SpielerIP);
        AddLog("log_unbanip.txt",logstr);
        SendRconCommand(str);
        SendRconCommand("reloadbans");
    }
    return 1;
}
Reply


Messages In This Thread
Unban-IP Command doenst work - by amaruwhite - 23.10.2016, 15:13
Re: Unban-IP Command doenst work - by Yaa - 23.10.2016, 15:17
Re: Unban-IP Command doenst work - by amaruwhite - 23.10.2016, 15:31
Re: Unban-IP Command doenst work - by Yaa - 23.10.2016, 15:40
Re: Unban-IP Command doenst work - by amaruwhite - 23.10.2016, 15:46
Re: Unban-IP Command doenst work - by amaruwhite - 23.10.2016, 15:48
Re: Unban-IP Command doenst work - by Yaa - 23.10.2016, 15:52
Re: Unban-IP Command doenst work - by Konstantinos - 23.10.2016, 16:01
Re: Unban-IP Command doenst work - by amaruwhite - 23.10.2016, 16:04
Re: Unban-IP Command doenst work - by amaruwhite - 23.10.2016, 16:06

Forum Jump:


Users browsing this thread: 1 Guest(s)