Jump to content
  • 0

Question

Posted

Cum as putea sa adaug produse la 24/7 ? Nu este bizz insa cand vreau sa cumpar ceva imi zice Out of Stock , inainte nu zicea .

RPG.VIBEPLAY.RO

Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!

2 answers to this question

Recommended Posts

Posted

Daca folosesti mod-ul GF uitete atent la comanda [glow=red,2,300]/buy[/glow] si iti va zice ca in sbiz-ul cu numarul 9 nu este produse, daca ai alt sbiz atunci da-ne toata comanda /buy oricum cu siguranta e sbiz-ul 9 deoarece le cunosc pe toate.

Posted

Da este bizz 9 , uite si comanda pentru orice evntualitate :

[pawn]if(strcmp(cmd, "/buy", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

if (!PlayerToPoint(100, playerid,-30.875, -88.9609, 1004.53))//centerpoint 24-7

{

SendClientMessage(playerid, COLOR_GRAD2, "  You are not in a 24-7 !");

return 1;

}

tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

SendClientMessage(playerid, COLOR_WHITE, "USAGE: /buy [item number]");

SendClientMessage(playerid, COLOR_GREEN, "|_______ 24-7 _______|");

SendClientMessage(playerid, COLOR_GRAD1, "| 1: Cell Phone $500 2: Scratch Card $7500");

SendClientMessage(playerid, COLOR_GRAD2, "| 3: Phone Book $5000 4: Dice $500");

SendClientMessage(playerid, COLOR_GRAD3, "| 5: Vehicle Key $5000 6: Vehicle Lock $10000");

SendClientMessage(playerid, COLOR_GRAD4, "| 7: Speedometer $5000 8: Condom $50");

SendClientMessage(playerid, COLOR_GRAD5, "| 9: CD-Player $2500 10: Chicken $10 ");

                SendClientMessage(playerid, COLOR_GRAD5, "| 11: Hamburger $10          12: Frozen Pizza $10");

SendClientMessage(playerid, COLOR_GRAD5, "| 13: Molotov Maker $30000");

return 1;

}

new item = strval(tmp);

if(SBizzInfo[9][sbProducts] == 0)

{

GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);

return 1;

}

if (item == 1 && GetPlayerMoney(playerid) > 500)

{

    if(PlayerInfo[playerid][pTraderPerk] > 0)

    {

new skill = 500 / 100;

new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);

new payout = 500 - price;

        format(string, sizeof(string), "~r~-$%d", payout);

GameTextForPlayer(playerid, string, 5000, 1);

GivePlayerMoney(playerid,- payout);

SBizzInfo[9][sbTill] += payout;

ExtortionSBiz(9, payout);

    }

    else

    {

        format(string, sizeof(string), "~r~-$%d", 500);

GameTextForPlayer(playerid, string, 5000, 1);

GivePlayerMoney(playerid,-500);

SBizzInfo[9][sbTill] += 500;

ExtortionSBiz(9, 500);

    }

PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

new randphone = 1000 + random(8999);//minimum 1000  max 9999

PlayerInfo[playerid][pPnumber] = randphone;

format(string, sizeof(string), "  Mobile Phone Purchased your new Number is %d", randphone);

SendClientMessage(playerid, COLOR_GRAD4, string);

SendClientMessage(playerid, COLOR_GRAD5, "You can check this anytime by Typing /stats");

SendClientMessage(playerid, COLOR_WHITE, "HINT: You can now type /help to see your cell phone commands.");

return 1;

}

else if (item == 2 && GetPlayerMoney(playerid) > 7500)

{

    if(PlayerInfo[playerid][pTraderPerk] > 0)

    {

new skill = 7500 / 100;

new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);

new payout = 7500 - price;

GivePlayerMoney(playerid,- payout);

SBizzInfo[9][sbTill] += payout;

ExtortionSBiz(9, payout);

format(string, sizeof(string), "~r~-$%d", payout);

GameTextForPlayer(playerid, string, 5000, 1);

}

