
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(;
{
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");
}
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(;
{
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;
}
}
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(;
{
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;
}
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.