- เครดิต
- 773
- ความรู้
-
- เงิน $
-
- ความดี
-
|
- if(dialogid == 139)//BUY 24-7
- {
- if(response)
- {
- if(listitem == 0 && ScriptMoney[playerid] > 1999)
- {
- if(PlayerInfo[playerid][pTraderPerk] > 0)
- {
- new skill = 2000 / 100;
- new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
- new payout = 2000 - price;
- format(string, sizeof(string), "~r~-$%d", payout);
- GameTextForPlayer(playerid, string, 5000, 1);
- SafeGivePlayerMoney(playerid,- payout);
- SBizzInfo[9][sbTill] += payout;
- ExtortionSBiz(9, payout);
- }
- else
- {
- format(string, sizeof(string), "~r~-$%d", 2000);
- GameTextForPlayer(playerid, string, 5000, 1);
- SafeGivePlayerMoney(playerid,-2000);
- SBizzInfo[9][sbTill] += 2000;
- ExtortionSBiz(9, 2000);
- }
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- new randphone = 10001 + random(89999);//minimum 10000 max 99999
- PlayerInfo[playerid][pPnumber] = randphone;
- format(string, sizeof(string), " àºÍÃìâ·ÃÈѾ·ì¢Í§¤Ø³ËÁÒÂàÅ¢ %d", randphone);
- SendClientMessage(playerid, COLOR_GRAD4, string);
- SendClientMessage(playerid, COLOR_GRAD5, "¤Ø³ÊÒÁÒö´ÙàºÍÃìâ·ÃÈѾ·ì¢Í§¤Ø³ä´éâ´Â¡ÒþÔÁ¾ì /stats");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: ¤Ø³ÊÒÁÒö /help à¾×èÍ´Ù¤ÓÊÑè§à¡ÕèÂǡѺâ·ÃÈѾ·ìä´é.");
- return 1;
- }
- if(listitem == 1 && ScriptMoney[playerid] > 7499)
- {
- if(PlayerInfo[playerid][pTraderPerk] > 0)
- {
- new skill = 7500 / 100;
- new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
- new payout = 7500 - price;
- SafeGivePlayerMoney(playerid,- payout);
- SBizzInfo[9][sbTill] += payout;
- ExtortionSBiz(9, payout);
- format(string, sizeof(string), "~r~-$%d", payout);
- GameTextForPlayer(playerid, string, 5000, 1);
- }
- else
- {
- SafeGivePlayerMoney(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;
- }
- SafeGivePlayerMoney(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;
- }
- if(listitem == 2 && ScriptMoney[playerid] > 4999)
- {
- if(PlayerInfo[playerid][pTraderPerk] > 0)
- {
- new skill = 5000 / 100;
- new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
- new payout = 5000 - price;
- SafeGivePlayerMoney(playerid,- payout);
- SBizzInfo[9][sbTill] += payout;
- ExtortionSBiz(9, payout);
- format(string, sizeof(string), "~r~-$%d", payout);
- GameTextForPlayer(playerid, string, 5000, 1);
- }
- else
- {
- SafeGivePlayerMoney(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, "ªèÇÂàËÅ×Í: ¾ÔÁ¾ì /number <id/name>.");
- return 1;
- }
- if(listitem == 3 && ScriptMoney[playerid] > 499)
- {
- if(PlayerInfo[playerid][pTraderPerk] > 0)
- {
- new skill = 500 / 100;
- new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
- new payout = 500 - price;
- SafeGivePlayerMoney(playerid,- payout);
- SBizzInfo[9][sbTill] += payout;
- ExtortionSBiz(9, payout);
- format(string, sizeof(string), "~r~-$%d", payout);
- GameTextForPlayer(playerid, string, 5000, 1);
- }
- else
- {
- SafeGivePlayerMoney(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, "ªèÇÂàËÅ×Í: ¾ÔÁ¾ì /dice ");
- return 1;
- }
- if(listitem == 4 && ScriptMoney[playerid] > 249)
- {
- if(PlayerInfo[playerid][pTraderPerk] > 0)
- {
- new skill = 250 / 100;
- new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
- new payout = 250 - price;
- SafeGivePlayerMoney(playerid,- payout);
- SBizzInfo[9][sbTill] += payout;
- ExtortionSBiz(9, payout);
- format(string, sizeof(string), "~r~-$%d", payout);
- GameTextForPlayer(playerid, string, 5000, 1);
- }
- else
- {
- SafeGivePlayerMoney(playerid,-500);
- SBizzInfo[9][sbTill] += 500;
- ExtortionSBiz(9, 500);
- format(string, sizeof(string), "~r~-$%d", 250);
- GameTextForPlayer(playerid, string, 5000, 1);
- }
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- gRope[playerid] += 1;
- format(string, sizeof(string), " ¤Ø³ä´é«×éÍàª×Í¡áÅéÇ, ¤Ø³ÁÕàª×Í¡ÍÂÙè %d àÊé¹",gRope[playerid]);
- SendClientMessage(playerid, COLOR_GRAD4, string);
- SendClientMessage(playerid, COLOR_WHITE, "ªèÇÂàËÅ×Í: ¾ÔÁ¾ì /tie à¾×èÍÁÑ´ã¤ÃºÒ§¤¹´éÇÂàª×Í¡");
- return 1;
- }
- if(listitem == 5 && ScriptMoney[playerid] > 4999)
- {
- gSpeedo[playerid] = 1;
- if(PlayerInfo[playerid][pTraderPerk] > 0)
- {
- new skill = 5000 / 100;
- new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
- new payout = 5000 - price;
- SafeGivePlayerMoney(playerid,- payout);
- SBizzInfo[9][sbTill] += payout;
- ExtortionSBiz(9, payout);
- format(string, sizeof(string), "~r~-$%d", payout);
- GameTextForPlayer(playerid, string, 5000, 1);
- }
- else
- {
- SafeGivePlayerMoney(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, "ªèÇÂàËÅ×Í: ¾ÔÁ¾ì /speedo ");
- return 1;
- }
- if(listitem == 6 && ScriptMoney[playerid] > 49)
- {
- if(PlayerInfo[playerid][pTraderPerk] > 0)
- {
- new skill = 50 / 100;
- new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
- new payout = 50 - price;
- SafeGivePlayerMoney(playerid,- payout);
- format(string, sizeof(string), "~r~-$%d", payout);
- GameTextForPlayer(playerid, string, 5000, 1);
- }
- else
- {
- SafeGivePlayerMoney(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;
- }
-
-
- }
- return 1;
- }
คัดลอกไปที่คลิปบอร์ด |
|