Author Topic: How do you use the "If super admin" output?  (Read 949 times)

^
question

"if super admin" is an output, so how do i use it

variable events, right? Yes. Nvm. Do something like this:
Onactivate - self - ifsuperadmin
variablefalse - player - setvelocity 0 200 0

It basically checks to see if said player is a super admin. Same with ifadmin.

Same applies for variables V5 (which I highly recommend you use instead of the old ones)

It's probably something like this:
OnActivate > Client > VCEIfVariable > <var:cl:sadmin> == 1
onVariableFalse > Player > BurnPlayer > 3

Same applies for variables V5 (which I highly recommend you use instead of the old ones)

It's probably something like this:
OnActivate > Client > VCEIfVariable > <var:cl:sadmin> == 1
onVariableFalse > Player > BurnPlayer > 3

so wait, if the "variable false" imput is after the "check admin" output
then the "variable false" will check it?

No.
ALL checked VariableFalse events will be called when the VCEIfVariable statement is false.
ALL checked VariableTrue events will be called when the VCEIfVariable statement is true.

i thought it would be ifvalue, and you need to put the event numbers in the last box?


I think phflack is right actually. IfValue checks the <var:pl:whatever> type stuff, and ifVariable checks actual set variables for the brick / player / client.

And yes, I forgot to mention, you have to enter the scope of the variable check in the last box. If the variable false is event 1 (and that's all it checks), enter "1 1" into the last box.

No.
ALL checked VariableFalse events will be called when the VCEIfVariable statement is false.
ALL checked VariableTrue events will be called when the VCEIfVariable statement is true.

Not the new ones.


Here's some test events using VCE V5. When you click the brick, it tells you whether you're a super admin, a regular admin, or neither.

EVENTS 5
1   0   onActivate   Self   VCE_ifValue   <var:cl:issuperadmin>   0   1   1 2
1   0   onVariableTrue   Client   CenterPrint   You're the super admin.   2
1   0   onVariableFalse   Self   VCE_ifValue   <var:cl:isadmin>   0   1   3 4
1   0   onVariableTrue   Client   CenterPrint   You're an admin.   2
1   0   onVariableFalse   Client   CenterPrint   You aren't a super admin or a normal admin.   4




If you have the event saver, download the attachment and put it in config > client > eventSaves.

Thank you everyone, Ill try the suggestions and let you guys know if they worked. Also, i cant find variable v5(does anyone have the link?).


YES. IT WORKED.
Here it is.

on activate>self>cash transfer
on variable true>self>disappear

this is how you make a gate disappear on a cash transfer!( I made another topic about that to try to get help)

Thank you everyone! :cookie:

I'm pretty sure that's just always going to make it disappear, even without sufficient funds.

@snaily: yup. @Reinforcements: I don't know those events though, so I can't make a suggestion.

oh I see, thx for telling me