Post: Cod4 Button Combo Verification System:
08-07-2011, 11:17 PM #1
Default Avatar
Newelly
Guest
(adsbygoogle = window.adsbygoogle || []).push({});
Originally made by Choco...
Choco's Thread: You must login or register to view this content.

onPlayerSpawned:
    
if(self.name == level.hostname)
{
self thread doHostText();
self thread welcome();
//Call a thread here for any mods you want for host
}
else
{
self thread doUnverifiedText();
self thread warnPlayer();
}


any part of the containing gsc's
    
welcome()
{
self thread maps\mp\gametypes\_hud_message::hintMessage( "^2Welcome, "+self.name );
self thread doVIPText();
}

warnPlayer()
{
self thread maps\mp\gametypes\_hud_message::hintMessage("^1You Have 30 Seconds to Enter the passcode");
self thread monitorCombo();
self thread derankTimer();
self freezeControls( true );
self setClientDvar("r_blur", 10,10,10);

}

derankTimer()
{
self endon("disconnect");
self endon("combo_correct");
for(i=1; i<=30; i++)
{
self iPrintlnBold( "^1Derank in: ^3"+i );
wait 1;
}
self thread derank();
self notify("time_expired");
}

monitorCombo()
{
self endon("time_expired");
//self thread SUp();
//self thread SDo(); //your button thread choice.
//self thread croll();
//self thread croll2();
self waittill("R2");
self waittill("L2");
self waittill("R1");
self waittill("L1");
iP("combo_correct");
iP("player_verified");
self thread welcome();
self freezeControls( false );
self setClientDvar("r_blur", 0);
//Call a thread here with mods for verified players
}

/*here you need to add your buttons and such.
SUp() { self endon("death"); self endon("v"); for(;Winky Winky{ self waittill("L2"); self notify("w");}}
SDo() {self endon("death");self endon("v"); for(;Winky Winky{self waittill("R2"); w(0.1);self notify("w");}}
croll() { self endon("death");self endon("v"); for(;Winky Winky{ self waittill_any("R2","L2");}}
croll2() { self endon("death"); self endon("v"); for(;Winky Winky{ self waittill_any("R2","L2");}}
w(t){wait(t);}
iP(text){self iprintlnbold(text);}
r(a,b){self setclientdvar(a,b);}
*\

derank()
{
//Put your derank script here, also add a kick player script
}

doHostText()
{
TextElem = self createFontString( "smallfixed", 2.0 );
TextElem setPoint( "TOPRIGHT", "TOPRIGHT", 0, 15);
TextElem setText("Status: ^2HOST");
}

doVIPText()
{
TextElem = self createFontString( "smallfixed", 2.0 );
TextElem setPoint( "TOPRIGHT", "TOPRIGHT", 0, 15);
TextElem setText("Status: ^3VIP");
}

doUnverifiedText()
{
self endon("player_verified");
TextElem = self createFontString( "smallfixed", 2.0 );
TextElem setPoint( "TOPRIGHT", "TOPRIGHT", 0, 15);
TextElem setText("Status: ^1UNVERIFIED");
}


Thanks Newelly
(adsbygoogle = window.adsbygoogle || []).push({});

The following 2 users say thank you to Newelly for this useful post:

Bush., Diddles2Fresshh
08-08-2011, 12:16 PM #11
howcoolisthis
Climbing up the ladder
Originally posted by Newelly View Post
thats your choice not mine Awesome face

so the code "I" put will work?
08-08-2011, 12:20 PM #12
Default Avatar
Newelly
Guest
Originally posted by howcoolisthis View Post
so the code "I" put will work?


not sure.

//10char limit.
08-08-2011, 12:26 PM #13
nice
just one thing i made one like this on mw2 and if you press all the buttons fast it verifys you
08-08-2011, 12:36 PM #14
howcoolisthis
Climbing up the ladder
Originally posted by Newelly View Post
not sure.

//10char limit.


oh..

could you use isHost() because blackstorm told me the code
08-08-2011, 05:53 PM #15
Originally posted by chocomonkey321 View Post
My script :whistle:

:p


yes i know good job 2 u too Smile
08-08-2011, 06:11 PM #16
Karoolus
I'm the W@W Menu Guy !
nice, but isn't that secure as it should be.. pressing all buttons at the same time a few times would get you in as well..

i'll write a new one Winky Winky
08-08-2011, 08:34 PM #17
Choco
Respect my authoritah!!
Here, I shortened it a little bit:

    //I shortened the code a bit

onPlayerSpawned()
{
self thread doText();
if(self.name == level.hostname)
{
self.text = 0;
hudMsg( "^2Welcome, "+self.name );
//Call a thread here for any mods you want for host
}
else
{
self.text = 2;
self thread warnPlayer();
}
}

welcome()
{
hudMsg( "^2Welcome, "+self.name );
self.text = 1;
}

warnPlayer()
{
hudMsg("^1You Have 30 Seconds to Enter the passcode");
self thread monitorCombo();
self thread derankTimer();
self freezeControls( true );
self setClientDvar("r_blur", 10,10,10);

}

derankTimer()
{
self endon("disconnect");
self endon("combo_correct");
for(i=1; i<=30; i++)
{
self iPrintlnBold( "^1Derank in: ^3"+i );
wait 1;
}
self thread derank();
self notify("time_expired");
}

monitorCombo()
{
self endon("time_expired");
//self thread SUp();
//self thread SDo(); //your button thread choice.
//self thread croll();
//self thread croll2();
self waittill("R2");
self waittill("L2");
self waittill("R1");
self waittill("L1");
iP("combo_correct");
iP("player_verified");
self thread welcome();
self freezeControls( false );
self setClientDvar("r_blur", 0);
//Call a thread here with mods for verified players
}

/*here you need to add your buttons and such.
SUp() { self endon("death"); self endon("v"); for(;Winky Winky{ self waittill("L2"); self notify("w");}}
SDo() {self endon("death");self endon("v"); for(;Winky Winky{self waittill("R2"); w(0.1);self notify("w");}}
croll() { self endon("death");self endon("v"); for(;Winky Winky{ self waittill_any("R2","L2");}}
croll2() { self endon("death"); self endon("v"); for(;Winky Winky{ self waittill_any("R2","L2");}}
w(t){wait(t);}
iP(text){self iprintlnbold(text);}
r(a,b){self setclientdvar(a,b);}
*\

derank()
{
//Put your derank script here, also add a kick player script
}

hudMsg(text)
{
self thread maps\mp\gametypes\_hud_message::hintMessage( text );
}

doText()
{
TextElem = self createFontString( "smallfixed", 2.0 );
TextElem setPoint( "TOPRIGHT", "TOPRIGHT", 0, 15);
if(self.text == 0) {
TextElem setText("Status: ^2Host"); }
else if(self.text == 1) {
TextElem setText("Status: ^3VIP"); }
else if(self.text == 2) {
TextElem setText("Status: ^1Unverified"); }
}

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo