Help with 2 RP problems
#1

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...

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);
}

Reply


Messages In This Thread
*UPDATE* Help with 1 RP problem *UPDATE* - by backnot - 06.07.2012, 22:26
Re: Help with 2 RP problems - by .FuneraL. - 06.07.2012, 22:30
Re: Help with 2 RP problems - by coole210 - 06.07.2012, 22:31
Re: Help with 2 RP problems - by backnot - 06.07.2012, 22:39
Re: Help with 2 RP problems - by coole210 - 06.07.2012, 22:42
Re: Help with 2 RP problems - by backnot - 06.07.2012, 22:53
Re: Help with 2 RP problems - by Steven82 - 06.07.2012, 22:55
Re: Help with 2 RP problems - by backnot - 06.07.2012, 23:10
Re: Help with 2 RP problems - by backnot - 06.07.2012, 23:22
Re: Help with 2 RP problems - by backnot - 07.07.2012, 00:03

Forum Jump:


Users browsing this thread: 1 Guest(s)