Jump to content

[Contest-Guide]Create a menu through commandmenu.txt file.


Recommended Posts

Posted

The file commandmenu.txt is in cstrike folder. If you dont find it,you can create a new file and rename it with the commandmenu.txt.

You dont need any file editor to work with the file the simple way is Notepad :Dr

 

The Elements&items of the menu are strung  in lines in the file after the next syntax:

 

\"Identify [one number]\" \"The Text\" \"command/commands which will run\"
\"Identify [one number]\" \"The Text\" \"command/commands which will run\"
\"Identify [one number]\" \"The Text\" \"command/commands which will run\"

 

At 'identify' put what number you want, at 'Text' put the text which will appear on the following items and on the "command/..." strung the commands which you'll want to run [dont forget ;]

 

How it will be ?

Something like this :

 

\"1\" \"Use right hand\" \"cl_righthand 1\"
\"2\" \"Use left hand\" \"cl_righthand 0\"
\"3\" \"say maxcheaters when you want\" \"say see you later;quit\"

\"4\" \"Close the menu\" \"slot10\" 

 

The slot10 command turns off the menu.

 

And if you want a sub-menu use { and }

 

\"1\" \"Change map\"
{
And here strung the sub-menu
} 

 

Example :

 

\"1\" \"Use right hand\" \"cl_righthand 1\"
\"2\" \"Use left hand\" \"cl_righthand 0\"

\"3\" \"Change map\"
{
\"1\" \"cs_assault\" \"admin_map cs_assault\"
\"2\" \"cs_italy\" \"admiN_map cs_italy\"
\"3\" \"de_aztec\" \"changelevel de_aztec\"
}

\"5\" \"Turn off the menu\" \"slot10\" 

 

Thats all

 

Best Regards,

CryStaliN.

 

PS:Credits Me .

 

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


×
×
  • 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..