18.07.2011, 10:36
I have a problem with unban...
i unban player and then i must restart the server... the player can enter but when he type the password, he get WRONG PASSWORD what's the problem ?
Код:
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; }