Jump to content

Recommended Posts

Posted

This tutorial will guide you through the process of creating a Commandmenu script. These scripts are fairly common now and have been around since the adoption of the Commandmenu in CS 1.3 (circa September of 2001). This type of script allows you to choose various commands or change settings in a GUI-type menu instead of using the console window to modify them.

 

Now we need to establish the basic information that is needed to get a Commandmenu script working properly. First, there is the commandmenu.txt file located in your cstrike directory.

 

 

 

You can open this file using Notepad and take a look. It should look similar to this:

 

 

 

The basic format within the commandmenu.txt is:

 

"Bound Key" "Button Text" "Command sent to server"

 

You will see that again later.

 

You can have a maximum of 40 menus, and a maximum of 100 buttons per menu. These limits give you more than enough options for any CS command you could ever want in a GUI menu.

 

For this tutorial I will be creating a simple Settings Commandmenu script that does not need any other files to work properly.

 

Step #1: Identify Commands

Identify what commands you want to use in the GUI menu. Pick out some settings that you will be using in your script and that you think would be beneficial to have in a GUI menu.

 

For this tutorial I will use the "volume" command and the "net_graph" command for the examples.

 

Step #2: Edit Commandmenu.txt (Add Main Menus)

Each Main menu should be laid out in numerical order. Here we will add a menu for our first setting from Step #1 "volume". Since it is our first Main Menu, we will set the "Bound key" to "1" and label the Button Text as "Volume Adjuster".

 

At this time, open up a blank file with Notepad and insert the following text:

 

"1" "Volume Adjuster"

{

 

}

 

Notice the brackets below the text. These must start and end your submenus like bookends. A left bracket is the starting bracket and the right bracket is the ending bracket. If you used this Menu in the game at this point, it would look like this:

 

 

 

Step #3: Edit Commandmenu.txt (Add Settings)

Now that we have added our first main menu "Volume Adjuster", we will add settings for this menu. Here we will input the text within the brackets and remember the standard format:

 

  "Bound Key" "Button Text" "Command sent to server"

 

Now type (cut & paste) the following settings to your file:

 

{

  "1" "Volume Off" "volume 0.0; dev1; echo Volume Muted; dev0"

  "2" "Volume 10%" "volume 0.1; dev1; echo 10% Volume; dev0"

  "3" "Volume 20%" "volume 0.2; dev1; echo 20% Volume; dev0"

  "4" "Volume 30%" "volume 0.3; dev1; echo 30% Volume; dev0"

  "5" "Volume 40%" "volume 0.4; dev1; echo 40% Volume; dev0"

  "6" "Volume 50%" "volume 0.5; dev1; echo 50% Volume; dev0"

  "7" "Volume 60%" "volume 0.6; dev1; echo 60% Volume; dev0"

  "8" "Volume 70%" "volume 0.7; dev1; echo 70% Volume; dev0"

  "9" "Volume 80%" "volume 0.8; dev1; echo 80% Volume; dev0"

  "0" "Volume 90%" "volume 0.9; dev1; echo 90% Volume; dev0"

  "-" "Volume Max" "volume 1.0; dev1; echo Max Volume; dev0"

}

 

Notice that everything is contained in quotes and that each line starts with the "Bound Key", then the text that will be displayed on the button "Button Text", and finally the command that will be executed. Also, note that we inputted the settings within the original brackets. The in-game menu would now look like this:

 

 

 

Step #4: Add Another Main Menu

At this time we will add another Main Menu to our file below the last bracket of the Volume Adjuster menu. This time we will use "2" for the bound key, since "1" is already used, and we will label this menu "Visual Settings". Type the following into your file:

 

"2" "Visual Settings"

{

 

}

 

Step #5: Add a Submenu

 

Now for the first time we will add a menu below the Main menu before adding settings. This would be used if you wanted to organize your main menus into various submenus for ease of use. For example, you might have Main Menu labels for Buys, Settings, and Demos, and then have submenus in each of those that correspond with the main menu.

 

We will add a submenu in the same fashion as we added the main menu,

 

except that we will add this menu within the brackets of the main menu. Here we will label the bound key as "1", since it is the first sub-menu in the "Visual Settings" main menu. We will give this menu a label of "Net Graph Settings". Now you can type the following (in bold) into your file:

 

{

 

      "1" "Net Graph Settings"

      {

 

      }

 

}

 

Notice that I indented the file to keep everything organized and in some sort of tabular format.

 

This is not required, but is a good idea.

 

Step #6: Add Settings

 

Now that we have added our first sub menu "Net Graph Settings" we will add settings

 

for this menu. Here we will input the text within the brackets and remember the standard format:

 

"Bound Key" "Button Text" "Command sent to server"

 

Now type (cut & paste) the following settings (in bold) to your file:

 

