SA-MP Forums Archive
How to remove udb_hash? - 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)
+--- Thread: How to remove udb_hash? (/showthread.php?tid=564483)



How to remove udb_hash? - TiXz0r - 21.02.2015

how to remove udb_hash?


Код:
if(udb_hash(inputtext) == rInfo[playerid][rPass])



Re: How to remove udb_hash? - Vince - 21.02.2015

Unless you want to replace it with a strong hashing algorithm, you don't.


Re: How to remove udb_hash? - arlindi - 21.02.2015

Dont Stole Accounts Passwords
Or in your server will not go inside any Player
Its something Unless


Re: How to remove udb_hash? - TiXz0r - 21.02.2015

Quote:
Originally Posted by arlindi
Посмотреть сообщение
Dont Stole Accounts Passwords
Or in your server will not go inside any Player
Its something Unless
i dont want steal accounts passwords , i want view how to remove becouse i want prepare this for function staff pin.

like:

Код:
	  if(dialogid == DIALOG_STAFFPIN)
      {
  	  if ( !response ) return Kick ( playerid );
      {
	    if(strcmp(inputtext,PlayerInfo[playerid][pStaffPin],true))  <-- this not working..
	    {
			if (PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] <= 4)
			{
				new aloginstring[128];
				format(aloginstring,sizeof aloginstring,""COL_PURPLE"[SERVER]: "COL_GREY"Admin [%d]%s se ulogirao.", playerid, GetName(playerid));
				SendMessageToAdmins(COLOR_WHITE,aloginstring);
			}
	  		if (PlayerInfo[playerid][pAdmin] == 5)
			{
				new aloginstring[128];
				format(aloginstring,sizeof aloginstring,""COL_PURPLE"[SERVER]: "COL_GREY"Head Admin [%d]%s se ulogirao.", playerid, GetName(playerid));
				SendMessageToAdmins(COLOR_WHITE,aloginstring);
			}
			if (PlayerInfo[playerid][pAdmin] == 6)
			{
				new aloginstring[128];
				format(aloginstring,sizeof aloginstring,""COL_PURPLE"[SERVER]: "COL_GREY"Administrator [%d]%s se ulogirao.", playerid, GetName(playerid));
				SendMessageToAdmins(COLOR_WHITE,aloginstring);
			}
	    }
		else
	    {
	    	SetTimerEx("KickTime", 1000, false, "i", playerid);
	    }
	    }
	    return 1;
}



Re: How to remove udb_hash? - AndySedeyn - 21.02.2015

Hash the input and then compare it.