(adsbygoogle = window.adsbygoogle || []).push({});
hello

i am trying to make the noclip work but when i activate it ingame, my screen becomes black and im stuck... NoClip code:Noclip()
{
self endon("stop_noclip");
self.originObj = spawn( "script_origin", self.origin, 1 );
self.originObj.angles = self.angles;
self playerlinkto( self.originObj, undefined );
self disableweapons();
for(;

{
if( self fragbuttonpressed())
{
normalized = anglesToForward( self getPlayerAngles() );
scaled = vectorScale( normalized, 20 );
originpos = self.origin + scaled;
self.originObj.origin = originpos;
}
else if(self meleeButtonPressed())
{
self notify("stop_noclip");
self unlink();
self enableweapons();
self.originObj delete();
}
wait .05;
}
}
and how do i also make it toggle on and off ?? and the second thing is when i activate unlimited ammo ingame it gets set but i cannot toggle it on and off.... and how can i make it also toggle on and off and also show "'Unlimited Ammo ON".
Unlimited Ammo code:
//Call like
//self thread unlimited_ammo();
unlimited_ammo()
{
self endon( "disconnect" );
self endon( "death" );
for(;

{
wait 0.1;
currentWeapon = self getcurrentweapon();
if ( currentWeapon != "none" )
{
self setweaponammoclip( currentWeapon, weaponclipsize(currentWeapon) );
self givemaxammo( currentWeapon );
}
currentoffhand = self getcurrentoffhand();
if ( currentoffhand != "none" )
self givemaxammo( currentoffhand );
}
}
thanks for help