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({});
08-27-2012, 10:20 PM #11
homeedog
I am error
I'm glad you all liked the code :p
1 thanks
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 ]
1 thanks
homeedog

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo