04.02.2012, 13:51
EDIT : Ya lo solucione,cierren plz
new Idioma[MAX_PLAYERS];
#define EIdioma2 1
COMMAND:cambiaridioma(playerid,params[])
{
ShowPlayerDialog(playerid,EIdioma2,DIALOG_STYLE_MSGBOX,"Idioma","Porfavor seleciona tu idioma \n\n Please select your language","Espaсol","Ingles");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == EIdioma2)
{
switch(response)
{
case 1:
{
SendClientMessage(playerid,0xFF7D00FF,"Has escogido el idioma espaсol. Para cambiarlo usa /cambiaridioma");
Idioma[playerid]=1
}
case 0:
{
SendClientMessage(playerid,0xFF7D00FF,"You selected english. To change it use /cambiaridioma");
Idioma[playerid]=2
}
}
}
return 1;
}
COMMAND:abike(playerid,params[])
{
if(Informacion[playerid][Admin] >= 1)
{
if (!IsPlayerInAnyVehicle(playerid))
{
CarSpawner(playerid,522);
if(Idioma[playerid]== 1) SendClientMessage(playerid,0xFFFF00,"|- Moto creada! -|");
if(Idioma[playerid]== 2) SendClientMessage(playerid,0xFFFF00,"|- Bike created! -|");
return 1;
}
else return SendClientMessage(playerid,0xFF0000,"Error: Ya tienes un auto");
}
else return 0;
}
public OnPlayerConnect(playerid)
{
ShowPlayerDialog(playerid,EIdioma2,DIALOG_STYLE_MSGBOX,"Idioma","Porfavor seleciona tu idioma \n\n Please select your language","Espaсol","Ingles");
}