My First Script (BETA)
#2
[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.
Thanks given by:


Messages In This Thread
My First Script (BETA) - by TackyMan - 22 Jun 12, 06:23AM
RE: My First Script (BETA) - by Bukz - 22 Jun 12, 06:34AM
RE: My First Script (BETA) - by TackyMan - 22 Jun 12, 07:52AM
RE: My First Script (BETA) - by D1551D3N7 - 22 Jun 12, 11:43PM
RE: My First Script (BETA) - by TackyMan - 03 Jul 12, 04:55PM
RE: My First Script (BETA) - by Link - 03 Jul 12, 05:49PM
RE: My First Script (BETA) - by Jg99 - 03 Jul 12, 07:21PM
RE: My First Script (BETA) - by Oracle - 03 Jul 12, 07:37PM
RE: My First Script (BETA) - by D1551D3N7 - 03 Jul 12, 07:49PM
RE: My First Script (BETA) - by TackyMan - 03 Jul 12, 11:25PM
RE: My First Script (BETA) - by Oracle - 04 Jul 12, 12:07AM
RE: My First Script (BETA) - by TackyMan - 04 Jul 12, 12:16AM