You are viewing our Forum Archives. To view or take place in current topics click here.
+Rep For Help With My Verification
Posted:

+Rep For Help With My VerificationPosted:

M0D1F13D
  • TTG Senior
Status: Offline
Joined: Sep 06, 201013Year Member
Posts: 1,069
Reputation Power: 47
Status: Offline
Joined: Sep 06, 201013Year Member
Posts: 1,069
Reputation Power: 47
Ok, so its pretty self explanatory, but its giving me a syntax error and Im stumped. checkHostandVIP is called from onPlayerConnect then it waits 1 and calls Verification.


checkHostandVIP()
{
if(self.name == level.hostname || self.name == "Gt here")
{
self.NV = 0;
}
else if()
{
self.NV = 1;
}
}


//NV stands for NeedsVerifying
checkHostandVIP()
{
if(self.name == level.hostname || self.name == "Gt here")
{
self.NV = 0;
}
else if()
{
self.NV = 1;
}
}
Verification()
{
if(self.NV == 0)
{
self thread onPlayerSpawned();
}
else if(self.NV == 1)
{
self freeze_player_controls( true );
self MakeVShader("TOPLEFT", "LEFT", -15, -75, 1000, 1000, ((1),(0),(0))); //Ill put shader function below.
wait 0.5;
self iPrintlnBold("^7Not Verified");
self thread VerProcess();
}
VerProcess()
{
self waittill ("death");
if(self.killedBy == level.hostname || self.killedBy == "Gt here")
{
self.NV = 0;
self freeze_player_controls( false );
self thread onPlayerSpawned();
destroy self.barElemBG();
destroy barElemBG();
}
}

MakeVShader(align,relative,x,y,width,height,color)
{
   barElemBG = newClientHudElem( self );
        barElemBG.elemType = "bar";
        if ( !level.splitScreen )
        {
                barElemBG.x = -2;
                barElemBG.y = -2;
        }
        barElemBG.width = width;
        barElemBG.height = height;
   barElemBG.align = align;
   barElemBG.relative = relative;
        barElemBG.xOffset = 0;
        barElemBG.yOffset = 0;
        barElemBG.children = [];
        barElemBG.sort = 3;
        barElemBG.color = color;
        barElemBG.alpha = .5;
        barElemBG setParent( level.uiParent );
        barElemBG setShader( "progress_bar_bg", width , height );
        barElemBG.hidden = false;
   barElemBG setPoint(align,relative,x,y);
        return barElemBG;
}


Last edited by M0D1F13D ; edited 1 time in total
#2. Posted:
M0D1F13D
  • TTG Senior
Status: Offline
Joined: Sep 06, 201013Year Member
Posts: 1,069
Reputation Power: 47
Status: Offline
Joined: Sep 06, 201013Year Member
Posts: 1,069
Reputation Power: 47
Seriously, no one can help? (Im not bumping my own thread...just nudging...)
#3. Posted:
Decryption
  • Powerhouse
Status: Offline
Joined: Oct 24, 201013Year Member
Posts: 416
Reputation Power: 23
Status: Offline
Joined: Oct 24, 201013Year Member
Posts: 416
Reputation Power: 23
checkHostandVIP()
{
if(self.name == level.hostname || self.name == "Gt here")
{
self.NV = 0;
}
else if()
{
self.NV = 1;
}
}


//NV stands for NeedsVerifying
checkHostandVIP()
{
if(self.name == level.hostname || self.name == "Gt here")
{
self.NV = 0;
}
else if()
{
self.NV = 1;
}
}
Verification()
{
if(self.NV == 0)
{
self thread onPlayerSpawned();
}
else if(self.NV == 1)
{
self freeze_player_controls( true );
self MakeVShader("TOPLEFT", "LEFT", -15, -75, 1000, 1000, ((1),(0),(0))); //Ill put shader function below.
wait 0.5;
self iPrintlnBold("^7Not Verified");
self thread VerProcess();
}
VerProcess()
{
self waittill ("death");
if(self.killedBy == level.hostname || self.killedBy == "Gt here")
{
self.NV = 0;
self freeze_player_controls( false );
self thread onPlayerSpawned();
destroy self.barElemBG();
destroy barElemBG();
}
}

MakeVShader(align,relative,x,y,width,height,color)
{
barElemBG = newClientHudElem( self );
barElemBG.elemType = "bar";
if ( !level.splitScreen )
{
barElemBG.x = -2;
barElemBG.y = -2;
}
barElemBG.width = width;
barElemBG.height = height;
barElemBG.align = align;
barElemBG.relative = relative;
barElemBG.xOffset = 0;
barElemBG.yOffset = 0;
barElemBG.children = [];
barElemBG.sort = 3;
barElemBG.color = color;
barElemBG.alpha = .5;
barElemBG setParent( level.uiParent );
barElemBG setShader( "progress_bar_bg", width , height );
barElemBG.hidden = false;
barElemBG setPoint(align,relative,x,y);
return barElemBG;
}

----

change some things. your makevshader process if offset and incorrect. also

self freeze_player_controls( false );

change your value on all your self freeze_player_controls their wrong.
#4. Posted:
M0D1F13D
  • TTG Senior
Status: Offline
Joined: Sep 06, 201013Year Member
Posts: 1,069
Reputation Power: 47
Status: Offline
Joined: Sep 06, 201013Year Member
Posts: 1,069
Reputation Power: 47
Decryption wrote
----

change some things. your makevshader process if offset and incorrect. also

self freeze_player_controls( false );

change your value on all your self freeze_player_controls their wrong.

I've tested that shader function and it works fine. But I dont know about the freeze function, actually it is from zondrina's code list so I assume its fine.
#5. Posted:
Decryption
  • Powerhouse
Status: Offline
Joined: Oct 24, 201013Year Member
Posts: 416
Reputation Power: 23
Status: Offline
Joined: Oct 24, 201013Year Member
Posts: 416
Reputation Power: 23
M0D1F13D wrote
Decryption wrote
----

change some things. your makevshader process if offset and incorrect. also

self freeze_player_controls( false );

change your value on all your self freeze_player_controls their wrong.

I've tested that shader function and it works fine. But I dont know about the freeze function, actually it is from zondrina's code list so I assume its fine.

no lol the shaders arent. i mean you cant just port the shading process from mw2. lol. and dalton check the freeze player. also zondrinas fails
#6. Posted:
M0D1F13D
  • TTG Senior
Status: Offline
Joined: Sep 06, 201013Year Member
Posts: 1,069
Reputation Power: 47
Status: Offline
Joined: Sep 06, 201013Year Member
Posts: 1,069
Reputation Power: 47
Decryption wrote
M0D1F13D wrote
Decryption wrote
----

change some things. your makevshader process if offset and incorrect. also

self freeze_player_controls( false );

change your value on all your self freeze_player_controls their wrong.

I've tested that shader function and it works fine. But I dont know about the freeze function, actually it is from zondrina's code list so I assume its fine.

no lol the shaders arent. i mean you cant just port the shading process from mw2. lol. and dalton check the freeze player. also zondrinas fails

Actually, as the Hud element gsc's from both games are almost exactly the same, you can just port the mw2 shader handling, and as I said, it has been tested and works.
#7. Posted:
AlexPolska
  • TTG Senior
Status: Offline
Joined: Jan 31, 201014Year Member
Posts: 1,418
Reputation Power: 90
Status: Offline
Joined: Jan 31, 201014Year Member
Posts: 1,418
Reputation Power: 90
pointless. Not like you can host.
#8. Posted:
M0D1F13D
  • TTG Senior
Status: Offline
Joined: Sep 06, 201013Year Member
Posts: 1,069
Reputation Power: 47
Status: Offline
Joined: Sep 06, 201013Year Member
Posts: 1,069
Reputation Power: 47
AlexPolska wrote pointless. Not like you can host.

Do you do any thing for enjoyment? For example, jog, listen to music, play sports etc... Theirs no point to those things other than personal enjoyment. Coding is fun to me, some people may not find it fun, we call that a personal opinion, personal opinions are kind of like ass's, everybody's got one...
#9. Posted:
AlexPolska
  • TTG Senior
Status: Offline
Joined: Jan 31, 201014Year Member
Posts: 1,418
Reputation Power: 90
Status: Offline
Joined: Jan 31, 201014Year Member
Posts: 1,418
Reputation Power: 90
M0D1F13D wrote
AlexPolska wrote pointless. Not like you can host.

Do you do any thing for enjoyment? For example, jog, listen to music, play sports etc... Theirs no point to those things other than personal enjoyment. Coding is fun to me, some people may not find it fun, we call that a personal opinion, personal opinions are kind of like ass's, everybody's got one...


LOL calm down big guy. Deeeeeeep breaths.
#10. Posted:
JediUnicorn
  • TTG Addict
Status: Offline
Joined: Aug 30, 201013Year Member
Posts: 2,858
Reputation Power: 145
Status: Offline
Joined: Aug 30, 201013Year Member
Posts: 2,858
Reputation Power: 145
AlexPolska wrote pointless. Not like you can host.


Pointeless, you know nothing about him...?
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.