else

{

    GivePlayerMoney(playerid,-7500);

SBizzInfo[9][sbTill] += 7500;

ExtortionSBiz(9, 7500);

format(string, sizeof(string), "~r~-$%d", 1000);

GameTextForPlayer(playerid, string, 5000, 1);

}

PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

new prize;

new symb1[32]; new symb2[32]; new symb3[32];

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);

SBizzInfo[9][sbTill] -= prize;

ExtortionSBiz(9, 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);

return 1;

}

else if (item == 3 && GetPlayerMoney(playerid) > 5000)

{

    if(PlayerInfo[playerid][pTraderPerk] > 0)

    {

new skill = 5000 / 100;

new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);

new payout = 5000 - price;

GivePlayerMoney(playerid,- payout);

SBizzInfo[9][sbTill] += payout;

ExtortionSBiz(9, payout);

format(string, sizeof(string), "~r~-$%d", payout);

GameTextForPlayer(playerid, string, 5000, 1);

}

else

{

    GivePlayerMoney(playerid,-5000);

SBizzInfo[9][sbTill] += 5000;

ExtortionSBiz(9, 5000);

format(string, sizeof(string), "~r~-$%d", 5000);

GameTextForPlayer(playerid, string, 5000, 1);

}

PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

                PlayerInfo[playerid][pPhoneBook] = 1;

format(string, sizeof(string), "  Phone Book Purchased you can look up any Players Number !");

SendClientMessage(playerid, COLOR_GRAD4, string);

SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /number <id/name>.");

return 1;

}

else if (item == 4 && GetPlayerMoney(playerid) > 500)

{

    if(PlayerInfo[playerid][pTraderPerk] > 0)

    {

new skill = 500 / 100;

new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);

new payout = 500 - price;

GivePlayerMoney(playerid,- payout);

SBizzInfo[9][sbTill] += payout;

ExtortionSBiz(9, payout);

format(string, sizeof(string), "~r~-$%d", payout);

GameTextForPlayer(playerid, string, 5000, 1);

}

else

{

    GivePlayerMoney(playerid,-500);

SBizzInfo[9][sbTill] += 500;

ExtortionSBiz(9, 500);

format(string, sizeof(string), "~r~-$%d", 500);

GameTextForPlayer(playerid, string, 5000, 1);

}

PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

gDice[playerid] = 1;

format(string, sizeof(string), "  Dice Purchased you can throw your Dice.");

SendClientMessage(playerid, COLOR_GRAD4, string);

SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /dice ");

return 1;

}

else if(item == 5 && GetPlayerMoney(playerid) > 5000)

{

if (gLastCar[playerid] != 0)

{

if(HireCar[playerid] != 299)

{

gCarLock[HireCar[playerid]] = 0;

UnLockCar(HireCar[playerid]);

HireCar[playerid] = 299;

}

if(PlayerInfo[playerid][pTraderPerk] > 0)

    {

new skill = 5000 / 100;

new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);

new payout = 5000 - price;

GivePlayerMoney(playerid,- payout);

SBizzInfo[9][sbTill] += payout;

ExtortionSBiz(9, payout);

format(string, sizeof(string), "~r~-$%d", payout);

GameTextForPlayer(playerid, string, 5000, 1);

}

else

{

    GivePlayerMoney(playerid,-5000);

SBizzInfo[9][sbTill] += 5000;

ExtortionSBiz(9, 5000);

format(string, sizeof(string), "~r~-$%d", 5000);

GameTextForPlayer(playerid, string, 5000, 1);

}

SBizzInfo[9][sbProducts]--;

PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

HireCar[playerid] = gLastCar[playerid];

format(string, sizeof(string), "Key Purchased You Can Lock Your Last Vehicle.");

SendClientMessage(playerid, COLOR_GRAD4, string);

SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /lock ");

}

