[HELP] /changepass command
#5

PHP код:
CMD:changepass(playeridparams[])
{
    if(
PlayerInfo[playerid][LoggedIn] == 1)
    {
        if(
isnull(params))
            return 
SendClientMessage(playeridred"USAGE: /changepass [new password]");
        if(
strlen(params) < 4)
            return 
SendClientMessage(playeridred"ERROR: Incorrect password length");
            
        new 
string[128];
        
format(stringsizeof(string),"|- ACCOUNT: You have successfully changed your password to \"%s\" -|",params);
        
SendClientMessage(playeridyellowstring);
        
dUserSetINT(PlayerName2(playerid)).("password_hash"udb_hash(params));
        
PlayerPlaySound(playerid10570.00.00.0);
    }
    else 
SendClientMessage(playerid,red"ERROR: You must have an account to use this command");
    
//..
    
return true;

Reply


Messages In This Thread
[HELP] /changepass command - by XYZero - 08.03.2015, 08:17
Re: [HELP] /changepass command - by biker122 - 08.03.2015, 08:24
Re: [HELP] /changepass command - by XYZero - 08.03.2015, 08:38
Re: [HELP] /changepass command - by biker122 - 08.03.2015, 08:48
Respuesta: [HELP] /changepass command - by JuanStone - 08.03.2015, 11:47
Re: [HELP] /changepass command - by XYZero - 08.03.2015, 12:01

Forum Jump:


Users browsing this thread: 1 Guest(s)