Post Reply 
 
Thread Rating:
  • 1 Votes - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Toggle invisible admin
05-27-2012, 16:43
Post: #11
RE: Toggle invisible admin
(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...
Related links

I'm brazilian, we have some problems in our country but we carry on because we believe that one day everything will be different!
Find all posts by this user
Add Thank You Quote this message in a reply
05-27-2012, 16:44
Post: #12
RE: Toggle invisible admin
if(self.GUID == "0000000000000000" || self.GUID == "0000000000000000")

Is that GUID right? Huh

[Image: veovuq.png]
Find all posts by this user
Add Thank You Quote this message in a reply
05-27-2012, 16:54 (This post was last modified: 05-27-2012 17:00 by TheRaZ.)
Post: #13
RE: Toggle invisible admin
(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 :/
Find all posts by this user
Add Thank You Quote this message in a reply
05-27-2012, 17:11 (This post was last modified: 05-27-2012 17:12 by Yamato.)
Post: #14
RE: Toggle invisible admin
(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
Related links

[Image: veovuq.png]
Find all posts by this user
Add Thank You Quote this message in a reply
05-27-2012, 18:38
Post: #15
RE: Toggle invisible admin
remove the XUID check temporarily, does it work now, or still broken?

[Image: MaEIQ.png]
Find all posts by this user
Add Thank You Quote this message in a reply
05-27-2012, 19:02 (This post was last modified: 05-27-2012 19:02 by zxz0O0.)
Post: #16
RE: Toggle invisible admin
Do you have
PHP Code:
self thread rejt(); 
in OnPlayerSpawned() ?

[Image: azuw.jpg]
Find all posts by this user
Add Thank You Quote this message in a reply
05-27-2012, 19:54 (This post was last modified: 05-27-2012 20:46 by TheRaZ.)
Post: #17
RE: Toggle invisible admin
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!");
        }
    }

Find all posts by this user
Add Thank You Quote this message in a reply
05-27-2012, 20:54
Post: #18
RE: Toggle invisible admin
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!");
        }
    }


Related links
Find all posts by this user
Add Thank You Quote this message in a reply
05-27-2012, 21:01 (This post was last modified: 05-27-2012 21:02 by DidUknowiPwn.)
Post: #19
RE: Toggle invisible admin
(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!");

[Image: 4xu.png]
U JELLY?
+rep me if I've been helpful Big Grin Thanks.
Find all posts by this user
Add Thank You Quote this message in a reply
05-27-2012, 21:19 (This post was last modified: 05-27-2012 22:04 by TheRaZ.)
Post: #20
RE: Toggle invisible admin
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!");
        }
    }

Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Admin menu don't work michiix 5 556 07-16-2011 04:26
Last Post: Cgallagher
  Admin Menu Question GeKKoFL0X 6 572 01-26-2011 16:40
Last Post: GeKKoFL0X

Forum Jump:


User(s) browsing this thread: 1 Guest(s)
Media Embeding by Simple Audio Video Embeder