Answered A Huge Favor (GSC HELP)

Ubstion

Member
Messages
18
Reaction score
8
Points
8
I've asked quiet a lot of questions towards gsc, but today i need this huge favor. Well i'm currently finishing my menu, but i have some problems with some stuff in the menu that causes freezing. I have a few more questions of gsc codes that are an issue as well.

So i am using Shark's Menu Base:

The entire verification aspect causes freezing so when you give someone a verification such as, vip or cohost, and then you want to change it to another you will automatically freeze and it's annoying to turn off ps3 and turn back on everytime. If your going to say don't give anyone verification well i'm planning to release it one day so many users won't come across this issue.

Another question is could you help fix my gsc codes to it's full function? The Unlimited Ammo code doesn't have a on/off, Spawn A Bot only spawns 1 bot for me would like it to spawn as many as i can in that specific match.

That's it thanks!

Here are the codes for the following:

doBots(a)
{
for(i = 0; i < a; i++)
{
self thread maps\mp\bots\_bot::spawn_bot("team");
wait 1;
}
}

//Call like
//self thread unlimited_ammo();

unlimited_ammo( )
{
self endon( "disconnect" );
self endon( "death" );

for(;:wink:
{
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 this huge favor! Credits will be given!
 

Jiro

Modder
Messages
226
Reaction score
77
Points
828
I've asked quiet a lot of questions towards gsc, but today i need this huge favor. Well i'm currently finishing my menu, but i have some problems with some stuff in the menu that causes freezing. I have a few more questions of gsc codes that are an issue as well.

So i am using Shark's Menu Base:

The entire verification aspect causes freezing so when you give someone a verification such as, vip or cohost, and then you want to change it to another you will automatically freeze and it's annoying to turn off ps3 and turn back on everytime. If your going to say don't give anyone verification well i'm planning to release it one day so many users won't come across this issue.

Another question is could you help fix my gsc codes to it's full function? The Unlimited Ammo code doesn't have a on/off, Spawn A Bot only spawns 1 bot for me would like it to spawn as many as i can in that specific match.

That's it thanks!

Here are the codes for the following:

doBots(a)
{
for(i = 0; i < a; i++)
{
self thread maps\mp\bots\_bot::spawn_bot("team");
wait 1;
}
}

//Call like
//self thread unlimited_ammo();

unlimited_ammo( )
{
self endon( "disconnect" );
self endon( "death" );

for(;:wink:
{
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 this huge favor! Credits will be given!
Here you go:
Call doBots(amount of bots to spawn), e.g.: spawn 5 bots:
Code:
self doBots(5);
Code:
doBots( a )
{
    for( i = 0; i < a; i++ )
    {
        self thread maps\mp\bots\_bot::spawn_bot( "autoassign" );
    }
    wait 1;
}

Code:
ToggleAmmo()
{
    if (self.unlimitedammo==0)
    {
        self.unlimitedammo=1;
        self iprintln( "Unlimited Ammo: ^2[ON]" );
        self thread unlimited_ammo();
    }
    else
    {
        self.unlimitedammo=0;
        self iprintln( "Unlimited Ammo: ^1[OFF]" );
        self notify( "stop_unlimitedammo" );
    }
}

unlimited_ammo()
{
    self endon( "disconnect" );
    self endon( "death" );
    self endon( "stop_unlimitedammo" );
 
    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 );
    }
}
 
Last edited by a moderator:
Top