I have a problem with unban...
Код:
if(strcmp(cmd, "/unban", true)==0)
{
if ((PlayerInfo[playerid][pAdmin] >= 1337)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, 0xA8A8FFFF, "USAGE: /unban [PlayerName]");
return 1;
}
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, "AdmCmd: %s has unbanned %s", sendername,tmp);
ABroadCast(COLOR_BRIGHTRED,string,1);
format(string,sizeof(string),"Users/%s.ini",tmp);
dini_IntSet(string, "Locked", 0);
SendClientMessage(playerid, COLOR_WHITE, "Player Unbanned");
}
return 1;
}
i unban player and then i must restart the server... the player can enter but when he type the password, he get WRONG PASSWORD