06.07.2012, 22:26
(
Last edited by backnot; 07/07/2012 at 01:43 PM.
)
1st: Can somebody convert me LSLRP to 0.3e version. -https://sampforum.blast.hk/showthread.php?tid=123726&highlight=lslrp
2nd : I have 1 rp mod , but the passwords in /scriptfiles/FirstName_Lastname of the account are hashed .
I men my password for example is sec191 , in the file is Key=cweuMPQP .
Somebody , help me ?
tnx in advance
Leave them .
See this
I downloaded new mod ...
The passwords are hashed again ..
This time is not so easy , there is no "encrypt" tag in the gamemode .
It's using Dini . here is only "hash" tags .
IF i delete them its giving me errors and warnings . I must make the register form to not hash passwords.
Here are the codes...
2nd : I have 1 rp mod , but the passwords in /scriptfiles/FirstName_Lastname of the account are hashed .
I men my password for example is sec191 , in the file is Key=cweuMPQP .
Somebody , help me ?
tnx in advance
Leave them .
See this
I downloaded new mod ...
The passwords are hashed again ..
This time is not so easy , there is no "encrypt" tag in the gamemode .
It's using Dini . here is only "hash" tags .
IF i delete them its giving me errors and warnings . I must make the register form to not hash passwords.
Here are the codes...
Quote:
if (dialogid == 1) { new name[MAX_PLAYER_NAME], file[256]; GetPlayerName(playerid, name, sizeof(name)); format(file, sizeof(file), USERS_FILES, name); if(!response) return Kick(playerid); if (!strlen(inputtext)) return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Hi your not registered", "Welcome, your not registered mate, input your registration pw below", "Register", "Leave"); dini_Create(file); dini_IntSet(file, "Password", PlayerInfo[playerid][pKey] = udb_hash(inputtext)); |
Quote:
if (dialogid == 2) { new name[MAX_PLAYER_NAME], file[256]; GetPlayerName(playerid, name, sizeof(name)); format(file, sizeof(file), USERS_FILES, name); if(!response) return Kick(playerid); if (!strlen(inputtext)) return ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Welcome to Intelexe's Role Play", "SERVER:You have 60 seconds to Login\nHINT:Visit us on Our Website!", "Login", "Leave"); new tmp; tmp = dini_Int(file, "Password"); if(udb_hash(inputtext) != tmp) { SendClientMessage(playerid, COLOR_RED, "Wrong PW sir."); ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Welcome to Intelexe's Role Play", "SERVER:You have 60 seconds to Login\nHINT:Visit us on Our Website!", "Login", "Leave"); return 1; } gPlayerLogged[playerid] = 1; OnPlayerLogin(playerid, inputtext); } |