- เครดิต
- 5504
- ความรู้
-
- เงิน $
-
- ความดี
-
|
แก้ไขครั้งสุดท้ายโดย jamgames เมื่อ 2018-4-8 20:40
- if(strcmp(cmd, "/buy", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if (!PlayerToPoint(10, playerid,-1974.9370,175.4261,27.6875))//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: â·ÃÈѾ·ìÁ×Ͷ×Í $999 2: ºÑµÃàÊÕè§⪤ $7500");
- SendClientMessage(playerid, COLOR_GRAD2, "| 3: ÊÁØ´â·ÃÈѾ·ì $5000 4: ÅÙ¡àµëÒ $500");
- SendClientMessage(playerid, COLOR_GRAD3, "| 5: àª×Í¡ $250 6: ¡Øá¨Åêͤö $10000 (ÊÔ¹¤éÒËÁ´)");
- SendClientMessage(playerid, COLOR_GRAD4, "| 7: ࡨÇÑ´¤ÇÒÁàÃçÇö $5000 8: ¶Ø§Âҧ͹ÒÁÑ $50");
- SendClientMessage(playerid, COLOR_GRAD5, "| 9: «Õ´Õà¾Å§ $2500 10: ä¡è $10 ");
- SendClientMessage(playerid, COLOR_GRAD5, "| 11: áÎÁàºÍÃìà¡ÍÃì $10 12: ¾×ª«èÒáªèá¢ç§ $10");
- SendClientMessage(playerid, COLOR_GRAD5, "| 13: ÇÔ·ÂØ 14: ä¿áªç¡ ");
- SendClientMessage(playerid, COLOR_GRAD5, "| 15: ºØËÃÕè 16: KFC $1000");
- SendClientMessage(playerid, COLOR_GRAD5, "| 17: ¡Åéͧ¶èÒÂÃÙ» 18: ˹éÒ¡Ò¡ $5000 (ÊÔ¹¤éÒËÁ´)");
- SendClientMessage(playerid, COLOR_GRAD5, "| 19: ¹¡á¡éÇ $60000 20: iPod $40000");
- SendClientMessage(playerid, COLOR_GRAD5, "| 21: ¹éÓÂÒ¿×鹿ÙàÅ×Í´ $5000");
- return 1;
- }
- new item = strval(tmp);
- /*if(SBizzInfo[9][sbProducts] == 0)
- {
- GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
- return 1;
- }*/
- if (item == 1 && ScriptMoney[playerid] > 999)
- {
- if(PlayerInfo[playerid][pTraderPerk] > 0)
- {
- new skill = 500 / 100;
- new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
- new payout = 999 - 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", 999);
- GameTextForPlayer(playerid, string, 5000, 1);
- SafeGivePlayerMoney(playerid,-999);
- SBizzInfo[9][sbTill] += 999;
- ExtortionSBiz(9, 999);
- }
- 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;
- }
- else if (item == 2 && ScriptMoney[playerid] > 7500)
- {
- 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;
- }
- else if (item == 3 && ScriptMoney[playerid] > 5000)
- {
- 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;
- }
- else if (item == 4 && ScriptMoney[playerid] > 500)
- {
- 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;
- }
- else if (item == 5 && ScriptMoney[playerid] > 250)
- {
- 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;
- }
- else if (item == 7 && ScriptMoney[playerid] > 5000)
- {
- 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;
- }
- else if (item == 8 && 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;
- }
- else if (item == 9 && ScriptMoney[playerid] > 2500)
- {
- if(PlayerInfo[playerid][pTraderPerk] > 0)
- {
- new skill = 2500 / 100;
- new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
- new payout = 2500 - price;
- SafeGivePlayerMoney(playerid, - payout);
- format(string, sizeof(string), "~r~-$%d", payout);
- GameTextForPlayer(playerid, string, 5000, 1);
- }
- else
- {
- SafeGivePlayerMoney(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, "ªèÇÂàËÅ×Í: ¾ÔÁ¾ì /music");
- PlayerInfo[playerid][pCDPlayer] = 1;
- return 1;
- }
- else if (item == 10 && ScriptMoney[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;
- SafeGivePlayerMoney(playerid, - payout);
- format(string, sizeof(string), "~r~-$%d", payout);
- GameTextForPlayer(playerid, string, 5000, 1);
- }
- else
- {
- SafeGivePlayerMoney(playerid, - 10);
- format(string, sizeof(string), "~r~-$%d", 10);
- GameTextForPlayer(playerid, string, 5000, 1);
- }
- SafeGivePlayerMoney(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 && ScriptMoney[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;
- SafeGivePlayerMoney(playerid, - payout);
- format(string, sizeof(string), "~r~-$%d", payout);
- GameTextForPlayer(playerid, string, 5000, 1);
- }
- else
- {
- SafeGivePlayerMoney(playerid, - 10);
- format(string, sizeof(string), "~r~-$%d", 10);
- GameTextForPlayer(playerid, string, 5000, 1);
- }
- SafeGivePlayerMoney(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 == 12 && ScriptMoney[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;
- SafeGivePlayerMoney(playerid, - payout);
- format(string, sizeof(string), "~r~-$%d", payout);
- GameTextForPlayer(playerid, string, 5000, 1);
- }
- else
- {
- SafeGivePlayerMoney(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 if (item == 13 && ScriptMoney[playerid] > 1000)
- {
- if(PlayerInfo[playerid][pWalkie] > 0)
- {
- new skill = 10 / 100;
- new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
- new payout = 10 - price;
- SafeGivePlayerMoney(playerid, - payout);
- format(string, sizeof(string), "~r~-$%d", payout);
- GameTextForPlayer(playerid, string, 5000, 1);
- }
- else
- {
- SafeGivePlayerMoney(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), "Walkie: ÇÔ¸Õãªé§Ò¹ãËé /setfreq [¤Å×è¹] /wt [¢éͤÇÒÁ]");
- SendClientMessage(playerid, COLOR_GRAD4, string);
- PlayerInfo[playerid][pWalkie] = 1;
- return 1;
- }
- else if (item == 14 && ScriptMoney[playerid] > 50)
- {
- if(PlayerInfo[playerid][pLighter] != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " ¤Ø³ÂѧÁÕä¿áªç¡ÍÂÙè ! ");
- return 1;
- }
- SafeGivePlayerMoney(playerid, - 50);
- PlayerInfo[playerid][pLighter] += 30;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "~r~-$%d", 50);
- GameTextForPlayer(playerid, string, 5000, 1);
- SendClientMessage(playerid, COLOR_GRAD4, "¤Ø³ä´é«×éÍä¿áªç¡.");
- return 1;
- }
- else if (item == 15 && ScriptMoney[playerid] > 100)
- {
- if(PlayerInfo[playerid][pCigarettes] != 0)
- {
- format(string, sizeof(string), " ¤Ø³ÁÕºØËÃÕèàËÅ×ÍÍÂÙè¨Ó¹Ç¹ %d ÁÇÅ .", PlayerInfo[playerid][pCigarettes]);
- SendClientMessage(playerid, COLOR_GREY, string);
- return 1;
- }
- SafeGivePlayerMoney(playerid, - 100);
- PlayerInfo[playerid][pCigarettes] += 20;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "~r~-$%d", 100);
- GameTextForPlayer(playerid, string, 5000, 1);
- SendClientMessage(playerid, COLOR_GRAD4, "¤Ø³ä´é«×éͺØËÃÕè 1 «Í§.");
- SendClientMessage(playerid, COLOR_WHITE, "ªèÇÂàËÅ×Í: ¤Ø³ÊÒÁÒö¾ÔÁ /ssmoke à¾×èÍÊÙººØËÃÕè !");
- return 1;
- }
- else if (item == 16 && ScriptMoney[playerid] > 1000)
- {
- new Float:health;
- SafeGivePlayerMoney(playerid, -1000);
- SetPlayerHealth(playerid, health + 30.0);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "~r~-$%d", 1000);
- GameTextForPlayer(playerid, string, 5000, 1);
- SendClientMessage(playerid, COLOR_GRAD4, "¤Ø³ä´é«×éÍ KFC ÁÒ¡Ô¹àÃÕºÃéÍ HP+30");
- return 1;
- }
- else if (item == 17 && ScriptMoney[playerid] > 1000)
- {
- SafeGivePlayerMoney(playerid, -1000);
- SafeGivePlayerWeapon(playerid, 43, 100);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "~r~-$%d", 1000);
- GameTextForPlayer(playerid, string, 5000, 1);
- SendClientMessage(playerid, COLOR_GRAD4, "¤Ø³ä´é«×éÍ¡Åéͧ¶èÒÂÃÙ»ÁÒàÃÕºÃéÍÂ");
- return 1;
- }
- else if (item == 18 && ScriptMoney[playerid] > 5000)
- {
- if(HaveMask[playerid] != 0)
- {
- SendClientMessage(playerid,COLOR_GREEN," ¤Ø³ÁÕ˹éÒ¡Ò¡ÍÂÙèáÅéÇ äÁèÊÒÁÒö«×éÍä´éÍÕ¡");
- }
- else if(HaveMask[playerid] == 0)
- {
- SafeGivePlayerMoney(playerid, -5000);
- HaveMask[playerid] = 1;
- MaskVIP[playerid] = 0;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "~r~-$%d", 5000);
- GameTextForPlayer(playerid, string, 5000, 1);
- }
- return 1;
- }
- else if (item == 19 && ScriptMoney[playerid] > 60000)
- {
- if(HaveParrot[playerid] != 0)
- {
- SendClientMessage(playerid,COLOR_GREEN," ¤Ø³ÁÕ¹¡á¡éÇÍÂÙèáÅéÇ äÁèÊÒÁÒö«×éÍä´éÍÕ¡");
- }
- else if(HaveParrot[playerid] == 0)
- {
- SafeGivePlayerMoney(playerid, -60000);
- HaveParrot[playerid] = 1;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "~r~-$%d", 60000);
- GameTextForPlayer(playerid, string, 5000, 1);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "[Tips] : ¤Ø³¨ÐµéͧµÑ駪×èÍãËé¡Ñº ¹¡á¡éǢͧ¤Ø³");
- SendClientMessage(playerid, COLOR_GREEN, "[Tips] : ¤Ø³ÊÒÁÒö¡´ Cancel à¾×èÍ¡àÅÔ¡ä´é «Ö觤س¨Ðä´éà§Ô¹¤×¹´éÇÂ");
- SendClientMessage(playerid, COLOR_SUPERRED, "[Warning] : ËÒ¡¤Ø³ËÅØ´ËÃ×ÍÍÍ¡¨Ò¡à¡ÁÊì ¹¡á¡éǨÐ˹Õ价ѹ·Õ");
- ShowPlayerDialog(playerid, 9990, DIALOG_STYLE_INPUT,"{FF0000}Name your Parrot?","â»Ã´¡ÃÍ¡ª×è͹¡á¡éǢͧ¤Ø³:","Complete","Cancel");
- }
- return 1;
- }
- else if (item == 20 && ScriptMoney[playerid] > 40000)
- {
- if(PlayerInfo[playerid][piPod] != 0)
- {
- SendClientMessage(playerid,COLOR_SUPERRED," ¤Ø³ÁÕ iPod ÍÂÙèáÅéÇ äÁèÊÒÁÒö«×éÍä´éÍÕ¡");
- }
- else if(PlayerInfo[playerid][piPod] == 0)
- {
- SafeGivePlayerMoney(playerid, -40000);
- PlayerInfo[playerid][piPod] = 1;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "~r~-$%d", 40000);
- GameTextForPlayer(playerid, string, 5000, 1);
- SendClientMessage(playerid, COLOR_SUPERRED, "[Tips] : ãªé¤ÓÊÑ觢ͧ iPod ¤×Í /ipod");
- }
- return 1;
- }
- else if (item == 21 && ScriptMoney[playerid] > 5000)
- {
- SafeGivePlayerMoney(playerid, -5000);
- PlayerInfo[playerid][pRegen] += 1;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "~r~-$%d", 5000);
- GameTextForPlayer(playerid, string, 5000, 1);
- format(string,128,"[24-7] : ¢³Ð¹Õé¤Ø³ÁÕ¹éÓÂÒ¿×鹿ÙàÅ×Í´¨Ó¹Ç¹ : %d¢Ç´",PlayerInfo[playerid][pRegen]);
- SendClientMessage(playerid, 0x00ff00ff, string);
- SendClientMessage(playerid, 0x00ff00ff, "[Tips] : ¿×鹿ÙàÅ×Í´ 1/ÇÔ¹Ò·Õ â´Âãªé¤ÓÊÑè§ /regen");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, " You don't have the cash for that !");
- }
- }
- return 1;
- }
คัดลอกไปที่คลิปบอร์ด
ไม่ใช่ว่าเอาไปใช้ได้เลยนะ ERROR แน่นอน
ต้องปรับให้เข้ากับ สคริปของคุณเอง |
|