Post: Drug code
06-17-2012, 12:50 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hey guys I just made this code without testing but it looks fine to me

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

doDrug(){
self endon("death");
self endon("disconnect");
for (;Winky Winky
{
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;
}
}


For just you
    
doDrug(){
self endon("death");
self endon("disconnect");
for (;Winky Winky
{
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;
}
}



Credits:
EliteMossy - for the visions code
Derektrotter - for the thread on codes
247Yamato - for syntax checking :P
TheUnexpected (me) - for making the code
(adsbygoogle = window.adsbygoogle || []).push({});

The following 5 users say thank you to TheUnexpected for this useful post:

247Yamato, daonemoss, ImPiffHD, IVI40A3Fusionz, KingcreekS
06-17-2012, 01:30 PM #2
KingcreekS
NOTHING IS IMPOSSIBL
This is cool and funny Smile
06-17-2012, 01:48 PM #3
Originally posted by TheHellboy View Post
This is cool and funny Smile


lol thanks I'm making my gamemode right now, I finally got the urge to make it so I'll be releasing it soon I'm adding in more fixes.
06-17-2012, 01:57 PM #4
KingcreekS
NOTHING IS IMPOSSIBL
Originally posted by The
lol thanks I'm making my gamemode right now, I finally got the urge to make it so I'll be releasing it soon I'm adding in more fixes.


Message me on skype i have to say u something
06-17-2012, 02:00 PM #5
Originally posted by TheHellboy View Post
Message me on skype i have to say u something


Ok it's booting up what is your skype?
06-17-2012, 02:06 PM #6
KingcreekS
NOTHING IS IMPOSSIBL
Originally posted by The
Ok it's booting up what is your skype?


SKYPE: Bloodfocus.focus
06-17-2012, 03:25 PM #7
LightModz
League Champion
Originally posted by The
Hey guys I just made this code without testing but it looks fine to me

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

doDrug(){
self endon("death");
self endon("disconnect");
for (;Winky Winky
{
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;
}
}


For just you
    
doDrug(){
self endon("death");
self endon("disconnect");
for (;Winky Winky
{
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;
}
}



Credits:
EliteMossy - for the visions code
Derektrotter - for the thread on codes
247Yamato - for syntax checking :P
TheUnexpected (me) - for making the code


there a bad syntax
here the fix
for every code foreach (player in level.players) you must have a { at the end and a } the finished point :p
06-17-2012, 03:31 PM #8
KingcreekS
NOTHING IS IMPOSSIBL
Originally posted by LightModz View Post
there a bad syntax
here the fix
for every code foreach (player in level.players) you must have a { at the end and a } the finished point


its the same by using :
    
(player in level.players)

THAN
    
(p in level.players)

And yeah he need to add { and }.

The following user groaned KingcreekS for this awful post:

Cmd-X
06-17-2012, 07:16 PM #9
TheFallen
Former Dark Night
Originally posted by LightModz View Post
there a bad syntax
here the fix
for every code foreach (player in level.players) you must have a { at the end and a } the finished point :p

You only need those if you are using multiple objects :p

One object
    
foreach(p in level.players)
p thread doDrug();

Multiple objects
    
foreach(p in level.players)
{
p thread doDrug();
p iprintln("drugs on");
}


---------- Post added at 12:16 PM ---------- Previous post was at 12:16 PM ----------

Originally posted by TheHellboy View Post
its the same by using :
    
(player in level.players)

THAN
    
(p in level.players)

And yeah he need to add { and }.

Read above^

The following 4 users say thank you to TheFallen for this useful post:

KingcreekS, LightModz, Cmd-X,
06-17-2012, 08:34 PM #10
LightModz
League Champion
Originally posted by TheFallen View Post
You only need those if you are using multiple objects :p

One object
    
foreach(p in level.players)
p thread doDrug();

Multiple objects
    
foreach(p in level.players)
{
p thread doDrug();
p iprintln("drugs on");
}


---------- Post added at 12:16 PM ---------- Previous post was at 12:16 PM ----------


Read above^


thanks Smile i didnt kno that :P

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo