08.03.2018, 08:37
PHP код:
CMD:changepassword(playerid,params[])
{
new size=strlen(params);
if(size > 15 || size < 3) return SendClientMessage(playerid,-1,"Password should be between 3-15 characters.");
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Password",udb_hash(params));
INI_Close(File);
SendClientMessage(playerid,-1,"Password changed");
return 1;
}