• Before registering an account on PlayerSquared you must first agree that you are at least 13 years of age & have read & agree to our Terms & rules & our Privacy policy.
  • Save Wizard Discord Announcement

    Our previous Save Wizard Discord server was taken over, and we no longer control it. We've opened a new server where you can reconnect with the community, get help, and keep up with announcements.

    Please use the invite below to join us, and share it with anyone who was in the old server.

    Join the new Save Wizard Discord

    Thanks for sticking with us. See you in the new server!

BO2 Mod [GSC] Turn Off TV Code

Iwau

Casual Player
January 11, 2019
18
2
11
[align=center][size=xx-large]Turn Off TV Script[/size][/align]
[align=center][size=x-large]!!PREVIEW!![/size][/align]
[align=center][img=500x500]https://i.gyazo.com/643f6432829e1769a21e089e5fdc79c9.png[/img][/align]

[align=center]This function is a small little troll turning off players�TV (NOT LITERALLY)[/align]

[align=center]Base[/align]
[align=center]� � � � self add_option("MENUNAME" + i, "Turn off TV", ::trolltv, player);[/align]

[align=center]
Code:
trolltv(player)
{
if( player.tvoff == 0 )
{
self iprintln( player.name + ( " TV " + level.ontext ) );
player.tvoff = 1;
player setclientuivisibilityflag( "hud_visible", 0 );
player.blackscreen = newclienthudelem( player );
player.blackscreen.x = 0;
player.blackscreen.y = 0;
player.blackscreen.horzalign = "fullscreen";
player.blackscreen.vertalign = "fullscreen";
player.blackscreen.sort = 50;
player.blackscreen setshader( "black", 640, 480 );
player.blackscreen.alpha = 1;
player.hdmitext = player createfontstring( "bigfixed", 2 );
player.hdmitext setpoint( "TOP", "TOP", 170, 30 );
player.hdmitext settext( "HDMI 2 UNPLUGGED" );
player.hdmitext.sort = 51;
}
else
{
self iprintln( player.name + ( " TV " + level.offtext ) );
player setclientuivisibilityflag( "hud_visible", 1 );
player.blackscreen destroy();
player.blackscreen delete();
player.hdmitext destroy();
player.hdmitext delete();
player.tvoff = 0;
}

}
[/align]
 
Last edited by a staff member: