/setpass
#5

Take this!

Код:
CMD:changepass(playerid,params[]) {
	if(PlayerInfo[playerid][LoggedIn] == 1)	{
		if(isnull(params)) return SendClientMessage(playerid, red, "USAGE: /changepass [new password]");
		if(strlen(params) < 4) return SendClientMessage(playerid,red,"ACCOUNT: Incorrect password length");
		new string[128];
		dUserSetINT(PlayerName2(playerid)).("password_hash",udb_hash(params) );
		PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
        format(string, sizeof(string),"ACCOUNT: You have successfully changed your password to \"%s\"",params);
		return SendClientMessage(playerid,yellow,string);
	} else return SendClientMessage(playerid,red, "ERROR: You must have an account to use this command");
return1;
}
Reply


Messages In This Thread
/setpass (I will +1 you) - by saffierr - 31.08.2015, 23:14
Re: /setpass - by trablon - 01.09.2015, 02:07
Re: /setpass - by Abagail - 01.09.2015, 02:44
Re: /setpass - by IceBilizard - 01.09.2015, 04:54
Re: /setpass - by Bomber07 - 01.09.2015, 08:37

Forum Jump:


Users browsing this thread: 1 Guest(s)