commandmenu sous CS:S


gere34

Messages recommandés

Posté(e)

Est ce que quelqu'un sait si le commandmenu existe toujours ou pas.

Parsque la commande existe (j'ai regardé dans le kb_def.lst, c'est "commandmenu" au lieu de "+commandmenu")

J'ai trouvé ça sur plusieurs forums:

The command menu is still here, but the command to bring it up is now commandmenu, not +commandmenu. The actual command menu is now stored in cstrike/resource and is called commandmenu.res.

kb_act.lst and kb_def.lst:

kb_act.lst still works as it used to but kb_def.lst doesn't, although I'm looking into this.

kb_act.lst should be placed in cstrike/scripts.

titles.txt

This also belongs in cstrike/scripts.

Command Menus:

They are now a lot harder to make, but a lot more functional.

The available functions include:

"title" "title goes here"

"command" "commands go here"

"toggle" "name of cvar goes here"

"rule" "rule goes here, eg map, team or objective"

"ruledata" "2 for Ts, 3 for CTs, name of map or objective"

here's mine to show you how it's done:

Code:

"commandmenu.res"

{

"menuitem1"

{

"label" "Buy (with ammo and armor)"

"menuitem1"

{

"label" ">$1400 - Pistols"

"menuitem1"

{

"label" ">$1400 - Glock 18 Select Fire"

"command" "buy vesthelm; buy glock; 2sec"

}

"menuitem2"

{

"label" ">$1500 - H&K USP .45 Tactical"

"command" "buy vesthelm; buy usp; 2sec"

}

...

  • 7 years later...

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.