Posts: 40
	Threads: 19
	Joined: Oct 2011
	
Reputation: 
0
	 
	
	
		Oi galera.  eu uso sempre o BanEx,  quando era samp 03e  dava certinho.
Agora que passou pra 03x todos os bans registrados la no samp.ban  ficam assim:
185.90.49.86 [11/07/13 | 13:04:48] joaopedro - INGAME BAN
Todos ficam com motivo "INGAME BAN"  sendo que antes ficava com o motivo certo do ban. 
Ex antes: 185.90.49.86 [11/07/13 | 13:04:48] joaopedro - weapon hack
o que pode ter acontecido?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 40
	Threads: 19
	Joined: Oct 2011
	
Reputation: 
0
	 
	
	
			if(strcmp(cmd,"/ban",true) == 0)
	{
		tmp = strtok(cmdtext, idx);
		GetPlayerName(playerid, sendername, sizeof(sendername));
        PlayerInfo[playerid][pAdmin] = dini_Int(udb_encode(sendername), "level");
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, COLOR_DBLUE, "Correto: /ban [id do player] [motivo]");
			return 1;
		}
		giveplayerid = strval(tmp);
		if(logged[playerid] == 1)
		{
			if(PlayerInfo[playerid][pAdmin] >= 2)
			{
				if(IsPlayerConnected(giveplayerid))
				{
					new length = strlen(cmdtext);
					while ((idx < length) && (cmdtext[idx] <= ' ')) {
					idx++;
					}
					new offset = idx;
					new result[64];
					while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) {
					result[idx - offset] = cmdtext[idx];
					idx++;
					}
					result[idx - offset] = EOS;
					if(!strlen(result))
					{
						SendClientMessage(playerid, 0xFF0000FF, "Coloque o motivo do ban!");
					}
					else
					{
						GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
						format(string, sizeof(string), "[ADMIN]: %s Foi banido por %s pelo [Motivo: %s ]", giveplayer, sendername, result);
						SendClientMessageToAll(0x0084ffAA, string);
						BanEx(giveplayerid, string);
					}
				}
				else
				{
				    format(string, sizeof(string), "%d esta inativo!", giveplayerid);
					SendClientMessage(playerid, 0xFF0000FF, string);
				}
			}
			else
			{
				SendClientMessage(playerid, 0xFF0000FF, "Voce nao tem nivel para usar o comando");
				return 1;
			}
		}
		else
		{
		    SendClientMessage(playerid, 0xFF0000FF, "Voce nao e um adm");
		}
		return 1;
	}