Jump to content

Crassus

Membru
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Crassus

  1. Am o problema cu comandaa offline unban care functioneaza perfect, dar cand ii dau unban fisierul jucatorului se face de 2kb, se adauga spatii dupa fiecare data, si nu ii mai recunoaste parola la logare dupa si nici datele pana nu ii sterg spatiile din fisier.

    Inainte de unban:

    Factiune=xxx
    Level=xx
    Bani=xxx

    Dupa unban:

    Factiun=xxx
    
    Unban=xx
    
    Bani=xx

     

    CMD:unban(playerid, params[])
    {
        if(PlayerInfo[playerid][pAdmin] < 1337)
        {
                    SendClientMessage(playerid, COLOR_LIGHTRED, "[Server] Nu ai acces la aceasta comanda !");
                    return 1;
        }
        new PlayerFile[50];
        format(PlayerFile, sizeof(PlayerFile), "/users/%s.ini", strtolower(params));
        if(!strlen(params)) return SendClientMessage(playerid, COLOR_LIGHTRED, "[Server] CMD: /unban <NUME CONT>");
        if(!dini_Exists(PlayerFile)) return SendClientMessage(playerid, COLOR_RED, "[Server] Acest cont nu exista !");

        dini_IntSet(PlayerFile, "Banned", 0);
        new string[256];
        format(string, sizeof(string), "[DiaVoLa.Ro] Ai debanat contul: %s", params);
        SendClientMessage(playerid, COLOR_GREEN, string);
        return 1;
    }

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.