26.09.2015, 15:54
oh alright i miss that
would be like:
PHP код:
new INI:File = INI_Open(UserPath(playerid));
PHP код:
CMD:changepassword(playerid, params[])
{
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(hashpass, sizeof(hashpass), pass);
INI_WriteString(File, "Password", hashpass);
PlayerInfo[playerid][Password] = hashpass;
SendClientMessage(playerid,0x00FFFFAA,"Password Changed successfully");
return 1;
}