Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:alterarsenha(playerid,params[]){
- #pragma unused params
- if(PlayerVar[playerid][Logado]==1){
- ShowPlayerDialogEx(4,playerid,DIALOG_ALTERARSENHA,DIALOG_STYLE_INPUT,"Alterar senha...","Digite a nova senha:","Confirmar","Cancelar");
- }
- return 1;
- }
- CMD:recuperarsenha(playeri,params[]){
- if(!IsPlayerAdmin(playerid)) return 0;
- new tmp[2][MAX_STRING],idx;
- tmp[0]=strtok(params,idx);
- tmp[1]=strtok(params,idx);
- dini_Set(ContaEx(tmp),"Senha",tmp[1]);
- return 1;
- }
- stock ContaEx(const nome[])
- {
- new profile[64];format(profile,sizeof(profile),"contas_mgs/%s.txt",nome);
- return profile;
- }
- //------------------------------------------------------------------------------
- stock Profile(playerid)
- {
- new profile[128];
- format(profile,sizeof(profile),"contas_mgs/%s.txt",PlayerName(playerid));
- return profile;
- }
Advertisement
Add Comment
Please, Sign In to add comment