Jump to content
  • 0

Question

Posted

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:(

2 answers to this question

Recommended Posts

Posted

Eu vreau sa poata da si adminii 1337 unban:) nu doar eu..

+ ca e mai usor cu comanda:) si asta e de unban nume daca nu ai observat:) nu unbanip

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.