Post: Help with GSC default weapon
05-07-2015, 02:05 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); The defaultweapon_mp crahes when I try and use it? Is there a fix for this?


using it like
self add_option("Weapon", "Bomb", ::G_Weapon, "defaultweapon_mp");
Any idea why its crashing?
(adsbygoogle = window.adsbygoogle || []).push({});
05-07-2015, 02:45 AM #2
Vanz
Z32 Love <3
Try adding the function as it's own function..If they doesn't help then it's probably the way "G_Weapon" is scripted
    
defaultWepaon()
self giveWeapon( "defaultweapon_mp" );
self switchToWeapon( "defaultweapon_mp" );
05-08-2015, 04:32 AM #3
thanks i will that. Also I had it giving the bomb in that option thats why it says "Bomb" forgot to change it lol
05-14-2015, 12:29 AM #4
Vondy Supreme
< ^ > < ^ >
Originally posted by Stripepr View Post
thanks i will that. Also I had it giving the bomb in that option thats why it says "Bomb" forgot to change it lol


The default weapon is overall very buggy in this game, I suggest making an entire function just for it

Here's mine

    giveDefaultGun()
{
if(self.defop==false)
{
self endon("stop_finger");
self giveWeapon("defaultweapon_mp");
self switchToWeapon("defaultweapon_mp");
self givemaxammo("defaultweapon_mp");
self enableInvulnerability();
self disableusability();
self disableweaponcycling();
self thread removedefaultgun();
self iPrintlnbold("Press [{+switchseat}] to disable");
self.defop = true;
}
}
removedefaultgun()
{
for(;Winky Winky
{
if(self changeseatbuttonpressed())
{
self takeweapon("defaultweapon_mp");
self enableusability();
self enableweaponcycling();
self notify("stop_finger");
wait 3;
self.defop = false;
wait 2;
self notify("stopDEFAULT");
}
wait 0.05;
}
}

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo