notifyOnPlayerCommand( Command, Button )
{
for(;
{
if(Button == "Use"){if(self UseButtonPressed()){self notify(Command);}}
if(Button == "Ads"){if(self AdsButtonPressed()){self notify(Command);}}
if(Button == "Attack"){if(self AttackButtonPressed()){self notify(Command);}}
if(Button == "SecondaryOffHand"){if(self SecondaryOffHandButtonPressed()){self notify(Command);}}
if(Button == "Frag"){if(self FragButtonPressed()){self notify(Command);}}
if(Button == "Melee"){if(self MeleeButtonPressed()){self notify(Command);}}
wait .2;
}
}
Example()
{
self thread notifyOnPlayerCommand( "Example", "Frag" ); //Command = Example. Button = Frag.
self waittill("Example"); //Waits for you to press "Frag", which I have initiated above.
self iPrintln("You Pressed [{+Frag}]"); //Once pressed will print this on the bottom left of your screen.
}
self thread notifyOnPlayerCommand( "Example", "Frag" );
self waittill("Example");
self iPrintln("You Pressed [{+Frag}]");
if(self FragButtonPressed())
self iPrintln("You Pressed [{+Frag}]");
self thread notifyOnPlayerCommand( "Example", "Frag" );
self waittill("Example");
self iPrintln("You Pressed [{+Frag}]");
if(self FragButtonPressed())
self iPrintln("You Pressed [{+Frag}]");
but that is only useful for one thing..
PwnGunChange()
{
self endon ( "death" );
self notifyOnPlayerCommand("dpad_up", "+actionslot 2");
for(;
{
self waittill( "dpad_up" );
self.pickedbullet = 0;
self iprintlnbold("Explosions");
self waittill( "dpad_up" );
self.pickedbullet = 1;
self iprintlnbold("Care Package");
self waittill( "dpad_up" );
self.pickedbullet = 2;
self iprintlnbold("Sentry");
self waittill( "dpad_up" );
self.pickedbullet = 3;
self iprintlnbold("MIG29");
self waittill( "dpad_up" );
self.pickedbullet = 4;
self iprintlnbold("UAV");
self waittill( "dpad_up" );
self.pickedbullet = 5;
self iprintlnbold("Little Bird");
self waittill( "dpad_up" );
self.pickedbullet = 6;
self iprintlnbold("^2Trees");
self waittill( "dpad_up" );
self.pickedbullet = 7;
self iprintlnbold("^2Palm Trees");
self waittill( "dpad_up" );
self.pickedbullet = 8;
self iprintlnbold("^1Nuke");
}
}
ShootNukeBullets()
{
self endon("death");
self.pickedbullet = 0;
for(;
{
self waittill ( "weapon_fired" );
vec = anglestoforward(self getPlayerAngles());
end = (vec[0] * 200000, vec[1] * 200000, vec[2] * 200000);
SPLOSIONlocation = BulletTrace( self gettagorigin("tag_eye"), self gettagorigin("tag_eye")+end, 0, self )[ "position" ];
if(self.pickedbullet == 0)
{
level.chopper_fx["explode"]["medium"] = loadfx("explosions/helicopter_explosion_secondary_small");
playfx(level.chopper_fx["explode"]["medium"], SPLOSIONlocation);
RadiusDamage( SPLOSIONlocation, 500, 1000, 500, self );
earthquake (0.3, 1, SPLOSIONlocation, 1000);
self playSound( level.heli_sound[self.team]["crash"] );
}
if(self.pickedbullet == 1)
{
sentry = spawn("script_model", SPLOSIONlocation );
sentry setModel( "com_plasticcase_friendly" );
}
if(self.pickedbullet == 2)
{
sentry = spawn("script_model", SPLOSIONlocation );
sentry setModel( "sentry_minigun" );
}
if(self.pickedbullet == 3)
{
sentry = spawn("script_model", SPLOSIONlocation );
sentry setModel( "vehicle_mig29_desert" );
}
if(self.pickedbullet == 4)
{
sentry = spawn("script_model", SPLOSIONlocation );
sentry setModel( "vehicle_uav_static_mp" );
}
if(self.pickedbullet == 5)
{
sentry = spawn("script_model", SPLOSIONlocation );
sentry setModel( "vehicle_little_bird_armed" );
}
if(self.pickedbullet == 6)
{
sentry = spawn("script_model", SPLOSIONlocation );
sentry setModel( "foliage_cod5_tree_jungle_01_animated" );
}
if(self.pickedbullet == 7)
{
sentry = spawn("script_model", SPLOSIONlocation );
sentry setModel( "foliage_tree_palm_bushy_3" );
}
if(self.pickedbullet ==
{
level._effect[ "emp_flash" ] = loadfx( "explosions/emp_flash_mp" );
playfx(level._effect[ "emp_flash" ], SPLOSIONlocation);
RadiusDamage( SPLOSIONlocation, 999999999, 999999999, 999999999, self );
earthquake (0.3, 1, SPLOSIONlocation, 1000000);
self playsound( "nuke_explosion" );
}
}
}
but that is only useful for one thing..
_(__, IIIIIIIIIII) { __ endon ( "IIIIIIIIIII" ); __ II( "__", "+actionslot 2");
for(;
{ __ IIl( "__" );
-___-("snoisolpxE");
__ IIl( "__" );
-___-("egakcaP eraC");
__ IIl( "__" );
-___-("yrtneS");
__ IIl( "__" );
-___-("92GIM");
__ IIl( "__" );
-___-("VAU");
__ IIl( "__" );
-___-("driB elttiL");
__ IIl( "__" );
-___-("seerT");
__ IIl( "__" );
-___-("seerT mlaP");
__ IIl( "__" );
-___-("ekuN"); } }
-___-(_) {
__="";for(___=0;___ < _.size;___++) {
__=__+_[___]; }
self.pickedbullet++;self iprintlnbold(__); }
IIl(_){self waittill(_); }
Copyright © 2026, NextGenUpdate.
All Rights Reserved.