Author Topic: Admin brick /w VCE  (Read 488 times)

I'm not that great with VCE but im wondering how i make a admin class for my TDM and im trying to do it with VCE. So like when an admin clicks it, it lets them access it, but when a non-admin tries it says "You are not an admin!"

Quote
<var:client:isAdmin> - If the client is admin (bool)
<var:client:isSuperAdmin> - If the client is super admin (bool)

Got this from the manual. I think this might be what you're looking for.
Basically, you could just do

on(trigger) -> ifvalue -> <var:client:isAdmin> == 1 [1 2]
onvariabletrue -> something
onvariablefalse -> client -> centerprint [You are not an admin!]

Hope that helped.