21.05.2018, 10:44
Today I did it, I had the same question, so I found it! Just use Whirlpool and hash password.
Something like this:
At the top of your gamemode:
To your OnPlayerDialog (if your login/register (It's the same in the both- login and register) system is using that else just replace inputtext with the variable you want):
And you have to use the same hashing method in PHP!
Like this:
You have to download Whirlpool plugin firstly!
Something like this:
At the top of your gamemode:
PHP код:
native WP_Hash(buffer[], len, const str[]);
PHP код:
new HashedPassword[129];
WP_Hash(HashedPassword, sizeof(HashedPassword), inputtext);
Like this:
PHP код:
$ThePassword = strtoupper(hash("whirlpool", $_POST['Password']));