{

 

    "1" "Net Graph Off" "net_graph 0"

    "2" "Net Graph 1 On" "net_graph 1"

    "3" "Net Graph 2 On" "net_graph 2"

    "4" "Net Graph 3 On" "net_graph 3"

    "5" "Cancel "slot10"

 

}

 

Notice that I added a cancel option with this menu to close the screen and cancel your choices.

 

At this point your file should look like this:

 

  "1" "Volume Adjuster"

  {

"1" "Volume Off" "volume 0.0; dev1; echo Volume Muted; dev0"

"2" "Volume 10%" "volume 0.1; dev1; echo 10% Volume; dev0"

"3" "Volume 20%" "volume 0.2; dev1; echo 20% Volume; dev0"

"4" "Volume 30%" "volume 0.3; dev1; echo 30% Volume; dev0"

"5" "Volume 40%" "volume 0.4; dev1; echo 40% Volume; dev0"

"6" "Volume 50%" "volume 0.5; dev1; echo 50% Volume; dev0"

"7" "Volume 60%" "volume 0.6; dev1; echo 60% Volume; dev0"

"8" "Volume 70%" "volume 0.7; dev1; echo 70% Volume; dev0"

"9" "Volume 80%" "volume 0.8; dev1; echo 80% Volume; dev0"

"0" "Volume 90%" "volume 0.9; dev1; echo 90% Volume; dev0"

"-" "Volume Max" "volume 1.0; dev1; echo Max Volume; dev0"

  }

  "2" "Visual Settings"

  {

"1" "Net Graph Settings"

{

"1" "Net Graph Off" "net_graph 0"

"2" "Net Graph 1 On" "net_graph 1"

"3" "Net Graph 2 On" "net_graph 2"

"4" "Net Graph 3 On" "net_graph 3"

"5" "Cancel" "slot10"

}

  }

 

 

 

Each menu has a starting and ending bracket to include the submenus. Also, each menu has a "Bound Key" and "Button Text", while the actual settings include a "Bound Key", "Button Text", and the "Command to Server".

 

Step #7: Saving & Moving File

At this time our Commandmenu script is almost complete. Now that you have verified yours is correct, we will save the file. Since the file is a standard txt file, all you have to do is verify your spelling and save the file as:

 

commandmenu.txt

 

Once the file is saved you will want to rename your original commandmenu.txt file that is in your cstrike directory. Once you have renamed it to something like commandmenubak.txt, you can move your newly made one into the cstrike folder.

 

Step #8: Binding the Commandmenu

The final step in creating a Commandmenu script is to bind a key to the command: +commandmenu. This is the command that will open up your Commandmenu script. You have a few options at this time. The first one is to go to your in-game controls menu and bind a key to the "Activate in-game GUI" command. Your other option is to add a bind to your config.cfg or other cfg file like the following:

 

&nbspbind "b" '+commandmenu"

 

That's it! You are ready to go out and try your new Commandmenu Script. Also, you can add more menus and settings as you please to create your own custom Commandmenu Script. Good Luck!

Write comment (0 Comments)

Posted

Topic moved to right section.

 

Be careful, please post your shares in right sections.

 

