Results 1 to 7 of 7
  1. #1
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic

    different code for takeawayallweapons?

    Hey,

    I was looking for a code that only takes away current weapon or automatic spawn with intervention because if i use self takeawayallweapons(); then it removes my killstreaks too.

    Thnx for Helping already

  2. #2
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    Code:
                                self.curWeap = self getCurrentWeapon();
                                self takeWeapon(self.curWeap);
    	              self giveWeapon("cheytac_fmj_xmags_mp", 6, false);

  3. #3
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    ^That
    or just, self takeWeapon(self.getCurrentWeapon());

  4. #4
    Talamaur's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    25
    Reputation
    10
    Thanks
    10
    My Mood
    Blah
    Code:
    weaponList = self getWeaponsListAll();
    foreach(weaponName in weaponList) {
    	if(isKillstreakWeapon(weaponName)) continue;
    	self takeWeapon(weaponName);
    }
    Try this. It will take all weapons exclude killstreaks. Make sure you have included "maps\mp\_utility".
    Last edited by Talamaur; 02-22-2011 at 10:15 AM.
    My english skills too bad...

  5. The Following User Says Thank You to Talamaur For This Useful Post:

    mathieutje12 (02-28-2011)

  6. #5
    cgallagher21's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    1,583
    Reputation
    11
    Thanks
    296
    My Mood
    Busy
    Talamuar, why? It could be so much simpilar.

  7. #6
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    that code from talumaur works perfect thank you!
    Last edited by mathieutje12; 02-28-2011 at 08:47 AM.

  8. #7
    KickerOfAsses's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    46
    Reputation
    10
    Thanks
    5
    My Mood
    Lurking
    cgallagher21, if it could be simpler, why not post the code?

    Talamaur's code is the only I've found that will correctly take weapons without taking killstreaks. Great fix for gungame mods that I run.