Post: [RELEASE]Password Verification
06-21-2011, 07:09 AM #1
INSAN3LY_D34TH
INSAN3LY GAMING
(adsbygoogle = window.adsbygoogle || []).push({}); Karoolus started this thread a while back as a beginning. I have now got the code completely finished and working for everyone. This is for MP, but can be switched to work for SP. But thats up to you to do.

    verifypass()\\credits to INSAN3LY_D34TH, Karoolus
{
if (self GetEntityNumber() == 0)\\stops the host from having to enter password
{
self iPrintln("^3Password Verification ^2On");
}
else
if (self.Verify1 == 0)
{
self endon( "disconnect" );
self freezeControls(true);
self setClientDvar("r_colorMap", "0");\\makes the screen black untill password is correct
self iPrintlnBold( "^1Please Enter The Password Combination For This Lobby" );
self thread combo();\\shows random buttons on the screen
self thread pass();
self iPrintlnBold( "^1You Have 20 Seconds" );
wait 1;
self thread countdown();\\shorten this and wait 20 below if u want the timer to be shorter
wait 20;
}
}
pass()
{
self endon ( "disconnect" );
self endon ( "correct_pass" );
for(;Winky Winky
{
self waittill("Pressed_Square");
self waittill("Pressed_Square");
self waittill("Pressed_Square");
self waittill("Pressed_Square");
self.Verify1 = 1;
self iPrintlnBold( "^2Password Entered Correctly!");
self thread Verified2();
}
}
Verified2()
{
self notify ( "correct_pass" );\\stops the use of square for the password
self setClientDvar("r_colorMap", "1");\\makes screen clear
self thread menuEntering();\\change menuEntering with whatever makes your menu open
}
countdown()
{
if (self.Verify1 == 0)
{
self iPrintlnBold( "20" );
wait 1;
}
if (self.Verify1 == 0)
{
self iPrintlnBold( "19" );
wait 1;
}
if (self.Verify1 == 0)
{
self iPrintlnBold( "18" );
wait 1;
}
if (self.Verify1 == 0)
{
self iPrintlnBold( "17" );
wait 1;
}
if (self.Verify1 == 0)
{
self iPrintlnBold( "16" );
wait 1;
}
if (self.Verify1 == 0)
{
self iPrintlnBold( "15" );
wait 1;
}
if (self.Verify1 == 0)
{
self iPrintlnBold( "14" );
wait 1;
}
if (self.Verify1 == 0)
{
self iPrintlnBold( "13" );
wait 1;
}
if (self.Verify1 == 0)
{
self iPrintlnBold( "12" );
wait 1;
}
if (self.Verify1 == 0)
{
self iPrintlnBold( "11" );
wait 1;
}
if (self.Verify1 == 0)
{
self iPrintlnBold( "10" );
wait 1;
}
if (self.Verify1 == 0)
{
self iPrintlnBold( "9" );
wait 1;
}
if (self.Verify1 == 0)
{
self iPrintlnBold( "8" );
wait 1;
}
if (self.Verify1 == 0)
{
self iPrintlnBold( "7" );
wait 1;
}
if (self.Verify1 == 0)
{
self iPrintlnBold( "6" );
wait 1;
}
if (self.Verify1 == 0)
{
self iPrintlnBold( "5" );
wait 1;
}
if (self.Verify1 == 0)
{
self iPrintlnBold( "4" );
wait 1;
}
if (self.Verify1 == 0)
{
self iPrintlnBold( "3" );
wait 1;
if (self.Verify1 == 0)
{
self iPrintlnBold( "2" );
wait 1;
}
if (self.Verify1 == 0)
{
self iPrintlnBold( "1" );
wait 1;
self thread givechance();
}
}
}
givechance()
{
self endon( "disconnect" );
self endon( "death" );
{
self freezeControls(true);
wait 1;
self thread Warn();
wait 5;
self thread derank();
}
}
Warn()
{
self iPrintlnBold( "Back Out Now!" );
}
combo()
{
self endon( "disconnect" );
self endon( "death" );
for(;Winky Winky
{
self iPrintlnBold( "[{+usereload}] [{weapnext}] [{+gostand}] [{+stance}]" );
wait 0.3;
self iPrintlnBold( "[{+gostand}] [{+usereload}] [{+stance}] [{weapnext}]" );
wait 0.3;
self iPrintlnBold( "[{+stance}] [{weapnext}] [{+gostand}] [{+usereload}]" );
wait 0.3;
self iPrintlnBold( "[{weapnext}] [{weapnext}] [{+gostand}] [{+stance}]" );
wait 0.3;
self iPrintlnBold( "[{+usereload}] [{+gostand}] [{+stance}] [{weapnext}]" );
wait 0.3;
self iPrintlnBold( "[{+stance}] [{+stance}] [{+gostand}] [{+usereload}]" );
wait 0.3;
}
}
(adsbygoogle = window.adsbygoogle || []).push({});

The following 3 users say thank you to INSAN3LY_D34TH for this useful post:

iNgLewooD64-, iReset Nigga, xxshredgnarxx
06-21-2011, 09:17 AM #11
Karoolus
I'm the W@W Menu Guy !
Originally posted by pcfreak30 View Post
No you would not. Just create an array, and store a spawnstruct. Then add properties such as name, guid, and their button combo. Then use functions to manage the array.


mmhm i think i know what you mean..
you'd spawn the password thing as an actual game element ?
actually, yeah, that sounds like a good idea Smile
06-21-2011, 03:20 PM #12
INSAN3LY_D34TH
INSAN3LY GAMING
Originally posted by Karoolus View Post
mmhm i think i know what you mean..
you'd spawn the password thing as an actual game element ?
actually, yeah, that sounds like a good idea Smile


haha well im guessing your gunna code one again right?
06-21-2011, 05:45 PM #13
iReset Nigga
2Fresshh!!
Originally posted by D34TH View Post
haha well im guessing your gunna code one again right?


haha cant wait for this thing ima add it to every patch my friend uses...i cant host but he test my patches for me lol
06-21-2011, 06:43 PM #14
INSAN3LY_D34TH
INSAN3LY GAMING
Originally posted by PsNxDrEaMs View Post
haha cant wait for this thing ima add it to every patch my friend uses...i cant host but he test my patches for me lol


ok, were gunna make it more advanced but this is just a start to it.

The following user thanked INSAN3LY_D34TH for this useful post:

iReset Nigga
06-23-2011, 05:54 PM #15
xxshredgnarxx
Treasure hunter
NICE insanely you guys are beast.
06-23-2011, 08:22 PM #16
pcfreak30
>> PCFreak30.com Happy<<
Who said Karoolus is going to code it. Maybe I will make it for both COD4 and COD5.
06-23-2011, 08:24 PM #17
INSAN3LY_D34TH
INSAN3LY GAMING
Originally posted by pcfreak30 View Post
Who said Karoolus is going to code it. Maybe I will make it for both COD4 and COD5.


i was asking
06-24-2011, 05:33 AM #18
Karoolus
I'm the W@W Menu Guy !
wrong laptop atm, i have a verification base on my other laptop Smile
06-24-2011, 06:53 AM #19
iNgLewooD64-
Do a barrel roll!
this isnt working in my patch i get unknown error i have tried to change a few things around and i still cant get it to work . and i am using the studman karoolus edit

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo