Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case DIALOG_INPRUMUTBANCA:
- {
- if(!response) return 1;
- {
- switch(listitem)//
- {
- case 0: {
- if(pInfo[playerid][pScore] > 4) return SendClientMessage(playerid, COLOR_DARKGRAY, "you can not make a loan now, you do not have level 4.");
- if(pInfo[playerid][pScore] < 3) return SendClientMessage(playerid, COLOR_DARKGRAY, "you can not make a loan now , you do not have level 3.");
- inprumutabani[playerid] = GiveMoney(playerid,300000);
- if(pInfo[playerid][pInprumut] > 0) return SendClientMessage(playerid, COLOR_DARKGRAY, "You already have a Inprumut Account.");
- SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ai inprumutat bani din banca valabil 14 zile .");
- //inprumutabani[playerid], 0;
- pInfo[playerid][pInprumut] = gtm+(14*86400);
- //timpinchirierebani[playerid] = 600;
- ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ai primit 300000$", "~Ok~", "Anulare");
- }
- case 1: {
- if(pInfo[playerid][pScore] < 6) return SendClientMessage(playerid, COLOR_DARKGRAY, "you can not make a loan now , you do not have level 6.");
- if(pInfo[playerid][pScore] > 5) return SendClientMessage(playerid, COLOR_DARKGRAY, "you can not make a loan now, you do not have level 5.");
- inprumutabani[playerid] = GiveMoney(playerid,600000);
- if(pInfo[playerid][pInprumut] > 0) return SendClientMessage(playerid, COLOR_DARKGRAY, "You already have a Inprumut Account.");
- SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ai inprumutat bani din banca valabil 14 zile .");
- //inprumutabani[playerid], 0;
- pInfo[playerid][pInprumut] = gtm+(14*86400);
- //timpinchirierebani[playerid] = 600;
- ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ai primit 600000$", "~Ok~", "BAN");
- }
- case 2: {
- if(pInfo[playerid][pScore] < 8) return SendClientMessage(playerid, COLOR_DARKGRAY, "you can not make a loan now , you do not have level 8.");
- if(pInfo[playerid][pScore] > 7) return SendClientMessage(playerid, COLOR_DARKGRAY, "you can not make a loan now, you do not have level 7.");
- if(pInfo[playerid][pInprumut] > 0) return SendClientMessage(playerid, COLOR_DARKGRAY, "You already have a Inprumut Account.");
- SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ai inprumutat bani din banca valabil 14 zile .");
- //inprumutabani[playerid], 0;
- pInfo[playerid][pInprumut] = gtm+(14*86400);
- //timpinchirierebani[playerid] = 600;
- inprumutabani[playerid] = GiveMoney(playerid,900000);
- ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ai primit 900000$", "~Ok~", "BAN");
- }
- /*case 3: {
- if(pInfo[playerid][pScore] < 10) return SendClientMessage(playerid, COLOR_DARKGRAY, "you can not make a loan now , you do not have level 10.");
- if(pInfo[playerid][pScore] > 9) return SendClientMessage(playerid, COLOR_DARKGRAY, "you can not make a loan now, you do not have level 9.");
- if(pInfo[playerid][pInprumut] > 0) return SendClientMessage(playerid, COLOR_DARKGRAY, "You already have a Inprumut Account.");
- SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ai inprumutat bani din banca valabil 14 zile .");
- //inprumutabani[playerid], 0;
- pInfo[playerid][pInprumut] = gtm+(14*86400);
- //timpinchirierebani[playerid] = 600;
- inprumutabani[playerid] = GiveMoney(playerid,1200000);
- ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ai primit 1200000$", "~Ok~", "BAN");
- }
- case 4: {
- if(pInfo[playerid][pScore] < 12) return SendClientMessage(playerid, COLOR_DARKGRAY, "you can not make a loan now , you do not have level 12.");
- if(pInfo[playerid][pScore] > 11) return SendClientMessage(playerid, COLOR_DARKGRAY, "you can not make a loan now, you do not have level 11.");
- if(pInfo[playerid][pInprumut] > 0) return SendClientMessage(playerid, COLOR_DARKGRAY, "You already have a Inprumut Account.");
- SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ai inprumutat bani din banca valabil 14 zile .");
- //inprumutabani[playerid], 0;
- pInfo[playerid][pInprumut] = gtm+(14*86400);
- //timpinchirierebani[playerid] = 600;
- inprumutabani[playerid] = GiveMoney(playerid,1500000);
- ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ai primit 1500000$", "~Ok~", "BAN");
- }
- case 5: {
- if(pInfo[playerid][pScore] < 14) return SendClientMessage(playerid, COLOR_DARKGRAY, "you can not make a loan now , you do not have level 3.");
- if(pInfo[playerid][pScore] > 13) return SendClientMessage(playerid, COLOR_DARKGRAY, "you can not make a loan now, you do not have level 4.");
- if(pInfo[playerid][pInprumut] > 0) return SendClientMessage(playerid, COLOR_DARKGRAY, "You already have a Inprumut Account.");
- SendClientMessage(playerid, 0x4EE2ECFF, "* Felicitari, ai inprumutat bani din banca valabil 14 zile .");
- //inprumutabani[playerid], 0;
- pInfo[playerid][pInprumut] = gtm+(14*86400);
- //timpinchirierebani[playerid] = 600;
- inprumutabani[playerid] = GiveMoney(playerid,1800000);
- ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ai primit 1800000$", "~Ok~", "BAN");
- }*/
- }
- }
- }
- case DIALOG_RINPRUMUTBANCA:
- {
- switch(listitem)//daca apasa primul buton
- {
- case 0: {//
- //for(new i = 0; i <= 5; i++) //if(pInfo[playerid][inprumutabani][i] == -1)
- //if(inprumutabani[playerid] != 0) return SCM(playerid, -1, "{00FFFF}Eroare: {ffffff}Deja ai un inprumut facut in banca {ff0000}/returinprumut \n.");
- pInfo[playerid][pInprumut] = gtm+(0*86400);
- GiveMoney(playerid,-310000);
- ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ti-au fost extrasi din cont 300000$ dobanda 10000$ ", "~Ok~", "BAN");
- }
- case 1: {
- 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;
- GiveMoney(playerid,-620000);
- ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ti-au fost extrasi din cont 600000$ dobanda 20000$", "~Ok~", "BAN");
- }
- case 2: {
- 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;
- GiveMoney(playerid,-930000);
- ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ti-au fost extrasi din cont 900000$ dobanda 30000$", "~Ok~", "BAN");
- }
- /*case 3: {
- GivePlayerMoney(playerid,-1240000);
- ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ti-au fost extrasi din cont 1200000$ dobanda 40000$", "~Ok~", "BAN");
- }
- case 4: {
- GiveMoney(playerid,-1550000);
- ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ti-au fost extrasi din cont 1500000$ dobanda 50000$", "~Ok~", "BAN");
- }
- case 5: {
- GiveMoney(playerid,-1880000);
- ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Notificare", "Ti-au fost extrasi din cont 1800000$ dobanda 80000$ ", "~Ok~", "BAN");
- }*/
- }
- }
- CMD:inprumuta(playerid, params [])
- {
- if(inprumutabani[playerid] != 0) return SCM(playerid, -1, "{00FFFF}Eroare: {ffffff}Deja ai facut un inprumut {ff0000}/returinprumut ");
- 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;
- {
- 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");
- }
- return 1;
- }
- CMD:returinprumut(playerid, params [])
- {
- if(inprumutabani[playerid] == -1) return SCM(playerid,COLOR_WHITE,"{D2B48C}Server: {ffffff}Nu ai niciun inprumut facut.");
- //SendClientMessage(playerid, -1, "Ai inprumutat Bani din banca {00FFFF}Timp{ffffff} 14 zile.");
- {
- 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");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment