Post: (.GSC, Script) Give All Weapons Works For (MP) And (ZM)
10-06-2014, 01:25 AM #1
CrEaTiiOn_420
Can’t trickshot me!
(adsbygoogle = window.adsbygoogle || []).push({}); hey just made this for some random reason and didnt bother to test it but pretty sure it works lulz if it does tell me and ill record it for people to see what it does


    RandomWeapon()
{
self.Weapon = strTok("870mcs_mp, ai_tank_drone_gun_mp, ai_tank_drone_rocket_mp, ai_tank_drop_mp, airstrike_mp, an94_mp, as50_mp, autoturret_mp, ballista_mp, beretta93r_dw_mp, beretta93r_lh_mp, beretta93r_mp, bouncingbetty_mp, briefcase_bomb_defuse_mp, briefcase_bomb_mp, chopper_minigun_mp, claymore_mp, cobra_20mm_comlink_mp, cobra_20mm_mp, concussion_grenade_mp, counteruav_mp, crossbow_mp, defaultweapon_mp, destructible_car_mp, dog_bite_mp, dogs_mp, dsr50_mp, dualoptic_an94_mp, dualoptic_hamr_mp, dualoptic_hk416_mp, dualoptic_lsat_mp, dualoptic_mk48_mp, dualoptic_qbb95_mp, dualoptic_sa58_mp, dualoptic_saritch_mp, dualoptic_scar_mp, dualoptic_sig556_mp, dualoptic_tar21_mp, dualoptic_type95_mp, dualoptic_xm8_mp, emp_grenade_mp, emp_mp, evoskorpion_mp, explodable_barrel_mp, explosive_bolt_mp, fhj18_mp, fiveseven_dw_mp, fiveseven_lh_mp, fiveseven_mp, flash_grenade_mp, fnp45_dw_mp, fnp45_lh_mp, fnp45_mp, frag_grenade_mp, gl_an94_mp, gl_hk416_mp, gl_sa58_mp, gl_saritch_mp, gl_scar_mp, gl_sig556_mp, gl_tar21_mp, gl_type95_mp, gl_xm8_mp, hamr_mp, hatchet_mp, heli_gunner_rockets_mp, helicopter_comlink_mp, helicopter_guard_mp, helicopter_player_firstperson_mp, helicopter_player_gunner_mp, hk416_mp, insas_mp, inventory_ai_tank_drop_mp, inventory_m32_drop_mp, inventory_m32_mp, inventory_minigun_drop_mp, inventory_minigun_mp, inventory_missile_drone_mp, inventory_supplydrop_mp, judge_dw_mp, judge_lh_mp, judge_mp, kard_dw_mp, kard_lh_mp, kard_mp, kard_wager_mp, killstreak_ai_tank_mp, killstreak_qrdrone_mp, killstreak_remote_turret_mp, killstreak_uav_mp, knife_ballistic_mp, knife_held_mp, knife_mp, ksg_mp, littlebird_guard_minigun_mp, lsat_mp, m32_drop_mp, m32_mp, m32_wager_mp, microwave_turret_mp, microwaveturret_drop_mp, microwaveturret_mp, minigun_drop_mp, minigun_mp, minigun_wager_mp, missile_drone_mp, missile_drone_projectile_mp, missile_swarm_mp, missile_swarm_projectile_mp, mk48_mp, mp7_mp, nonepda_hack_mp, pdw57_mp, peacekeeper_mp, planemortar_mp, proximity_grenade_aoe_mp, proximity_grenade_mp, qbb95_mp, qcw05_mp, qrdrone_turret_mp, radar_mp, radardirection_mp, rc_car_weapon_mp, rcbomb_mp, remote_missile_bomblet_mp, remote_missile_missile_mp, remote_missile_mp, remote_mortar_missile_mp, remote_mortar_mp, riotshield_mp, sa58_mp, saiga12_mp, saritch_mp, satchel_charge_mp, scar_mp, scavenger_item_hack_mp, scavenger_item_mp, sensor_grenade_mp, sf_an94_mp, sf_evoskorpion_mp, sf_hk416_mp, sf_insas_mp, sf_mp, 7_mp, sf_pdw57_mp, sf_peacekeeper_mp, sf_qcw05_mp, sf_sa58_mp, sf_saritch_mp, sf_scar_mp, sf_sig556_mp, sf_tar21_mp, sf_type95_mp, sf_vector_mp, sf_xm8_mp, sig556_mp, smaw_mp, smoke_center_mp, srm1216_mp, sticky_grenade_mp, straferun_gun_mp, straferun_mp, straferun_rockets_mp, supplydrop_mp, svu_mp, tactical_insertion_mp, tar21_mp, trophy_system_mp, turret_drop_mp, type95_mp, usrpg_mp, vector_mp, willy_pete_mp, xm8_mp");
self.RandWeapon = RandomInt(self.Weapon.size);
self giveWeapon(self.Weapon[self.RandWeapon], 0, false);
self switchToWeapon(self.Weapon[self.RandWeapon]);
}


if you like it and use it in a menu then please give credit <3 lmfao

This Is Every Weapon For MP But If You Guys Like This Function I Will Add Every Single Weapon Too It For ZM

creadit:
    
me for making it Winky Winky
xReaperv3 for better way to code the the script
Last edited by CrEaTiiOn_420 ; 10-06-2014 at 11:52 PM.

The following 3 users say thank you to CrEaTiiOn_420 for this useful post:

osamabinlagging, Son-Of-A-Father, star2000
10-06-2014, 01:42 AM #2
PureGoldMod
Do a barrel roll!
Why did it need it's own thread...?
10-06-2014, 01:44 AM #3
CrEaTiiOn_420
Can’t trickshot me!
so if people like it i can update it with every single weapon then after that i can post it on the managed codes list
10-06-2014, 01:53 AM #4
Originally posted by 420 View Post
hey just made this for some random reason and didnt bother to test it but pretty sure it works lulz if it does tell me and ill record it for people to see what it does


    AllWeapons()
{
self endon("death");
self endon("disconnect");
self iPrintln("All Weapons Given\nPress [{weapnext}] For The Next Weapon");
wait 2.0;
rand = randomintrange(1,16);
if (rand == 1)
{
if(self secondaryoffhandbuttonpressed())
{
self giveWeapon( "870mcs_mp" );
self switchToWeapon( "870mcs_mp" );
}
}
if (rand == 2)
{
if(self secondaryoffhandbuttonpressed())
{
self giveWeapon( "ai_tank_drone_gun_mp" );
self switchToWeapon( "ai_tank_drone_gun_mp" );
}
}
if (rand == 3)
{
if(self secondaryoffhandbuttonpressed())
{
self giveWeapon( "ai_tank_drone_rocket_mp" );
self switchToWeapon( "ai_tank_drone_rocket_mp" );
}
}
if (rand == 4)
{
if(self secondaryoffhandbuttonpressed())
{
self giveWeapon( "ai_tank_drop_mp" );
self switchToWeapon( "ai_tank_drop_mp" );
}
}
if (rand == 5)
{
if(self secondaryoffhandbuttonpressed())
{
self giveWeapon( "airstrike_mp" );
self switchToWeapon( "airstrike_mp" );
}
}
if (rand == 6)
{
if(self secondaryoffhandbuttonpressed())
{
self giveWeapon( "an94_mp" );
self switchToWeapon( "an94_mp" );
}
}
if (rand == 7)
{
if(self secondaryoffhandbuttonpressed())
{
self giveWeapon( "as50_mp" );
self switchToWeapon( "as50_mp" );
}
}
if (rand == Cool Man (aka Tustin)
{
if(self secondaryoffhandbuttonpressed())
{
self giveWeapon( "auto_gun_turret_mp" );
self switchToWeapon( "auto_gun_turret_mp" );
}
}
if (rand == 9)
{
if(self secondaryoffhandbuttonpressed())
{
self giveWeapon( "autoturret_mp" );
self switchToWeapon( "autoturret_mp" );
}
}
if (rand == 10)
{
if(self secondaryoffhandbuttonpressed())
{
self giveWeapon( "ballista_mp" );
self switchToWeapon( "ballista_mp" );
}
}
if (rand == 11)
{
if(self secondaryoffhandbuttonpressed())
{
self giveWeapon( "beretta93r_dw_mp" );
self switchToWeapon( "beretta93r_dw_mp" );
}
}
if (rand == 12)
{
if(self secondaryoffhandbuttonpressed())
{
self giveWeapon( "beretta93r_lh_mp" );
self switchToWeapon( "beretta93r_lh_mp" );
}
}
if (rand == 13)
{
if(self secondaryoffhandbuttonpressed())
{
self giveWeapon( "beretta93r_mp" );
self switchToWeapon( "beretta93r_mp" );
}
}
if (rand == 14)
{
if(self secondaryoffhandbuttonpressed())
{
self giveWeapon( "bouncingbetty_mp" );
self switchToWeapon( "bouncingbetty_mp" );
}
}
if (rand == 15)
{
if(self secondaryoffhandbuttonpressed())
{
self giveWeapon( "briefcase_bomb_defuse_mp" );
self switchToWeapon( "briefcase_bomb_defuse_mp" );
}
}
self Thread AllWeapons();
}


if you like it and use it in a menu then please give credit <3 lmfao

This Is NOT!! Every Weapon But If You Guys Like This Function I Will Add Every Single Weapon Too It For MP And Another For ZM


You could have reduced this code to a few lines. All you needed to do was put each weapon as a value in an array and then get the selected weapon from the array. No need for 13/14 if statements.

The following user thanked Taylors Bish for this useful post:

xJessex
10-06-2014, 01:55 AM #5
CrEaTiiOn_420
Can’t trickshot me!
Originally posted by Taylors
You could have reduced this code to a few lines. All you needed to do was put each weapon as a value in an array and then get the selected weapon from the array. No need for 13/14 if statements.


yea i kinda rushed and didnt think of doing that thanks <3
10-06-2014, 01:58 AM #6
Originally posted by 420 View Post
yea i kinda rushed and didnt think of doing that thanks <3


Also [{+weapnext}] is not SecondaryOffHandButtonPressed(). Weapnext is Triangle, and SecondaryOffHandButtonPressed is L2.
10-06-2014, 01:58 AM #7
Wow this helped me so much it works, stopped my freezing.
10-06-2014, 02:00 AM #8
CrEaTiiOn_420
Can’t trickshot me!
Originally posted by Taylors
Also [{+weapnext}] is not SecondaryOffHandButtonPressed(). Weapnext is Triangle, and SecondaryOffHandButtonPressed is L2.


i tried to make it all triangle and someone said SecondaryOffHandButtonPressed() was triangle so yeah lol
10-06-2014, 02:18 AM #9
Originally posted by 420 View Post
i tried to make it all triangle and someone said SecondaryOffHandButtonPressed() was triangle so yeah lol


That someone doesn't know what they're talking about.
10-06-2014, 04:14 AM #10
Shark
Retired.
another pointless release on another pointless thread...

The following 7 users say thank you to Shark for this useful post:

ItsLollo1000, seb5594, TheSaltCracka, Winter, xexDELL, xReaperv3

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo