Liba

recuperar senha modificacoes

Jan 10th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.84 KB | None | 0 0
  1. CMD:alterarsenha(playerid,params[]){
  2.     #pragma unused params
  3.     if(PlayerVar[playerid][Logado]==1){
  4.         ShowPlayerDialogEx(4,playerid,DIALOG_ALTERARSENHA,DIALOG_STYLE_INPUT,"Alterar senha...","Digite a nova senha:","Confirmar","Cancelar");
  5.     }
  6.     return 1;
  7. }
  8.  
  9. CMD:recuperarsenha(playeri,params[]){
  10.     if(!IsPlayerAdmin(playerid)) return 0;
  11.     new tmp[2][MAX_STRING],idx;
  12.     tmp[0]=strtok(params,idx);
  13.     tmp[1]=strtok(params,idx);
  14.     dini_Set(ContaEx(tmp),"Senha",tmp[1]);
  15.     return 1;
  16.  }
  17.  
  18.  
  19.  
  20. stock ContaEx(const nome[])
  21. {
  22.     new profile[64];format(profile,sizeof(profile),"contas_mgs/%s.txt",nome);
  23.     return profile;
  24. }
  25.  
  26. //------------------------------------------------------------------------------
  27.  
  28. stock Profile(playerid)
  29. {
  30.     new profile[128];
  31.     format(profile,sizeof(profile),"contas_mgs/%s.txt",PlayerName(playerid));
  32.     return profile;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment