Post: how to add to it help????
08-21-2015, 06:17 PM #1
CiiBs
Save Point
(adsbygoogle = window.adsbygoogle || []).push({}); printToggle(funct, pos)
{
if(pos == 1)
self iprintln(funct + ": ^2ON^7");
else
self iprintln(funct + ": ^1OFF^7");
}

unlimited_ammo()
{
for(;Winky Winky
{
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 );
self endon ("stop_ammo");
}
}
(adsbygoogle = window.adsbygoogle || []).push({});
08-21-2015, 06:28 PM #2
FRINZ
I’m too L33T
wtf? lol are you trying to do a toggle? for unlimted ammo b0ss
08-21-2015, 06:33 PM #3
Trefad
I defeated!
Originally posted by CiiBs View Post
printToggle(funct, pos)
{
if(pos == 1)
self iprintln(funct + ": ^2ON^7");
else
self iprintln(funct + ": ^1OFF^7");
}

unlimited_ammo()
{
for(;Winky Winky
{
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 );
self endon ("stop_ammo");
}
}


I don't think you need the function on the top lol.
08-21-2015, 07:41 PM #4
CiiBs
Save Point
i was meaning how do you add toggles
08-21-2015, 07:44 PM #5
CiiBs
Save Point
Originally posted by Trefad View Post
I don't think you need the function on the top lol.


i was meaning how do you add toggles
08-21-2015, 07:47 PM #6
FRINZ
I’m too L33T
lol how to add toggles
if(self.toggle==0) ///False
{
self.toggle=1; ////true
/* put the thread here */
/*self thread Ammo */
}
else
{
self.toggle=0; ///false
self notify("End_CallIn");
}

theres example on how to do toggles ders other ways but here good to strt off

    ToggleAmmo()
{
if(self.unlimitedammo==0)
{
self.unlimitedammo=1;
self iPrintln("Infinite Ammo ^2ON");
self thread unlimited_ammo();
}
else
{
self.unlimitedammo=0;
self iPrintln("Infinite Ammo ^1OFF");
self notify("stop_unlimitedammo");
}
}
unlimited_ammo( )
{
self endon("stop_unlimitedammo");
self endon("death");
for(;Winky Winky
{
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 );
}
}


Herre the function toggled look @ it
08-21-2015, 08:01 PM #7
CiiBs
Save Point
Originally posted by Sexiness View Post
lol how to add toggles
if(self.toggle==0) ///False
{
self.toggle=1; ////true
/* put the thread here */
/*self thread Ammo */
}
else
{
self.toggle=0; ///false
self notify("End_CallIn");
}

theres example on how to do toggles ders other ways but here good to strt off

    ToggleAmmo()
{
if(self.unlimitedammo==0)
{
self.unlimitedammo=1;
self iPrintln("Infinite Ammo ^2ON");
self thread unlimited_ammo();
}
else
{
self.unlimitedammo=0;
self iPrintln("Infinite Ammo ^1OFF");
self notify("stop_unlimitedammo");
}
}
unlimited_ammo( )
{
self endon("stop_unlimitedammo");
self endon("death");
for(;Winky Winky
{
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 );
}
}


Herre the function toggled look @ it


thanks im just trying to start doing this

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo