Advertisement
Guest User

trade sistem dialog samp

a guest
Apr 12th, 2019
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 87.46 KB | None | 0 0
  1.         case DIALOG_TRADE:
  2.         {
  3.             if(response)
  4.             {
  5.             PlayerInfo[playerid][BuyerID] = strval(inputtext);
  6.             PlayerInfo[PlayerInfo[playerid][BuyerID]][SellerID] = playerid;
  7.             //------------------------------------------------------------------
  8.             if(IsPlayerConnected(PlayerInfo[playerid][BuyerID]) && PlayerInfo[playerid][BuyerID] != INVALID_PLAYER_ID)
  9.             {
  10.                 new string[500];
  11.                 //--------------------------------------------------------------
  12.                 if(PlayerInfo[playerid][BuyerID] == playerid && PlayerInfo[playerid][RCON] < 1 && PlayerInfo[playerid][Management] < 1 && PlayerInfo[playerid][Support] < 1) return
  13.                 SendClientMessage(playerid, COLOR_ULTRARED, "ERROR: Invalid PlayerID!");
  14.                 //--------------------------------------------------------------
  15.                 if(PlayerInfo[PlayerInfo[playerid][BuyerID]][EnTrade] == 0) return
  16.                 SendClientMessage(playerid, COLOR_ULTRARED, "ERROR: The Specified Player has /atrade disabled!");
  17.                 //--------------------------------------------------------------
  18.                 else
  19.                 {
  20.                     //----------------------------------------------------------
  21.                     strcat(string, "{0066FF}Sell {FF0000}Money\n\
  22.                                    {0066FF}Sell {FF0000}Hours\n\
  23.                                     {0066FF}Sell {FF0000}Coins\n\
  24.                                     {0066FF}Sell {FF0000}Kills & Deaths\n\
  25.                                     {0066FF}Sell {FF0000}Admin\n\
  26.                                     {0066FF}Sell {FF0000}VIP\n\
  27.                                     {0066FF}Sell {FF0000}Stunt Points\n\
  28.                                     {0066FF}Sell {FF0000}Drift Points\n\
  29.                                     {0066FF}Sell {FF0000}Race Points\n");
  30.                     //----------------------------------------------------------
  31.                     ShowPlayerDialog(playerid, DIALOG_TRADE2, DIALOG_STYLE_LIST, "{FF0000}Trade", string, "Select", "Cancel");
  32.                 }
  33.             }
  34.             else return SendClientMessage(playerid, COLOR_ULTRARED, "Player is not connected or is yourself!");
  35.         }
  36.     }
  37.     case DIALOG_TRADE2:
  38.     {
  39.         if(response)
  40.         {
  41.             new string[500];
  42.             //------------------------------------------------------------------
  43.             if(listitem == 0)
  44.             {
  45.                 PlayerInfo[playerid][SellOption] = 1;
  46.                 //--------------------------------------------------------------
  47.                 strcat(string, "{0066FF}You have Selected to Sell your Money!\n\
  48.                                 {0066FF}Please insert below the amount of Money that you want to Sell!");
  49.                 //--------------------------------------------------------------
  50.                 ShowPlayerDialog(playerid, DIALOG_TRADE3, DIALOG_STYLE_INPUT, "{FF0000}Trade", string, "Next", "Cancel");
  51.             }
  52.             if(listitem == 1)
  53.             {
  54.                 GameTextForPlayer(playerid, "~w~Option ~r~~h~Disabled~n~~w~by an ~r~~h~Smody_=]", 3000, 3);
  55.                 PlayerInfo[playerid][SellOption] = 2;
  56.                 //--------------------------------------------------------------
  57.                 strcat(string, "{0066FF}You have Selected to Sell your hours{FF9900}!\n\
  58.                                 {0066FF}Please insert below the amount of hours that you want to Sell!");
  59.                 //--------------------------------------------------------------
  60.                 ShowPlayerDialog(playerid, DIALOG_TRADE3, DIALOG_STYLE_INPUT, "{FF0000}Trade", string, "Next", "Cancel");
  61.             }
  62.             if(listitem == 2)
  63.             {
  64.                 PlayerInfo[playerid][SellOption] = 3;
  65.                 //--------------------------------------------------------------
  66.                 strcat(string, "{0066FF}You have Selected to Sell your Coins!\n\
  67.                                 {0066FF}Please insert below the amount of Coins that you want to Sell!");
  68.                 //--------------------------------------------------------------
  69.                 ShowPlayerDialog(playerid, DIALOG_TRADE3, DIALOG_STYLE_INPUT, "{FF0000}Trade", string, "Next", "Cancel");
  70.             }
  71.             if(listitem == 3)
  72.             {
  73.                 PlayerInfo[playerid][SellOption] = 4;
  74.                 //--------------------------------------------------------------
  75.                 strcat(string, "{0066FF}You have Selected to Sell your Kills & Deaths!\n\
  76.                                 {0066FF}Please insert below the amount of Kills & Deaths that you want to Sell!");
  77.                 //--------------------------------------------------------------
  78.                 ShowPlayerDialog(playerid, DIALOG_TRADE3, DIALOG_STYLE_INPUT, "{FF0000}Trade", string, "Next", "Cancel");
  79.             }
  80.             if(listitem == 4)
  81.             {
  82.                 PlayerInfo[playerid][SellOption] = 5;
  83.                 //--------------------------------------------------------------
  84.                 strcat(string, "{0066FF}Buy {FF0000}Money\n\
  85.                                 {0066FF}Buy {FF0000}Score\n\
  86.                                 {0066FF}Buy {FF0000}hours\n\
  87.                                 {0066FF}Buy {FF0000}Coins\n\
  88.                                 {0066FF}Buy {FF0000}Kills & Deaths\n\
  89.                                 {0066FF}Buy {FF0000}Admin\n\
  90.                                 {0066FF}Buy {FF0000}VIP\n\
  91.                                 {0066FF}Buy {FF0000}Stunt Points\n\
  92.                                 {0066FF}Buy {FF0000}Drift Points\n\
  93.                                 {0066FF}Buy {FF0000}Race Points\n");
  94.                 //--------------------------------------------------------------
  95.                 ShowPlayerDialog(playerid, DIALOG_TRADE3, DIALOG_STYLE_LIST, "{FF0000}Trade", string, "Select", "Cancel");
  96.             }
  97.             if(listitem == 5)
  98.             {
  99.                 PlayerInfo[playerid][SellOption] = 6;
  100.                 //--------------------------------------------------------------
  101.                 strcat(string, "{0066FF}Buy {FF0000}Money\n\
  102.                                 {0066FF}Buy {FF0000}Score\n\
  103.                                 {0066FF}Buy {FF0000}hours\n\
  104.                                 {0066FF}Buy {FF0000}Coins\n\
  105.                                 {0066FF}Buy {FF0000}Kills & Deaths\n\
  106.                                 {0066FF}Buy {FF0000}Admin\n\
  107.                                 {0066FF}Buy {FF0000}VIP\n\
  108.                                 {0066FF}Buy {FF0000}Stunt Points\n\
  109.                                 {0066FF}Buy {FF0000}Drift Points\n\
  110.                                 {0066FF}Buy {FF0000}Race Points\n");
  111.                 //--------------------------------------------------------------
  112.                 ShowPlayerDialog(playerid, DIALOG_TRADE3, DIALOG_STYLE_LIST, "{FF0000}Trade", string, "Select", "Cancel");
  113.             }
  114.             if(listitem == 6)
  115.             {
  116.                 PlayerInfo[playerid][SellOption] = 7;
  117.                 //--------------------------------------------------------------
  118.                 strcat(string, "{0066FF}You have Selected to Sell your Stunt Points!\n\
  119.                                 {0066FF}Please insert below the amount of Stunt Points that you want to Sell!");
  120.                 //--------------------------------------------------------------
  121.                 ShowPlayerDialog(playerid, DIALOG_TRADE3, DIALOG_STYLE_INPUT, "{FF0000}Trade", string, "Next", "Cancel");
  122.             }
  123.             if(listitem == 7)
  124.             {
  125.                 PlayerInfo[playerid][SellOption] = 8;
  126.                 //--------------------------------------------------------------
  127.                 strcat(string, "{0066FF}You have Selected to Sell your Drift Points!\n\
  128.                                 {0066FF}Please insert below the amount of Drift Points that you want to Sell!");
  129.                 //--------------------------------------------------------------
  130.                 ShowPlayerDialog(playerid, DIALOG_TRADE3, DIALOG_STYLE_INPUT, "{FF0000}Trade", string, "Next", "Cancel");
  131.             }
  132.             if(listitem == 8)
  133.             {
  134.                 PlayerInfo[playerid][SellOption] = 9;
  135.                 //--------------------------------------------------------------
  136.                 strcat(string, "{0066FF}You have Selected to Sell your Race Points!\n\
  137.                                 {0066FF}Please insert below the amount of Race Points that you want to Sell!");
  138.                 //--------------------------------------------------------------
  139.                 ShowPlayerDialog(playerid, DIALOG_TRADE3, DIALOG_STYLE_INPUT, "{FF0000}Trade", string, "Next", "Cancel");
  140.             }
  141.         }
  142.     }
  143.     //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  144.     case DIALOG_TRADE3:
  145.     {
  146.         if(response)
  147.         {
  148.             new string[500];
  149.             //------------------------------------------------------------------
  150.             PlayerInfo[playerid][SellAmount] = strval(inputtext);
  151.             //------------------------------------------------------------------
  152.             if(PlayerInfo[playerid][SellAmount] < 0) return
  153.             SendClientMessage(playerid, COLOR_ULTRARED, "ERROR: Invalid Trade Amount!");
  154.             //------------------------------------------------------------------
  155.             if(PlayerInfo[playerid][SellOption] == 1)
  156.             {
  157.                 //--------------------------------------------------------------
  158.                 if(PlayerInfo[playerid][hours] < PlayerInfo[playerid][SellAmount]) return
  159.                 SendClientMessage(playerid, COLOR_ULTRARED, "ERROR: Invalid Trade Amount!");
  160.                 //--------------------------------------------------------------
  161.             }
  162.             if(PlayerInfo[playerid][SellOption] == 2)
  163.             {
  164.                 //--------------------------------------------------------------
  165.                 if(PlayerInfo[playerid][Coins] < PlayerInfo[playerid][SellAmount]) return
  166.                 SendClientMessage(playerid, COLOR_ULTRARED, "ERROR: Invalid Trade Amount!");
  167.                 //--------------------------------------------------------------
  168.             }
  169.             if(PlayerInfo[playerid][SellOption] == 3)
  170.             {
  171.                 //--------------------------------------------------------------
  172.                 if(PlayerInfo[playerid][Kills] < PlayerInfo[playerid][SellAmount]) return
  173.                 SendClientMessage(playerid, COLOR_ULTRARED, "ERROR: Invalid Trade Amount!");
  174.                 //--------------------------------------------------------------
  175.             }
  176.             if(PlayerInfo[playerid][SellOption] == 4)
  177.             {
  178.                 //--------------------------------------------------------------
  179.                 if(PlayerInfo[playerid][StuntPoints] < PlayerInfo[playerid][SellAmount]) return
  180.                 SendClientMessage(playerid, COLOR_ULTRARED, "ERROR: Invalid Trade Amount!");
  181.                 //--------------------------------------------------------------
  182.             }
  183.             if(PlayerInfo[playerid][SellOption] == 5)
  184.             {
  185.                 //--------------------------------------------------------------
  186.                 if(PlayerInfo[playerid][DriftPoints] < PlayerInfo[playerid][SellAmount]) return
  187.                 SendClientMessage(playerid, COLOR_ULTRARED, "ERROR: Invalid Trade Amount!");
  188.                 //--------------------------------------------------------------
  189.             }
  190.             if(PlayerInfo[playerid][SellOption] == 6)
  191.             {
  192.                 //--------------------------------------------------------------
  193.                 if(PlayerInfo[playerid][RacePoints] < PlayerInfo[playerid][SellAmount]) return
  194.                 SendClientMessage(playerid, COLOR_ULTRARED, "ERROR: Invalid Trade Amount!");
  195.             }
  196.             //------------------------------------------------------------------
  197.             strcat(string, "{0066FF}Buy {FF0000}Money\n\
  198.                             {0066FF}Buy {FF0000}Hours\n\
  199.                             {0066FF}Buy {FF0000}Coins\n\
  200.                             {0066FF}Buy {FF0000}Kills & Deaths\n\
  201.                             {0066FF}Buy {FF0000}Admin\n\
  202.                             {0066FF}Buy {FF0000}VIP\n\
  203.                             {0066FF}Buy {FF0000}Stunt Points\n\
  204.                             {0066FF}Buy {FF0000}Drift Points\n\
  205.                             {0066FF}Buy {FF0000}Race Points\n");
  206.             //------------------------------------------------------------------
  207.             ShowPlayerDialog(playerid, DIALOG_TRADE4, DIALOG_STYLE_LIST, "{FF0000}Trade", string, "Select", "Cancel");
  208.      }
  209.     }
  210.     //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  211.     case DIALOG_TRADE4:
  212.     {
  213.         if(response)
  214.         {
  215.             new string[500];
  216.             //------------------------------------------------------------------
  217.             if(listitem == 0)
  218.             {
  219.                 PlayerInfo[playerid][BuyOption] = 1;
  220.                 //--------------------------------------------------------------
  221.                 if(PlayerInfo[playerid][SellOption] == 1) return
  222.                 SendClientMessage(playerid, COLOR_ULTRARED, "ERROR: You cannot trade Money on Money!");
  223.                 //--------------------------------------------------------------
  224.                 else
  225.                 {
  226.                     //----------------------------------------------------------
  227.                     strcat(string, "{0066FF}You have Selected to Buy Money from the Specified Player!\n\
  228.                                     {0066FF}Please insert below the amount of Money that you want to buy!");
  229.                     //----------------------------------------------------------
  230.                     ShowPlayerDialog(playerid, DIALOG_TRADE5, DIALOG_STYLE_INPUT, "{FF0000}Trade", string, "Next", "Cancel");
  231.                 }
  232.             }
  233.             if(listitem == 1)
  234.             {
  235.                 //GameTextForPlayer(playerid, "~w~Option ~r~~h~Disabled~n~~w~by an ~r~~h~Administrator", 3000, 3);
  236.                 PlayerInfo[playerid][BuyOption] = 2;
  237.                 //--------------------------------------------------------------
  238.                 if(PlayerInfo[playerid][SellOption] == 2) return
  239.                 SendClientMessage(playerid, COLOR_ULTRARED, "ERROR: You cannot trade hours on hours!");
  240.                 //--------------------------------------------------------------
  241.                 else
  242.                 {
  243.                     //----------------------------------------------------------
  244.                     strcat(string, "{0066FF}You have Selected to Buy hours from the Specified Player!\n\
  245.                                     {0066FF}Please insert below the amount of hours that you want to buy!");
  246.                     //----------------------------------------------------------
  247.                     ShowPlayerDialog(playerid, DIALOG_TRADE5, DIALOG_STYLE_INPUT, "{FF0000}Trade", string, "Next", "Cancel");
  248.                 }
  249.             }
  250.             if(listitem == 2)
  251.             {
  252.                 PlayerInfo[playerid][BuyOption] = 3;
  253.                 //--------------------------------------------------------------
  254.                 if(PlayerInfo[playerid][SellOption] == 3) return
  255.                 SendClientMessage(playerid, COLOR_ULTRARED, "ERROR: You cannot trade Coins on Coins!");
  256.                 //--------------------------------------------------------------
  257.                 else
  258.                 {
  259.                     //----------------------------------------------------------
  260.                     strcat(string, "{0066FF}You have Selected to Buy Coins from the Specified Player!\n\
  261.                                     {0066FF}Please insert below the amount of Coins that you want to buy!");
  262.                     //----------------------------------------------------------
  263.                     ShowPlayerDialog(playerid, DIALOG_TRADE5, DIALOG_STYLE_INPUT, "{FF0000}Trade", string, "Next", "Cancel");
  264.                 }
  265.             }
  266.             if(listitem == 3)
  267.             {
  268.                 PlayerInfo[playerid][BuyOption] = 4;
  269.                 //--------------------------------------------------------------
  270.                 if(PlayerInfo[playerid][SellOption] == 4) return
  271.                 SendClientMessage(playerid, COLOR_ULTRARED, "ERROR: You cannot trade Kills & Deaths on Kills & Deaths!");
  272.                 //--------------------------------------------------------------
  273.                 else
  274.                 {
  275.                     //----------------------------------------------------------
  276.                     strcat(string, "{0066FF}You have Selected to Buy Kills & Deaths from the Specified Player!\n\
  277.                                     {0066FF}Please insert below the amount of Kills & Deaths that you want to buy!");
  278.                     //----------------------------------------------------------
  279.                     ShowPlayerDialog(playerid, DIALOG_TRADE5, DIALOG_STYLE_INPUT, "{FF0000}Trade", string, "Next", "Cancel");
  280.                 }
  281.             }
  282.             if(listitem == 4)
  283.             {
  284.                 PlayerInfo[playerid][BuyOption] = 5;
  285.                 //--------------------------------------------------------------
  286.                 if(PlayerInfo[playerid][SellOption] == 5) return
  287.                 SendClientMessage(playerid, COLOR_ULTRARED, "ERROR: You cannot trade Admin on Admin!");
  288.                 //--------------------------------------------------------------
  289.                 else
  290.                 {
  291.                     //----------------------------------------------------------
  292.                     format(string, 400, "{FF9900}You have completed all Steps before Sending a {11FF00}Trade Request{FF9900} to {11FF00}%s (ID:%d){FF9900}!\n\
  293.                                         {FF9900}Are you sure you want to Send a {11FF00}Trade Request{FF9900} to {11FF00}%s (ID:%d){FF9900} ?",
  294.                                         PlayerName(PlayerInfo[playerid][BuyerID]), PlayerInfo[playerid][BuyerID],
  295.                                         PlayerName(PlayerInfo[playerid][BuyerID]), PlayerInfo[playerid][BuyerID]);
  296.                     //----------------------------------------------------------
  297.                     ShowPlayerDialog(playerid, Trade+5, DIALOG_STYLE_MSGBOX, "Trade", string, "Continue", "Cancel");
  298.                 }
  299.             }
  300.             if(listitem == 5)
  301.             {
  302.                 PlayerInfo[playerid][BuyOption] = 6;
  303.                 //--------------------------------------------------------------
  304.                 if(PlayerInfo[playerid][SellOption] == 6) return
  305.                 SendClientMessage(playerid, COLOR_ULTRARED, "ERROR: You cannot trade VIP on VIP!");
  306.                 //--------------------------------------------------------------
  307.                 else
  308.                 {
  309.                     //----------------------------------------------------------
  310.                     format(string, 400, "{0066FF}You have completed all Steps before Sending a Trade Request to %s (ID:%d)!\n\
  311.                                         {0066FF}Are you sure you want to Send a Trade Request to %s (ID:%d) ?",
  312.                                         PlayerName(PlayerInfo[playerid][BuyerID]), PlayerInfo[playerid][BuyerID],
  313.                                         PlayerName(PlayerInfo[playerid][BuyerID]), PlayerInfo[playerid][BuyerID]);
  314.                     //----------------------------------------------------------
  315.                     ShowPlayerDialog(playerid, DIALOG_TRADE5, DIALOG_STYLE_MSGBOX, "{FF0000}Trade", string, "Continue", "Cancel");
  316.                 }
  317.             }
  318.             if(listitem == 6)
  319.             {
  320.                 PlayerInfo[playerid][BuyOption] = 7;
  321.                 //--------------------------------------------------------------
  322.                 if(PlayerInfo[playerid][SellOption] == 7) return
  323.                 SendClientMessage(playerid, COLOR_ULTRARED, "ERROR: You cannot trade Stunt Points on Stunt Points!");
  324.                 //--------------------------------------------------------------
  325.                 else
  326.                 {
  327.                     //----------------------------------------------------------
  328.                     strcat(string, "{0066FF}You have Selected to Buy Stunt Points from the Specified Player!\n\
  329.                                     {0066FF}Please insert below the amount of Stunt Points that you want to buy!");
  330.                     //----------------------------------------------------------
  331.                     ShowPlayerDialog(playerid, DIALOG_TRADE5, DIALOG_STYLE_INPUT, "{FF0000}Trade", string, "Next", "Cancel");
  332.                 }
  333.             }
  334.             if(listitem == 7)
  335.             {
  336.                 PlayerInfo[playerid][BuyOption] = 8;
  337.                 //--------------------------------------------------------------
  338.                 if(PlayerInfo[playerid][SellOption] == 8) return
  339.                 SendClientMessage(playerid, COLOR_ULTRARED, "ERROR: You cannot trade Drift Points on Drift Points!");
  340.                 //--------------------------------------------------------------
  341.                 else
  342.                 {
  343.                     //----------------------------------------------------------
  344.                     strcat(string, "{0066FF}You have Selected to Buy Drift Points from the Specified Player!\n\
  345.                                     {0066FF}Please insert below the amount of Drift Points that you want to buy!");
  346.                     //----------------------------------------------------------
  347.                     ShowPlayerDialog(playerid, DIALOG_TRADE5, DIALOG_STYLE_INPUT, "{FF0000}Trade", string, "Next", "Cancel");
  348.                 }
  349.             }
  350.             if(listitem == 8)
  351.             {
  352.                 PlayerInfo[playerid][BuyOption] = 9;
  353.                 //--------------------------------------------------------------
  354.                 if(PlayerInfo[playerid][SellOption] == 9) return
  355.                 SendClientMessage(playerid, COLOR_ULTRARED, "ERROR: You cannot trade Race Points on Race Points!");
  356.                 //--------------------------------------------------------------
  357.                 else
  358.                 {
  359.                     //----------------------------------------------------------
  360.                     strcat(string, "{0066FF}You have Selected to Buy Race Points from the Specified Player!\n\
  361.                                     {0066FF}Please insert below the amount of Race Points that you want to buy!");
  362.                     //----------------------------------------------------------
  363.                     ShowPlayerDialog(playerid, DIALOG_TRADE5, DIALOG_STYLE_INPUT, "{FF0000}Trade", string, "Next", "Cancel");
  364.                 }
  365.             }
  366.         }
  367.     }
  368.     //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  369.     case DIALOG_TRADE5:
  370.     {
  371.         if(response)
  372.         {
  373.             new string[400];
  374.             //------------------------------------------------------------------
  375.             PlayerInfo[playerid][BuyAmount] = strval(inputtext);
  376.             //------------------------------------------------------------------
  377.             if(PlayerInfo[playerid][BuyAmount] < 0) return
  378.             SendClientMessage(playerid, COLOR_ULTRARED, "ERROR: Invalid Trade Amount!");
  379.             //------------------------------------------------------------------
  380.             if(PlayerInfo[playerid][BuyAmount] < 0) return
  381.             SendClientMessage(playerid, COLOR_ULTRARED, "ERROR: Invalid Trade Amount!");
  382.             //------------------------------------------------------------------
  383.             if(PlayerInfo[playerid][BuyOption] == 1)
  384.             {
  385.                 //--------------------------------------------------------------
  386.                 if(GetPlayerMoney(PlayerInfo[playerid][BuyerID]) < PlayerInfo[playerid][BuyAmount]) return
  387.                 SendClientMessage(playerid, COLOR_ULTRARED, "ERROR: Invalid Money Ammount!");
  388.                 //--------------------------------------------------------------
  389.             }
  390.             if(PlayerInfo[playerid][BuyOption] == 2)
  391.             {
  392.                 //--------------------------------------------------------------
  393.                 if(PlayerInfo[PlayerInfo[playerid][BuyerID]][hours] < PlayerInfo[playerid][BuyAmount]) return
  394.                 SendClientMessage(playerid, COLOR_ULTRARED, "ERROR: Invalid hours Ammount!");
  395.                 //--------------------------------------------------------------
  396.             }
  397.             if(PlayerInfo[playerid][BuyOption] == 3)
  398.             {
  399.                 //--------------------------------------------------------------
  400.                 if(PlayerInfo[PlayerInfo[playerid][BuyerID]][Coins] < PlayerInfo[playerid][BuyAmount]) return
  401.                 SendClientMessage(playerid, COLOR_ULTRARED, "ERROR: Invalid Coins Ammount!");
  402.                 //--------------------------------------------------------------
  403.             }
  404.             if(PlayerInfo[playerid][BuyOption] == 4)
  405.             {
  406.                 //--------------------------------------------------------------
  407.                 if(PlayerInfo[PlayerInfo[playerid][BuyerID]][Kills] < PlayerInfo[playerid][BuyAmount]) return
  408.                 SendClientMessage(playerid, COLOR_ULTRARED, "ERROR: Invalid Kills Ammount!");
  409.                 //--------------------------------------------------------------
  410.             }
  411.             if(PlayerInfo[playerid][BuyOption] == 5)
  412.             {
  413.                 //--------------------------------------------------------------
  414.                 if(PlayerInfo[PlayerInfo[playerid][BuyerID]][StuntPoints] < PlayerInfo[playerid][BuyAmount]) return
  415.                 SendClientMessage(playerid, COLOR_ULTRARED, "ERROR: Invalid Stunt Points Ammount!");
  416.                 //--------------------------------------------------------------
  417.             }
  418.             if(PlayerInfo[playerid][BuyOption] == 6)
  419.             {
  420.                 //--------------------------------------------------------------
  421.                 if(PlayerInfo[PlayerInfo[playerid][BuyerID]][DriftPoints] < PlayerInfo[playerid][BuyAmount]) return
  422.                 SendClientMessage(playerid, COLOR_ULTRARED, "ERROR: Invalid Drift Points Ammount!");
  423.                 //--------------------------------------------------------------
  424.             }
  425.             if(PlayerInfo[playerid][BuyOption] == 7)
  426.             {
  427.                 //--------------------------------------------------------------
  428.                 if(PlayerInfo[PlayerInfo[playerid][BuyerID]][RacePoints] < PlayerInfo[playerid][BuyAmount]) return
  429.                 SendClientMessage(playerid, COLOR_ULTRARED, "ERROR: Invalid Race Points Ammount!");
  430.                 //--------------------------------------------------------------
  431.             }
  432.             //------------------------------------------------------------------
  433.             format(string, 400, "{FFFF94}You have completed all Steps before Sending a {FF0000}Trade Request{FFFF94} to {FF0000}%s (ID:%d){FFFF94}!\n\
  434.                                  {FFFF94}Are you sure you want to Send a {FF0000}Trade Request{FF0000} to {FFFF94}%s (ID:%d){FFFF94} ?",
  435.                                  PlayerName(PlayerInfo[playerid][BuyerID]), PlayerInfo[playerid][BuyerID],
  436.                                  PlayerName(PlayerInfo[playerid][BuyerID]), PlayerInfo[playerid][BuyerID]);
  437.             //------------------------------------------------------------------
  438.             ShowPlayerDialog(playerid, DIALOG_TRADE6, DIALOG_STYLE_MSGBOX, "{FF0000}Trade", string, "Continue", "Cancel");
  439.         }
  440.     }
  441.     //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  442.     case DIALOG_TRADE6:
  443.     {
  444.         if(response)
  445.         {
  446.             new TInfo[500], SOption[20], BOption[20];
  447.             //------------------------------------------------------------------
  448.             if(PlayerInfo[playerid][SellOption] == 1)      SOption = "Money";
  449.             if(PlayerInfo[playerid][SellOption] == 2)      SOption = "Hours";
  450.             if(PlayerInfo[playerid][SellOption] == 3)      SOption = "Coins";
  451.             if(PlayerInfo[playerid][SellOption] == 4)      SOption = "Kills & Deaths";
  452.             if(PlayerInfo[playerid][SellOption] == 5)      SOption = "Admin";
  453.             if(PlayerInfo[playerid][SellOption] == 6)      SOption = "VIP";
  454.             if(PlayerInfo[playerid][SellOption] == 7)      SOption = "Stunt Points";
  455.             if(PlayerInfo[playerid][SellOption] == 8)      SOption = "Drift Points";
  456.             if(PlayerInfo[playerid][SellOption] == 9)     SOption = "Race Points";
  457.             //------------------------------------------------------------------
  458.             if(PlayerInfo[playerid][BuyOption] == 1)       BOption = "Money";
  459.             if(PlayerInfo[playerid][BuyOption] == 2)       BOption = "Hours";
  460.             if(PlayerInfo[playerid][BuyOption] == 3)       BOption = "Coins";
  461.             if(PlayerInfo[playerid][BuyOption] == 4)       BOption = "Kills & Deaths";
  462.             if(PlayerInfo[playerid][BuyOption] == 5)       BOption = "Admin";
  463.             if(PlayerInfo[playerid][BuyOption] == 6)       BOption = "VIP";
  464.             if(PlayerInfo[playerid][BuyOption] == 7)       BOption = "Stunt Points";
  465.             if(PlayerInfo[playerid][BuyOption] == 8)       BOption = "Drift Points";
  466.             if(PlayerInfo[playerid][BuyOption] == 9)       BOption = "Race Points";
  467.             //------------------------------------------------------------------
  468.             if(PlayerInfo[playerid][BuyOption] == 6 && PlayerInfo[playerid][BuyOption] == 7)
  469.             {
  470.                 //--------------------------------------------------------------
  471.                 format(TInfo, 500, "{FFFF00}Hi {0066FF}%s{FFFF00}!\n\
  472.                                     {11FF00}%s{0066FF} wants to Sell his %s to you for\n\
  473.                                     your{0066FF} %s{FFFF00}!\n\n\
  474.                                     Do you want to {11FF00}Accept{0066FF} or {FF0000}Decline{0066FF} his Trade Offer ?",
  475.                 PlayerName(PlayerInfo[playerid][BuyerID]), PlayerName(playerid), SOption, PlayerInfo[playerid][BuyAmount], BOption);
  476.             }
  477.             if(PlayerInfo[playerid][SellOption] == 7 && PlayerInfo[playerid][BuyOption] == 7)
  478.             {
  479.                 //--------------------------------------------------------------
  480.                 format(TInfo, 500, "{FFFF00}Hi {0066FF}%s{FFFF00}!\n\
  481.                                     {11FF00}%s{0066FF} wants to Sell his %s to you for\n\
  482.                                     your{0066FF} %s{FFFF00}!\n\n\
  483.                                     Do you want to {11FF00}Accept{0066FF} or {FF0000}Decline{0066FF} his Trade Offer ?",
  484.                 PlayerName(PlayerInfo[playerid][BuyerID]), PlayerName(playerid), SOption, PlayerInfo[playerid][BuyAmount], BOption);
  485.             }
  486.             if(PlayerInfo[playerid][BuyOption] == 6 || PlayerInfo[playerid][BuyOption] == 7)
  487.             {
  488.                 //--------------------------------------------------------------
  489.                 format(TInfo, 500, "{FFFF00}Hi {0066FF}%s{FFFF00}!\n\
  490.                                     {11FF00}%s{0066FF} wants to Sell his %s to you for\n\
  491.                                     your{0066FF} %s{FFFF00}!\n\n\
  492.                                     Do you want to {11FF00}Accept{0066FF} or {FF0000}Decline{0066FF} his Trade Offer ?",
  493.                 PlayerName(PlayerInfo[playerid][BuyerID]), PlayerName(playerid), SOption, BOption);
  494.             }
  495.             if(PlayerInfo[playerid][SellOption] == 6 || PlayerInfo[playerid][BuyOption] == 7)
  496.             {
  497.                 //--------------------------------------------------------------
  498.                 format(TInfo, 500, "{FFFF00}Hi {0066FF}%s{FFFF00}!\n\
  499.                                     {11FF00}%s{0066FF} wants to Sell his %s to you for\n\
  500.                                     your{0066FF} %s{FFFF00}!\n\n\
  501.                                     Do you want to {11FF00}Accept{0066FF} or {FF0000}Decline{0066FF} his Trade Offer ?",
  502.                 PlayerName(PlayerInfo[playerid][BuyerID]), PlayerName(playerid), SOption, PlayerInfo[playerid][BuyAmount], BOption);
  503.             }
  504.             else
  505.             {
  506.                 //--------------------------------------------------------------
  507.                 format(TInfo, 500, "{FFFF00}Hi {0066FF}%s{FFFF00}!\n\
  508.                                     {11FF00}%s{0066FF} wants to Sell his %s to you for\n\
  509.                                     your{0066FF} %s{FFFF00}!\n\n\
  510.                                     Do you want to {11FF00}Accept{0066FF} or {FF0000}Decline{0066FF} his Trade Offer ?",
  511.                 PlayerName(PlayerInfo[playerid][BuyerID]), PlayerName(playerid), PlayerInfo[playerid][SellAmount], SOption, PlayerInfo[playerid][BuyAmount], BOption);
  512.             }
  513.             //------------------------------------------------------------------
  514.             ShowPlayerDialog(PlayerInfo[playerid][BuyerID], DIALOG_TRADE7, DIALOG_STYLE_MSGBOX, "{FF0000}Trade", TInfo, "Decline", "Accept");
  515.             //------------------------------------------------------------------
  516.             SendClientMessage(playerid, COLOR_YELLOW, "The {11FF00}Trade Request{FFFF00} was Successfully Sended! Please wait while he {11FF00}Accepts{FFFF00} or {11FF00}Decline{FFFF00} your Trade!");
  517.         }
  518.     }
  519.     //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  520.     case DIALOG_TRADE7:
  521.     {
  522.         new string[100];
  523.         //----------------------------------------------------------------------
  524.         if(response)
  525.         {
  526.             //------------------------------------------------------------------
  527.             SendClientMessage(playerid, COLOR_YELLOW, "You have Successfully {FF0000}Declined{0066FF} the Trade Offer!");
  528.             format(string, 100, "%s{0066FF} has refused your Trade Offer!", PlayerName(playerid));
  529.             //------------------------------------------------------------------
  530.             ShowPlayerDialog(PlayerInfo[playerid][SellerID], 123, DIALOG_STYLE_MSGBOX, "{FF0000}Trade", string, "Ok", "");
  531.         }
  532.         if(!response)
  533.         {
  534.             if(TradeErrors(playerid) == 0) SaveTradeLogs(playerid);
  535.             //------------------------------------------------------------------
  536.             if(PlayerInfo[PlayerInfo[playerid][SellerID]][SellOption] == 1 && TradeErrors(playerid) == 0)
  537.             {
  538.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 2)
  539.                 {
  540.                     //----------------------------------------------------------
  541.                     GivePlayerMoney(PlayerInfo[playerid][SellerID], -PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  542.                     GivePlayerMoney(playerid, PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  543.                     PlayerInfo[PlayerInfo[playerid][SellerID]][hours] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  544.                     PlayerInfo[playerid][hours] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  545.                     //----------------------------------------------------------
  546.                 }
  547.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 3)
  548.                 {
  549.                     //----------------------------------------------------------
  550.                     GivePlayerMoney(PlayerInfo[playerid][SellerID], -PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  551.                     GivePlayerMoney(playerid, PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  552.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Coins] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  553.                     PlayerInfo[playerid][Coins] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  554.                     //----------------------------------------------------------
  555.                 }
  556.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 4)
  557.                 {
  558.                     //----------------------------------------------------------
  559.                     GivePlayerMoney(PlayerInfo[playerid][SellerID], -PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  560.                     GivePlayerMoney(playerid, PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  561.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Kills] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  562.                     PlayerInfo[playerid][Kills] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  563.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths] += PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths];
  564.                     PlayerInfo[playerid][Deaths] = 0;
  565.                     //----------------------------------------------------------
  566.                 }
  567.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 5)
  568.                 {
  569.                     //----------------------------------------------------------
  570.                     GivePlayerMoney(PlayerInfo[playerid][SellerID], -PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  571.                     GivePlayerMoney(playerid, PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  572.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Level] = PlayerInfo[playerid][Level];
  573.                     PlayerInfo[playerid][Level] = 0;
  574.                     //----------------------------------------------------------
  575.                 }
  576.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 6)
  577.                 {
  578.                     //----------------------------------------------------------
  579.                     GivePlayerMoney(PlayerInfo[playerid][SellerID], -PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  580.                     GivePlayerMoney(playerid, PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  581.                     PlayerInfo[PlayerInfo[playerid][SellerID]][pVIP] = PlayerInfo[playerid][pVIP];
  582.                     PlayerInfo[playerid][pVIP] = 0;
  583.                     //----------------------------------------------------------
  584.                 }
  585.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 7)
  586.                 {
  587.                     //----------------------------------------------------------
  588.                     GivePlayerMoney(PlayerInfo[playerid][SellerID], -PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  589.                     GivePlayerMoney(playerid, PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  590.                     PlayerInfo[PlayerInfo[playerid][SellerID]][StuntPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  591.                     PlayerInfo[playerid][StuntPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  592.                     //----------------------------------------------------------
  593.                 }
  594.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 8)
  595.                 {
  596.                     //----------------------------------------------------------
  597.                     GivePlayerMoney(PlayerInfo[playerid][SellerID], -PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  598.                     GivePlayerMoney(playerid, PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  599.                     PlayerInfo[PlayerInfo[playerid][SellerID]][DriftPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  600.                     PlayerInfo[playerid][DriftPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  601.                     //----------------------------------------------------------
  602.                 }
  603.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 9)
  604.                 {
  605.                     //----------------------------------------------------------
  606.                     GivePlayerMoney(PlayerInfo[playerid][SellerID], -PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  607.                     GivePlayerMoney(playerid, PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  608.                     PlayerInfo[PlayerInfo[playerid][SellerID]][RacePoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  609.                     PlayerInfo[playerid][RacePoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  610.                     //----------------------------------------------------------
  611.                 }
  612.             }
  613.             if(PlayerInfo[PlayerInfo[playerid][SellerID]][SellOption] == 2 && TradeErrors(playerid) == 0)
  614.             {
  615.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 1)
  616.                 {
  617.                     //----------------------------------------------------------
  618.                     SetPlayerScore(PlayerInfo[playerid][SellerID], GetPlayerScore(PlayerInfo[playerid][SellerID]) -PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  619.                     SetPlayerScore(playerid, GetPlayerScore(playerid) + PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  620.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Coins] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  621.                     PlayerInfo[playerid][Coins] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  622.                     //----------------------------------------------------------
  623.                 }
  624.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 2)
  625.                 {
  626.                     //----------------------------------------------------------
  627.                     SetPlayerScore(PlayerInfo[playerid][SellerID], GetPlayerScore(PlayerInfo[playerid][SellerID]) -PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  628.                     SetPlayerScore(playerid, GetPlayerScore(playerid) + PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  629.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Kills] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  630.                     PlayerInfo[playerid][Kills] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  631.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths] += PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths];
  632.                     PlayerInfo[playerid][Deaths] = 0;
  633.                     //----------------------------------------------------------
  634.                 }
  635.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 3)
  636.                 {
  637.                     //----------------------------------------------------------
  638.                     SetPlayerScore(PlayerInfo[playerid][SellerID], GetPlayerScore(PlayerInfo[playerid][SellerID]) -PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  639.                     SetPlayerScore(playerid, GetPlayerScore(playerid) + PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  640.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Level] = PlayerInfo[playerid][Level];
  641.                     PlayerInfo[playerid][Level] = 0;
  642.                     //----------------------------------------------------------
  643.                 }
  644.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 4)
  645.                 {
  646.                     //----------------------------------------------------------
  647.                     SetPlayerScore(PlayerInfo[playerid][SellerID], GetPlayerScore(PlayerInfo[playerid][SellerID]) -PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  648.                     SetPlayerScore(playerid, GetPlayerScore(playerid) + PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  649.                     PlayerInfo[PlayerInfo[playerid][SellerID]][pVIP] = PlayerInfo[playerid][pVIP];
  650.                     PlayerInfo[playerid][pVIP] = 0;
  651.                     //----------------------------------------------------------
  652.                 }
  653.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 5)
  654.                 {
  655.                     //----------------------------------------------------------
  656.                     SetPlayerScore(PlayerInfo[playerid][SellerID], GetPlayerScore(PlayerInfo[playerid][SellerID]) -PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  657.                     SetPlayerScore(playerid, GetPlayerScore(playerid) + PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  658.                     PlayerInfo[PlayerInfo[playerid][SellerID]][StuntPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  659.                     PlayerInfo[playerid][StuntPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  660.                     //----------------------------------------------------------
  661.                 }
  662.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 6)
  663.                 {
  664.                     //----------------------------------------------------------
  665.                     SetPlayerScore(PlayerInfo[playerid][SellerID], GetPlayerScore(PlayerInfo[playerid][SellerID]) -PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  666.                     SetPlayerScore(playerid, GetPlayerScore(playerid) + PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  667.                     PlayerInfo[PlayerInfo[playerid][SellerID]][DriftPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  668.                     PlayerInfo[playerid][DriftPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  669.                     //----------------------------------------------------------
  670.                 }
  671.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 7)
  672.                 {
  673.                     //----------------------------------------------------------
  674.                     SetPlayerScore(PlayerInfo[playerid][SellerID], GetPlayerScore(PlayerInfo[playerid][SellerID]) -PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  675.                     SetPlayerScore(playerid, GetPlayerScore(playerid) + PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount]);
  676.                     PlayerInfo[PlayerInfo[playerid][SellerID]][RacePoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  677.                     PlayerInfo[playerid][RacePoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  678.                     //----------------------------------------------------------
  679.                 }
  680.             }
  681.             if(PlayerInfo[PlayerInfo[playerid][SellerID]][SellOption] == 3 && TradeErrors(playerid) == 0)
  682.             {
  683.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 1)
  684.                 {
  685.                     //----------------------------------------------------------
  686.                     PlayerInfo[PlayerInfo[playerid][SellerID]][hours] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  687.                     PlayerInfo[playerid][hours] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  688.                     GivePlayerMoney(PlayerInfo[playerid][SellerID], PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  689.                     GivePlayerMoney(playerid, -PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  690.                     //----------------------------------------------------------
  691.                 }
  692.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 2)
  693.                 {
  694.                     //----------------------------------------------------------
  695.                     PlayerInfo[PlayerInfo[playerid][SellerID]][hours] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  696.                     PlayerInfo[playerid][hours] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  697.                     SetPlayerScore(PlayerInfo[playerid][SellerID], GetPlayerScore(PlayerInfo[playerid][SellerID]) + PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  698.                     SetPlayerScore(playerid, GetPlayerScore(playerid) -PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  699.                     //----------------------------------------------------------
  700.                 }
  701.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 4)
  702.                 {
  703.                     //----------------------------------------------------------
  704.                     PlayerInfo[PlayerInfo[playerid][SellerID]][hours] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  705.                     PlayerInfo[playerid][hours] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  706.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Coins] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  707.                     PlayerInfo[playerid][Coins] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  708.                     //----------------------------------------------------------
  709.                 }
  710.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 5)
  711.                 {
  712.                     //----------------------------------------------------------
  713.                     PlayerInfo[PlayerInfo[playerid][SellerID]][hours] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  714.                     PlayerInfo[playerid][hours] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  715.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Kills] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  716.                     PlayerInfo[playerid][Kills] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  717.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths] += PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths];
  718.                     PlayerInfo[playerid][Deaths] = 0;
  719.                     //----------------------------------------------------------
  720.                 }
  721.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 6)
  722.                 {
  723.                     //----------------------------------------------------------
  724.                     PlayerInfo[PlayerInfo[playerid][SellerID]][hours] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  725.                     PlayerInfo[playerid][hours] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  726.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Level] = PlayerInfo[playerid][Level];
  727.                     PlayerInfo[playerid][Level] = 0;
  728.                     //----------------------------------------------------------
  729.                 }
  730.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 7)
  731.                 {
  732.                     //----------------------------------------------------------
  733.                     PlayerInfo[PlayerInfo[playerid][SellerID]][hours] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  734.                     PlayerInfo[playerid][hours] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  735.                     PlayerInfo[PlayerInfo[playerid][SellerID]][pVIP] = PlayerInfo[playerid][pVIP];
  736.                     PlayerInfo[playerid][pVIP] = 0;
  737.                     //----------------------------------------------------------
  738.                 }
  739.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 8)
  740.                 {
  741.                     //----------------------------------------------------------
  742.                     PlayerInfo[PlayerInfo[playerid][SellerID]][hours] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  743.                     PlayerInfo[playerid][hours] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  744.                     PlayerInfo[PlayerInfo[playerid][SellerID]][StuntPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  745.                     PlayerInfo[playerid][StuntPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  746.                     //----------------------------------------------------------
  747.                 }
  748.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 9)
  749.                 {
  750.                     //----------------------------------------------------------
  751.                     PlayerInfo[PlayerInfo[playerid][SellerID]][hours] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  752.                     PlayerInfo[playerid][hours] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  753.                     PlayerInfo[PlayerInfo[playerid][SellerID]][DriftPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  754.                     PlayerInfo[playerid][DriftPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  755.                     //----------------------------------------------------------
  756.                 }
  757.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 10)
  758.                 {
  759.                     //----------------------------------------------------------
  760.                     PlayerInfo[PlayerInfo[playerid][SellerID]][hours] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  761.                     PlayerInfo[playerid][hours] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  762.                     PlayerInfo[PlayerInfo[playerid][SellerID]][RacePoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  763.                     PlayerInfo[playerid][RacePoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  764.                     //----------------------------------------------------------
  765.                 }
  766.             }
  767.             if(PlayerInfo[PlayerInfo[playerid][SellerID]][SellOption] == 4 && TradeErrors(playerid) == 0)
  768.             {
  769.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 1)
  770.                 {
  771.                     //----------------------------------------------------------
  772.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Coins] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  773.                     PlayerInfo[playerid][Coins] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  774.                     GivePlayerMoney(PlayerInfo[playerid][SellerID], PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  775.                     GivePlayerMoney(playerid, -PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  776.                     //----------------------------------------------------------
  777.                 }
  778.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 2)
  779.                 {
  780.                     //----------------------------------------------------------
  781.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Coins] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  782.                     PlayerInfo[playerid][Coins] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  783.                     SetPlayerScore(PlayerInfo[playerid][SellerID], GetPlayerScore(PlayerInfo[playerid][SellerID]) + PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  784.                     SetPlayerScore(playerid, GetPlayerScore(playerid) -PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  785.                     //----------------------------------------------------------
  786.                 }
  787.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 3)
  788.                 {
  789.                     //----------------------------------------------------------
  790.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Coins] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  791.                     PlayerInfo[playerid][Coins] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  792.                     PlayerInfo[PlayerInfo[playerid][SellerID]][hours] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  793.                     PlayerInfo[playerid][hours] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  794.                     //----------------------------------------------------------
  795.                 }
  796.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 5)
  797.                 {
  798.                     //----------------------------------------------------------
  799.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Coins] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  800.                     PlayerInfo[playerid][Coins] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  801.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Kills] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  802.                     PlayerInfo[playerid][Kills] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  803.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths] += PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths];
  804.                     PlayerInfo[playerid][Deaths] = 0;
  805.                     //----------------------------------------------------------
  806.                 }
  807.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 6)
  808.                 {
  809.                     //----------------------------------------------------------
  810.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Coins] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  811.                     PlayerInfo[playerid][Coins] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  812.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Level] = PlayerInfo[playerid][Level];
  813.                     PlayerInfo[playerid][Level] = 0;
  814.                     //----------------------------------------------------------
  815.                 }
  816.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 7)
  817.                 {
  818.                     //----------------------------------------------------------
  819.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Coins] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  820.                     PlayerInfo[playerid][Coins] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  821.                     PlayerInfo[PlayerInfo[playerid][SellerID]][pVIP] = PlayerInfo[playerid][pVIP];
  822.                     PlayerInfo[playerid][pVIP] = 0;
  823.                     //----------------------------------------------------------
  824.                 }
  825.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 8)
  826.                 {
  827.                     //----------------------------------------------------------
  828.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Coins] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  829.                     PlayerInfo[playerid][Coins] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  830.                     PlayerInfo[PlayerInfo[playerid][SellerID]][StuntPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  831.                     PlayerInfo[playerid][StuntPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  832.                     //----------------------------------------------------------
  833.                 }
  834.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 9)
  835.                 {
  836.                     //----------------------------------------------------------
  837.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Coins] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  838.                     PlayerInfo[playerid][Coins] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  839.                     PlayerInfo[PlayerInfo[playerid][SellerID]][DriftPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  840.                     PlayerInfo[playerid][DriftPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  841.                     //----------------------------------------------------------
  842.                 }
  843.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 10)
  844.                 {
  845.                     //----------------------------------------------------------
  846.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Coins] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  847.                     PlayerInfo[playerid][Coins] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  848.                     PlayerInfo[PlayerInfo[playerid][SellerID]][RacePoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  849.                     PlayerInfo[playerid][RacePoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  850.                     //----------------------------------------------------------
  851.                 }
  852.             }
  853.             if(PlayerInfo[PlayerInfo[playerid][SellerID]][SellOption] == 5 && TradeErrors(playerid) == 0)
  854.             {
  855.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 1)
  856.                 {
  857.                     //----------------------------------------------------------
  858.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Kills] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  859.                     PlayerInfo[playerid][Kills] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  860.                     PlayerInfo[playerid][Deaths] += PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths];
  861.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths] = 0;
  862.                     GivePlayerMoney(PlayerInfo[playerid][SellerID], PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  863.                     GivePlayerMoney(playerid, -PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  864.                     //----------------------------------------------------------
  865.                 }
  866.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 2)
  867.                 {
  868.                     //----------------------------------------------------------
  869.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Kills] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  870.                     PlayerInfo[playerid][Kills] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  871.                     PlayerInfo[playerid][Deaths] += PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths];
  872.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths] = 0;
  873.                     SetPlayerScore(PlayerInfo[playerid][SellerID], GetPlayerScore(PlayerInfo[playerid][SellerID]) + PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  874.                     SetPlayerScore(playerid, GetPlayerScore(playerid) -PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  875.                     //----------------------------------------------------------
  876.                 }
  877.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 3)
  878.                 {
  879.                     //----------------------------------------------------------
  880.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Kills] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  881.                     PlayerInfo[playerid][Kills] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  882.                     PlayerInfo[playerid][Deaths] += PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths];
  883.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths] = 0;
  884.                     PlayerInfo[PlayerInfo[playerid][SellerID]][hours] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  885.                     PlayerInfo[playerid][hours] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  886.                     //----------------------------------------------------------
  887.                 }
  888.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 4)
  889.                 {
  890.                     //----------------------------------------------------------
  891.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Kills] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  892.                     PlayerInfo[playerid][Kills] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  893.                     PlayerInfo[playerid][Deaths] += PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths];
  894.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths] = 0;
  895.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Coins] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  896.                     PlayerInfo[playerid][Coins] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  897.                     //----------------------------------------------------------
  898.                 }
  899.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 6)
  900.                 {
  901.                     //----------------------------------------------------------
  902.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Kills] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  903.                     PlayerInfo[playerid][Kills] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  904.                     PlayerInfo[playerid][Deaths] += PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths];
  905.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths] = 0;
  906.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Level] = PlayerInfo[playerid][Level];
  907.                     PlayerInfo[playerid][Level] = 0;
  908.                     //----------------------------------------------------------
  909.                 }
  910.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 7)
  911.                 {
  912.                     //----------------------------------------------------------
  913.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Kills] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  914.                     PlayerInfo[playerid][Kills] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  915.                     PlayerInfo[playerid][Deaths] += PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths];
  916.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths] = 0;
  917.                     PlayerInfo[PlayerInfo[playerid][SellerID]][pVIP] = PlayerInfo[playerid][pVIP];
  918.                     PlayerInfo[playerid][pVIP] = 0;
  919.                     //----------------------------------------------------------
  920.                 }
  921.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 8)
  922.                 {
  923.                     //----------------------------------------------------------
  924.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Kills] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  925.                     PlayerInfo[playerid][Kills] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  926.                     PlayerInfo[playerid][Deaths] += PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths];
  927.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths] = 0;
  928.                     PlayerInfo[PlayerInfo[playerid][SellerID]][StuntPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  929.                     PlayerInfo[playerid][StuntPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  930.                     //----------------------------------------------------------
  931.                 }
  932.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 9)
  933.                 {
  934.                     //----------------------------------------------------------
  935.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Kills] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  936.                     PlayerInfo[playerid][Kills] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  937.                     PlayerInfo[playerid][Deaths] += PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths];
  938.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths] = 0;
  939.                     PlayerInfo[PlayerInfo[playerid][SellerID]][DriftPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  940.                     PlayerInfo[playerid][DriftPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  941.                     //----------------------------------------------------------
  942.                 }
  943.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 10)
  944.                 {
  945.                     //----------------------------------------------------------
  946.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Kills] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  947.                     PlayerInfo[playerid][Kills] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  948.                     PlayerInfo[playerid][Deaths] += PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths];
  949.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths] = 0;
  950.                     PlayerInfo[PlayerInfo[playerid][SellerID]][RacePoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  951.                     PlayerInfo[playerid][RacePoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  952.                     //----------------------------------------------------------
  953.                 }
  954.             }
  955.             if(PlayerInfo[PlayerInfo[playerid][SellerID]][SellOption] == 6 && TradeErrors(playerid) == 0)
  956.             {
  957.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 1)
  958.                 {
  959.                     //----------------------------------------------------------
  960.                     PlayerInfo[playerid][Level] = PlayerInfo[PlayerInfo[playerid][SellerID]][Level];
  961.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Level] = 0;
  962.                     GivePlayerMoney(PlayerInfo[playerid][SellerID], PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  963.                     GivePlayerMoney(playerid, -PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  964.                     //----------------------------------------------------------
  965.                 }
  966.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 2)
  967.                 {
  968.                     //----------------------------------------------------------
  969.                     PlayerInfo[playerid][Level] = PlayerInfo[PlayerInfo[playerid][SellerID]][Level];
  970.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Level] = 0;
  971.                     SetPlayerScore(PlayerInfo[playerid][SellerID], GetPlayerScore(PlayerInfo[playerid][SellerID]) + PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  972.                     SetPlayerScore(playerid, GetPlayerScore(playerid) -PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  973.                     //----------------------------------------------------------
  974.                 }
  975.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 3)
  976.                 {
  977.                     //----------------------------------------------------------
  978.                     PlayerInfo[playerid][Level] = PlayerInfo[PlayerInfo[playerid][SellerID]][Level];
  979.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Level] = 0;
  980.                     PlayerInfo[PlayerInfo[playerid][SellerID]][hours] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  981.                     PlayerInfo[playerid][hours] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  982.                     //----------------------------------------------------------
  983.                 }
  984.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 4)
  985.                 {
  986.                     //----------------------------------------------------------
  987.                     PlayerInfo[playerid][Level] = PlayerInfo[PlayerInfo[playerid][SellerID]][Level];
  988.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Level] = 0;
  989.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Coins] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  990.                     PlayerInfo[playerid][Coins] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  991.                     //----------------------------------------------------------
  992.                 }
  993.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 5)
  994.                 {
  995.                     //----------------------------------------------------------
  996.                     PlayerInfo[playerid][Level] = PlayerInfo[PlayerInfo[playerid][SellerID]][Level];
  997.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Level] = 0;
  998.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Kills] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  999.                     PlayerInfo[playerid][Kills] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1000.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths] += PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths];
  1001.                     PlayerInfo[playerid][Deaths] = 0;
  1002.                     //----------------------------------------------------------
  1003.                 }
  1004.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 7)
  1005.                 {
  1006.                     //----------------------------------------------------------
  1007.                     PlayerInfo[playerid][Level] = PlayerInfo[PlayerInfo[playerid][SellerID]][Level];
  1008.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Level] = 0;
  1009.                     PlayerInfo[PlayerInfo[playerid][SellerID]][pVIP] = PlayerInfo[playerid][pVIP];
  1010.                     PlayerInfo[playerid][pVIP] = 0;
  1011.                     //----------------------------------------------------------
  1012.                 }
  1013.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 8)
  1014.                 {
  1015.                     //----------------------------------------------------------
  1016.                     PlayerInfo[playerid][Level] = PlayerInfo[PlayerInfo[playerid][SellerID]][Level];
  1017.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Level] = 0;
  1018.                     PlayerInfo[PlayerInfo[playerid][SellerID]][StuntPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1019.                     PlayerInfo[playerid][StuntPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1020.                     //----------------------------------------------------------
  1021.                 }
  1022.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 9)
  1023.                 {
  1024.                     //----------------------------------------------------------
  1025.                     PlayerInfo[playerid][Level] = PlayerInfo[PlayerInfo[playerid][SellerID]][Level];
  1026.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Level] = 0;
  1027.                     PlayerInfo[PlayerInfo[playerid][SellerID]][DriftPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1028.                     PlayerInfo[playerid][DriftPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1029.                     //----------------------------------------------------------
  1030.                 }
  1031.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 10)
  1032.                 {
  1033.                     //----------------------------------------------------------
  1034.                     PlayerInfo[playerid][Level] = PlayerInfo[PlayerInfo[playerid][SellerID]][Level];
  1035.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Level] = 0;
  1036.                     PlayerInfo[PlayerInfo[playerid][SellerID]][RacePoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1037.                     PlayerInfo[playerid][RacePoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1038.                     //----------------------------------------------------------
  1039.                 }
  1040.             }
  1041.             if(PlayerInfo[PlayerInfo[playerid][SellerID]][SellOption] == 7 && TradeErrors(playerid) == 0)
  1042.             {
  1043.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 1)
  1044.                 {
  1045.                     //----------------------------------------------------------
  1046.                     PlayerInfo[playerid][pVIP] = PlayerInfo[PlayerInfo[playerid][SellerID]][pVIP];
  1047.                     PlayerInfo[PlayerInfo[playerid][SellerID]][pVIP] = 0;
  1048.                     GivePlayerMoney(PlayerInfo[playerid][SellerID], PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  1049.                     GivePlayerMoney(playerid, -PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  1050.                     //----------------------------------------------------------
  1051.                 }
  1052.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 2)
  1053.                 {
  1054.                     //----------------------------------------------------------
  1055.                     PlayerInfo[playerid][pVIP] = PlayerInfo[PlayerInfo[playerid][SellerID]][pVIP];
  1056.                     PlayerInfo[PlayerInfo[playerid][SellerID]][pVIP] = 0;
  1057.                     SetPlayerScore(PlayerInfo[playerid][SellerID], GetPlayerScore(PlayerInfo[playerid][SellerID]) + PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  1058.                     SetPlayerScore(playerid, GetPlayerScore(playerid) -PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  1059.                     //----------------------------------------------------------
  1060.                 }
  1061.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 3)
  1062.                 {
  1063.                     //----------------------------------------------------------
  1064.                     PlayerInfo[playerid][pVIP] = PlayerInfo[PlayerInfo[playerid][SellerID]][pVIP];
  1065.                     PlayerInfo[PlayerInfo[playerid][SellerID]][pVIP] = 0;
  1066.                     PlayerInfo[PlayerInfo[playerid][SellerID]][hours] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1067.                     PlayerInfo[playerid][hours] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1068.                     //----------------------------------------------------------
  1069.                 }
  1070.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 4)
  1071.                 {
  1072.                     //----------------------------------------------------------
  1073.                     PlayerInfo[playerid][pVIP] = PlayerInfo[PlayerInfo[playerid][SellerID]][pVIP];
  1074.                     PlayerInfo[PlayerInfo[playerid][SellerID]][pVIP] = 0;
  1075.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Coins] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1076.                     PlayerInfo[playerid][Coins] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1077.                     //----------------------------------------------------------
  1078.                 }
  1079.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 5)
  1080.                 {
  1081.                     //----------------------------------------------------------
  1082.                     PlayerInfo[playerid][pVIP] = PlayerInfo[PlayerInfo[playerid][SellerID]][pVIP];
  1083.                     PlayerInfo[PlayerInfo[playerid][SellerID]][pVIP] = 0;
  1084.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Kills] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1085.                     PlayerInfo[playerid][Kills] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1086.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths] += PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths];
  1087.                     PlayerInfo[playerid][Deaths] = 0;
  1088.                     //----------------------------------------------------------
  1089.                 }
  1090.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 6)
  1091.                 {
  1092.                     //----------------------------------------------------------
  1093.                     PlayerInfo[playerid][pVIP] = PlayerInfo[PlayerInfo[playerid][SellerID]][pVIP];
  1094.                     PlayerInfo[PlayerInfo[playerid][SellerID]][pVIP] = 0;
  1095.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Level] = PlayerInfo[playerid][Level];
  1096.                     PlayerInfo[playerid][Level] = 0;
  1097.                     //----------------------------------------------------------
  1098.                 }
  1099.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 8)
  1100.                 {
  1101.                     //----------------------------------------------------------
  1102.                     PlayerInfo[playerid][pVIP] = PlayerInfo[PlayerInfo[playerid][SellerID]][pVIP];
  1103.                     PlayerInfo[PlayerInfo[playerid][SellerID]][pVIP] = 0;
  1104.                     PlayerInfo[PlayerInfo[playerid][SellerID]][StuntPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1105.                     PlayerInfo[playerid][StuntPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1106.                     //----------------------------------------------------------
  1107.                 }
  1108.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 9)
  1109.                 {
  1110.                     //----------------------------------------------------------
  1111.                     PlayerInfo[playerid][pVIP] = PlayerInfo[PlayerInfo[playerid][SellerID]][pVIP];
  1112.                     PlayerInfo[PlayerInfo[playerid][SellerID]][pVIP] = 0;
  1113.                     PlayerInfo[PlayerInfo[playerid][SellerID]][DriftPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1114.                     PlayerInfo[playerid][DriftPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1115.                     //----------------------------------------------------------
  1116.                 }
  1117.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 10)
  1118.                 {
  1119.                     //----------------------------------------------------------
  1120.                     PlayerInfo[playerid][pVIP] = PlayerInfo[PlayerInfo[playerid][SellerID]][pVIP];
  1121.                     PlayerInfo[PlayerInfo[playerid][SellerID]][pVIP] = 0;
  1122.                     PlayerInfo[PlayerInfo[playerid][SellerID]][RacePoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1123.                     PlayerInfo[playerid][RacePoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1124.                     //----------------------------------------------------------
  1125.                 }
  1126.             }
  1127.             if(PlayerInfo[PlayerInfo[playerid][SellerID]][SellOption] == 8 && TradeErrors(playerid) == 0)
  1128.             {
  1129.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 1)
  1130.                 {
  1131.                     //----------------------------------------------------------
  1132.                     PlayerInfo[PlayerInfo[playerid][SellerID]][StuntPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1133.                     PlayerInfo[playerid][StuntPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1134.                     GivePlayerMoney(PlayerInfo[playerid][SellerID], PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  1135.                     GivePlayerMoney(playerid, -PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  1136.                     //----------------------------------------------------------
  1137.                 }
  1138.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 2)
  1139.                 {
  1140.                     //----------------------------------------------------------
  1141.                     PlayerInfo[PlayerInfo[playerid][SellerID]][StuntPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1142.                     PlayerInfo[playerid][StuntPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1143.                     SetPlayerScore(PlayerInfo[playerid][SellerID], GetPlayerScore(PlayerInfo[playerid][SellerID]) + PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  1144.                     SetPlayerScore(playerid, GetPlayerScore(playerid) -PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  1145.                     //----------------------------------------------------------
  1146.                 }
  1147.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 3)
  1148.                 {
  1149.                     //----------------------------------------------------------
  1150.                     PlayerInfo[PlayerInfo[playerid][SellerID]][StuntPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1151.                     PlayerInfo[playerid][StuntPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1152.                     PlayerInfo[PlayerInfo[playerid][SellerID]][hours] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1153.                     PlayerInfo[playerid][hours] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1154.                     //----------------------------------------------------------
  1155.                 }
  1156.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 4)
  1157.                 {
  1158.                     //----------------------------------------------------------
  1159.                     PlayerInfo[PlayerInfo[playerid][SellerID]][StuntPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1160.                     PlayerInfo[playerid][StuntPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1161.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Coins] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1162.                     PlayerInfo[playerid][Coins] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1163.                     //----------------------------------------------------------
  1164.                 }
  1165.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 5)
  1166.                 {
  1167.                     //----------------------------------------------------------
  1168.                     PlayerInfo[PlayerInfo[playerid][SellerID]][StuntPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1169.                     PlayerInfo[playerid][StuntPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1170.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Kills] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1171.                     PlayerInfo[playerid][Kills] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1172.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths] += PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths];
  1173.                     PlayerInfo[playerid][Deaths] = 0;
  1174.                     //----------------------------------------------------------
  1175.                 }
  1176.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 6)
  1177.                 {
  1178.                     //----------------------------------------------------------
  1179.                     PlayerInfo[PlayerInfo[playerid][SellerID]][StuntPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1180.                     PlayerInfo[playerid][StuntPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1181.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Level] = PlayerInfo[playerid][Level];
  1182.                     PlayerInfo[playerid][Level] = 0;
  1183.                     //----------------------------------------------------------
  1184.                 }
  1185.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 7)
  1186.                 {
  1187.                     //----------------------------------------------------------
  1188.                     PlayerInfo[PlayerInfo[playerid][SellerID]][StuntPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1189.                     PlayerInfo[playerid][StuntPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1190.                     PlayerInfo[PlayerInfo[playerid][SellerID]][pVIP] = PlayerInfo[playerid][pVIP];
  1191.                     PlayerInfo[playerid][pVIP] = 0;
  1192.                     //----------------------------------------------------------
  1193.                 }
  1194.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 9)
  1195.                 {
  1196.                     //----------------------------------------------------------
  1197.                     PlayerInfo[PlayerInfo[playerid][SellerID]][StuntPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1198.                     PlayerInfo[playerid][StuntPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1199.                     PlayerInfo[PlayerInfo[playerid][SellerID]][DriftPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1200.                     PlayerInfo[playerid][DriftPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1201.                     //----------------------------------------------------------
  1202.                 }
  1203.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 10)
  1204.                 {
  1205.                     //----------------------------------------------------------
  1206.                     PlayerInfo[PlayerInfo[playerid][SellerID]][StuntPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1207.                     PlayerInfo[playerid][StuntPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1208.                     PlayerInfo[PlayerInfo[playerid][SellerID]][RacePoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1209.                     PlayerInfo[playerid][RacePoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1210.                     //----------------------------------------------------------
  1211.                 }
  1212.             }
  1213.             if(PlayerInfo[PlayerInfo[playerid][SellerID]][SellOption] == 9 && TradeErrors(playerid) == 0)
  1214.             {
  1215.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 1)
  1216.                 {
  1217.                     //----------------------------------------------------------
  1218.                     PlayerInfo[PlayerInfo[playerid][SellerID]][DriftPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1219.                     PlayerInfo[playerid][DriftPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1220.                     GivePlayerMoney(PlayerInfo[playerid][SellerID], PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  1221.                     GivePlayerMoney(playerid, -PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  1222.                     //----------------------------------------------------------
  1223.                 }
  1224.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 2)
  1225.                 {
  1226.                     //----------------------------------------------------------
  1227.                     PlayerInfo[PlayerInfo[playerid][SellerID]][DriftPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1228.                     PlayerInfo[playerid][DriftPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1229.                     SetPlayerScore(PlayerInfo[playerid][SellerID], GetPlayerScore(PlayerInfo[playerid][SellerID]) + PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  1230.                     SetPlayerScore(playerid, GetPlayerScore(playerid) -PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  1231.                     //----------------------------------------------------------
  1232.                 }
  1233.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 3)
  1234.                 {
  1235.                     //----------------------------------------------------------
  1236.                     PlayerInfo[PlayerInfo[playerid][SellerID]][DriftPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1237.                     PlayerInfo[playerid][DriftPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1238.                     PlayerInfo[PlayerInfo[playerid][SellerID]][hours] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1239.                     PlayerInfo[playerid][hours] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1240.                     //----------------------------------------------------------
  1241.                 }
  1242.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 4)
  1243.                 {
  1244.                     //----------------------------------------------------------
  1245.                     PlayerInfo[PlayerInfo[playerid][SellerID]][DriftPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1246.                     PlayerInfo[playerid][DriftPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1247.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Coins] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1248.                     PlayerInfo[playerid][Coins] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1249.                     //----------------------------------------------------------
  1250.                 }
  1251.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 5)
  1252.                 {
  1253.                     //----------------------------------------------------------
  1254.                     PlayerInfo[PlayerInfo[playerid][SellerID]][DriftPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1255.                     PlayerInfo[playerid][DriftPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1256.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Kills] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1257.                     PlayerInfo[playerid][Kills] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1258.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths] += PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths];
  1259.                     PlayerInfo[playerid][Deaths] = 0;
  1260.                     //----------------------------------------------------------
  1261.                 }
  1262.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 6)
  1263.                 {
  1264.                     //----------------------------------------------------------
  1265.                     PlayerInfo[PlayerInfo[playerid][SellerID]][DriftPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1266.                     PlayerInfo[playerid][DriftPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1267.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Level] = PlayerInfo[playerid][Level];
  1268.                     PlayerInfo[playerid][Level] = 0;
  1269.                     //----------------------------------------------------------
  1270.                 }
  1271.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 7)
  1272.                 {
  1273.                     //----------------------------------------------------------
  1274.                     PlayerInfo[PlayerInfo[playerid][SellerID]][DriftPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1275.                     PlayerInfo[playerid][DriftPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1276.                     PlayerInfo[PlayerInfo[playerid][SellerID]][pVIP] = PlayerInfo[playerid][pVIP];
  1277.                     PlayerInfo[playerid][pVIP] = 0;
  1278.                     //----------------------------------------------------------
  1279.                 }
  1280.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 8)
  1281.                 {
  1282.                     //----------------------------------------------------------
  1283.                     PlayerInfo[PlayerInfo[playerid][SellerID]][DriftPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1284.                     PlayerInfo[playerid][DriftPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1285.                     PlayerInfo[PlayerInfo[playerid][SellerID]][StuntPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1286.                     PlayerInfo[playerid][StuntPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1287.                     //----------------------------------------------------------
  1288.                 }
  1289.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 10)
  1290.                 {
  1291.                     //----------------------------------------------------------
  1292.                     PlayerInfo[PlayerInfo[playerid][SellerID]][DriftPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1293.                     PlayerInfo[playerid][DriftPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1294.                     PlayerInfo[PlayerInfo[playerid][SellerID]][RacePoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1295.                     PlayerInfo[playerid][RacePoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1296.                     //----------------------------------------------------------
  1297.                 }
  1298.             }
  1299.             if(PlayerInfo[PlayerInfo[playerid][SellerID]][SellOption] == 10 && TradeErrors(playerid) == 0)
  1300.             {
  1301.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 1)
  1302.                 {
  1303.                     //----------------------------------------------------------
  1304.                     PlayerInfo[PlayerInfo[playerid][SellerID]][RacePoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1305.                     PlayerInfo[playerid][RacePoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1306.                     GivePlayerMoney(PlayerInfo[playerid][SellerID], PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  1307.                     GivePlayerMoney(playerid, -PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  1308.                     //----------------------------------------------------------
  1309.                 }
  1310.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 2)
  1311.                 {
  1312.                     //----------------------------------------------------------
  1313.                     PlayerInfo[PlayerInfo[playerid][SellerID]][RacePoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1314.                     PlayerInfo[playerid][RacePoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1315.                     SetPlayerScore(PlayerInfo[playerid][SellerID], GetPlayerScore(PlayerInfo[playerid][SellerID]) + PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  1316.                     SetPlayerScore(playerid, GetPlayerScore(playerid) -PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount]);
  1317.                     //----------------------------------------------------------
  1318.                 }
  1319.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 3)
  1320.                 {
  1321.                     //----------------------------------------------------------
  1322.                     PlayerInfo[PlayerInfo[playerid][SellerID]][RacePoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1323.                     PlayerInfo[playerid][RacePoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1324.                     PlayerInfo[PlayerInfo[playerid][SellerID]][hours] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1325.                     PlayerInfo[playerid][hours] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1326.                     //----------------------------------------------------------
  1327.                 }
  1328.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 4)
  1329.                 {
  1330.                     //----------------------------------------------------------
  1331.                     PlayerInfo[PlayerInfo[playerid][SellerID]][RacePoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1332.                     PlayerInfo[playerid][RacePoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1333.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Coins] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1334.                     PlayerInfo[playerid][Coins] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1335.                     //----------------------------------------------------------
  1336.                 }
  1337.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 5)
  1338.                 {
  1339.                     //----------------------------------------------------------
  1340.                     PlayerInfo[PlayerInfo[playerid][SellerID]][RacePoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1341.                     PlayerInfo[playerid][RacePoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1342.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Kills] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1343.                     PlayerInfo[playerid][Kills] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1344.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths] += PlayerInfo[PlayerInfo[playerid][SellerID]][Deaths];
  1345.                     PlayerInfo[playerid][Deaths] = 0;
  1346.                     //----------------------------------------------------------
  1347.                 }
  1348.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 6)
  1349.                 {
  1350.                     //----------------------------------------------------------
  1351.                     PlayerInfo[PlayerInfo[playerid][SellerID]][RacePoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1352.                     PlayerInfo[playerid][RacePoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1353.                     PlayerInfo[PlayerInfo[playerid][SellerID]][Level] = PlayerInfo[playerid][Level];
  1354.                     PlayerInfo[playerid][Level] = 0;
  1355.                     //----------------------------------------------------------
  1356.                 }
  1357.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 7)
  1358.                 {
  1359.                     //----------------------------------------------------------
  1360.                     PlayerInfo[PlayerInfo[playerid][SellerID]][RacePoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1361.                     PlayerInfo[playerid][RacePoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1362.                     PlayerInfo[PlayerInfo[playerid][SellerID]][pVIP] = PlayerInfo[playerid][pVIP];
  1363.                     PlayerInfo[playerid][pVIP] = 0;
  1364.                     //----------------------------------------------------------
  1365.                 }
  1366.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 8)
  1367.                 {
  1368.                     //----------------------------------------------------------
  1369.                     PlayerInfo[PlayerInfo[playerid][SellerID]][RacePoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1370.                     PlayerInfo[playerid][RacePoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1371.                     PlayerInfo[PlayerInfo[playerid][SellerID]][StuntPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1372.                     PlayerInfo[playerid][StuntPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1373.                     //----------------------------------------------------------
  1374.                 }
  1375.                 if(PlayerInfo[PlayerInfo[playerid][SellerID]][BuyOption] == 9)
  1376.                 {
  1377.                     //----------------------------------------------------------
  1378.                     PlayerInfo[PlayerInfo[playerid][SellerID]][RacePoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1379.                     PlayerInfo[playerid][RacePoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][SellAmount];
  1380.                     PlayerInfo[PlayerInfo[playerid][SellerID]][DriftPoints] += PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1381.                     PlayerInfo[playerid][DriftPoints] -= PlayerInfo[PlayerInfo[playerid][SellerID]][BuyAmount];
  1382.                     //----------------------------------------------------------
  1383.                 }
  1384.             }
  1385.             if(TradeErrors(playerid) == 0)
  1386.             {
  1387.                 //--------------------------------------------------------------
  1388.                 SendClientMessage(playerid, COLOR_YELLOW, "You have Successfully {FF0000}Accepted{0066FF} the Trade Offer!");
  1389.                 format(string, 100, "%s{0066FF} has Accepted your Trade Offer!", PlayerName(playerid));
  1390.                 //--------------------------------------------------------------
  1391.                 SendClientMessage(PlayerInfo[playerid][SellerID], COLOR_YELLOW, string);
  1392.             }
  1393.           }
  1394.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement