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-07-2011, 05:29 PM #2
Bizmod
Keeper
This Is Really cool i might use this Smile
08-07-2011, 06:27 PM #3
cjmurder123
What do I say here?
This isn't anything new because this was in GodlyModz patch, but nice release. It looks coded differently then the other one.
08-07-2011, 06:48 PM #4
Choco
Respect my authoritah!!
Originally posted by cjmurder123 View Post
This isn't anything nice because this was in GodlyModz patch, but nice release. It looks coded differently then the other one.


Yea I coded this from scratch. I'm new to GSC so I just decided to see if I could make a verification system Smile
08-07-2011, 07:39 PM #5
Skyl1n3
DO SOMETHING THEN!
So simple but yet so complicated :p

The following user thanked Skyl1n3 for this useful post:

Jannis96
08-07-2011, 07:50 PM #6
Choco
Respect my authoritah!!
Originally posted by Skyl1n3 View Post
So simple but yet so complicated :p


You're good with W@W right?
08-07-2011, 08:22 PM #7
Skyl1n3
DO SOMETHING THEN!
Originally posted by chocomonkey321 View Post
You're good with W@W right?


Depends what with :whistle:
08-07-2011, 08:23 PM #8
Choco
Respect my authoritah!!
Originally posted by Skyl1n3 View Post
Depends what with :whistle:


Like converting this code to W@W :p
08-07-2011, 08:25 PM #9
Skyl1n3
DO SOMETHING THEN!
Originally posted by chocomonkey321 View Post
Like converting this code to W@W :p


Well I'm not sure if I'm the one to ask but I could give it a go :whistle: You should just be able to C&P it exept you'd need to convert all hud_messages to iPrintLnBold or something. It looks fine but what do I know :p
08-07-2011, 10:36 PM #10
Kane500
< ^ > < ^ >
Originally posted by chocomonkey321 View Post
Like converting this code to W@W :p


I'll convert for you ok Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo