02.02.2012, 13:00
Yes, you can.
pawn Код:
CMD:changepass( playerid, params[ ] )
{
new
Name[ MAX_PLAYER_NAME ];
if( isnull( params ) ) return SendClientMessage( playerid, -1, "Usage: /changepass <New Password>" );
GetPlayerName( playerid, Name, MAX_PLAYER_NAME );
format( Path, sizeof( Path ),/* Your File Location Path Here! */ "Users\%s.ini", Name );
new INI:File = INI_Open( Path );
INI_SetTag( File, "data" /* Change it to the tag's name you are using */);
INI_WriteString( File, "Password", params ); // If you are using for hashed_password like Whirlpool then change params to the variable you will make "new buf[ 129 ];" etc..
INI_Close( File );
return 1;
}