Also where is the credits? or source?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Quick head's up if anyone needs sniffer we have it and the price is reasonable. any server is doable.
    • so u need to create them and then use the icon name in the prefered ones
    • ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━      ⚔️  A NEW ERA OF LINEAGE 2 PVP  ⚔️         High Five | 2026 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ We are building something that has never existed before. Not another copy. Not another "x2000 PvP server with TvT." This is a complete PvP ecosystem — where every kill matters,every rivalry has a face, and your legacy is worn on your character. We are sharing this here first, before anything is announced publicly. We want feedback. We want the right people. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 📌  CORE SERVER FEATURES ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🔹 Chronicle .............. High Five 🔹 Rates .................. x2000 🔹 Safe Enchant ........... +3 🔹 Max Enchant ............ +10 🔹 Enchant Rate ........... 33% 🔹 Buff Slots ............. 24 + 4 🔹 Song & Dance Slots ..... 12 🔹 Buff Duration .......... 4 hours 🔹 TvT .................... Every Hour  (Karma + PvP points) 🔹 Hero ................... Every Week 🔹 Olympiad ............... 3 Hours Daily 🔹 Castle Sieges .......... Weekly 🔹 Territory Wars ......... Weekly 🔹 Grand Bosses ........... 1 week respawn 🔹 Costume Farm Area ...... Custom mobs & zones 🔹 NPC Buffers + GM Shops 🔹 Custom Economy 🔹 Custom Playground 🔹 Custom Events 🔹 Anti-Bot | Anti-DDoS | Highly Secured 🔹 Stable | No Lag | No sudden wipes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🚀  5 FEATURES THAT HAVE NEVER EXISTED      ON ANY LINEAGE 2 SERVER ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ─────────────────────────────────────── 💰  1. BOUNTY HUNTER SYSTEM ─────────────────────────────────────── Every player with high PvP points becomes a target. Anyone can place real in-game adena / currency / gear as a bounty on any specific player they want dead. Kill the target → collect the bounty. → Top 10 Active Bounties visible LIVE on website + in-game board → Updated in real time — anyone can see who has a price on their head → Clans place bounties on enemy leaders before sieges → Creates real economic stakes behind every single kill → 100% organic drama — no admin needed to create conflict ─────────────────────────────────────── 🏆  2. SEASON RANKED LADDER + REAL PRIZE POOL ─────────────────────────────────────── Every 45 days a Season ends. PvP Score resets. Gear stays. Glory is earned. → Top 3 players receive a REAL money prize pool at season end → Top clan earns a unique exclusive in-game title displayed for the entire next season → Permanent Hall of Fame on website — name, class, kills, and season — forever → Season end = fresh ranking start for everyone New players have a real shot. Veterans must defend. → This single feature will make clans actively recruit  and communities form around the server organically ─────────────────────────────────────── 📱  3. LIVE SERVER DASHBOARD ─────────────────────────────────────── A fully live website — accessible from any phone or browser: → Real-time Kill Feed — who killed who, where, when → Live PvP Leaderboard — updated every minute → Live Bounty Board — active bounties and claimed kills → Grand Boss timers — next Baium, Antharas, Valakas spawn → Siege countdown with registered clans visible → Server population — online now, today's peak, all-time peak Why this matters: Players check their phone at work and see their clan is losing the siege. They log in. They recruit a friend. That friend stays. Friends who have never played see the stats and ask what server it is. This is automatic word-of-mouth that no advertisement can buy. ─────────────────────────────────────── ⚔️  4. NEMESIS SYSTEM ─────────────────────────────────────── The system tracks who kills you most. If the same player kills you 5 times in a row — he becomes your official NEMESIS. → A red skull icon appears above his head — visible only to you → Kill your Nemesis → DOUBLE PvP points    + server-wide announcement: "[PlayerX] has avenged his honor against [PlayerY]!" → If he kills you 10 times consecutively → you receive the title [Hunted] — visible to the entire server    Public humiliation. Maximum motivation. → Eliminate your Nemesis → your title is removed    He receives [Defeated] for 1 hour This transforms anonymous PvP into personal rivalries. Players will bring friends just to help eliminate their Nemesis. These stories are what people talk about for years. ─────────────────────────────────────── 👑  5. CLAN SIEGE CROWN — WEARABLE LEGACY TROPHY  ─────────────────────────────────────── This feature does not exist on any L2 server in the world. Every clan that wins a Castle Siege receives 10 custom hat/accessory items — physically wearable in-game. Each Crown is: → UNIQUE per castle — Aden Crown has a different visual from Giran Crown, Rune Crown, Goddard Crown, etc. → PERSONALIZED — the clan name AND clan crest are embedded visually on the hat itself, like a clan cloak but on your head    Every player who sees you knows exactly who you are and what castle your clan owns → NUMBERED — tooltip reads:    "Crown of Aden #4/10 — Season 2"    A collectible. A proof. A statement. → PERMANENT — you lose the castle at next siege, you keep the Crown → LEGACY — at season end it becomes a permanent trophy:    "Crown of Aden — Season 2  |  [YourClanName]"    Stored in your inventory as living history When a player wearing this Crown walks through Giran, everyone sees the clan crest displayed on the accessory. No leaderboard needed. Status is worn on your character.   -------------------------------------------------------------------------------------------------------------------------------------------------------------------- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🛠️  WHO WE ARE LOOKING FOR ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ We are building the right team first. No launch date until everything is right. ✅ H5 Developer — L2J or L2OFF    Must have experience with high-rate PvP servers    Bonus: experience with custom feature development ✅ Web Developer — for the Live Dashboard + account panel    Must be comfortable with real-time data display    (websockets, live feeds, mobile-friendly) ✅ Designer / 3D Artist — for custom Crown visuals per castle    If you have L2 texture/model experience, we want to talk ✅ GMs / Community Managers    Active, fair, experienced, trusted by the community ✅ Beta Testers    Players who know H5 PvP inside out    Willing to stress-test and break things on purpose ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 💬  WE WANT YOUR HONEST FEEDBACK ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ We are building this WITH the community. Every reply here shapes the final product. → Which of these 5 features excites you most? → What do you think will NOT work and why? → What is missing that would make you stay for months? → Would you play this if it opened tomorrow? We are not looking for hype. We are looking for honest opinions from people who have seen servers rise and fall. Tell us what we are getting wrong. Reply below or send a PM directly. Serious people only. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ P.S. — The inspiration for this project came from a server many of us played years ago called L2Gang. That nostalgia is what started this conversation. What we are building is something entirely new. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    • Please is anyone who can share the compiled version of the l2editor source for interlude? Because i run the !GenerateLibs.bat with the corrected code by CriticalError and then i try to build with the vs 2013 but i get errors again and again and when i try anyway to open or create something with the UnrealEd.exe then it closes automatically.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..