11.02.2019, 18:13
Clearly if it should work.
PHP код:
//OnPlayerConnect
ShowPlayerDialog(playerid, DIALOG_LANGUAGE, DIALOG_STYLE_MSGBOX, "{0092FF}Bienvenido | Welcome", "{FFFFFF}Por favor, elija el idioma en el que desea visualizar el servidor. | Please, select a language you would like to display this server.", "Espaсol", "English");
PHP код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case DIALOG_LANGUAGE:
{
if(response)
{
player_Language[playerid] = 0;
ShowPlayerDialog(playerid, DIALOG_LANGUAGE_SUCCESS, DIALOG_STYLE_MSGBOX, "{0092FF}Ha configurado su idioma correctamente", "{FFFFFF}Su cuenta ha sido establecido en {0092FF}espaсol. {FFFFFF}Si deseas cambiar el lenguaje, usa {0092FF}/lenguaje {FFFFFF}en cualquier momento.", "Entiendo", "");
}
else
{
player_Language[playerid] = 1;
ShowPlayerDialog(playerid, DIALOG_LANGUAGE_SUCCESS, DIALOG_STYLE_MSGBOX, "{0092FF}You have successfully set your language", "{FFFFFF}Your account has been set to {0092FF}inglйs. {FFFFFF}If you wish to change the language, type {0092FF}/language {FFFFFF}at any time.", "Alright", "");
}
}
}
return 1;
}