24.06.2012, 16:57
Quote:
Te repito lo mismo que ayer, tienes todo el sistema listo, lo que tienes que hacer que antes que empieze el tutorial te salga el dialogo, fijate bien, en el gm de zenon city termina preguntandote en que ciudad quieres vivir, ve ahi y fijate como esta compuesto, man no es nada de dificil, el sistema ya lo tienes todo listo! saludos.
|
Код:
CMD:cambiarclave(playerid, params[]) { if (gPlayerLogged{playerid}) { SafeDialogEx(playerid,CMSN,DIALOG_STYLE_INPUT,"Cambiar Clave","Ingresa tu mail para cambiar tu clave","Aceptar","Cancelar"); } else SendClientMessageEx(playerid, COLOR_GRAD1, "Debes de estar conectado para usar este comando."); return 1; } case CMSN: { if(response == 1) { if(strcmp(inputtext, Info[playerid][pMSN], true)==0) { SafeDialogEx(playerid, CPASS, DIALOG_STYLE_PASSWORD, "Cambiar Clave", "Por favor pon tu contraseсa nueva:", "Cambiar", "Atrбs" ); } else { ShowPlayerDialog(playerid, CMSN, DIALOG_STYLE_PASSWORD, "MAIL INCORRECTO", "Por favor ingresa tu mail correctamente:", "Cambiar", "Atrбs" ); } return 1; } } case CPASS: { if( strlen( inputtext ) >= 24 ) { SendClientMessageEx( playerid, COLOR_GRAD2, "No puedes cambiar una password a mбs de 24 carбcteres." ); } else { if( strlen( inputtext ) >= 1 ) { if(!response) { SendClientMessageEx(playerid, COLOR_WHITE, "No has cambiado tu contraseсa." ); } else { new String[ 84 ]; new INI:File = INI_Open(UserPath(playerid)); INI_SetTag(File,"data"); INI_WriteInt(File,"Password",udb_hash(inputtext)); INI_WriteString(File,"Key2",inputtext); INI_Close(File); format( String, sizeof( String ), "%s (IP: %s) a cambiado su contraseсa a %s.", GetPlayerNameEx(playerid), Info[playerid][pIP], inputtext); Log("logs/password.log", String); format( String, sizeof( String ), "Has cambiado tu contraseсa a: '%s'", inputtext ); SendClientMessageEx( playerid, COLOR_YELLOW, String ); } } else SendClientMessageEx( playerid, COLOR_WHITE, "No has cambiado tu contraseсa." ); } }
Lo que yo quiero es que para cambiar la contraseсa tenga que poner el mail CORRECTAMENTE