Pivity

ULX Question

Last read Never
#1

Hey guys. Figured this may be a good spot to post something like these.

I have two commands -ULX Administrate -ULX UnAdministrate

bind "b" "ulx administrate; ulx unadministrate" I used this command and all it does is call both commands at the same time

Basically I need to be able to bind both these commands to one button as well as toggle on/off. For Example. If I bind both those commands to B. I hit B and it should use the command ulx administrate..... And If i hit B again it should use the command ulx unadministrate.

If you could help me out with this that would be much appreciated. Thanks

Dumb x 2
#2

i would suggest asking there since they are more experienced in ULX

https://forums.ulyssesmod.net/index.php?PHPSESSID=yarWpX3-LoOe87obnlmxm2&

Dumb x 1
#3

ok i just though of a way that employs tf2 style scripting put the following into your autoexec.cfg

bind b administrate alias administrate "ulx administrate;bind b unadministrate" alias unadministrate "ulx unadministrate;bind b administrate"

Winner x 1
#4
Byjoeyjumper94at 9th of April 2018 02:30:13
ok i just though of a way that employs tf2 style scriptingput the following into your autoexec.cfgbind b administratealias administrate "ulx administrate;bind b unadministrate"alias unadministrate "ulx unadministrate;bind b administrate"

Oh NICE! Would this work for a server? Or just singleplayer And does this force the bind for all players? Cause I'm looking for something just for staff

EDIT:

Just prevents the server from starting.

Dumb x 1
#5

the autoexec of your client

did you actually put that into the server's autoexec? the server's autoexec.cfg contains commands that the server console will execute on startup

Funny x 2
Users viewing this thread
Nobody