SA-MP Forums Archive
unban problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: unban problem (/showthread.php?tid=269855)



unban problem - qUick1337 - 18.07.2011

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 what's the problem ?


Re: unban problem - Admigo - 18.07.2011

Use ladmin,i use to