Jump to content

Recommended Posts

Posted

Salut baieti , revin cu o problema la comanda /unban sper sa ma ajutati cat mai repede!

Comanda /unban scoate banul dupa nume doar celor care au numele cu litera mare la inceput ex : "Andrei", celor cu litera mica ex : "andrei" nu...

if(strcmp(cmd, "/unban", true) == 0)
    {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_GRAD2, "Tasteaza: /unban [nume jucator(COMPLET)]");
            return 1;
        }
        if(PlayerInfo[playerid][pAdmin] < 1)
        {
            SCM(playerid, -1, "Nu esti autorizat sa folosesti aceasta comanda!");
            return 1;
        }
        format ( string, sizeof ( string ), "Utilizatori/%s.ini", tmp);
        freplaceline ( string, "Banned=1\n", "Banned=0\n" );
        GetPlayerName(playerid, sendername, sizeof(sendername));
        new string2[128];
        format(string2, sizeof(string2), "Utilizatorul %s a primit unban!", tmp);
        SCM(playerid, -1, string2);
        new string3[128];
        format(string3, sizeof(string3), "{FFFF00}%s a primit unbanned de la %s ", tmp, sendername);
        ABroadCast(COLOR_LIGHTRED, string3, 1);
        UnbanLog(string3);
    }
Posted

Toate caracterele trebuie să fie identice cu cele din numele celui banat în cazul tău.

Posted

Nu intelegi DCosmin... Deci playerul banat are numele de ex : andreyxd si cand ii dau /unban andreyxd nu ii scoate banul. Daca avea numele Andreyxd si dadeam /unban Andreyxd , ii scote banul intelegi ? Nu scoate banul la cei care au numele cu initiala mica ;)

Posted (edited)

Uitate un pic in Scriptfiles la tine si spune-mi daca fiserele cu numele jucatorilor sunt cu litere mari si mici.

 

"Utilizatori/%s.ini"
Edited by Rappy
Posted

scz de dublu post! Sunteti 100 de scripteri pe aceasta comunitate si nu puteti sa imi dati o rezolvare ? Astept de 3 zile ....

  • WopsS locked this topic
  • Administrator
Posted

Posteaz-o acolo si da-mi un PM si ma uit eu peste ea.

Guest
This topic is now closed to further replies.
×
×
  • 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.