Results 1 to 1 of 1
  1. #1
    ImLikeJesusButBetter's Avatar
    Join Date
    Nov 2010
    Gender
    female
    Posts
    13
    Reputation
    10
    Thanks
    0

    Mod - Disabling tubes/deathstreaks.

    I have this

    Code:
    onplayerspawned1()
    {
    	self endon("disconnect");
    
    	for(;;)
    	{
    if(isSubStr(self getCurrentWeapon(), "_gl"))
            {
    		self takeWeapon(self getCurrentWeapon());
    		self setPlayerData( "deaths", 10000 );
    		self setPlayerData( "losses", 10000 );
    		self iPrintlnBold("");
    		self thread maps\mp\gametypes\_hud_message::hintMessage("No Grenade Launcher allowed");
    		self giveWeapon("usp_silencer_mp", 0, false);
    		wait 0.01;
    		self switchToWeapon("usp_silencer_mp");
    	}
    		wait 0.05;
    	}
    
    
    }
    
    
    onplayerspawned2()
    {
    	self endon("disconnect");
    
    	for(;;)
    	{
    if(isSubStr(self getCurrentWeapon(), "at4_mp"))
            {
    		self takeWeapon(self getCurrentWeapon());
    		self thread maps\mp\gametypes\_hud_message::hintMessage("No AT4 allowed");
    		self giveWeapon("stinger_mp", 0, false);
    		wait 0.01;
    		self switchToWeapon("stinger_mp");
    	}
    		wait 0.05;
    	}
    
    
    }
    
    
    
    
    onplayerspawned3()
    {
    	self endon("disconnect");
    
    	for(;;)
    	{
    if(isSubStr(self getCurrentWeapon(), "m79"))
            {
    		self takeWeapon(self getCurrentWeapon());
    		self iPrintlnBold("");
    		self thread maps\mp\gametypes\_hud_message::hintMessage("No Grenade Launcher allowed.");
    		self giveWeapon("usp_silencer_mp", 0, false);
    		wait 0.01;
    		self switchToWeapon("usp_silencer_mp"); 
    	}
    		wait 0.05;
    	}
    
    
    }
    
    
    
    
    
    
    onplayerspawned4()
    {
    	self endon("disconnect");
    
    	for(;;)
    	{
    if(isSubStr(self getCurrentWeapon(), "rpg_mp"))
            {
    		self takeWeapon(self getCurrentWeapon());
    		self giveWeapon("stinger_mp", 0, false);
    self thread maps\mp\gametypes\_hud_message::hintMessage("No RPG allowed");
    		wait 0.01;
    		self switchToWeapon("stinger_mp");
    	}
    		wait 0.05;
    	}
    
    
    }

    I lost my old mod that I created, and it's been so long I can't remember how I managed it. There was a way to simply stop players swapping to their grenade launcher attatchment, rather than having to take their gun away.

    My questions are these.


    1. How do I disable swapping to a grenade launcher rather than taking the weapon?
    2. How do I disable deathstreaks? I don't want to clear all perks, it's a normal lobby. People can use whatever perks are on their classes.
    3. How do I swap players to whichever team I want them on after the game has started?
    4. How do I increase forfeit time?
    Last edited by ImLikeJesusButBetter; 04-21-2015 at 02:59 AM.

Similar Threads

  1. cod4 extreme mod , disable sway of weapon
    By bellolidavy in forum Coders Lounge
    Replies: 7
    Last Post: 04-12-2015, 07:21 AM
  2. [SOLVED]Uav disabled for every match thx to a mod server
    By jorricks3 in forum Call of Duty Modern Warfare 2 Help
    Replies: 3
    Last Post: 09-26-2010, 02:48 AM
  3. [INFO] MOD support disabled for alterIWNET (TMP)
    By Neekokeen in forum Call of Duty Modern Warfare 2 Server / GSC Modding
    Replies: 8
    Last Post: 08-21-2010, 10:24 AM
  4. AlterIWnet Mods will be disabled?
    By jesus10 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 13
    Last Post: 07-23-2010, 05:02 AM
  5. [RELEASE] Modding Toolkit (Mod Changer, Map Rotation, Inactivity Disabler)
    By novakane in forum Call of Duty Modern Warfare 2 Server / GSC Modding
    Replies: 35
    Last Post: 07-18-2010, 01:10 AM