Guest User

Untitled

a guest
Feb 22nd, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. if(dialogid == DIALOG_BANKOMAT)
  2. {
  3. if(response == 1)
  4. {
  5. switch(listitem)
  6. {
  7. case 0:
  8. {
  9. new string[256];
  10. format(string, sizeof(string), "Saldo: $%d", PlayerInfo[playerid][pBank]);
  11. ShowPlayerDialog(playerid, 500, DIALOG_STYLE_MSGBOX, "Bank", string, "Zamknij", "");
  12. return 1;
  13. }
  14. case 1:
  15. {
  16. new value, string[256];
  17. value = strval(inputtext);
  18. if(PlayerInfo[playerid][pBank] < value) return SendClientMessage(playerid, -1, "{FFFFFF}[{FF0000}Bank{FFFFFF}]: Nie posiadasz tyle gotówki na koncie bankowym.");
  19. PlayerInfo[playerid][pBank] -= value;
  20. GivePlayerCash(playerid, value);
  21. format(string, sizeof(string), "Ile pieniędzy pragniesz wypłacić z konta?", value);
  22. ShowPlayerDialog(playerid, 501, DIALOG_STYLE_INPUT, "Bank", string, "Wypłać", "Anuluj");
  23. return 1;
  24. }
  25. }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment