[Ajuda] Abrir dialog com tecla
#1

Boas pessoal, eu tenho o comando /multibanco que serve para levantar dinheiro nas caixas electrуnicas, mas eu queria que o player em vez de fazer o comando /multibanco carrega-se numa tecla, como por exemplo a barra de espaзos e ao carregar essa tecla fosse aberta a dialog.

Comando:

pawn Код:
if(!strcmp("/multibanco", cmdtext, true))
{
if (PlayerToPoint(3.0, playerid,2278.8840,23.9567,26.5260) || PlayerToPoint(3.0, playerid,1366.6505,392.0420,19.6993) || PlayerToPoint(3.0, playerid,660.6581,-576.7870,16.3359)||  PlayerToPoint(3.0, playerid,141.7753,-174.8925,1.5781))
{
format(string, sizeof(string), "Extrair\r\nDepositar\r\nBalanзo\r\nCarregar Telemovel\r\nExtrair Tudo\r\nDepositar Tudo\r\n");
ShowPlayerDialog(playerid, MULTI_DIALOG, DIALOG_STYLE_LIST, "MultiBanco", string, "Ok","Cancel");
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"[ERRO:] Vocк nгo esta perto de uma caixa electronica.");
}
return 1;
}
Reply


Messages In This Thread
[Ajuda] Abrir dialog com tecla - by Slayer1 - 09.10.2011, 15:23
Re: [Ajuda] Abrir dialog com tecla - by ViniBorn - 09.10.2011, 15:31
Re: [Ajuda] Abrir dialog com tecla - by Dolby - 09.10.2011, 15:32
Re: [Ajuda] Abrir dialog com tecla - by Slayer1 - 09.10.2011, 15:51
Re: [Ajuda] Abrir dialog com tecla - by Dolby - 09.10.2011, 15:56
Re: [Ajuda] Abrir dialog com tecla - by Slayer1 - 09.10.2011, 16:00
Re: [Ajuda] Abrir dialog com tecla - by ViniBorn - 09.10.2011, 16:01

Forum Jump:


Users browsing this thread: 1 Guest(s)