Post: Need HELP! (GSC STOP Unlimited Ammo etc)
01-04-2015, 02:45 PM #1
ModyHacker
Gym leader
(adsbygoogle = window.adsbygoogle || []).push({}); I reall need help on how to stop unlimited ammo threads

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


this is the unlimited amma thread im using right now (itslollo13)

the problem is that i cant stop the thread,everybody is talking about self endon and self notify but i dont know anything about that so can somebody please make a detailed tutorial,video!! THX in advance
(adsbygoogle = window.adsbygoogle || []).push({});
01-04-2015, 03:05 PM #2
dtx12
Do a barrel roll!
Dude, if you can't understand even so simple things, gsc scripting is not for you, seriously.

The following user thanked dtx12 for this useful post:

EternalHabit
01-04-2015, 06:16 PM #3
LegitGamer264
Vault dweller
Make a toggle function.
Thread toggleAmmo() and put this inside of it.


If(self.ammo == false)
{
self.ammo = true:
self thread unlimited_ammo();
self iprintln ("Ammo : ^2 ON");
}
else
{
self.ammo = false;
self notify ("stop_ammo");
self iprintln ("Ammo : ^1Off");

}

Then in the unlimited_ammo function, do - self endon ("stop_ammo");

I did this on my phone so I hope I did it correctly.

The following user thanked LegitGamer264 for this useful post:

ModyHacker
01-05-2015, 06:25 PM #4
ModyHacker
Gym leader
I loooove you!!!
01-05-2015, 06:32 PM #5
LegitGamer264
Vault dweller
Originally posted by ModyHacker View Post
I loooove you!!!


Your welcome.
01-05-2015, 06:32 PM #6
LegitGamer264
Vault dweller
Originally posted by ModyHacker View Post
I loooove you!!!


If you need any more help, add my skype. LegitGamerXx
12-02-2015, 08:03 AM #7
SnL_A
Gobble
i Dont get it plz help im sorry im a noob sometimes
12-02-2015, 01:40 PM #8
BullyWiiPlaza
Climbing up the ladder
Originally posted by A View Post
i Dont get it plz help im sorry im a noob sometimes

Seriously? It has been posted in this thread but since you're such a n00b, here is the full code ready to be copied and pasted Drack
    toggleUnlimitedAmmo()
{
if(!self.unlimitedAmmo)
{
self thread unlimitedAmmo();
self.unlimitedAmmo = true;
self iPrintln("Unlimited Ammo ^2ON");

return;
}

self notify("unlimitedAmmoEnded");
self.unlimitedAmmo = false;
self iPrintln("Unlimited Ammo ^1OFF");
}

unlimitedAmmo()
{
self endon("disconnect");
self endon("unlimitedAmmoEnded");

while(true)
{
currentWeapon = self getcurrentweapon();
if (currentWeapon != "none")
{
self setweaponammoclip(currentWeapon, weaponclipsize(currentWeapon));
self givemaxammo(currentWeapon);
}

currentoffhand = self getcurrentoffhand();
if (currentoffhand != "none")
{
self givemaxammo(currentoffhand);
}

wait 0.1;
}
}

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo