SA-MP Forums Archive
[Ajuda] Dъvida mSelection - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Dъvida mSelection (/showthread.php?tid=591244)



Dъvida mSelection - RafaelMau - 10.10.2015

Olб estou tentando fazer uma loja de veнculos com o "mSelection" mas eu nunca mexi com esta include, eu consegui fazer tudo mas eu n to conseguindo fazer para conseguir entrar tipo em (avioes = aparecer todos avioes) (helicopteros = aparecer os helicopteros), olha o que eu fiz atй agora...

No arquivo veiculos.txt

476 337.0, 0.0, 329.0, 1.0 //aviхes
487 337.0, 0.0, 329.0, 1.0 //helicуptero
continuaзгo...

No arquivo avioes.txt

592 337.0, 0.0, 329.0, 1.0 //ANDROMADA
577 338.0, 0.0, 336.0, 1.0 //AT-400
continuaзгo...

etc...
Quote:

public OnPlayerModelSelection(playerid, response, listid, modelid)
{
//Lista de veiculos
if(listid == ListaDeVeiculos)
{
if(response)
{
ShowModelSelectionMenu(playerid, ListaDeAvioes, "Selecione um aviao");
}
else PlayerPlaySound(playerid,1085,0.0,0.0,0.0);
return 1;
}

//Lista de aviхes
if(listid == ListaDeAvioes)
{
if(response)
{
SendClientMessage(playerid, 0xFF0000FF, "Veiculos spawnado");
new Floatos[3]; GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
CreateVehicle(modelid, pos[0] + 2.5, pos[1], pos[2] + 2.5, 0.0, random(12, random(12, -1);
}
else PlayerPlaySound(playerid,1085,0.0,0.0,0.0);
return 1;
}

//Lista de helicopteros
if(listid == ListaDeHelicopteros)
{
if(response)
{
ShowModelSelectionMenu(playerid, ListaDeHelicopteros, "Selecione um helicoptero");
}
else PlayerPlaySound(playerid,1085,0.0,0.0,0.0);
return 1;
}
etc...
return 0;
}
Eu aperto em qualquer um e aparece sу a lista de aviхes

Nгo entendo nada desta include


Re: Dъvida mSelection - Nixtren - 10.10.2015

Nгo deve ser a resoluзгo do problema, mas um detalhe:



Re: Dъvida mSelection - RafaelMau - 10.10.2015

Quote:
Originally Posted by Nixtren
Посмотреть сообщение
Nгo deve ser a resoluзгo do problema, mas um detalhe:
Nгo isso eu fiz para quando ele apertar no veнculo aparecer aviхes mas n consigo identificar o aviгo