jel mozes ti ja sam probao ali ne ide mi ☹️
if(dialogid == DIALOG_PEKARA)
{
if(response)
{
new musterija;
if(listitem == 0)
{
new novac;
novac = 130;
if(novac > JBC_GetPlayerMoney(playerid)) return SCM(playerid, COLOR_GREY, " Nemate dovoljno novca!");
PlayerInfo++;
ApplyAnimation(playerid,"DEALER","shop_pay",4.1,0,0,0,0,0);
JBC_GivePlayerMoney(playerid, -130);
GetPlayerName(playerid, musterija, sizeof(musterija));
format(string, sizeof(string), "* %s kupuje Hleb Sava (/pekara) .", musterija);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
if(listitem == 1)
{
new novac;
novac = 100;
if(novac > JBC_GetPlayerMoney(playerid)) return SCM(playerid, COLOR_GREY, " Nemate dovoljno novca!");
PlayerInfo++;
ApplyAnimation(playerid,"DEALER","shop_pay",4.1,0,0,0,0,0);
JBC_GivePlayerMoney(playerid, -100);
GetPlayerName(playerid, musterija, sizeof(musterija));
format(string, sizeof(string), "* %s kupuje sendvic (/pekara) .", musterija);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
if(listitem == 2)
{
new novac;
novac = 110;
if(novac > JBC_GetPlayerMoney(playerid)) return SCM(playerid, COLOR_GREY, " Nemate dovoljno novca!");
PlayerInfo++;
ApplyAnimation(playerid,"DEALER","shop_pay",4.1,0,0,0,0,0);
JBC_GivePlayerMoney(playerid, -110);
GetPlayerName(playerid, musterija, sizeof(musterija));
format(string, sizeof(string), "* %s kupuje pizzu (/pekara) .", musterija);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
}