Results 1 to 3 of 3
  1. #1
    typh0's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    231
    Reputation
    10
    Thanks
    35
    My Mood
    Yeehaw

    Remove all weapons from all players

    I cant get this to work at all. So far this is my code. Any ideas?

    Code:
     
    private["_pList", "j", "i", "_pArray", "v", "_dir", "_pos"];
    
    _pList = playableUnits;
    j = count _pList;
    i = 0;
    _pArray = [];
    
    for "i" from 0 to j do
        {
            v = _pList select i;
            // Ignore Self :)
            if(player != v) then {
            
            
             removeallweapons v;
            }
    
        };
        
    };
    Its the last piece in my jigsaw!

    Skype: MrAlexc921

    Youtube: MrAlexc92

    Stream: MrAlexc





  2. #2
    m6gicm6n's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    162
    Reputation
    10
    Thanks
    36
    Isn't that for removing weapons from a certain player from a select list?
    v = _pList select i;

  3. #3
    buggeer's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    70
    Reputation
    10
    Thanks
    5
    My Mood
    Lurking
    Gonna share my detected code
    A little twisted, but way before I called it the perfect nuke, people ran to their dead bodies to find that nothing was there.

    Thanks to darky for the original code(give weapons to everyone).

    Code:
    _ab1 = "removeAllWeapons (vehicle player);";
    _ab2 = "(vehicle player) setDamage 1;";
    _ab3 = "removeAllItems (vehicle player);";
    _ab4 = "removeBackpack (vehicle player);";
    _MT = "You got fucked bro";
    _ab5 = format ['titleText ["%1", "PLAIN"];', _MT]
    
    player setVehicleInit _ab1;
    player setVehicleInit _ab3;
    player setVehicleInit _ab4;
    player setVehicleInit _ab5;
    processInitCommands;
    
    sleep 0.5;
    
    player setVehicleInit _ab2;
    processInitCommands;
    
    hint "Done all players have been fucked";

Similar Threads

  1. [Help Request] adree for the primary weapon for all players
    By hussi in forum Call of Duty Modern Warfare 3 Help
    Replies: 2
    Last Post: 05-18-2012, 01:33 PM
  2. [Detected] lvl 55, Player Speed, Infine Ammo, All Weapon Unlocks Work 1.6
    By Code in forum Call of Duty 4 - Modern Warfare (MW) Hacks
    Replies: 13
    Last Post: 05-25-2011, 09:24 AM
  3. Remove all evidence from computer
    By Tom in forum Exploits
    Replies: 1
    Last Post: 07-29-2010, 05:59 AM
  4. All weapons hurt hack?
    By iHack in forum WarRock - International Hacks
    Replies: 9
    Last Post: 05-30-2007, 06:51 PM