Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(dialogid == DIALOG_BANKOMAT)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0:
- {
- new string[256];
- format(string, sizeof(string), "Saldo: $%d", PlayerInfo[playerid][pBank]);
- ShowPlayerDialog(playerid, 500, DIALOG_STYLE_MSGBOX, "Bank", string, "Zamknij", "");
- return 1;
- }
- case 1:
- {
- new value, string[256];
- value = strval(inputtext);
- if(PlayerInfo[playerid][pBank] < value) return SendClientMessage(playerid, -1, "{FFFFFF}[{FF0000}Bank{FFFFFF}]: Nie posiadasz tyle gotówki na koncie bankowym.");
- PlayerInfo[playerid][pBank] -= value;
- GivePlayerCash(playerid, value);
- format(string, sizeof(string), "Ile pieniędzy pragniesz wypłacić z konta?", value);
- ShowPlayerDialog(playerid, 501, DIALOG_STYLE_INPUT, "Bank", string, "Wypłać", "Anuluj");
- return 1;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment