[Ajuda] [GM]Ajuda Dialog
#1

Bom, eu gostaria de saber se й possнvel retirar os dialog's do cуdigo abaixo e passar para comandos.
Por exemplo; /sacar 100, /depositar 100, /saldo.

Cуdigo;
Код:
if(listitem == 0) // Sacar
{
format(string, sizeof(string), "Digite a quantia a sacar.");
SendClientMessage(playerid, Azul, string);
format(STRX, sizeof(STRX), "Bem Vindo ao banco, %s!\n\nDigite a quantia que deseja sacar e aperte \"Sacar\".\n\n ~ Expert RPG!", aname);
ShowPlayerDialog(playerid, 100, DIALOG_STYLE_INPUT, "Banco", STRX, "Sacar", "Fechar");
}
if(listitem == 1) // Depositar
{
format(string, sizeof(string), "Digite a quantia a depositar.");
SendClientMessage(playerid, Azul, string);
format(STRX, sizeof(STRX), "Bem Vindo ao banco, %s!\n\nDigite a quantia que deseja depositar e aperte \"Depositar\".\n\n ~ Expert RPG!", aname);
ShowPlayerDialog(playerid, 200, DIALOG_STYLE_INPUT, "Banco", STRX, "Depositar", "Fechar");
}
if(listitem == 2) // Ver Saldo
{
new PName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PName, sizeof(PName));
format(string, sizeof(string), "Seu saldo й {00FF00}'R$: %d'",dini_Int(file, "SaldoBancario"));
ShowPlayerDialog(playerid, 200, DIALOG_STYLE_MSGBOX, "Saldo",string,"Ok","Fechar");
}
Abraзs!
Reply


Messages In This Thread
[GM]Ajuda Dialog - by Skash - 22.07.2013, 17:05
Re: [GM]Ajuda Dialog - by Standby - 22.07.2013, 17:12
Re: [GM]Ajuda Dialog - by Skash - 22.07.2013, 17:19
Re: [GM]Ajuda Dialog - by Standby - 22.07.2013, 17:31
Re: [GM]Ajuda Dialog - by Skash - 22.07.2013, 17:45
Re: [GM]Ajuda Dialog - by Standby - 22.07.2013, 17:46
Re: [GM]Ajuda Dialog - by Skash - 22.07.2013, 18:02
Re: [GM]Ajuda Dialog - by Standby - 22.07.2013, 18:10
Re: [GM]Ajuda Dialog - by Skash - 27.07.2013, 21:05

Forum Jump:


Users browsing this thread: 3 Guest(s)