[Ajuda] Pessoas hackiando contas
#1

Sistema de login:
Код:
Dialog_Login(playerid, response, inputtext[])
{
	switch (response) // Check which button was clicked
	{
	    case 1: // Player clicked "Login"
		{
			// Check if the player entered a password
			if (strlen(inputtext) > 2)
			{
				// Check if the entered password is the same as the password saved in the player's account
			    if (strcmp(APlayerData[playerid][PlayerPassword], inputtext, false) == 0)
				{
					APlayerData[playerid][LoggedIn] = true; // The player has logged in properly
                    BankFile_Load(playerid); // Load your bank account (if it exists, the player will be notified about this)
					SendClientMessage(playerid, 0xFFFFFFFF, TXT_LoggedIn); // Send a message to the client to inform him that he logged in properly
				}
				else
				{
					SendClientMessage(playerid, 0xFFFFFFFF, TXT_WrongPassword);
					Kick(playerid);
				}
			}
			else
			{
				SendClientMessage(playerid, 0xFFFFFFFF, TXT_WrongPassword);
				Kick(playerid);
			}
		}
	    case 0: // Player clicked "Cancel"
		{
			// Show a message that the player must be logged in to play on this server
			SendClientMessage(playerid, 0xFFFFFFFF, TXT_PlayerMustLogin);
		    // Kick the player
			Kick(playerid);
		}
	}

	return 1;
}
Sistema de arquivos .ini, pessoas hackiando contas dos adm no server.. Alguma Soluзгo ?
Reply
#2

Como assim "hackeando"? Explique melhor, assim agente pode tentar ajudar.
Reply
#3

Eles nгo estб hackiando o menu de login e sim burlando, ae vocк vai me perguntar, "como assim burlando"?, simples ao apareзer o menu de login algum jogador aperta a tecla F6 e digita qualquer comando
Reply
#4

Quote:
Originally Posted by ExPLORE
Посмотреть сообщение
Eles nгo estб hackiando o menu de login e sim burlando, ae vocк vai me perguntar, "como assim burlando"?, simples ao apareзer o menu de login algum jogador aperta a tecla F6 e digita qualquer comando
Se for isso mesmo, basta bloquear o chat e os cmds para quem nгo estб logado. Assim ele loga mais nгo vai poder fazer nada.
Reply
#5

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) {

    if ( APlayerData[playerid][LoggedIn] == false )
        return SendClientMessage(playerid, -1, "Antes de executar qualquer comando й nescessбrio efetuar seu login!");

    return 1;
}
Faзa o mesmo em OnPlayerText.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)