Help password
#1

hello guys i make this topic to get some help so what i need when i use /register command in the files

maxadmin/users/name.ini

its show me something like this

Hash_password = 271895016
Name = Max
IP = **,****,****,****
Score = 500
Cash = 10000
Banned = 0
Muted = 0
Freeze = 0
.
.
.
To End

now what i need how i can change the hash password for show me the password i register in for example

/register blalbal

and show me like this

Hash_password = blalbal
Name = Max
IP = **,****,****,****
Score = 500
Cash = 10000
Banned = 0
Muted = 0
Freeze = 0
.
Reply
#2

Please Some Help!
Reply
#3

Well remove hash and save real password....you will must edit register and login but nobody is gonna help you cos hash is there for security reasons of users
Reply
#4

can you tell me what to do beacuse when i remove

if(udb_hash(params) == strval(tmp))

give me errors!!!
Reply
#5

Quote:
Originally Posted by [MKD]Max
Посмотреть сообщение
can you tell me what to do beacuse when i remove

if(udb_hash(params) == strval(tmp))

give me errors!!!
Post your /register command.
Reply
#6

LOL! Man, you can't just remove that 'if' statement, there is no doubt that you'll get errors.
Show us your code so we can see what to do.
Reply
#7

Код:
dcmd_adminreg(playerid, params[])
{
    #pragma unused params
    new playerfile[100];
    if(registered[playerid] == 1) return SendClientMessage(playerid, red, "ACCOUNT You are already registered in.");
	if(!strlen(params))SendClientMessage(playerid, COLOR_GREY, "|| USAGE /adminreg [password] ||");
	if(dini_Exists(playerfile))SendClientMessage(playerid, COLOR_RED, "ACCOUNT This playername is already registered you admin account! Please use /adminlog [password] to log into admin account");
	if(strlen(params) < 5) return SendClientMessage(playerid,red,"ACCOUNT: Password must be than 5 characters");
	new pname[MAX_PLAYER_NAME];
	GetPlayerName(playerid, pname, sizeof(pname));
	format(playerfile, sizeof(playerfile), "/maxadmin/users/%s.ini",pname);
	
	new playerip[20];
	GetPlayerIp(playerid, playerip, sizeof(playerip));
	dini_Create(playerfile);
	dini_IntSet(playerfile, "Password", udb_hash(params));
	dini_Set(playerfile, "Ip", playerip);
	dini_IntSet(playerfile, "Level", 0);
	dini_IntSet(playerfile, "Cash", 0);
	dini_IntSet(playerfile, "Score", 0);
	dini_IntSet(playerfile, "Banned", 0);
	dini_IntSet(playerfile, "Jailed", 0);
	dini_IntSet(playerfile, "Kills", 0);
	dini_IntSet(playerfile, "Deaths", 0);
	dini_IntSet(playerfile, "Freezed", 0);
	dini_IntSet(playerfile, "Muted", 0);
	logged[playerid] = 0;
	SendClientMessage(playerid, COLOR_GREEN, "ACCOUNT: You Have Created You'r Admin Account! Please Type /adminlog [password] To Log Into Your Admin Account!.");
	return 1;
}
Reply
#8

pawn Код:
dcmd_adminreg(playerid, params[])
{
    #pragma unused params
    new playerfile[100];
    if(registered[playerid] == 1) return SendClientMessage(playerid, red, "ACCOUNT You are already registered in.");
    if(!strlen(params))SendClientMessage(playerid, COLOR_GREY, "|| USAGE /adminreg [password] ||");
    if(dini_Exists(playerfile))SendClientMessage(playerid, COLOR_RED, "ACCOUNT This playername is already registered you admin account! Please use /adminlog [password] to log into admin account");
    if(strlen(params) < 5) return SendClientMessage(playerid,red,"ACCOUNT: Password must be than 5 characters");
    new pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(playerfile, sizeof(playerfile), "/maxadmin/users/%s.ini",pname);

    new playerip[20];
    GetPlayerIp(playerid, playerip, sizeof(playerip));
    dini_Create(playerfile);
    dini_Set(playerfile,"password",params);
    dini_Set(playerfile, "Ip", playerip);
    dini_IntSet(playerfile, "Level", 0);
    dini_IntSet(playerfile, "Cash", 0);
    dini_IntSet(playerfile, "Score", 0);
    dini_IntSet(playerfile, "Banned", 0);
    dini_IntSet(playerfile, "Jailed", 0);
    dini_IntSet(playerfile, "Kills", 0);
    dini_IntSet(playerfile, "Deaths", 0);
    dini_IntSet(playerfile, "Freezed", 0);
    dini_IntSet(playerfile, "Muted", 0);
    logged[playerid] = 0;
    SendClientMessage(playerid, COLOR_GREEN, "ACCOUNT: You Have Created You'r Admin Account! Please Type /adminlog [password] To Log Into Your Admin Account!.");
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)