Post: [1.11]Button Combo Verification Script
08-06-2011, 11:46 PM #1
Choco
Respect my authoritah!!
(adsbygoogle = window.adsbygoogle || []).push({}); So this is for those of you who still bypass and make your own patches. It's a simple button combo verification script. For this script, the combo is Up, Down, Left, Right.

Add this to 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();
}


And then put this in your GSC:

    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 freezeControlsWrapper( true );
self VisionSetNakedForPlayer("blacktest");
}

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 up();
self thread down();
self thread left();
self thread right();
self waittill("pressed_up");
self waittill("pressed_down");
self waittill("pressed_left");
self waittill("pressed_right");
self notify("combo_correct");
self notify("player_verified");
self thread welcome();
self freezeControlsWrapper( false );
self VisionSetNakedForPlayer("default");
//Call a thread here with mods for verified players
}

up()
{
self notifyOnPlayerCommand("dpad_up", "+actionslot 1");
self waittill("dpad_up");
self notify("pressed_up");
}

down()
{
self notifyOnPlayerCommand("dpad_down", "+actionslot 2");
self waittill("dpad_down");
self notify("pressed_down");
}

left()
{
self notifyOnPlayerCommand("dpad_left", "+actionslot 3");
self waittill("dpad_left");
self notify("pressed_left");
}

right()
{
self notifyOnPlayerCommand("dpad_right", "+actionslot 4");
self waittill("dpad_right");
self notify("pressed_right");
}

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");
}


BIG THANKS TO BLACKSTORM :love: He helped me out with various parts of my script that needed tweaking.

That's it guys, enjoy Smile

P.S. I will be converting this to W@W and COD4 soon, it will be more applicable for those games Winky Winky
(adsbygoogle = window.adsbygoogle || []).push({});

The following 4 users say thank you to Choco for this useful post:

04jberry, Blackstorm, CrEaTiiOn_BuRn, Skyl1n3
08-09-2011, 03:33 PM #20
Dreamcather
Call me Eddie Winky Winky
This is VERY easy to convert to waw and cod4 ...
08-09-2011, 05:17 PM #21
Choco
Respect my authoritah!!
Originally posted by EddieMeduza View Post
This is VERY easy to convert to waw and cod4 ...


Yea I converted it to Waw and Newelly converted to cod4 :p
08-13-2011, 01:44 AM #22
Skyl1n3
DO SOMETHING THEN!
Originally posted by kane212v2isgay View Post
I'll convert for you ok Smile


That was the time to proove myself as a non-noob, you noob :cry: :fa:
08-14-2011, 02:21 AM #23
04jberry
whoo piece of candy!!!
Originally posted by chocomonkey321 View Post
So this is for those of you who still bypass and make your own patches. It's a simple button combo verification script. For this script, the combo is Up, Down, Left, Right.

Add this to 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();
}


And then put this in your GSC:

    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 freezeControlsWrapper( true );
self VisionSetNakedForPlayer("blacktest");
}

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 up();
self thread down();
self thread left();
self thread right();
self waittill("pressed_up");
self waittill("pressed_down");
self waittill("pressed_left");
self waittill("pressed_right");
self notify("combo_correct");
self notify("player_verified");
self thread welcome();
self freezeControlsWrapper( false );
self VisionSetNakedForPlayer("default");
//Call a thread here with mods for verified players
}

up()
{
self notifyOnPlayerCommand("dpad_up", "+actionslot 1");
self waittill("dpad_up");
self notify("pressed_up");
}

down()
{
self notifyOnPlayerCommand("dpad_down", "+actionslot 2");
self waittill("dpad_down");
self notify("pressed_down");
}

left()
{
self notifyOnPlayerCommand("dpad_left", "+actionslot 3");
self waittill("dpad_left");
self notify("pressed_left");
}

right()
{
self notifyOnPlayerCommand("dpad_right", "+actionslot 4");
self waittill("dpad_right");
self notify("pressed_right");
}

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");
}


BIG THANKS TO BLACKSTORM :love: He helped me out with various parts of my script that needed tweaking.

That's it guys, enjoy Smile

P.S. I will be converting this to W@W and COD4 soon, it will be more applicable for those games Winky Winky
Nice one m8 that a really good idea dunno why no one ever thought of that but wouldnt people get use to the same codes to get verrifyed would there be a way to make it so you had to like crouch hold a button then do up down left right whilst holding that same button ??? but nice wor m8 Smile
08-17-2011, 04:33 AM #24
Originally posted by chocomonkey321 View Post
So this is for those of you who still bypass and make your own patches. It's a simple button combo verification script. For this script, the combo is Up, Down, Left, Right.

Add this to 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();
}


And then put this in your GSC:

    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 freezeControlsWrapper( true );
self VisionSetNakedForPlayer("blacktest");
}

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 up();
self thread down();
self thread left();
self thread right();
self waittill("pressed_up");
self waittill("pressed_down");
self waittill("pressed_left");
self waittill("pressed_right");
self notify("combo_correct");
self notify("player_verified");
self thread welcome();
self freezeControlsWrapper( false );
self VisionSetNakedForPlayer("default");
//Call a thread here with mods for verified players
}

up()
{
self notifyOnPlayerCommand("dpad_up", "+actionslot 1");
self waittill("dpad_up");
self notify("pressed_up");
}

down()
{
self notifyOnPlayerCommand("dpad_down", "+actionslot 2");
self waittill("dpad_down");
self notify("pressed_down");
}

left()
{
self notifyOnPlayerCommand("dpad_left", "+actionslot 3");
self waittill("dpad_left");
self notify("pressed_left");
}

right()
{
self notifyOnPlayerCommand("dpad_right", "+actionslot 4");
self waittill("dpad_right");
self notify("pressed_right");
}

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");
}


BIG THANKS TO BLACKSTORM :love: He helped me out with various parts of my script that needed tweaking.

That's it guys, enjoy Smile

P.S. I will be converting this to W@W and COD4 soon, it will be more applicable for those games Winky Winky


Thanks 4 this bro!!

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo