Change password Cmd
#10

oh alright i miss that
PHP код:
new INI:File INI_Open(UserPath(playerid)); 
would be like:
PHP код:
CMD:changepassword(playeridparams[])
{
    new 
pass[128], hashpass[129];

    if(
sscanf(params,"s[128]",pass)) return SendClientMessage(playerid, -1"Usage: /changepassword [Password]");
    new 
INI:File INI_Open(UserPath(playerid));
        
WP_Hash(hashpasssizeof(hashpass), pass);
    
INI_WriteString(File"Password"hashpass); 
    
PlayerInfo[playerid][Password] = hashpass;
    
SendClientMessage(playerid,0x00FFFFAA,"Password Changed successfully");
    return 
1;

Reply


Messages In This Thread
Change password Cmd - by anassmaroc - 26.09.2015, 13:19
Re: Change password Cmd - by TonyVk - 26.09.2015, 13:23
Re : Change password Cmd - by anassmaroc - 26.09.2015, 13:25
Re: Re : Change password Cmd - by jlalt - 26.09.2015, 13:50
Re : Re: Re : Change password Cmd - by anassmaroc - 26.09.2015, 15:25
Re: Change password Cmd - by nezo2001 - 26.09.2015, 15:25
Re : Re: Change password Cmd - by anassmaroc - 26.09.2015, 15:34
Re: Change password Cmd - by jlalt - 26.09.2015, 15:41
Re : Change password Cmd - by anassmaroc - 26.09.2015, 15:49
Re: Change password Cmd - by jlalt - 26.09.2015, 15:54

Forum Jump:


Users browsing this thread: 1 Guest(s)