Author Topic: Console Command Event  (Read 489 times)

I'm wondering if it would be possible to create a output event that runs a single console command, now this would be restricted to host only for obvious reasons, but I'm wondering if it's possible...


Restricting an event to admin-only is cumbersome. When you edit events, you resend the WHOLE list of events. That means, if someone were to edit the events, it'd suddenly remove the event. That means you'd have to keep track of certain events, how they're set up. I don't support admin-only events because of how hacky you'd have to make the code.

How do people do it now, though?

Restricting an event to admin-only is cumbersome. When you edit events, you resend the WHOLE list of events. That means, if someone were to edit the events, it'd suddenly remove the event. That means you'd have to keep track of certain events, how they're set up. I don't support admin-only events because of how hacky you'd have to make the code.

How do people do it now, though?
i think he means that only admins can trigger the event, but everybody can place it?
you might also want to have a messagebox yes/no with it, displaying the command and to execute it or not, that way some annoyance couldn't spam quit(); everywhere

i think he means that only admins can trigger the event, but everybody can place it?
This is what I mean, if it wasn't restricted someone could put a baseplate under spawn that runs deletedatablocks(); or, god forbid %client.isAdmin = 1

yeah, but you'd still want the yes/no box

Headcrab zombie made something similar to this for me in the past in one of my suggestions- it was an event that made it as though the player said the entered command.

I made one that did serverCmds, not just anything.
Plus it had a huge security hole in it.