Author Topic: Admin Portal  (Read 752 times)

I want to make a portal that teleports admins only.

How do I do it?

I know the regular is:  onPlayerTouch>NAMED BRICK:brickname>setPlayerTransform

How do I make it for admins only?

Use a JVS door that, when started, teleports the player if they're admin.

JVS-
Onplayertouch>>Contentstart>>Adminonly
OnContentstart>>Setplayertransform

Sorry if it's wrong, haven't been able to get on BL for a few months.
Or you could VCE.

[Onplayertouch] [self] [VCE_retrocheck] [ifadmin]
[onvariabletrue] [namedbrick] [brick B] [setplayertransform]

[Onplayertouch] [self] [VCE_retrocheck] [ifadmin]
[onvariabletrue] [namedbrick] [brick B] [setplayertransform]
...
Whats wrong with ppl and this retrostuff garbage

...
Whats wrong with ppl and this retrostuff garbage
i know, right? even great eventers like hothauser are still forgetign using it.

it's bullstuff. the new system is far more expansive and easier to learn.

i know, right? even great eventers like hothauser are still forgetign using it.

it's bullstuff. the new system is far more expansive and easier to learn.
Can't tell if there's sarcasm, but what new system?

<var:client:isadmin>

i got an add-on that is called IfSuperAdmin

<var:client:issuperadmin>

I still dont see what's wrong with retrocheck, i use it for my mining brick with ifrandom, mainly because the only other way to generate a random number is long and spammy, but still, is it something about retrocheck having more lines of scripts to function?  Retrocheck is faster, in my opinion, because it has dropdown menus instead of having to spell out <var:cl:isadmin> or <var:cl:issuperadmin>.

...
Whats wrong with ppl and this retrostuff garbage
I don't see what's wrong with retrocheck. Is it something about retrocheck having more lines of scripts to function?  Retrocheck is faster, in my opinion, because it has a drop-down menu instead of having to spell out <var:cl:isadmin> or <var:cl:issuperadmin>.

Here's what I did:
I used a teledoor, and set the evets to the following (Requires VCE)

onTeledoorEnter > Self > VCE_retrocheck > ifAdmin
onVariableFalse > Player > InstantRespawn

This way, if a non-admin tries to get in, they'll be instanltly respanwned.

I know this is like this person's idea:
[Onplayertouch] [self] [VCE_retrocheck] [ifadmin]
[onvariabletrue] [namedbrick] [brick B] [setplayertransform]



Or you could do this:

Place a 4 x 4 brick in front of a door and put in the following events:

onPlayerTouch > Self > VCE_retrocheck > ifAdmin
onVariable False > Player > InstantRespawn

-or-

onVariableTrue > self > ContentStart (The instantrespawn prevents any unwanted players to go thru the door)