Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(dialogid == 69)
- {
- if(response)
- {
- if (listitem == 0 && GetPlayerMoney(playerid) > 149)
- {
- if(PlayerInfo[playerid][pTraderPerk] > 0)
- {
- new skill = 150 / 100;
- new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
- new payout = 150 - price;
- format(string, sizeof(string), "~r~-$%d", payout);
- GameTextForPlayer(playerid, string, 5000, 1);
- GivePlayerCash(playerid,- payout);
- SBizzInfo[16][sbTill] += payout;
- ExtortionSBiz(16, payout);
- SBizzInfo[16][sbProducts]--;
- OnPropUpdate();
- }
- else
- {
- format(string, sizeof(string), "~r~-$%d", 150);
- GameTextForPlayer(playerid, string, 5000, 1);
- GivePlayerCash(playerid,-150);
- SBizzInfo[16][sbTill] += 150;
- ExtortionSBiz(16, 150);
- SBizzInfo[16][sbProducts]--;
- OnPropUpdate();
- }
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- new randphone = 100000 + random(899999);//minimum 1000 max 9999
- PlayerInfo[playerid][pPnumber] = randphone;
- format(string, sizeof(string), "Kupili ste mobilni, vas novi broj je {FFFFFF}%d", randphone);
- SendClientMessage(playerid, ZELENKASTA, string);
- SendClientMessage(playerid, ZELENKASTA, "Ovo uvjek mozete provjeriti kucajuci {FFFFFF}/ucp");
- SendClientMessage(playerid, ZELENKASTA, "Podsjetnik: Sada mozete kucati /help da vidite komande od telefona.");
- return 1;
- }
- else if (listitem == 1 && GetPlayerMoney(playerid) > 500)
- {
- if(PlayerInfo[playerid][pTraderPerk] > 0)
- {
- new skill = 500 / 100;
- new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
- new payout = 500 - price;
- GivePlayerCash(playerid,- payout);
- SBizzInfo[16][sbTill] += payout;
- ExtortionSBiz(16, payout);
- SBizzInfo[16][sbProducts]--;
- OnPropUpdate();
- format(string, sizeof(string), "~r~-$%d", payout);
- GameTextForPlayer(playerid, string, 5000, 1);
- }
- else
- {
- GivePlayerCash(playerid,-500);
- SBizzInfo[16][sbTill] += 500;
- ExtortionSBiz(16, 500);
- SBizzInfo[16][sbProducts]--;
- OnPropUpdate();
- 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[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;
- }
- GivePlayerCash(playerid,prize);
- SBizzInfo[16][sbTill] -= prize;
- ExtortionSBiz(16, prize);
- SBizzInfo[16][sbProducts]--;
- OnPropUpdate();
- 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;
- }
Advertisement
Add Comment
Please, Sign In to add comment