Advertisement
Sasino97

[ENGLISH]Sasinosoft Teleport Maker v2

Jul 17th, 2011
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 18.90 KB | None | 0 0
  1. #pragma once
  2.  
  3. namespace TeleportMaker {
  4.  
  5.     using namespace System;
  6.     using namespace System::ComponentModel;
  7.     using namespace System::Collections;
  8.     using namespace System::Windows::Forms;
  9.     using namespace System::Data;
  10.     using namespace System::Drawing;
  11.  
  12.     /// <summary>
  13.     /// Riepilogo per Form1
  14.     /// </summary>
  15.     public ref class Form1 : public System::Windows::Forms::Form
  16.     {
  17.     public:
  18.         Form1(void)
  19.         {
  20.             InitializeComponent();
  21.             //
  22.             //TODO: aggiungere qui il codice del costruttore.
  23.             //
  24.         }
  25.  
  26.     protected:
  27.         /// <summary>
  28.         /// Liberare le risorse in uso.
  29.         /// </summary>
  30.         ~Form1()
  31.         {
  32.             if (components)
  33.             {
  34.                 delete components;
  35.             }
  36.         }
  37.     private: System::Windows::Forms::TextBox^  X_BOX;
  38.     protected:
  39.  
  40.     protected:
  41.     private: System::Windows::Forms::Label^  label1;
  42.     private: System::Windows::Forms::Label^  label2;
  43.     private: System::Windows::Forms::TextBox^  Y_BOX;
  44.  
  45.     private: System::Windows::Forms::Label^  label3;
  46.     private: System::Windows::Forms::TextBox^  Z_BOX;
  47.     private: System::Windows::Forms::TextBox^  COMMAND_BOX;
  48.     private: System::Windows::Forms::Label^  label4;
  49.     private: System::Windows::Forms::Label^  label5;
  50.     private: System::Windows::Forms::TextBox^  INTERIOR_BOX;
  51.     private: System::Windows::Forms::Label^  label6;
  52.     private: System::Windows::Forms::TextBox^  WORLD_BOX;
  53.     private: System::Windows::Forms::CheckBox^  CHECK_CAR;
  54.     private: System::Windows::Forms::Label^  label7;
  55.     private: System::Windows::Forms::TextBox^  SOUND_BOX;
  56.     private: System::Windows::Forms::RichTextBox^  RESULT_BOX;
  57.     private: System::Windows::Forms::Button^  Bottone;
  58.     private: System::Windows::Forms::Label^  label8;
  59.     private: System::Windows::Forms::TextBox^  MESSAGE_BOX;
  60.     private: System::Windows::Forms::ColorDialog^  colorDialog1;
  61.  
  62.     private: System::Windows::Forms::ProgressBar^  Barra;
  63.     private: System::Windows::Forms::Timer^  Timer;
  64.     private: System::Windows::Forms::RadioButton^  radioStrcmp;
  65.     private: System::Windows::Forms::RadioButton^  radioDcmd;
  66.     private: System::Windows::Forms::RadioButton^  radioZcmd;
  67.     private: System::Windows::Forms::RadioButton^  radioYcmd;
  68.     private: System::Windows::Forms::TextBox^  colorBox;
  69.     private: System::Windows::Forms::Label^  label9;
  70.     private: System::ComponentModel::IContainer^  components;
  71.  
  72.  
  73.  
  74.  
  75.     private:
  76.         /// <summary>
  77.         /// Variabile di progettazione necessaria.
  78.         /// </summary>
  79.  
  80.  
  81. #pragma region Windows Form Designer generated code
  82.         /// <summary>
  83.         /// Metodo necessario per il supporto della finestra di progettazione. Non modificare
  84.         /// il contenuto del metodo con l'editor di codice.
  85.         /// </summary>
  86.         void InitializeComponent(void)
  87.         {
  88.             this->components = (gcnew System::ComponentModel::Container());
  89.             this->X_BOX = (gcnew System::Windows::Forms::TextBox());
  90.             this->label1 = (gcnew System::Windows::Forms::Label());
  91.             this->label2 = (gcnew System::Windows::Forms::Label());
  92.             this->Y_BOX = (gcnew System::Windows::Forms::TextBox());
  93.             this->label3 = (gcnew System::Windows::Forms::Label());
  94.             this->Z_BOX = (gcnew System::Windows::Forms::TextBox());
  95.             this->COMMAND_BOX = (gcnew System::Windows::Forms::TextBox());
  96.             this->label4 = (gcnew System::Windows::Forms::Label());
  97.             this->label5 = (gcnew System::Windows::Forms::Label());
  98.             this->INTERIOR_BOX = (gcnew System::Windows::Forms::TextBox());
  99.             this->label6 = (gcnew System::Windows::Forms::Label());
  100.             this->WORLD_BOX = (gcnew System::Windows::Forms::TextBox());
  101.             this->CHECK_CAR = (gcnew System::Windows::Forms::CheckBox());
  102.             this->label7 = (gcnew System::Windows::Forms::Label());
  103.             this->SOUND_BOX = (gcnew System::Windows::Forms::TextBox());
  104.             this->RESULT_BOX = (gcnew System::Windows::Forms::RichTextBox());
  105.             this->Bottone = (gcnew System::Windows::Forms::Button());
  106.             this->label8 = (gcnew System::Windows::Forms::Label());
  107.             this->MESSAGE_BOX = (gcnew System::Windows::Forms::TextBox());
  108.             this->colorDialog1 = (gcnew System::Windows::Forms::ColorDialog());
  109.             this->Barra = (gcnew System::Windows::Forms::ProgressBar());
  110.             this->Timer = (gcnew System::Windows::Forms::Timer(this->components));
  111.             this->radioStrcmp = (gcnew System::Windows::Forms::RadioButton());
  112.             this->radioDcmd = (gcnew System::Windows::Forms::RadioButton());
  113.             this->radioZcmd = (gcnew System::Windows::Forms::RadioButton());
  114.             this->radioYcmd = (gcnew System::Windows::Forms::RadioButton());
  115.             this->colorBox = (gcnew System::Windows::Forms::TextBox());
  116.             this->label9 = (gcnew System::Windows::Forms::Label());
  117.             this->SuspendLayout();
  118.             //
  119.             // X_BOX
  120.             //
  121.             this->X_BOX->Location = System::Drawing::Point(32, 46);
  122.             this->X_BOX->Name = L"X_BOX";
  123.             this->X_BOX->Size = System::Drawing::Size(60, 20);
  124.             this->X_BOX->TabIndex = 0;
  125.             this->X_BOX->Text = L"0.0000";
  126.             //
  127.             // label1
  128.             //
  129.             this->label1->AutoSize = true;
  130.             this->label1->Location = System::Drawing::Point(12, 49);
  131.             this->label1->Name = L"label1";
  132.             this->label1->Size = System::Drawing::Size(14, 13);
  133.             this->label1->TabIndex = 1;
  134.             this->label1->Text = L"X";
  135.             //
  136.             // label2
  137.             //
  138.             this->label2->AutoSize = true;
  139.             this->label2->Location = System::Drawing::Point(115, 49);
  140.             this->label2->Name = L"label2";
  141.             this->label2->Size = System::Drawing::Size(14, 13);
  142.             this->label2->TabIndex = 2;
  143.             this->label2->Text = L"Y";
  144.             //
  145.             // Y_BOX
  146.             //
  147.             this->Y_BOX->Location = System::Drawing::Point(135, 46);
  148.             this->Y_BOX->Name = L"Y_BOX";
  149.             this->Y_BOX->Size = System::Drawing::Size(60, 20);
  150.             this->Y_BOX->TabIndex = 3;
  151.             this->Y_BOX->Text = L"0.0000";
  152.             //
  153.             // label3
  154.             //
  155.             this->label3->AutoSize = true;
  156.             this->label3->Location = System::Drawing::Point(219, 49);
  157.             this->label3->Name = L"label3";
  158.             this->label3->Size = System::Drawing::Size(14, 13);
  159.             this->label3->TabIndex = 4;
  160.             this->label3->Text = L"Z";
  161.             //
  162.             // Z_BOX
  163.             //
  164.             this->Z_BOX->Location = System::Drawing::Point(239, 46);
  165.             this->Z_BOX->Name = L"Z_BOX";
  166.             this->Z_BOX->Size = System::Drawing::Size(60, 20);
  167.             this->Z_BOX->TabIndex = 5;
  168.             this->Z_BOX->Text = L"0.0000";
  169.             //
  170.             // COMMAND_BOX
  171.             //
  172.             this->COMMAND_BOX->Location = System::Drawing::Point(145, 10);
  173.             this->COMMAND_BOX->Name = L"COMMAND_BOX";
  174.             this->COMMAND_BOX->Size = System::Drawing::Size(77, 20);
  175.             this->COMMAND_BOX->TabIndex = 6;
  176.             this->COMMAND_BOX->Text = L"commandname";
  177.             //
  178.             // label4
  179.             //
  180.             this->label4->AutoSize = true;
  181.             this->label4->Location = System::Drawing::Point(9, 13);
  182.             this->label4->Name = L"label4";
  183.             this->label4->Size = System::Drawing::Size(132, 13);
  184.             this->label4->TabIndex = 7;
  185.             this->label4->Text = L"Command text (With no \'/\')";
  186.             //
  187.             // label5
  188.             //
  189.             this->label5->AutoSize = true;
  190.             this->label5->Location = System::Drawing::Point(12, 84);
  191.             this->label5->Name = L"label5";
  192.             this->label5->Size = System::Drawing::Size(39, 13);
  193.             this->label5->TabIndex = 8;
  194.             this->label5->Text = L"Interior";
  195.             //
  196.             // INTERIOR_BOX
  197.             //
  198.             this->INTERIOR_BOX->Location = System::Drawing::Point(57, 81);
  199.             this->INTERIOR_BOX->Name = L"INTERIOR_BOX";
  200.             this->INTERIOR_BOX->Size = System::Drawing::Size(35, 20);
  201.             this->INTERIOR_BOX->TabIndex = 9;
  202.             this->INTERIOR_BOX->Text = L"0";
  203.             //
  204.             // label6
  205.             //
  206.             this->label6->AutoSize = true;
  207.             this->label6->Location = System::Drawing::Point(106, 84);
  208.             this->label6->Name = L"label6";
  209.             this->label6->Size = System::Drawing::Size(67, 13);
  210.             this->label6->TabIndex = 10;
  211.             this->label6->Text = L"Virtual World";
  212.             //
  213.             // WORLD_BOX
  214.             //
  215.             this->WORLD_BOX->Location = System::Drawing::Point(179, 81);
  216.             this->WORLD_BOX->Name = L"WORLD_BOX";
  217.             this->WORLD_BOX->Size = System::Drawing::Size(35, 20);
  218.             this->WORLD_BOX->TabIndex = 11;
  219.             this->WORLD_BOX->Text = L"0";
  220.             //
  221.             // CHECK_CAR
  222.             //
  223.             this->CHECK_CAR->AutoSize = true;
  224.             this->CHECK_CAR->Checked = true;
  225.             this->CHECK_CAR->CheckState = System::Windows::Forms::CheckState::Checked;
  226.             this->CHECK_CAR->Location = System::Drawing::Point(15, 107);
  227.             this->CHECK_CAR->Name = L"CHECK_CAR";
  228.             this->CHECK_CAR->Size = System::Drawing::Size(114, 17);
  229.             this->CHECK_CAR->TabIndex = 12;
  230.             this->CHECK_CAR->Text = L"Player with vehicle";
  231.             this->CHECK_CAR->UseVisualStyleBackColor = true;
  232.             //
  233.             // label7
  234.             //
  235.             this->label7->AutoSize = true;
  236.             this->label7->Location = System::Drawing::Point(220, 84);
  237.             this->label7->Name = L"label7";
  238.             this->label7->Size = System::Drawing::Size(38, 13);
  239.             this->label7->TabIndex = 13;
  240.             this->label7->Text = L"Sound";
  241.             //
  242.             // SOUND_BOX
  243.             //
  244.             this->SOUND_BOX->Location = System::Drawing::Point(264, 81);
  245.             this->SOUND_BOX->Name = L"SOUND_BOX";
  246.             this->SOUND_BOX->Size = System::Drawing::Size(35, 20);
  247.             this->SOUND_BOX->TabIndex = 14;
  248.             this->SOUND_BOX->Text = L"-1";
  249.             //
  250.             // RESULT_BOX
  251.             //
  252.             this->RESULT_BOX->BackColor = System::Drawing::SystemColors::ButtonHighlight;
  253.             this->RESULT_BOX->Location = System::Drawing::Point(12, 251);
  254.             this->RESULT_BOX->Name = L"RESULT_BOX";
  255.             this->RESULT_BOX->ReadOnly = true;
  256.             this->RESULT_BOX->Size = System::Drawing::Size(287, 234);
  257.             this->RESULT_BOX->TabIndex = 15;
  258.             this->RESULT_BOX->Text = L"";
  259.             //
  260.             // Bottone
  261.             //
  262.             this->Bottone->Location = System::Drawing::Point(12, 222);
  263.             this->Bottone->Name = L"Bottone";
  264.             this->Bottone->Size = System::Drawing::Size(287, 23);
  265.             this->Bottone->TabIndex = 16;
  266.             this->Bottone->Text = L"Generate!";
  267.             this->Bottone->UseVisualStyleBackColor = true;
  268.             this->Bottone->Click += gcnew System::EventHandler(this, &Form1::Bottone_Click);
  269.             //
  270.             // label8
  271.             //
  272.             this->label8->AutoSize = true;
  273.             this->label8->Location = System::Drawing::Point(12, 195);
  274.             this->label8->Name = L"label8";
  275.             this->label8->Size = System::Drawing::Size(50, 13);
  276.             this->label8->TabIndex = 17;
  277.             this->label8->Text = L"Message";
  278.             //
  279.             // MESSAGE_BOX
  280.             //
  281.             this->MESSAGE_BOX->Location = System::Drawing::Point(68, 192);
  282.             this->MESSAGE_BOX->Name = L"MESSAGE_BOX";
  283.             this->MESSAGE_BOX->Size = System::Drawing::Size(121, 20);
  284.             this->MESSAGE_BOX->TabIndex = 18;
  285.             this->MESSAGE_BOX->Text = L"NO_MSG";
  286.             //
  287.             // Barra
  288.             //
  289.             this->Barra->Location = System::Drawing::Point(12, 491);
  290.             this->Barra->Name = L"Barra";
  291.             this->Barra->Size = System::Drawing::Size(288, 23);
  292.             this->Barra->Step = 100;
  293.             this->Barra->TabIndex = 22;
  294.             //
  295.             // Timer
  296.             //
  297.             this->Timer->Interval = 1000;
  298.             this->Timer->Tick += gcnew System::EventHandler(this, &Form1::Timer_Tick);
  299.             //
  300.             // radioStrcmp
  301.             //
  302.             this->radioStrcmp->AutoSize = true;
  303.             this->radioStrcmp->Checked = true;
  304.             this->radioStrcmp->Cursor = System::Windows::Forms::Cursors::Default;
  305.             this->radioStrcmp->ForeColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(0)), static_cast<System::Int32>(static_cast<System::Byte>(192)),
  306.                 static_cast<System::Int32>(static_cast<System::Byte>(0)));
  307.             this->radioStrcmp->Location = System::Drawing::Point(12, 146);
  308.             this->radioStrcmp->Name = L"radioStrcmp";
  309.             this->radioStrcmp->Size = System::Drawing::Size(137, 17);
  310.             this->radioStrcmp->TabIndex = 23;
  311.             this->radioStrcmp->TabStop = true;
  312.             this->radioStrcmp->Text = L"String Compare - strcmp";
  313.             this->radioStrcmp->UseVisualStyleBackColor = true;
  314.             //
  315.             // radioDcmd
  316.             //
  317.             this->radioDcmd->AutoSize = true;
  318.             this->radioDcmd->ForeColor = System::Drawing::Color::Blue;
  319.             this->radioDcmd->Location = System::Drawing::Point(12, 169);
  320.             this->radioDcmd->Name = L"radioDcmd";
  321.             this->radioDcmd->Size = System::Drawing::Size(163, 17);
  322.             this->radioDcmd->TabIndex = 24;
  323.             this->radioDcmd->Text = L"Dracoblue commands - dcmd";
  324.             this->radioDcmd->UseVisualStyleBackColor = true;
  325.             //
  326.             // radioZcmd
  327.             //
  328.             this->radioZcmd->AutoSize = true;
  329.             this->radioZcmd->ForeColor = System::Drawing::Color::Red;
  330.             this->radioZcmd->Location = System::Drawing::Point(162, 146);
  331.             this->radioZcmd->Name = L"radioZcmd";
  332.             this->radioZcmd->Size = System::Drawing::Size(137, 17);
  333.             this->radioZcmd->TabIndex = 25;
  334.             this->radioZcmd->Text = L"Zeex commands - zcmd";
  335.             this->radioZcmd->UseVisualStyleBackColor = true;
  336.             //
  337.             // radioYcmd
  338.             //
  339.             this->radioYcmd->AutoSize = true;
  340.             this->radioYcmd->ForeColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(255)), static_cast<System::Int32>(static_cast<System::Byte>(128)),
  341.                 static_cast<System::Int32>(static_cast<System::Byte>(0)));
  342.             this->radioYcmd->Location = System::Drawing::Point(176, 169);
  343.             this->radioYcmd->Name = L"radioYcmd";
  344.             this->radioYcmd->Size = System::Drawing::Size(123, 17);
  345.             this->radioYcmd->TabIndex = 26;
  346.             this->radioYcmd->Text = L"Y_commands - ycmd";
  347.             this->radioYcmd->UseVisualStyleBackColor = true;
  348.             //
  349.             // colorBox
  350.             //
  351.             this->colorBox->BackColor = System::Drawing::Color::Black;
  352.             this->colorBox->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 8.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
  353.                 static_cast<System::Byte>(0)));
  354.             this->colorBox->ForeColor = System::Drawing::Color::White;
  355.             this->colorBox->Location = System::Drawing::Point(202, 192);
  356.             this->colorBox->Name = L"colorBox";
  357.             this->colorBox->Size = System::Drawing::Size(97, 20);
  358.             this->colorBox->TabIndex = 27;
  359.             this->colorBox->Text = L"Color Picker";
  360.             this->colorBox->MouseClick += gcnew System::Windows::Forms::MouseEventHandler(this, &Form1::colorBox_MouseClick);
  361.             //
  362.             // label9
  363.             //
  364.             this->label9->AutoSize = true;
  365.             this->label9->Location = System::Drawing::Point(78, 130);
  366.             this->label9->Name = L"label9";
  367.             this->label9->Size = System::Drawing::Size(147, 13);
  368.             this->label9->TabIndex = 28;
  369.             this->label9->Text = L"Select a command processor:";
  370.             //
  371.             // Form1
  372.             //
  373.             this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
  374.             this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
  375.             this->AutoSize = true;
  376.             this->ClientSize = System::Drawing::Size(311, 526);
  377.             this->Controls->Add(this->label9);
  378.             this->Controls->Add(this->colorBox);
  379.             this->Controls->Add(this->radioYcmd);
  380.             this->Controls->Add(this->radioZcmd);
  381.             this->Controls->Add(this->radioDcmd);
  382.             this->Controls->Add(this->radioStrcmp);
  383.             this->Controls->Add(this->Barra);
  384.             this->Controls->Add(this->MESSAGE_BOX);
  385.             this->Controls->Add(this->label8);
  386.             this->Controls->Add(this->Bottone);
  387.             this->Controls->Add(this->RESULT_BOX);
  388.             this->Controls->Add(this->SOUND_BOX);
  389.             this->Controls->Add(this->label7);
  390.             this->Controls->Add(this->CHECK_CAR);
  391.             this->Controls->Add(this->WORLD_BOX);
  392.             this->Controls->Add(this->label6);
  393.             this->Controls->Add(this->INTERIOR_BOX);
  394.             this->Controls->Add(this->label5);
  395.             this->Controls->Add(this->label4);
  396.             this->Controls->Add(this->COMMAND_BOX);
  397.             this->Controls->Add(this->Z_BOX);
  398.             this->Controls->Add(this->label3);
  399.             this->Controls->Add(this->Y_BOX);
  400.             this->Controls->Add(this->label2);
  401.             this->Controls->Add(this->label1);
  402.             this->Controls->Add(this->X_BOX);
  403.             this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedDialog;
  404.             this->Name = L"Form1";
  405.             this->Text = L"Sasino\'s Teleport Maker";
  406.             this->ResumeLayout(false);
  407.             this->PerformLayout();
  408.  
  409.         }
  410. #pragma endregion
  411.  
  412.         System::String ^ Colore;
  413.  
  414. private: static System::String ^ HexConverter(System::Drawing::Color c)
  415.          {
  416.             return "0x" + c.R.ToString("X2") + c.G.ToString("X2") + c.B.ToString("X2") + "FF";
  417.          }
  418.  
  419. private: System::Void colorBox_MouseClick(System::Object^  sender, System::Windows::Forms::MouseEventArgs^  e)
  420.          {
  421.              if (colorDialog1->ShowDialog() == ::System::Windows::Forms::DialogResult::OK )
  422.              {
  423.                  colorBox->BackColor = colorDialog1->Color;
  424.                  colorBox->Text = HexConverter(colorDialog1->Color);
  425.                  Colore = HexConverter(colorDialog1->Color);
  426.              }
  427.          }
  428.  
  429. private: System::Void Bottone_Click(System::Object^  sender, System::EventArgs^  e)
  430.          {
  431.              Barra->PerformStep();
  432.              RESULT_BOX->Text = L"Generating PAWN code...";
  433.              Timer->Enabled = true;
  434.          }
  435. private: System::Void Timer_Tick(System::Object^  sender, System::EventArgs^  e)
  436.          {
  437.              Barra->Value = 0;
  438.              Timer->Enabled = false;
  439.              if(radioStrcmp->Checked)
  440.              {
  441.                  RESULT_BOX->Text = L"if(strcmp(cmdtext, \"/";
  442.                  RESULT_BOX->Text +=  COMMAND_BOX->Text;
  443.                  RESULT_BOX->Text += "\", true) == 0)\r\n{\r\n    ";
  444.              }
  445.              else if(radioDcmd->Checked)
  446.              {
  447.                  RESULT_BOX->Text = L"dcmd_";
  448.                  RESULT_BOX->Text +=  COMMAND_BOX->Text;
  449.                  RESULT_BOX->Text += "(playerid, params[])\r\n{\r\n    ";
  450.              }
  451.              else if(radioZcmd->Checked)
  452.              {
  453.                  RESULT_BOX->Text = L"CMD:";
  454.                  RESULT_BOX->Text +=  COMMAND_BOX->Text;
  455.                  RESULT_BOX->Text += "(playerid, params[])\r\n{\r\n    ";
  456.              }
  457.              else if(radioYcmd->Checked)
  458.              {
  459.                  RESULT_BOX->Text = L"ycmd_";
  460.                  RESULT_BOX->Text +=  COMMAND_BOX->Text;
  461.                  RESULT_BOX->Text += "(playerid, params[], help)\r\n{\r\n    ";
  462.              }
  463.              RESULT_BOX->Text += "SetPlayerPos(playerid, ";
  464.              RESULT_BOX->Text += X_BOX->Text;
  465.              RESULT_BOX->Text += ", ";
  466.              RESULT_BOX->Text += Y_BOX->Text;
  467.              RESULT_BOX->Text += ", ";
  468.              RESULT_BOX->Text += Z_BOX->Text;
  469.              RESULT_BOX->Text += ");\r\n    SetPlayerInterior(playerid, ";
  470.              RESULT_BOX->Text += INTERIOR_BOX->Text;
  471.              RESULT_BOX->Text += ");\r\n    SetPlayerVirtualWorld(playerid, ";
  472.              RESULT_BOX->Text += WORLD_BOX->Text;
  473.              RESULT_BOX->Text += ");\r\n";
  474.  
  475.              if(SOUND_BOX->Text != "-1")
  476.              {
  477.                  RESULT_BOX->Text += "    new Float:X, Float:Y, Float:Z;\r\n    PlayerPlaySound(playerid, ";
  478.                  RESULT_BOX->Text += SOUND_BOX->Text;
  479.                  RESULT_BOX->Text += ", X, Y, Z);\r\n";
  480.              }
  481.              if(MESSAGE_BOX->Text != "NO_MSG")
  482.              {
  483.                  RESULT_BOX->Text += "    SendClientMessage(playerid, ";
  484.                  RESULT_BOX->Text += Colore;
  485.                  RESULT_BOX->Text += ", \"";
  486.                  RESULT_BOX->Text += MESSAGE_BOX->Text;
  487.                  RESULT_BOX->Text += "\");\r\n";
  488.              }
  489.  
  490.              if(CHECK_CAR->Checked)
  491.              {
  492.                  RESULT_BOX->Text += "    if(IsPlayerInAnyVehicle(playerid))\r\n    {\r\n        new vehicleid = GetPlayerVehicleID(playerid);\r\n        SetVehiclePos(vehicleid, ";
  493.                  RESULT_BOX->Text += X_BOX->Text;
  494.                  RESULT_BOX->Text += ", ";
  495.                  RESULT_BOX->Text += Y_BOX->Text;
  496.                  RESULT_BOX->Text += ", ";
  497.                  RESULT_BOX->Text += Z_BOX->Text;
  498.                  RESULT_BOX->Text += ");\r\n        LinkVehicleToInterior(vehicleid, ";
  499.                  RESULT_BOX->Text += INTERIOR_BOX->Text;
  500.                  RESULT_BOX->Text += ");\r\n        SetVehicleVirtualWorld(vehicleid, ";
  501.                  RESULT_BOX->Text += WORLD_BOX->Text;
  502.                  RESULT_BOX->Text += ");\r\n        PutPlayerInVehicle(playerid, vehicleid, 0);\r\n    }\r\n";
  503.              }
  504.              if(!radioStrcmp->Checked) RESULT_BOX->Text += "    #pragma unused params\r\n";
  505.              RESULT_BOX->Text += "    return 1;\r\n}";
  506.  
  507.          }
  508. };
  509. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement