Jump to content
  • 0

Problema Unban


bL3s

Question

Am urmatoarea comanda de /unban :D

//--------------------------[unBan]-----------------------------------//

if (strcmp(cmd, "/unban", true)==0)

{

    if(PlayerInfo[playerid][pAdmin] >=1337)

    {

        tmp = strtok(cmdtext, idx);

        if(!strlen(tmp))

{

        SendClientMessage(playerid, COLOR_WHITE, "USAGE: /unban [Player Name]");

            return 1;

}

GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

GetPlayerName(playerid, sendername, sizeof(giveplayer));

format(string, 256, "[ADMIN] %s has unbanned %s", sendername, tmp);

ABroadCast(COLOR_YELLOW,string,1);

format(string, 256, "[ADMIN] %s has unbanned %s", sendername, tmp);

printf(string);

format(string,sizeof(string),"Users/%s.ini",tmp);

fremove(string);

SendClientMessage(playerid, COLOR_WHITE, "Player unbanned");

SendRconCommand(string);

SendRconCommand("reloadbans");

  GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

GetPlayerName(playerid, sendername, sizeof(sendername));

}

return 1;

}

Cum fac , ca atunci cand dau unban unui player, sa ii se scoata banul dar sa nu ii se stearga contul:|

Cu comanda asta ii se sterge:(

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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.