SA-MP Forums Archive
Change Password Command [ZCMD] [SSCANF] [MYSQL] - 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: Change Password Command [ZCMD] [SSCANF] [MYSQL] (/showthread.php?tid=547460)



Change Password Command [ZCMD] [SSCANF] [MYSQL] - MD5 - 22.11.2014

Hey,

I'm a bit confused. Could someone create a /changepw <old_password> <new_password> command, that does the following:

- Changes the Password In-game.
- They they type the command wrong, I want it to return a SendClientMessage that says (/changepw <old_password> <new_password>
- Returns an error if the old password is wrong.
- Tells them they've changed their password to: %s (their password they changed it to)

Sources Needed:

- The hash is SHA1.
- The saving path: UPDATE `playerdata` SET `playerPass` = '%s' WHERE `playerName` = '%s'

Regards,
MD5


Re: Change Password Command [ZCMD] [SSCANF] [MYSQL] - sammp - 22.11.2014

No, they cannot.

This isn't "script for me" section.

Also, SHA1 is shitty