Jump to content

Recommended Posts

Posted (edited)

Hello

Is that possible to add g_commands to custom.menu?

 

Like: ESC > MyTitle > "Kick bots" -> gives bots

 

i've got smth like this:

 

BUTTON( 20, 50, 160, 18, "^3BOTS OFF", .3, 14, close bots ; exec "set bot kickall ; bot maxbots 1" ) 

 

 

But this don't work

Edited by Kynval
  • Administrators
Posted

As far as I know, I don't think so.

Posted (edited)

it works only with CVAR's like this: (?)

 

 

BUTTON( 6, 32, .5*(WINDOW_WIDTH-18), 14, "START MATCH", .24, 11, exec "cmd ref startmatch"; uiScript closeingame )
BUTTONEXT( 6, 50, .5*(WINDOW_WIDTH-18), 14, "RESET MATCH", .24, 11, exec "cmd callvote matchreset"; uiScript closeingame, voteFlag CV_SVF_MATCHRESET )

Edited by Kynval

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.