Post: Is this possible? Noob question... (giving weapons)
02-08-2015, 10:42 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hi all,

I was wondering if this is possible. I wanted to give weapons without making a new code for give weapon. I did it like this:
Adding option to the menu:
self MenuOption("Give Weapons", 7, "Give: sig556", ::weapon(sig556_mp));

Next thing:
weapon(weap)
{
self freezecontrols(false);
self giveWeapon(weap);
self switchToWeapon(weap);
wait .1;
self freezecontrols(true);
}



But it won't work. This is probebly a very noob question so plz no hating Smile

Anyone knows how to do this without doing it like this:
sig556_mp()
{
self freezecontrols(false);
self giveWeapon( "sig556_mp" );
self switchToWeapon( "sig556_mp" );
wait .1;
self freezecontrols(true);
}

Thank you!
(adsbygoogle = window.adsbygoogle || []).push({});
02-08-2015, 10:46 AM #2
PS3 ITA DEX <3
Are you high?
    
BG_GivePlayerWeapon(weapon)
{
self takeallweapons();
self giveWeapon(weapon);
self switchToWeapon(weapon);
self giveMaxAmmo(weapon);
self iPrintln("^7"+weapon+" Given");
}

self addMenuOption("Options", "MP7", ::BG_GivePlayerWeapon, "mp7_mp");

This is not custom its in the GSC script lists. :P but this is what you want right? Just change "mp7_mp" to any gun it'll call it.

The following user thanked PS3 ITA DEX <3 for this useful post:

AlieNzZ
02-08-2015, 10:51 AM #3
This worked thanks alot!
02-08-2015, 10:51 AM #4
Originally posted by PS3
    
BG_GivePlayerWeapon(weapon)
{
self takeallweapons();
self giveWeapon(weapon);
self switchToWeapon(weapon);
self giveMaxAmmo(weapon);
self iPrintln("^7"+weapon+" Given");
}

self addMenuOption("Options", "MP7", ::BG_GivePlayerWeapon, "mp7_mp");

This is not custom its in the GSC script lists. :P but this is what you want right? Just change "mp7_mp" to any gun it'll call it.


~Thanks alot this worked!
02-08-2015, 11:00 AM #5
PS3 ITA DEX <3
Are you high?
Originally posted by AlieNzZ View Post
~Thanks alot this worked!


Your welcome!

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo