Results 1 to 6 of 6

Thread: Weapon help!

  1. #1
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts

    Weapon help!

    Hello guys, you know if you get a mp44? self setweaponslotweapon("NEED HELP","mp44_mp");
    So i can use primary or primaryb
    but i want that the weapon will change, wich i have in my hand. (which i have current in my hand)
    You know that?

  2. #2
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Code:
    	// replace current weapon
    	newWeapon = "mp44_mp";
    	player takeWeapon(player getCurrentWeapon());
    	player giveWeapon(newWeapon);
    	player switchToWeapon(newWeapon);
    timescale 0.01

  3. #3
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Crashes developer enabled server on ladders.

  4. #4
    Private
    Join Date
    Jul 2012
    Posts
    76
    Thanks
    9
    Thanked 56 Times in 38 Posts
    In CoD2 I always used this method:
    Code:
    newWeap = "mp44_mp";
    curWeap = player getCurrentWeapon();
    slot = "primary";
    if(player getWeaponSlotWeapon("primary") != curWeap)
        slot = "primaryb";
    player setWeaponSlotWeapon(slot, newWeap);
    Done!

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

    kung foo man (29th December 2012)

  6. #5
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts
    thank you all

  7. #6
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    There is a thank-you-button, please use it
    timescale 0.01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •