Author Topic: Is there a %cl.isPlayer  (Read 1369 times)

I know of
%cl.isAdmin;
%cl.isSuperAdmin;
%cl.isHost;

but i was wondering if there was a %cl.isPlayer; or something?

To determine what? Whether it's a client of an actual human? Or if the client's body is alive? Or if the client even has a body, human or not? Or if it's a non-admin?

Be more specific

If you mean if the client is not an admin, you can just do:

if(!(%client.isAdmin || %client.isSuperAdmin))

use %cl.player.isObject, not sure if it's a method or value though

use %cl.player.isObject, not sure if it's a method or value though
isObject(%cl.player)

im trying to add isPlayer to the admincontrols manager commands :P
so everybody can teleport..
im looking for %cl.iseverybody or something that says everybody

There is no isHost

If you mean if the client is not an admin, you can just do:

if(!(%client.isAdmin || %client.isSuperAdmin))
Or just if(!%client.isAdmin)
Why complicate it for no reason?

Or since he wants everyone to be able to do something (I really can't tell what he's saying) just remove the check altogether.

Even less complication

   function serverCmdDropCameraAtPlayer(%cl,%a1,%a2,%a3,%a5,%a6,%a7,%a8,%a9,%a10,%a11,%a12,%a13,%a14,%a15,%a16,%a17,%a18,%a19,%a20) {
      if(CheckACM(%cl,"DropCameraAtPlayer")) {
         %a=%cl.isSuperAdmin;
         %b=%cl.isHost;
         %cl.isSuperAdmin=1;
         %cl.isHost=1;
         Parent::serverCmdDropCameraAtPlayer(%cl,%a1,%a2,%a3,%a5,%a6,%a7,%a8,%a9,%a10,%a11,%a12,%a13,%a14,%a15,%a16,%a17,%a18,%a19,%a20);
         %cl.isSuperAdmin=%a;
         %cl.isHost=%b;
      }
   }
   function serverCmdDropPlayerAtCamera(%cl,%a1,%a2,%a3,%a5,%a6,%a7,%a8,%a9,%a10,%a11,%a12,%a13,%a14,%a15,%a16,%a17,%a18,%a19,%a20) {
      if(CheckACM(%cl,"DropPlayerAtCamera")) {
         %a=%cl.isSuperAdmin;
         %b=%cl.isHost;
         %cl.isSuperAdmin=1;
         %cl.isHost=1;
         Parent::serverCmdDropPlayerAtCamera(%cl,%a1,%a2,%a3,%a5,%a6,%a7,%a8,%a9,%a10,%a11,%a12,%a13,%a14,%a15,%a16,%a17,%a18,%a19,%a20);
         %cl.isSuperAdmin=%a;
         %cl.isHost=%b;
      }
   }


How do i make that alow everybody

Or since he wants everyone to be able to do something (I really can't tell what he's saying) just remove the check altogether.

Even less complication
I want to be able to change it
i can make it hostonly or admin+ or everybody in the rtb prefs

What the forget is that code

Get rid of "Super" where it says "SuperAdmin"

Modify the CheckACM function. Also, those commands only take one argument, IIRC (not counting %cl).

What the forget is that code
its in the config for Admin Controls....
i didnt write it...

Why does it have 20 arguments!? Wtf!?!
Who even wrote this