Unblock bugs
#1

pawn Код:
command(unblock, playerid, params[])
{
    new string[128], Name[128];
    if(sscanf(params, "z", Name))
    {
        if(Player[playerid][AdminLevel] >= 6)
        {
            SendClientMessage(playerid, WHITE, "SYNTAX: /unblock [Name]");
            SendClientMessage(playerid, GREY, "NOTE: This command is CaSe SeNsItIvE.");
        }
    }
    else
    {
        if(Player[playerid][AdminLevel] >= 6)
        {
            if(strlen(Name) >= 3 && strlen(Name) < MAX_PLAYER_NAME+1)
            {
                format(string, sizeof(string), "Accounts/%s.ini", Name);
                if(fexist(string))
                {
                    if(dini_Int(string, "Banned") == 2)
                    {
                        dini_IntSet(string, "Banned", -1);
                        format(string, sizeof(string), "INFO: %s has unblocked %s", GetName(playerid), Name);
                        UnBlockLog(string);
                        SCM(playerid, YELLOW, string);
                    }
                }
                else
                {
                    SendClientMessage(playerid, WHITE, "Account not found.");
                }
            }
        }
    }
    return 1;
}
It doesn't send me the message from unblocked.
And it doesn't unblock the player...
Reply


Messages In This Thread
Unblock bugs - by Stefand - 18.09.2012, 18:02
Re: Unblock bugs - by xMCx - 18.09.2012, 18:08
Re: Unblock bugs - by Stefand - 18.09.2012, 18:11
Re: Unblock bugs - by ViniBorn - 18.09.2012, 18:12
Re: Unblock bugs - by xMCx - 18.09.2012, 18:14
Re: Unblock bugs - by Stefand - 18.09.2012, 18:18
Re: Unblock bugs - by Stefand - 18.09.2012, 18:29
Re: Unblock bugs - by ViniBorn - 18.09.2012, 18:51
Re: Unblock bugs - by Stefand - 18.09.2012, 21:06

Forum Jump:


Users browsing this thread: 2 Guest(s)