[cubescript]menuitem "Random 1-10" [team RVSF] [mode 7;map Prison_Break_TM] [addnbot (rnd 10) CLA best][/cubescript]
becomes:
[cubescript]menuitem "Random 1-10" [add2alias mapstartonce [ team RVSF; addnbot (+ (rnd 10) 1) CLA best ]; mode 7; map Prison_Break_TM][/cubescript]
everything within the 1st set of brackets "[]" is the 2nd argument of /menuitem
mapstartonce is a native alias that, if defined, is automatically executed on the next map load
[cubescript]menuitem "Prison Break By Tacky Man and [SODA] Santiagoz"[/cubescript]
becomes:
[cubescript]menuitem "Prison Break By Tacky Man and [SODA] Santiagoz" -1[/cubescript]
Reason being is that, currently, if you click on that menuitem cubescript will throw an unknown command error, the -1 as the 2nd argument of /menuitem forces that menuitem to only display the text, and have no action if clicked. Same goes for the:
[cubescript]menuitem ""[/cubescript]
for making a blank menuitem, instead, use:
[cubescript]menuitem "" -1[/cubescript]
...so that if they are ever clicked, cubescript won't spam the user with errors.
becomes:
[cubescript]menuitem "Random 1-10" [add2alias mapstartonce [ team RVSF; addnbot (+ (rnd 10) 1) CLA best ]; mode 7; map Prison_Break_TM][/cubescript]
everything within the 1st set of brackets "[]" is the 2nd argument of /menuitem
mapstartonce is a native alias that, if defined, is automatically executed on the next map load
[cubescript]menuitem "Prison Break By Tacky Man and [SODA] Santiagoz"[/cubescript]
becomes:
[cubescript]menuitem "Prison Break By Tacky Man and [SODA] Santiagoz" -1[/cubescript]
Reason being is that, currently, if you click on that menuitem cubescript will throw an unknown command error, the -1 as the 2nd argument of /menuitem forces that menuitem to only display the text, and have no action if clicked. Same goes for the:
[cubescript]menuitem ""[/cubescript]
for making a blank menuitem, instead, use:
[cubescript]menuitem "" -1[/cubescript]
...so that if they are ever clicked, cubescript won't spam the user with errors.