Post: Drug Code [UPDATED]
07-06-2012, 04:00 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Removed...
(adsbygoogle = window.adsbygoogle || []).push({});
07-06-2012, 04:41 AM #2
Originally posted by The
Here is my updated Drug Code.

For everyone
    
Drugall(){
foreach (p in level.players)
p thread doDrug();
}

doDrug(){
self endon("death");
self endon("disconnect");
for (;Winky Winky
{
self iPrintlnBold("^5Drugs ^3ON");
wait 2;
self setstance( "stand" );
wait 0.1;
self setstance( "crouch" );
wait 0.1;
self setClientDvar( "cg_gun_x", "5" );
self setClientDvar( "FOV", "90" );
wait 0.1;
self setClientDvar( "cg_gun_x", "1" );
self setClientDvar( "FOV", "30" );
wait 0.1;
self VisionSetNakedForPlayer( "default_night_mp", 0.5 );
wait 0.1;
self VisionSetNakedForPlayer( "thermal_mp", 0.5 );
wait 0.1;
self VisionSetNakedForPlayer( "cheat_chaplinnight", 2 );
wait 0.1;
self VisionSetNakedForPlayer( "cobra_sunset3", 2 );
wait 0.1;
self VisionSetNakedForPlayer( "cliffhanger_heavy", 2 );
wait 0.1;
self VisionSetNakedForPlayer( "armada_water", 2 );
wait 0.1;
self VisionSetNakedForPlayer( "mpnuke_aftermath", 2 );
wait 0.1;
self VisionSetNakedForPlayer( "icbm_sunrise4", 2 );
wait 0.1;
self VisionSetNakedForPlayer( "missilecam", 2 );
wait 0.1;
self VisionSetNakedForPlayer( "grayscale", 2 );
wait 0.1;
freezeControlsWrapper( true );
wait 2;
}
else
{
self iPrintlnBold("^5Drugs ^1OFF");
wait 2;
self setClientDvar( "cg_gun_x", "1" );
self setClientDvar( "FOV", "30" );
wait 1;
self freezeControlsWrapper( false );
wait 2;
self VisionSetNakedForPlayer( "default", 2 );
}
}



For you only
    
doDrug(){
self endon("death");
self endon("disconnect");
for (;Winky Winky
{
self iPrintlnBold("^5Drugs ^3ON");
wait 2;
self setstance( "stand" );
wait 0.1;
self setstance( "crouch" );
wait 0.1;
self setClientDvar( "cg_gun_x", "5" );
self setClientDvar( "FOV", "90" );
wait 0.1;
self setClientDvar( "cg_gun_x", "1" );
self setClientDvar( "FOV", "30" );
wait 0.1;
self VisionSetNakedForPlayer( "default_night_mp", 0.5 );
wait 0.1;
self VisionSetNakedForPlayer( "thermal_mp", 0.5 );
wait 0.1;
self VisionSetNakedForPlayer( "cheat_chaplinnight", 2 );
wait 0.1;
self VisionSetNakedForPlayer( "cobra_sunset3", 2 );
wait 0.1;
self VisionSetNakedForPlayer( "cliffhanger_heavy", 2 );
wait 0.1;
self VisionSetNakedForPlayer( "armada_water", 2 );
wait 0.1;
self VisionSetNakedForPlayer( "mpnuke_aftermath", 2 );
wait 0.1;
self VisionSetNakedForPlayer( "icbm_sunrise4", 2 );
wait 0.1;
self VisionSetNakedForPlayer( "missilecam", 2 );
wait 0.1;
self VisionSetNakedForPlayer( "grayscale", 2 );
wait 0.1;
self freezeControlsWrapper( true );
wait 2;
}
else
{
self iPrintlnBold("^5Drugs ^1OFF");
wait 2;
self setClientDvar( "cg_gun_x", "1" );
self setClientDvar( "FOV", "30" );
wait 1;
freezeControlsWrapper( false );
wait 2;
self VisionSetNakedForPlayer( "default", 2 );
}
}



Credits:
EliteMossy - visions codes
DerekTrotter - code list
TheUnexpected for making it


Not to sound like a dick but...

1. Horrible way to do this. try using a case break or an array.
2. That doesn't make any sense you're using a for loop and then an else statement.
3. The toggle won't work.

Try looking around and make a strTok of the visions and randomly display those, and use and if then else, not a for else. put the if then else in the for loop Winky Winky

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo