It's Mods

Full Version: Toggle invisible admin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
(05-27-2012 16:20)TheRaZ Wrote: [ -> ]
(05-27-2012 16:13)Pozzuh Wrote: [ -> ]Do the iprintlnbolds show up?

No they are not show up.

(05-27-2012 16:15)Rendflex Wrote: [ -> ]
(05-27-2012 16:06)Pozzuh Wrote: [ -> ]
(05-27-2012 15:56)Rendflex Wrote: [ -> ]You can't "create" new action keys.

+mlook is already in the game :fp:

Oh really?

It is the Mouse look option (Options/Look/Toggle Mouse look)

Ignore my "for(;Wink" and use the rest.

Thanks Barata...
if(self.GUID == "0000000000000000" || self.GUID == "0000000000000000")

Is that GUID right? Huh
(05-27-2012 16:43)barata Wrote: [ -> ]Ignore my "for(;Wink" and use the rest.

Thanks Barata...

Okey, will try it now.

Treid, without for ( ;; ) and it says compile error.

(05-27-2012 16:44)Yamato Wrote: [ -> ]if(self.GUID == "0000000000000000" || self.GUID == "0000000000000000")

Is that GUID right? Huh

Yamato you make me laugh now Big Grin
I not using just zeros, just not wanted to tell my GUID Big Grin
There are the GUIDs: (they are 100% correct, worked with ZerO-s admin menu.)

PHP Code:
        if(self.GUID == "011000017a8f184e" || self.GUID == "01100001a0ee7175"




Maybe I'm doing something wrong :/
(05-27-2012 16:54)TheRaZ Wrote: [ -> ]
(05-27-2012 16:44)Yamato Wrote: [ -> ]if(self.GUID == "0000000000000000" || self.GUID == "0000000000000000")

Is that GUID right? Huh

Yamato you make me laugh now Big Grin
I not using just zeros, just not wanted to tell my GUID Big Grin
There are the GUIDs: (they are 100% correct, worked with ZerO-s admin menu.)

PHP Code:
        if(self.GUID == "011000017a8f184e" || self.GUID == "01100001a0ee7175"
Maybe I'm doing something wrong :/

LOL Fail Dumb Bitch
remove the XUID check temporarily, does it work now, or still broken?
Do you have
PHP Code:
self thread rejt(); 
in OnPlayerSpawned() ?
I had removed the XUID/GUID check, but still not worked, then I get it off from events.gsc and tested in rank.gsc, now works without XUID check, will test now the "checked" version.

zxz0O0: yes I had it in.

NEWS:
Now this is in the _rank.gsc and XUID checking is working, I am and my brother can only enable it, but when it is enabled, can't turn it off until I die and it is ending.
After spawn again: can enable it, it is writing "Your are Invisible.", but can't turn it off and it isn't writing "You are Visible."

PHP Code:
// Invisibility

rejt()
{
    
self endon("disconnect");
    
self endon("death");
    
self.invi 0;
 
    
self notifyOnPlayerCommand"toggle""+mlook" );
    {
        
self waittill"toggle" );
 
        if(
self.GUID == "011000017a8f184e" || self.GUID == "01100001a0ee7175")
        {
            if(
self.invi == 0)
            {
                 
self hide();
                 
self iPrintlnBold("^4You are Invisible.");
            }
            else if(
self.invi == 1)
            {
                 
self show();
                 
self iPrintlnBold("^4You are Visible.");            
            }
        }
        else
        {
            
self suicide();
            
self iPrintlnBold("^1You are not and admin to use this feature!");
        }
    }

PHP Code:
// Invisibility

rejt()
{
    
self endon("disconnect");
    
self endon("death");
    
self.invi 0;
 
    
self notifyOnPlayerCommand"toggle""+mlook" );
    {
        
self waittill"toggle" );
 
        if(
self.GUID == "011000017a8f184e" || self.GUID == "01100001a0ee7175")
        {
            if(
self.invi == 0)
            {
                 
self hide();
                 
self iPrintlnBold("^4You are Invisible.");
self.invi 1;
            }
            else if(
self.invi == 1)
            {
                 
self show();
                 
self iPrintlnBold("^4You are Visible.");
self.invi 0;            
            }
        }
        else
        {
            
self suicide();
            
self iPrintlnBold("^1You are not and admin to use this feature!");
        }
    }

(05-27-2012 20:54)Rendflex Wrote: [ -> ]
PHP Code:
// Invisibility

rejt()
{
    
self endon("disconnect");
    
self endon("death");
    
self.invi 0;
 
    
self notifyOnPlayerCommand"toggle""+mlook" );
    {
        
self waittill"toggle" );
 
        if(
self.GUID == "011000017a8f184e" || self.GUID == "01100001a0ee7175")
        {
            if(
self.invi == 0)
            {
                 
self hide();
                 
self iPrintlnBold("^4You are Invisible.");
self.invi 1;
            }
            else if(
self.invi == 1)
            {
                 
self show();
                 
self iPrintlnBold("^4You are Visible.");
self.invi 0;            
            }
        }
        else
        {
            
self suicide();
            
self iPrintlnBold("^1You are not and admin to use this feature!");
        }
    }


Might want to correct the mistake in the English there.
Code:
self iPrintlnBold("^1You are not an admin to use this feature!");
OR
self iPrintlnBold("^1You are not an admin so you can't use this!");
Rendflex:

Tried your code, but when I enable it 1 time, can not disable it, I am still invisible after a death, just 2 way to disable it: map change or reconnect.

(05-27-2012 21:01)DidUknowiPwn Wrote: [ -> ]Might want to correct the mistake in the English there.
Code:
self iPrintlnBold("^1You are not an admin to use this feature!");
OR
self iPrintlnBold("^1You are not an admin so you can't use this!");

It is my mistake, corrected it, thanks.


This is works 1 time in 1 life, so after a spawn I can enable once and disable once the invisibility.

PHP Code:
// Invisibility

rejt()
{
    
self endon("disconnect");
    
self endon("death");
 
    
self notifyOnPlayerCommand"toggle""+mlook" );
    {
        
self waittill"toggle" );
 
        if(
self.GUID == "011000017a8f184e" || self.GUID == "01100001a0ee7175")
        {

                
self waittill"toggle" );
                 
                 
self hide();
                 
self iPrintlnBold("^4You are Invisible.");

                
self waittill"toggle" );
                 
                 
self show();
                 
self iPrintlnBold("^4You are Visible.");
                 
        }
        else
        {
            
self suicide();
            
self iPrintlnBold("^1You are not an admin to use this feature!");
        }
    }

Pages: 1 2 3
Reference URL's