if(self.GUID == "0000000000000000" || self.GUID == "0000000000000000")
Is that GUID right?
(05-27-2012, 16:43)barata Wrote: [ -> ]Ignore my "for(;" 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?
Yamato you make me laugh now
I not using just zeros, just not wanted to tell my GUID
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 :/
remove the XUID check temporarily, does it work now, or still broken?
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!");
}
}
}
(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!");
}
}
}