else

{

SendClientMessage(playerid, COLOR_WHITE, "  You don't have a Vehicle to fit it to !");

}

return 1;

}

else if (item == 6 && GetPlayerMoney(playerid) > 10000)

{

if(PlayerInfo[playerid][pPhousekey] != 255)

{

for(new i = 0; i < MAX_PLAYERS; i++)

{

if(IsPlayerConnected(i) == 1 && HireCar[PlayerInfo[playerid][pPhousekey]+1])

{

HireCar = 299;

}

}

if(PlayerInfo[playerid][pTraderPerk] > 0)

    {

new skill = 10000 / 100;

new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);

new payout = 10000 - price;

GivePlayerMoney(playerid,- payout);

SBizzInfo[9][sbTill] += payout;

ExtortionSBiz(9, payout);

format(string, sizeof(string), "~r~-$%d", payout);

GameTextForPlayer(playerid, string, 5000, 1);

}

else

{

    GivePlayerMoney(playerid,-10000);

SBizzInfo[9][sbTill] += 10000;

ExtortionSBiz(9, 10000);

format(string, sizeof(string), "~r~-$%d", 10000);

GameTextForPlayer(playerid, string, 5000, 1);

}

SBizzInfo[9][sbProducts]--;

PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

format(string, sizeof(string), "New Locks Purchased.");

SendClientMessage(playerid, COLOR_GRAD4, string);

SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /lock ");

}

else

{

SendClientMessage(playerid, COLOR_WHITE, "  You don't have a Vehicle to fit it to !");

}

return 1;

}

else if (item == 7 && GetPlayerMoney(playerid) > 5000)

{

gSpeedo[playerid] = 1;

if(PlayerInfo[playerid][pTraderPerk] > 0)

    {

new skill = 5000 / 100;

new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);

new payout = 5000 - price;

GivePlayerMoney(playerid,- payout);

SBizzInfo[9][sbTill] += payout;

ExtortionSBiz(9, payout);

format(string, sizeof(string), "~r~-$%d", payout);

GameTextForPlayer(playerid, string, 5000, 1);

}

else

{

    GivePlayerMoney(playerid,-5000);

SBizzInfo[9][sbTill] += 5000;

ExtortionSBiz(9, 5000);

format(string, sizeof(string), "~r~-$%d", 5000);

GameTextForPlayer(playerid, string, 5000, 1);

}

SBizzInfo[9][sbProducts]--;

PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

format(string, sizeof(string), "Speedometer Purchased.");

SendClientMessage(playerid, COLOR_GRAD4, string);

SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /speedo ");

return 1;

}

else if (item == 8 && GetPlayerMoney(playerid) > 49)

{

    if(PlayerInfo[playerid][pTraderPerk] > 0)

    {

new skill = 50 / 100;

new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);

new payout = 50 - price;

GivePlayerMoney(playerid,- payout);

format(string, sizeof(string), "~r~-$%d", payout);

GameTextForPlayer(playerid, string, 5000, 1);

}

else

{

    GivePlayerMoney(playerid,-50);

format(string, sizeof(string), "~r~-$%d", 50);

GameTextForPlayer(playerid, string, 5000, 1);

}

Condom[playerid] ++;

PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

format(string, sizeof(string), "Condom Purchased.");

SendClientMessage(playerid, COLOR_GRAD4, string);

return 1;

}

else if (item == 9 && GetPlayerMoney(playerid) > 2500)

{

    if(PlayerInfo[playerid][pTraderPerk] > 0)

    {

new skill = 2500 / 100;

new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);

new payout = 2500 - price;

GivePlayerMoney(playerid, - payout);

format(string, sizeof(string), "~r~-$%d", payout);

GameTextForPlayer(playerid, string, 5000, 1);

}

else

{

    GivePlayerMoney(playerid, - 2500);

format(string, sizeof(string), "~r~-$%d", 2500);

GameTextForPlayer(playerid, string, 5000, 1);

}

PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

format(string, sizeof(string), "CD-Player Purchased.");

SendClientMessage(playerid, COLOR_GRAD4, string);

SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /music");

PlayerInfo[playerid][pCDPlayer] = 1;

return 1;

}

else if (item == 10 && GetPlayerMoney(playerid) > 10)

{

    if(Groceries[playerid][pChickens] >= 3)

    {

        SendClientMessage(playerid, COLOR_GREY, "  You have to many Chickens, Cook some first !");

        return 1;

    }

    if(PlayerInfo[playerid][pTraderPerk] > 0)

    {

new skill = 10 / 100;

new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);

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);

}

    GivePlayerMoney(playerid, - 10);

PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

format(string, sizeof(string), "Chicken Purchased.");

SendClientMessage(playerid, COLOR_GRAD4, string);

format(string, sizeof(string), "~r~-$%d", 10);

GameTextForPlayer(playerid, string, 5000, 1);

new rand = random(15);

Groceries[playerid][pChickens] += 1;

Groceries[playerid][pChicken] += rand;

return 1;

}

else if (item == 11 && GetPlayerMoney(playerid) > 10)

{

    if(Groceries[playerid][pHamburgers] >= 3)

    {

        SendClientMessage(playerid, COLOR_GREY, "  You have to many Hamburgers, Cook some first !");

        return 1;

    }

    if(PlayerInfo[playerid][pTraderPerk] > 0)

    {

new skill = 10 / 100;

new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);

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);

}

    GivePlayerMoney(playerid, - 10);

PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

format(string, sizeof(string), "Hamburger Purchased.");

SendClientMessage(playerid, COLOR_GRAD4, string);

format(string, sizeof(string), "~r~-$%d", 10);

GameTextForPlayer(playerid, string, 5000, 1);

new rand = random(15);

Groceries[playerid][pHamburgers] += 1;

Groceries[playerid][pHamburger] += rand;

return 1;

}

else if (item == 13 && GetPlayerMoney(playerid) > 30000)

{

    if(PlayerInfo[playerid][pTraderPerk] > 0)

    {

new skill = 30000 / 10;

new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);

new payout = 30000 - price;

GivePlayerMoney(playerid, - payout);

format(string, sizeof(string), "~r~-$%d", payout);

GameTextForPlayer(playerid, string, 5000, 1);

}

else

{

    GivePlayerMoney(playerid, - 30000);

format(string, sizeof(string), "~r~-$%d", 30000);

GameTextForPlayer(playerid, string, 5000, 1);

}

PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

format(string, sizeof(string), "Molotov Maker purchased.");

SendClientMessage(playerid, COLOR_GRAD4, string);

SendClientMessage(playerid, COLOR_WHITE, "HINT: You can now use /makemolotov to create a molotov.");

MolotovMaked[playerid] = 1;

return 1;

}

else if (item == 12 && GetPlayerMoney(playerid) > 10)

{

    if(Groceries[playerid][pPizzas] >= 3)

    {

        SendClientMessage(playerid, COLOR_GREY, "  You have to many Pizzas, Cook some first !");

        return 1;

    }

    if(PlayerInfo[playerid][pTraderPerk] > 0)

    {

new skill = 10 / 100;

new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);

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);

format(string, sizeof(string), "Frozen Pizza Purchased.");

SendClientMessage(playerid, COLOR_GRAD4, string);

new rand = random(15);

Groceries[playerid][pPizzas] += 1;

Groceries[playerid][pPizza] += rand;

return 1;

}

else

{

SendClientMessage(playerid, COLOR_WHITE, "  You don't have the cash for that !");

}

}

return 1;

}[/pawn]

EDIT : Intre timp am rezolvta , mi-am dat seama de unde era cauza , mersi ai +1 ;)

RPG.VIBEPLAY.RO

Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.