Jump to content
  • 0

[Problema /unban] Dini


Question

Posted

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

1 answer to this question

Recommended Posts

  • 0
Posted

Sfat: muta-te pe un gamemode cu mysql.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.