Jump to content
  • 0

[Problema /unban] Dini


Crassus

Question

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;
}

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.