Skripta koju koristim: Balkan Extreme
Detaljan opis problema: kada kupim nesto meni se skinu pare ali u kasi je sve isto sta bi mogao da bude problem u gm sam sve pogledao po meni je sve ok ;(
Dio skripte:
if(dialogid == KUPI)
{
if(response)
{
// *****************************************************************************
// *****************************************************************************
if(listitem == 0)// srecka
{
if (GetPlayerMoney(playerid) <  501)
{
SendClientMessage(playerid, COLOR_GRAD2, " Nemate dovoljno novca !");
return 1;
}
    if(PlayerInfo > 0)
    {
new skill = 500 / 100;
new price = (skill)*(PlayerInfo);
new payout = 500 - price;
GivePlayerMoney(playerid,- payout);
format(string, sizeof(string), "~r~-$%d", payout);
GameTextForPlayer(playerid, string, 5000, 1);
}
else
{
    GivePlayerMoney(playerid,-500);
format(string, sizeof(string), "~r~-$%d", 500);
GameTextForPlayer(playerid, string, 5000, 1);
}
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
new prize;
new symb1; new symb2; new symb3;
new randcard1 = random(10);//minimum 1000  max 9999
new randcard2 = random(10);//minimum 1000  max 9999
new randcard3 = random(10);//minimum 1000  max 9999
if(randcard1 >= 5)
{
format(symb1, sizeof(symb1), "~b~]");
randcard1 = 1;
}
else if(randcard1 <= 4 && randcard1 >= 2)
{
format(symb1, sizeof(symb1), "~g~]");
randcard1 = 2;
}
else if(randcard1 < 2)
{
format(symb1, sizeof(symb1), "~y~]");
randcard1 = 3;
}
if(randcard2 >= 5)
{
format(symb2, sizeof(symb2), "~b~]");
randcard2 = 1;
}
else if(randcard2 <= 4 && randcard2 >= 2)
{
format(symb2, sizeof(symb2), "~g~]");
randcard2 = 2;
}
else if(randcard2 < 2)
{
format(symb2, sizeof(symb2), "~y~]");
randcard2 = 3;
}
if(randcard3 >= 5)
{
format(symb3, sizeof(symb3), "~b~]");
randcard3 = 1;
}
else if(randcard3 <= 4 && randcard3 >= 2)
{
format(symb3, sizeof(symb3), "~g~]");
randcard3 = 2;
}
else if(randcard3 < 2)
{
format(symb3, sizeof(symb3), "~y~]");
randcard3 = 3;
}
if(randcard1 == randcard2 && randcard1 == randcard3)
{
if(randcard1 > 5)
{
prize = 2500;
}
if(randcard1 <= 4 && randcard1 >= 2)
{
prize = 1500;
}
if(randcard1 < 2)
{
prize = 500;
}
GivePlayerMoney(playerid,prize);
format(string, sizeof(string), "%s %s %s ~n~~n~~w~~g~$%d",symb1,symb2,symb3, prize);
}
else
{
format(string, sizeof(string), "%s %s %s ~n~~n~~w~~r~$0",symb1,symb2,symb3);
}
GameTextForPlayer(playerid, string, 3000, 3);
// unos novaca u bizz
if (PlayerToPoint(4, playerid,-28.9740,-185.1312,1003.5469)) // 24/7 kod BURGA id 6
{
                BizzInfo += 6;
    ExtortionBiz(6, 6);
    BizzInfo--;
}
if (PlayerToPoint(4, playerid,-23.4075,-55.6348,1003.5469)) // 24/7 kod TAXI id 11
{
            BizzInfo += 6;
    ExtortionBiz(11, 6);
    BizzInfo--;
}
if (PlayerToPoint(4, playerid,-22.1016,-138.6280,1003.5469)) // 24/7 kod PD id 9
{
                BizzInfo += 6;
    ExtortionBiz(9, 6);
    BizzInfo--;
}

if (PlayerToPoint(4, playerid,-22.1016,-138.6280,1003.5469)) // 24/7 kod PSa id 7
{
                BizzInfo += 6;
    ExtortionBiz(7, 6);
}
if (PlayerToPoint(4, playerid,-22.1016,-138.6280,1003.5469)) // 24/7 kod PREHRANA vozaci id 8
{
                BizzInfo += 6;
    ExtortionBiz(8, 6);
}
if (PlayerToPoint(4, playerid,-22.1016,-138.6280,1003.5469)) // 24/7 kod GROOVE id 10
{
                BizzInfo += 6;
    ExtortionBiz(10, 6);
}

return 1;
}
// *****************************************************************************
  if(listitem == 1)// imenik
  {
if (GetPlayerMoney(playerid) <  11)
{
SendClientMessage(playerid, COLOR_GRAD2, " Nemate dovoljno novca !");
return 1;
}
    if(PlayerInfo > 0)
    {
new skill = 10 / 100;
new price = (skill)*(PlayerInfo);
new payout = 10 - price;
GivePlayerMoney(playerid,- payout);
GameTextForPlayer(playerid, "~r~-$10", 5000, 1);
}
else
{
    GivePlayerMoney(playerid,- 10);
format(string, sizeof(string), "~r~-$%d", 100);
GameTextForPlayer(playerid, string, 5000, 1);
}
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                PlayerInfo = 1;
format(string, sizeof(string), "  Kupili ste imenik, sada mozete vidjeti brojeve od igraca !");
SendClientMessage(playerid, COLOR_GRAD4, string);
SendClientMessage(playerid, COLOR_WHITE, "Podjsjetnik: Kucajte /number .");
// unos novaca u bizz
if (PlayerToPoint(4, playerid,-28.9740,-185.1312,1003.5469)) // 24/7 kod BURGA id 6
{
                BizzInfo += 6;
    ExtortionBiz(6, 6);
    BizzInfo--;
}
if (PlayerToPoint(4, playerid,-23.4075,-55.6348,1003.5469)) // 24/7 kod TAXI id 11
{
            BizzInfo += 6;
    ExtortionBiz(11, 6);
    BizzInfo--;
}
if (PlayerToPoint(4, playerid,-22.1016,-138.6280,1003.5469)) // 24/7 kod PD id 9
{
                BizzInfo += 6;
    ExtortionBiz(9, 6);
    BizzInfo--;
}

if (PlayerToPoint(4, playerid,-22.1016,-138.6280,1003.5469)) // 24/7 kod PSa id 7
{
                BizzInfo += 6;
    ExtortionBiz(7, 6);
}
if (PlayerToPoint(4, playerid,-22.1016,-138.6280,1003.5469)) // 24/7 kod PREHRANA vozaci id 8
{
                BizzInfo += 6;
    ExtortionBiz(8, 6);
}
if (PlayerToPoint(4, playerid,-22.1016,-138.6280,1003.5469)) // 24/7 kod GROOVE id 10
{
                BizzInfo += 6;
    ExtortionBiz(10, 6);
}

return 1;
}
// *****************************************************************************
if(listitem == 2)// kockica
    {
if (GetPlayerMoney(playerid) <  11)
{
SendClientMessage(playerid, COLOR_GRAD2, " Nemate dovoljno novca !");
return 1;
}
    if(PlayerInfo > 0)
    {
new skill = 10 / 100;
new price = (skill)*(PlayerInfo);
new payout = 10 - price;
GivePlayerMoney(playerid,- payout);
format(string, sizeof(string), "~r~-$%d", payout);
GameTextForPlayer(playerid, string, 5000, 1);
}
else
{
    GivePlayerMoney(playerid,-10);
format(string, sizeof(string), "~r~-$%d", 10);
GameTextForPlayer(playerid, string, 5000, 1);
}
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
gDice = 1;
format(string, sizeof(string), "  Kupili ste kockicu, sada je mozete bacati.");
SendClientMessage(playerid, COLOR_GRAD4, string);
SendClientMessage(playerid, COLOR_WHITE, "Podjsetnik: Kucajte /dice ");
// unos novaca u bizz
if (PlayerToPoint(4, playerid,-28.9740,-185.1312,1003.5469)) // 24/7 kod BURGA id 6
{
                BizzInfo += 6;
    ExtortionBiz(6, 6);
    BizzInfo--;
}
if (PlayerToPoint(4, playerid,-23.4075,-55.6348,1003.5469)) // 24/7 kod TAXI id 11
{
            BizzInfo += 6;
    ExtortionBiz(11, 6);
    BizzInfo--;
}
if (PlayerToPoint(4, playerid,-22.1016,-138.6280,1003.5469)) // 24/7 kod PD id 9
{
                BizzInfo += 6;
    ExtortionBiz(9, 6);
    BizzInfo--;
}

if (PlayerToPoint(4, playerid,-22.1016,-138.6280,1003.5469)) // 24/7 kod PSa id 7
{
                BizzInfo += 6;
    ExtortionBiz(7, 6);
}
if (PlayerToPoint(4, playerid,-22.1016,-138.6280,1003.5469)) // 24/7 kod PREHRANA vozaci id 8
{
                BizzInfo += 6;
    ExtortionBiz(8, 6);
}
if (PlayerToPoint(4, playerid,-22.1016,-138.6280,1003.5469)) // 24/7 kod GROOVE id 10
{
                BizzInfo += 6;
    ExtortionBiz(10, 6);
}

return 1;
}
// *****************************************************************************
      if(listitem == 3)// kondom
      {
if (GetPlayerMoney(playerid) <  11)
{
SendClientMessage(playerid, COLOR_GRAD2, " Nemate dovoljno novca !");
return 1;
}
    if(PlayerInfo > 0)
    {
new skill = 10 / 100;
new price = (skill)*(PlayerInfo);
new payout = 10 - price;
GivePlayerMoney(playerid,- payout);
format(string, sizeof(string), "~r~-$%d", payout);
GameTextForPlayer(playerid, string, 5000, 10);
}
else
{
GivePlayerMoney(playerid,-10);
format(string, sizeof(string), "~r~-$%d", 1);
GameTextForPlayer(playerid, string, 5000, 1);
}
Condom ++;
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "Kupili ste kondom.");
SendClientMessage(playerid, COLOR_GRAD4, string);
// unos novaca u bizz
if (PlayerToPoint(4, playerid,-28.9740,-185.1312,1003.5469)) // 24/7 kod BURGA id 6
{
                BizzInfo += 6;
    ExtortionBiz(6, 6);
    BizzInfo--;
}
if (PlayerToPoint(4, playerid,-23.4075,-55.6348,1003.5469)) // 24/7 kod TAXI id 11
{
            BizzInfo += 6;
    ExtortionBiz(11, 6);
    BizzInfo--;
}
if (PlayerToPoint(4, playerid,-22.1016,-138.6280,1003.5469)) // 24/7 kod PD id 9
{
                BizzInfo += 6;
    ExtortionBiz(9, 6);
    BizzInfo--;
}

if (PlayerToPoint(4, playerid,-22.1016,-138.6280,1003.5469)) // 24/7 kod PSa id 7
{
                BizzInfo += 6;
    ExtortionBiz(7, 6);
}
if (PlayerToPoint(4, playerid,-22.1016,-138.6280,1003.5469)) // 24/7 kod PREHRANA vozaci id 8
{
                BizzInfo += 6;
    ExtortionBiz(8, 6);
}
if (PlayerToPoint(4, playerid,-22.1016,-138.6280,1003.5469)) // 24/7 kod GROOVE id 10
{
                BizzInfo += 6;
    ExtortionBiz(10, 6);
}

return 1;
}
// *****************************************************************************
      if(listitem == 4)// kamera
      {
if (GetPlayerMoney(playerid) <  51)
{
SendClientMessage(playerid, COLOR_GRAD2, " Nemate dovoljno novca !");
return 1;
}
GivePlayerMoney(playerid, - 50);
format(string, sizeof(string), "~r~-$%d", 50);
GameTextForPlayer(playerid, string, 5000, 1);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "Kupili ste kameru.");
SendClientMessage(playerid, COLOR_GRAD4, string);
GivePlayerWeapon(playerid, 43, 20);
// unos novaca u bizz
if (PlayerToPoint(4, playerid,-28.9740,-185.1312,1003.5469)) // 24/7 kod BURGA id 6
{
                BizzInfo += 6;
    ExtortionBiz(6, 6);
    BizzInfo--;
}
if (PlayerToPoint(4, playerid,-23.4075,-55.6348,1003.5469)) // 24/7 kod TAXI id 11
{
            BizzInfo += 6;
    ExtortionBiz(11, 6);
    BizzInfo--;
}
if (PlayerToPoint(4, playerid,-22.1016,-138.6280,1003.5469)) // 24/7 kod PD id 9
{
                BizzInfo += 6;
    ExtortionBiz(9, 6);
    BizzInfo--;
}

if (PlayerToPoint(4, playerid,-22.1016,-138.6280,1003.5469)) // 24/7 kod PSa id 7
{
                BizzInfo += 6;
    ExtortionBiz(7, 6);
}
if (PlayerToPoint(4, playerid,-22.1016,-138.6280,1003.5469)) // 24/7 kod PREHRANA vozaci id 8
{
                BizzInfo += 6;
    ExtortionBiz(8, 6);
}
if (PlayerToPoint(4, playerid,-22.1016,-138.6280,1003.5469)) // 24/7 kod GROOVE id 10
{
                BizzInfo += 6;
    ExtortionBiz(10, 6);
}

}
// *****************************************************************************
        if(listitem == 5)// maska
        {
if (GetPlayerMoney(playerid) <  501)
{
SendClientMessage(playerid, COLOR_GRAD2, " Nemate dovoljno novca !");
return 1;
}
    if(PlayerInfo < 5)
    {
SendClientMessage(playerid, COLOR_GREY, "Nisi OSC !");
return 1;
    }
    if(PlayerInfo != 0)
    {
        SendClientMessage(playerid, COLOR_GREY, " Vec imate jednu");
return 1;
    }
    if(PlayerInfo == 1 || PlayerInfo == 1)
    {
                    GameTextForPlayer(playerid, "~w~Besplatno", 5000, 1);
}
else
{
    GivePlayerMoney(playerid, - 500);
format(string, sizeof(string), "~r~-$%d", 500);
GameTextForPlayer(playerid, string, 5000, 1);
}
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "Kupili ste masku.");
GameTextForPlayer(playerid, string, 5000, 1);
SendClientMessage(playerid, COLOR_GRAD4, string);
SendClientMessage(playerid, COLOR_WHITE, "VODIC: Koristite /maska i /maskaoff");
PlayerInfo = 1;
// unos novaca u bizz
if (PlayerToPoint(4, playerid,-28.9740,-185.1312,1003.5469)) // 24/7 kod BURGA id 6
{
                BizzInfo += 6;
    ExtortionBiz(6, 6);
    BizzInfo--;
}
if (PlayerToPoint(4, playerid,-23.4075,-55.6348,1003.5469)) // 24/7 kod TAXI id 11
{
            BizzInfo += 6;
    ExtortionBiz(11, 6);
    BizzInfo--;
}
if (PlayerToPoint(4, playerid,-22.1016,-138.6280,1003.5469)) // 24/7 kod PD id 9
{
                BizzInfo += 6;
    ExtortionBiz(9, 6);
    BizzInfo--;
}

if (PlayerToPoint(4, playerid,-22.1016,-138.6280,1003.5469)) // 24/7 kod PSa id 7
{
                BizzInfo += 6;
    ExtortionBiz(7, 6);
}
if (PlayerToPoint(4, playerid,-22.1016,-138.6280,1003.5469)) // 24/7 kod PREHRANA vozaci id 8
{
                BizzInfo += 6;
    ExtortionBiz(8, 6);
}
if (PlayerToPoint(4, playerid,-22.1016,-138.6280,1003.5469)) // 24/7 kod GROOVE id 10
{
                BizzInfo += 6;
    ExtortionBiz(10, 6);
}

return 1;
}
// *****************************************************************************
        if(listitem == 6)// sat
        {
if (GetPlayerMoney(playerid) <  101)
{
SendClientMessage(playerid, COLOR_GRAD2, " Nemate dovoljno novca !");
return 1;
}
    GivePlayerMoney(playerid, - 100);
    format(string, sizeof(string), "~r~-$%d", 100);
    GameTextForPlayer(playerid, string, 5000, 1);
    SetPlayerAttachedObject( playerid, 0, 19039, 5, 0.000000, -0.007722, -0.011143, 9.279358, 270.517852, 190.637268, 1.000000, 1.000000, 1.000000 );
    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
    format(string, sizeof(string), "Kupili ste sat.");
    SendClientMessage(playerid, COLOR_WHITE, "VODIC: /vreme");
    SendClientMessage(playerid, COLOR_GRAD4, string);
    PlayerInfo = 1;
// unos novaca u bizz
if (PlayerToPoint(4, playerid,-28.9740,-185.1312,1003.5469)) // 24/7 kod BURGA id 6
{
                BizzInfo += 6;
    ExtortionBiz(6, 6);
    BizzInfo--;
}
if (PlayerToPoint(4, playerid,-23.4075,-55.6348,1003.5469)) // 24/7 kod TAXI id 11
{
            BizzInfo += 6;
    ExtortionBiz(11, 6);
    BizzInfo--;
}
if (PlayerToPoint(4, playerid,-22.1016,-138.6280,1003.5469)) // 24/7 kod PD id 9
{
                BizzInfo += 6;
    ExtortionBiz(9, 6);
    BizzInfo--;
}

if (PlayerToPoint(4, playerid,-22.1016,-138.6280,1003.5469)) // 24/7 kod PSa id 7
{
                BizzInfo += 6;
    ExtortionBiz(7, 6);
}
if (PlayerToPoint(4, playerid,-22.1016,-138.6280,1003.5469)) // 24/7 kod PREHRANA vozaci id 8
{
                BizzInfo += 6;
    ExtortionBiz(8, 6);
}
if (PlayerToPoint(4, playerid,-22.1016,-138.6280,1003.5469)) // 24/7 kod GROOVE id 10
{
                BizzInfo += 6;
    ExtortionBiz(10, 6);
}

return 1;
}
}
return 1;
}

#define KUPI 10100