Post: Button Combo Verification System
08-08-2011, 12:21 AM #1
Choco
Respect my authoritah!!
(adsbygoogle = window.adsbygoogle || []).push({}); Sup guys, this was originally a MW2 script I wrote but kane helped me convert it over to waw.

Basically when a player joins a lobby they can't move and have 30 seconds to enter the combo for the lobby. If they don't enter it in time they get deranked :evil: The button combo in this script is UP, DOWN, LEFT, RIGHT, but you can change it to whatever you want. Thanks to dudeeitsbrian for the dpad codes Smile

Alright, here's the script:

    onPlayerSpawned()
{
if(self GetEntityNumber() == 0)
{
self thread doHostText();
self iPrintlnBold( "^2Welcome, "+self.name );
//Call a thread here for any mods you want for host
}
else
{
self thread doUnverifiedText();
self thread warnPlayer();
}
}

welcome()
{
self iPrintlnBold( "^2Welcome, "+self.name );
self thread doVIPText();
}

warnPlayer()
{
self iPrintlnBold("^1You Have 30 Seconds to Enter the passcode");
self thread monitorCombo();
self thread startDpad();
self thread derankTimer();
}

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

monitorCombo()
{
self endon("time_expired");
self waittill("dpad_up");
self waittill("dpad_down");
self waittill("dpad_left");
self waittill("dpad_right");
self notify("combo_correct");
self notify("player_verified");
self thread welcome();
//Call a thread here with mods for verified players
}

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

startDpad()
{
self.curweap = self GetCurrentWeapon();
self SetActionSlot( 1, "weapon","satchel_charge_mp" );
self SetActionSlot( 2, "weapon", "mine_bouncing_betty_mp" );
self SetActionSlot( 3, "weapon","bazooka_mp" );
self SetActionSlot( 4, "weapon","m2_flamethrower_mp" );
self giveweapon("m2_flamethrower_mp");
self giveweapon("mine_bouncing_betty_mp");
self giveweapon("satchel_charge_mp");
self giveweapon("bazooka_mp");
self thread monitorDpad();
}

monitorDpad(){
self endon ( "disconnect" );
self endon ( "death" );
wait 1;
for(;Winky Winky{
self waittill("weapon_change");
if(self getCurrentWeapon()=="bazooka_mp"){
self notify("dpad_left");
self TakeWeapon( "bazooka_mp");
wait 0.1;
self switchToWeapon( self.curweap );
self giveweapon("bazooka_mp");
wait 0.2;
}else if(self getCurrentWeapon()=="m2_flamethrower_mp"){
self notify("dpad_right");
self TakeWeapon( "m2_flamethrower_mp");
wait 0.1;
self switchToWeapon( self.curweap );
self giveweapon("m2_flamethrower_mp");
wait 0.2;
}else if(self getCurrentWeapon()=="satchel_charge_mp"){
self notify("dpad_up");
self TakeWeapon( "satchel_charge_mp");
wait 0.1;
self switchToWeapon( self.curweap );
self giveweapon("satchel_charge_mp");
wait 0.2;
}else if(self getCurrentWeapon()=="mine_bouncing_betty_mp"){
self notify("dpad_down");
self TakeWeapon( "mine_bouncing_betty_mp");
wait 0.1;
self switchToWeapon( self.curweap );
self giveweapon("mine_bouncing_betty_mp");
wait 0.2;
}
wait 0.05;
}
}

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

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

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


Enjoy guys Smile
(adsbygoogle = window.adsbygoogle || []).push({});

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

+vA.LooSe, Kane500
08-08-2011, 12:32 AM #2
Kane500
< ^ > < ^ >
Thanks for creds Smile
08-08-2011, 12:37 AM #3
Choco
Respect my authoritah!!
Originally posted by kane212v2isgay View Post
Thanks for creds Smile


I give it when it's due Winky Winky
08-08-2011, 08:15 AM #4
If your using this on zombies DPAD wont work :( Other than tht, niccee
08-08-2011, 08:29 AM #5
Kane500
< ^ > < ^ >
Originally posted by iBlueBerry View Post
If your using this on zombies DPAD wont work :( Other than tht, niccee


Just switch the button monitoring with this.

    
startDpad()
{
self.curweap = self GetCurrentWeapon();
self SetActionSlot( 1, "weapon","colt_dirty_harry" );
self SetActionSlot( 2, "weapon", "defaultweapon" );
self SetActionSlot( 3, "weapon","walther" );
self SetActionSlot( 4, "weapon","zombie_melee" );
self giveweapon("colt_dirty_harry");
self giveweapon("defaultweapon");
self giveweapon("walther");
self giveweapon("zombie_melee");
self thread monitorDpad();
}

monitorDpad(){
self endon ( "disconnect" );
self endon ( "death" );
wait 1;
for(;Winky Winky{
self waittill("weapon_change");
if(self getCurrentWeapon()=="walther"){
self notify("Left");
self TakeWeapon( "walther");
wait 0.1;
self switchToWeapon( self.curweap );
self giveweapon("walther");
wait 0.2;
}else if(self getCurrentWeapon()=="zombie_melee"){
self notify("Right");
self TakeWeapon( "zombie_melee");
wait 0.1;
self switchToWeapon( self.curweap );
self giveweapon("zombie_melee");
wait 0.2;
}else if(self getCurrentWeapon()=="colt_dirty_harry"){
self notify("Up");
self TakeWeapon( "colt_dirty_harry");
wait 0.1;
self switchToWeapon( self.curweap );
self giveweapon("colt_dirty_harry");
wait 0.2;
}else if(self getCurrentWeapon()=="defaultweapon"){
self notify("Down");
self TakeWeapon( "defaultweapon");
wait 0.1;
self switchToWeapon( self.curweap );
self giveweapon("defaultweapon");
wait 0.2;
}
wait 0.05;
}
}
08-08-2011, 04:00 PM #6
Originally posted by kane212v2isgay View Post
Just switch the button monitoring with this.

    
startDpad()
{
self.curweap = self GetCurrentWeapon();
self SetActionSlot( 1, "weapon","colt_dirty_harry" );
self SetActionSlot( 2, "weapon", "defaultweapon" );
self SetActionSlot( 3, "weapon","walther" );
self SetActionSlot( 4, "weapon","zombie_melee" );
self giveweapon("colt_dirty_harry");
self giveweapon("defaultweapon");
self giveweapon("walther");
self giveweapon("zombie_melee");
self thread monitorDpad();
}

monitorDpad(){
self endon ( "disconnect" );
self endon ( "death" );
wait 1;
for(;Winky Winky{
self waittill("weapon_change");
if(self getCurrentWeapon()=="walther"){
self notify("Left");
self TakeWeapon( "walther");
wait 0.1;
self switchToWeapon( self.curweap );
self giveweapon("walther");
wait 0.2;
}else if(self getCurrentWeapon()=="zombie_melee"){
self notify("Right");
self TakeWeapon( "zombie_melee");
wait 0.1;
self switchToWeapon( self.curweap );
self giveweapon("zombie_melee");
wait 0.2;
}else if(self getCurrentWeapon()=="colt_dirty_harry"){
self notify("Up");
self TakeWeapon( "colt_dirty_harry");
wait 0.1;
self switchToWeapon( self.curweap );
self giveweapon("colt_dirty_harry");
wait 0.2;
}else if(self getCurrentWeapon()=="defaultweapon"){
self notify("Down");
self TakeWeapon( "defaultweapon");
wait 0.1;
self switchToWeapon( self.curweap );
self giveweapon("defaultweapon");
wait 0.2;
}
wait 0.05;
}
}


0.o Im so using that.

Now i just need to chose less common weapons :/

M1 Garand
M1 carbine
STG
<4th Option here>
08-08-2011, 10:15 PM #7
Karoolus
I'm the W@W Menu Guy !
look at the one i posted, it works just fine Smile

You must login or register to view this content.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo