Author Topic: Ban event?  (Read 1189 times)

Im making a cool throwmod in a blizzard and i making an admin room and i wanna make a button (For only admins) where when you press it the ban menu automaticly comes up. Obvously this event will only work for admins. ^ So i think the order would go like this OnActivate>Self>Ban?

Making events only work for admins isn't a simple thing. Figuring out who to direct it to would be nearly impossible on a server with people going in and out. It would be used for grieving and instigating, People would get banned without understanding what they did wrong until it's too late. starfishs would say "Hey, come over to this brick. Clicking it gives you admin!" and they'd get banned.

In other words, no.

actualy, you could just tell the client to open the ban dialog if possible, and if they arn't admin it won't show up with any names or things by default

actualy, you could just tell the client to open the ban dialog if possible, and if they arn't admin it won't show up with any names or things by default
How would you do that?

In addition, you could use a JVS button that only works for an admin.

One Of the worste ideas ever

because pressing ctrl+A is to difficult

starfishs would say "Hey, come over to this brick. Clicking it gives you admin!" and they'd get banned.
He wants an event that opens up the ban menu when you click it, not actually bans you.

I still say its pretty pointless though. I'm also pretty sure it couldn't be done.

He wants an event that opens up the ban menu when you click it, not actually bans you.

I still say its pretty pointless though. I'm also pretty sure it couldn't be done.

Ban Mazes

I'm also pretty sure it couldn't be done.

It's perfectly do-able. On my Fourth of July server I had a Client > delete [message] event that only I could put on bricks. I then made the roof of my fireworks launcher delete players with a message something along the lines of "Off mah roof!"

Making events only work for admins isn't a simple thing. Figuring out who to direct it to would be nearly impossible on a server with people going in and out. It would be used for grieving and instigating, People would get banned without understanding what they did wrong until it's too late. starfishs would say "Hey, come over to this brick. Clicking it gives you admin!" and they'd get banned.

In other words, no.
It's quite simple to make events admin-only.
Have event send triggering client info when event is triggered.
If the player is admin, do what ever, if not, do nothing.

Unless some limitations are in place and such.

It's perfectly do-able. On my Fourth of July server I had a Client > delete [message] event that only I could put on bricks. I then made the roof of my fireworks launcher delete players with a message something along the lines of "Off mah roof!"

It was brought to my attention he wants it to open the menu, which wouldn't be possible without a clientside mod to activate it.

It's quite simple to make events admin-only.
Have event send triggering client info when event is triggered.
If the player is admin, do what ever, if not, do nothing.

Unless some limitations are in place and such.

Whenever events are set, the whole list is resent. This means that if a non-admin friend messes with the events, it removes the event which only setts if admin. And that means you'd need to recheck to be sure the event was there before the send. This gets complicated with people wrenching the same brick and such.

But you mean for opening the menu? That's a no brainer...

A kick Event does exist.

It's perfectly do-able. On my Fourth of July server I had a Client > delete [message] event that only I could put on bricks. I then made the roof of my fireworks launcher delete players with a message something along the lines of "Off mah roof!"
Good job missing the first half of the post. I'll say it again. He is not looking for an event that bans the person who activates it. Yes, that is easily possible. What he is looking for is an event that opens the ban menu for the person who activates it, so they can then select a player, click ban, and give a reason. I don't believe a clientCmdOpenGUI or similar event exists (except for the RTB one, which only works with GUIs transferred through RTB, which the ban GUI is not.)

Good job missing the first half of the post.

I could barely even read it, I prefer my posts organized. Besides, who the hell is too lazy to just press Ctrl+A? He's literally asking for a script to do that for him, seeing as you can't ban without first selecting a name from the admin userlist.