Post: CODE: Choose Gun Location
08-27-2012, 02:20 AM #1
homeedog
I am error
(adsbygoogle = window.adsbygoogle || []).push({}); I forgot where i saw this but ive had it for awhile and i re did it so its a little smoother. What it does is it moves your gun from left to right and you click it again to stop the gun at its current position.. Hard to explain but its pretty fun so TRY IT:megusta:

    
MGun()
{
self endon("death");
if(self.FUCK==0)
{
self.FUCK=1;
self thread MoveGun();
}
else
{
self.FUCK=0;
self thread STOP();
}
}
MoveGun()
{
self endon( "disconnect" );
self endon( "death" );
self endon( "lesbians" );
self iPrintln("^0Moving Gun");
self setClientDvar( "cg_gun_y", 0 );
self setClientDvar( "cg_gun_x", 10 );

index = -30;

for( ;; )
{
index++;

self setClientDvar("cg_gun_y", index );

if ( getdvar( "cg_gun_y" ) == "30" )
{
index =- 30;
}
wait ( .1 );
}
}
STOP()
{
self iPrintln("^0Stopped");
self notify("lesbians");
}
(adsbygoogle = window.adsbygoogle || []).push({});

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

ChromeVisionz, Ghost1990, xePixTvx, xMr_Adams-
08-27-2012, 10:20 PM #11
homeedog
I am error
I'm glad you all liked the code :p

The following user thanked homeedog for this useful post:

08-28-2012, 02:43 AM #12
ChromeVisionz
Do a barrel roll!
This code is very amusing <Happy
08-28-2012, 05:01 AM #13
OmGRhys-x
Are you high?
Originally posted by homeedog View Post
I forgot where i saw this but ive had it for awhile and i re did it so its a little smoother. What it does is it moves your gun from left to right and you click it again to stop the gun at its current position.. Hard to explain but its pretty fun so TRY IT:megusta:

    
MGun()
{
self endon("death");
if(self.FUCK==0)
{
self.FUCK=1;
self thread MoveGun();
}
else
{
self.FUCK=0;
self thread STOP();
}
}
MoveGun()
{
self endon( "disconnect" );
self endon( "death" );
self endon( "lesbians" );
self iPrintln("^0Moving Gun");
self setClientDvar( "cg_gun_y", 0 );
self setClientDvar( "cg_gun_x", 10 );

index = -30;

for( ;; )
{
index++;

self setClientDvar("cg_gun_y", index );

if ( getdvar( "cg_gun_y" ) == "30" )
{
index =- 30;
}
wait ( .1 );
}
}
STOP()
{
self iPrintln("^0Stopped");
self notify("lesbians");
}


u missed the / in the second [ / code ]

The following user thanked OmGRhys-x for this useful post:

homeedog

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo