erewefrfwfrewq

Untitled

Nov 2nd, 2017
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.28 KB | None | 0 0
  1.  
  2.  
  3.  
  4. case DIALOG_INPRUMUTBANCA:
  5. {
  6. if(!response) return 1;
  7. {
  8. switch(listitem)//
  9. {
  10.  
  11.  
  12. case 0: {
  13. if(pInfo[playerid][pScore] > 4) return SendClientMessage(playerid, COLOR_DARKGRAY, "you can not make a loan now, you do not have level 4.");
  14. if(pInfo[playerid][pScore] < 3) return SendClientMessage(playerid, COLOR_DARKGRAY, "you can not make a loan now , you do not have level 3.");
  15. inprumutabani[playerid] = GiveMoney(playerid,300000);
  16. if(pInfo[playerid][pInprumut] > 0) return SendClientMessage(playerid, COLOR_DARKGRAY, "You already have a Inprumut Account.");
  17. SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ai inprumutat bani din banca valabil 14 zile .");
  18. //inprumutabani[playerid], 0;
  19. pInfo[playerid][pInprumut] = gtm+(14*86400);
  20. //timpinchirierebani[playerid] = 600;
  21. ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ai primit 300000$", "~Ok~", "Anulare");
  22. }
  23. case 1: {
  24. if(pInfo[playerid][pScore] < 6) return SendClientMessage(playerid, COLOR_DARKGRAY, "you can not make a loan now , you do not have level 6.");
  25. if(pInfo[playerid][pScore] > 5) return SendClientMessage(playerid, COLOR_DARKGRAY, "you can not make a loan now, you do not have level 5.");
  26. inprumutabani[playerid] = GiveMoney(playerid,600000);
  27. if(pInfo[playerid][pInprumut] > 0) return SendClientMessage(playerid, COLOR_DARKGRAY, "You already have a Inprumut Account.");
  28. SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ai inprumutat bani din banca valabil 14 zile .");
  29. //inprumutabani[playerid], 0;
  30. pInfo[playerid][pInprumut] = gtm+(14*86400);
  31. //timpinchirierebani[playerid] = 600;
  32.  
  33. ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ai primit 600000$", "~Ok~", "BAN");
  34. }
  35. case 2: {
  36. if(pInfo[playerid][pScore] < 8) return SendClientMessage(playerid, COLOR_DARKGRAY, "you can not make a loan now , you do not have level 8.");
  37. if(pInfo[playerid][pScore] > 7) return SendClientMessage(playerid, COLOR_DARKGRAY, "you can not make a loan now, you do not have level 7.");
  38. if(pInfo[playerid][pInprumut] > 0) return SendClientMessage(playerid, COLOR_DARKGRAY, "You already have a Inprumut Account.");
  39. SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ai inprumutat bani din banca valabil 14 zile .");
  40. //inprumutabani[playerid], 0;
  41. pInfo[playerid][pInprumut] = gtm+(14*86400);
  42. //timpinchirierebani[playerid] = 600;
  43. inprumutabani[playerid] = GiveMoney(playerid,900000);
  44. ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ai primit 900000$", "~Ok~", "BAN");
  45. }
  46. /*case 3: {
  47. if(pInfo[playerid][pScore] < 10) return SendClientMessage(playerid, COLOR_DARKGRAY, "you can not make a loan now , you do not have level 10.");
  48. if(pInfo[playerid][pScore] > 9) return SendClientMessage(playerid, COLOR_DARKGRAY, "you can not make a loan now, you do not have level 9.");
  49. if(pInfo[playerid][pInprumut] > 0) return SendClientMessage(playerid, COLOR_DARKGRAY, "You already have a Inprumut Account.");
  50. SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ai inprumutat bani din banca valabil 14 zile .");
  51. //inprumutabani[playerid], 0;
  52. pInfo[playerid][pInprumut] = gtm+(14*86400);
  53. //timpinchirierebani[playerid] = 600;
  54. inprumutabani[playerid] = GiveMoney(playerid,1200000);
  55. ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ai primit 1200000$", "~Ok~", "BAN");
  56. }
  57. case 4: {
  58. if(pInfo[playerid][pScore] < 12) return SendClientMessage(playerid, COLOR_DARKGRAY, "you can not make a loan now , you do not have level 12.");
  59. if(pInfo[playerid][pScore] > 11) return SendClientMessage(playerid, COLOR_DARKGRAY, "you can not make a loan now, you do not have level 11.");
  60. if(pInfo[playerid][pInprumut] > 0) return SendClientMessage(playerid, COLOR_DARKGRAY, "You already have a Inprumut Account.");
  61. SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ai inprumutat bani din banca valabil 14 zile .");
  62. //inprumutabani[playerid], 0;
  63. pInfo[playerid][pInprumut] = gtm+(14*86400);
  64. //timpinchirierebani[playerid] = 600;
  65. inprumutabani[playerid] = GiveMoney(playerid,1500000);
  66. ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ai primit 1500000$", "~Ok~", "BAN");
  67. }
  68. case 5: {
  69. if(pInfo[playerid][pScore] < 14) return SendClientMessage(playerid, COLOR_DARKGRAY, "you can not make a loan now , you do not have level 3.");
  70. if(pInfo[playerid][pScore] > 13) return SendClientMessage(playerid, COLOR_DARKGRAY, "you can not make a loan now, you do not have level 4.");
  71. if(pInfo[playerid][pInprumut] > 0) return SendClientMessage(playerid, COLOR_DARKGRAY, "You already have a Inprumut Account.");
  72. SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ai inprumutat bani din banca valabil 14 zile .");
  73. //inprumutabani[playerid], 0;
  74. pInfo[playerid][pInprumut] = gtm+(14*86400);
  75. //timpinchirierebani[playerid] = 600;
  76. inprumutabani[playerid] = GiveMoney(playerid,1800000);
  77. ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ai primit 1800000$", "~Ok~", "BAN");
  78. }*/
  79. }
  80. }
  81. }
  82. case DIALOG_RINPRUMUTBANCA:
  83. {
  84. switch(listitem)//daca apasa primul buton
  85. {
  86. case 0: {//
  87. //for(new i = 0; i <= 5; i++) //if(pInfo[playerid][inprumutabani][i] == -1)
  88. //if(inprumutabani[playerid] != 0) return SCM(playerid, -1, "{00FFFF}Eroare: {ffffff}Deja ai un inprumut facut in banca {ff0000}/returinprumut \n.");
  89. pInfo[playerid][pInprumut] = gtm+(0*86400);
  90. GiveMoney(playerid,-310000);
  91. ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ti-au fost extrasi din cont 300000$ dobanda 10000$ ", "~Ok~", "BAN");
  92. }
  93. case 1: {
  94.  
  95. foreach(new i : Player) if(pInfo[i][pInprumut] != 0 && pInfo[i][pInprumut] < gtm) SendClientMessage(i, COLOR_LIGHTRED, "* Your Inprumut account has expired ."), pInfo[i][pInprumut] = 0;
  96. GiveMoney(playerid,-620000);
  97. ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ti-au fost extrasi din cont 600000$ dobanda 20000$", "~Ok~", "BAN");
  98. }
  99. case 2: {
  100.  
  101. foreach(new i : Player) if(pInfo[i][pInprumut] != 0 && pInfo[i][pInprumut] < gtm) SendClientMessage(i, COLOR_LIGHTRED, "* Your Inprumut account has expired ."), pInfo[i][pInprumut] = 0;
  102. GiveMoney(playerid,-930000);
  103. ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ti-au fost extrasi din cont 900000$ dobanda 30000$", "~Ok~", "BAN");
  104. }
  105. /*case 3: {
  106. GivePlayerMoney(playerid,-1240000);
  107. ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ti-au fost extrasi din cont 1200000$ dobanda 40000$", "~Ok~", "BAN");
  108. }
  109. case 4: {
  110. GiveMoney(playerid,-1550000);
  111. ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ti-au fost extrasi din cont 1500000$ dobanda 50000$", "~Ok~", "BAN");
  112. }
  113. case 5: {
  114. GiveMoney(playerid,-1880000);
  115. ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ti-au fost extrasi din cont 1800000$ dobanda 80000$ ", "~Ok~", "BAN");
  116. }*/
  117. }
  118. }
  119.  
  120. CMD:inprumuta(playerid, params [])
  121. {
  122. if(inprumutabani[playerid] != 0) return SCM(playerid, -1, "{00FFFF}Eroare: {ffffff}Deja ai facut un inprumut {ff0000}/returinprumut ");
  123. foreach(new i : Player) if(pInfo[i][pInprumut] != 0 && pInfo[i][pInprumut] < gtm) SendClientMessage(i, COLOR_LIGHTRED, "* Your Inprumut account has expired ."), pInfo[i][pInprumut] = 0;
  124. {
  125. ShowPlayerDialog(playerid,DIALOG_INPRUMUTBANCA,DIALOG_STYLE_LIST,"Inprumuta bani din banca Level 3 - 14","inprumuta 300000$ dobanda 10000$\n inprumuta 600000$ dobanda 20000$\n900000$ dobanda 30000$\n1200000$ dobanda 40000$\n1500000$ dobanda 50000$\n1800000$ dobanda 80000$","Selecteaza","Inchide");
  126. }
  127. return 1;
  128. }
  129. CMD:returinprumut(playerid, params [])
  130. {
  131. if(inprumutabani[playerid] == -1) return SCM(playerid,COLOR_WHITE,"{D2B48C}Server: {ffffff}Nu ai niciun inprumut facut.");
  132. //SendClientMessage(playerid, -1, "Ai inprumutat Bani din banca {00FFFF}Timp{ffffff} 14 zile.");
  133. {
  134. ShowPlayerDialog(playerid,DIALOG_RINPRUMUTBANCA,DIALOG_STYLE_LIST,"Retur bani la banca","300000$ {ff0000}dobanda 10000$\n inprumuta 600000$ {ff0000} dobanda 20000$\n900000$ {ff0000}dobanda 30000$\n1200000$ {ff0000}dobanda 40000$\n1500000$ {ff0000}dobanda 50000$\n1800000$ {ff0000}dobanda 80000$","Selecteaza","Inchide");
  135. }
  136. return 1;
  137. }
Advertisement
Add Comment
Please, Sign In to add comment