22.07.2013, 17:05
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;
Abraзs!
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"); }