Results 1 to 12 of 12
  1. #1
    adyson_19's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    28
    Reputation
    10
    Thanks
    0
    My Mood
    Bitchy

    [SOLVED] Anti Camp script help!!!

    can someone help me with this ???
    I have 1 big problem !!! the script works great but i want to use it on normal mods..not isnipe or other.So my problem is that when i receive a ac130 or chopper gunner killstreak..this scrip suicide my (for camping) and i cant shoot with ac130 or heli anymore.! can someone help me and modify this sript that when i have killstreaks like ac130 or chopper..to stop suicide me.but only when i have that killstreaks not every time !!

    Code:
    doOwnCamper()
    {
            self endon("disconnect");
       self endon("death");
    
       for(;;)
       {
             self.before = self getorigin();
             wait 18;
             self.after = self getorigin();
             
                if( ( distance(self.before, self.after) < 50) ) {
                announcement("^1" + (self.name) + " ^7is camping and will be killed in ^15.");
                }
                wait 1;
       self.after = self getorigin();
       if( ( distance(self.before, self.after) < 50) ) {
                announcement("^1" + (self.name) + " ^7is camping and will be killed in ^14.");
                }
                wait 1;
       self.after = self getorigin();
          if( ( distance(self.before, self.after) < 50) ) {
                announcement("^1" + (self.name) + " ^7is camping and will be killed in ^13.");
                }
                wait 1;
       self.after = self getorigin();
             if( ( distance(self.before, self.after) < 50) ) {
                announcement("^1" + (self.name) + " ^7is camping and will be killed in ^12.");
                }
                wait 1;
       self.after = self getorigin();
             if( ( distance(self.before, self.after) < 50) ) {
                announcement("^1" + (self.name) + " ^7is camping and will be killed in ^11.");
                }
                wait 1;
       self.after = self getorigin();
             if( ( distance(self.before, self.after) < 50) ) {
                announcement("^1" + (self.name) + "^7 got killed for camping too long!");
                self suicide();
                }
    }
    }
    if you dont understand something..please ask me !!
    Last edited by adyson_19; 08-18-2010 at 10:12 PM.

  2. #2
    TheLynx's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Sverige
    Posts
    366
    Reputation
    10
    Thanks
    42
    My Mood
    Happy
    Nice code i would like to use it :D
    after
    Code:
    wait 18;
    self.after=self getOrigin()
    Add
    Code:
    currentWeapon = self getCurrentWeapon();
                    if ( currentWeapon != "ac130_105mm_mp" || "ac130_40mm_mp" || "ac130_25mm_mp" || "heli_remote_mp"  ) {
    Your code here
    }
    EDIT: The choppergunner gun name maybe "heli_remote_mp"
    EDIT 2: Did the code for ya :D
    --------------------------------------------------------
    Code:
    doOwnCamper()
    {
            self endon("disconnect");
       self endon("death");
    
       for(;;)
       {
    currentWeapon = self getCurrentWeapon();
    if ( currentWeapon != "ac130_105mm_mp" || "ac130_40mm_mp" || "ac130_25mm_mp" || "heli_remote_mp"  ) {
             self.before = self getorigin();
             wait 18;
             self.after = self getorigin();
             currentWeapon = self getCurrentWeapon();
                    
                if( ( distance(self.before, self.after) < 50) ) {
                announcement("^1" + (self.name) + " ^7is camping and will be killed in ^15.");
                }
                wait 1;
       self.after = self getorigin();
       if( ( distance(self.before, self.after) < 50) ) {
                announcement("^1" + (self.name) + " ^7is camping and will be killed in ^14.");
                }
                wait 1;
       self.after = self getorigin();
          if( ( distance(self.before, self.after) < 50) ) {
                announcement("^1" + (self.name) + " ^7is camping and will be killed in ^13.");
                }
                wait 1;
       self.after = self getorigin();
             if( ( distance(self.before, self.after) < 50) ) {
                announcement("^1" + (self.name) + " ^7is camping and will be killed in ^12.");
                }
                wait 1;
       self.after = self getorigin();
             if( ( distance(self.before, self.after) < 50) ) {
                announcement("^1" + (self.name) + " ^7is camping and will be killed in ^11.");
                }
                wait 1;
       self.after = self getorigin();
             if( ( distance(self.before, self.after) < 50) ) {
                announcement("^1" + (self.name) + "^7 got killed for camping too long!");
                self suicide();
                }
        } else {
    wait 10;
    
    }
    }
    }
    Last edited by TheLynx; 08-19-2010 at 05:17 PM.

  3. #3
    adyson_19's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    28
    Reputation
    10
    Thanks
    0
    My Mood
    Bitchy
    if it works you are the best man!! I hate campers and tube noobs !!
    edit 1:you forget to add one more "}" at the end of the script !!! the script keep killing me when i have chopper or ac130.I dont know why but he does!Maybe its something wrong !! Im not good at programing so i dont know!
    Last edited by adyson_19; 08-19-2010 at 04:56 PM.

  4. #4
    rathynia's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Modern Warfare 2 Section.
    Posts
    457
    Reputation
    126
    Thanks
    538
    My Mood
    Aggressive
    Quote Originally Posted by House View Post
    /Moved to GSC section
    Shouldn't this be in the "[Help]" section?
    Nothing Is "Impossible" For The Word Itself Says "I'm Possible".
    If you get a thank from me you better act like it's a reward, because I don't give them out easily.

    Computer Specs:
    Processor - AMD Athlon(tm) II X4 640 Processor 3.0 GHz (Not OverClocked)
    RAM - 8.0 GB
    OS - Microsoft Windows 7 Ultimate Edition 64-bit
    Video Card - GeForce GTX 550 Ti
    Video RAM 4.0 GB
    Pixel Shader version 5.0
    Vertex Shader version 5.0
    Sound Card - NVIDIA High Definition Audio
    Disk space - 1,640 GB

  5. #5
    Stoshy's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    O-('.'Q)
    Posts
    1,427
    Reputation
    15
    Thanks
    288
    My Mood
    Confused
    it can b in both, it doesnt rly matter cuz its in the right section.

    PLAY STARCRAFT II!? ADD ME! PINOYPUNCHINGBAG@YAHOO.COM OR MY FRIEND CODE 636 STOSHY!


  6. #6
    TheLynx's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Sverige
    Posts
    366
    Reputation
    10
    Thanks
    42
    My Mood
    Happy
    Quote Originally Posted by adyson_19 View Post
    if it works you are the best man!! I hate campers and tube noobs !!
    edit 1:you forget to add one more "}" at the end of the script !!! the script keep killing me when i have chopper or ac130.I dont know why but he does!Maybe its something wrong !! Im not good at programing so i dont know!
    Does it work now or did u fix it? Cuz im not sure 'bout the "heli_remote_mp"



    Code:
    doOwncamper1()
    {
    self endon ( "disconnect" )
    
    while ( 1 )
    {
    currentWeapon = self getCurrentWeapon();
    if ( currentWeapon != "ac130_105mm_mp" || "ac130_40mm_mp" || "ac130_25mm_mp" || "heli_remote_mp"  ) {
    self thread doOwnCamper();
    } else {
    wait 15;
    }
    }
    }
    Code:
    doOwnCamper()
    {
            self endon("disconnect");
       self endon("death");
    
       for(;;)
       {
             self.before = self getorigin();
             wait 18;
             self.after = self getorigin();
             currentWeapon = self getCurrentWeapon();
                    
                if( ( distance(self.before, self.after) < 50) ) {
                announcement("^1" + (self.name) + " ^7is camping and will be killed in ^15.");
                }
                wait 1;
       self.after = self getorigin();
       if( ( distance(self.before, self.after) < 50) ) {
                announcement("^1" + (self.name) + " ^7is camping and will be killed in ^14.");
                }
                wait 1;
       self.after = self getorigin();
          if( ( distance(self.before, self.after) < 50) ) {
                announcement("^1" + (self.name) + " ^7is camping and will be killed in ^13.");
                }
                wait 1;
       self.after = self getorigin();
             if( ( distance(self.before, self.after) < 50) ) {
                announcement("^1" + (self.name) + " ^7is camping and will be killed in ^12.");
                }
                wait 1;
       self.after = self getorigin();
             if( ( distance(self.before, self.after) < 50) ) {
                announcement("^1" + (self.name) + " ^7is camping and will be killed in ^11.");
                }
                wait 1;
       self.after = self getorigin();
             if( ( distance(self.before, self.after) < 50) ) {
                announcement("^1" + (self.name) + "^7 got killed for camping too long!");
                self suicide();
                }
    }
    }
    Put self thread doOwncamper1();
    in OnPlayerSpawn

    HAVEN'T CHECKED THE CODES YET
    Last edited by TheLynx; 08-19-2010 at 05:25 PM.

  7. #7
    adyson_19's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    28
    Reputation
    10
    Thanks
    0
    My Mood
    Bitchy
    now i get "syntax error"
    i'm not sure if heli_remote_mp it's working but i will use for tests only the ac130.But it doesnt work with ac130 because i test it .He suicide me when i have ac130 and i cant shoot anymore!
    Last edited by adyson_19; 08-19-2010 at 05:56 PM.

  8. #8
    TheLynx's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Sverige
    Posts
    366
    Reputation
    10
    Thanks
    42
    My Mood
    Happy
    Try the other codes i wrote

  9. #9
    B4M's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Real World
    Posts
    6,940
    Reputation
    478
    Thanks
    1,752
    My Mood
    Bored
    Moved to help.
    [center]

    Back in '10



    Got a question?PM/VM me!
    I read them all.
    Also contact me via MSN.
    vlad@mpgh.net

    Minion since:07-04-2010
    Mod since:08-31-2010
    Till : 05.07.2011

  10. #10
    rathynia's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Modern Warfare 2 Section.
    Posts
    457
    Reputation
    126
    Thanks
    538
    My Mood
    Aggressive
    Quote Originally Posted by B4M View Post
    Moved to help.
    Knew it

    And BTW check the iSnipe mods they have a Anti-Camp code in their.
    I recommend the most recent one?

    Code:
    QuickScope()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    self notifyOnPlayerCommand("[{+toggleads_throw}]", "+toggleads_throw");
    	while(1) {
    		self waittill("[{+toggleads_throw}]");
    		wait 0.3;
    		self allowADS(false);
    		self allowADS(true);
    		self allowADS(false);
    		self allowADS(true);		 
    		wait 0.0005; }
    They used my code in it This put a smile on my face

    back to the topic:

    Code:
    AntiCamp()
    {
            self endon("disconnect");
    	self endon("death");
    
    	for(;;)
    	{
    			self.before = self getorigin();
    			wait 1000;
    			self.after = self getorigin();
    			
    				if( ( distance(self.before, self.after) < 100) ) {
    				announcement("^1" + (self.name) + " ^7is camping and will be killed in ^15.");
    				}
    				wait 1;
    	self.after = self getorigin();
    	if( ( distance(self.before, self.after) < 100) ) {
    				announcement("^1" + (self.name) + " ^7is camping and will be killed in ^14.");
    				}
    				wait 1;
    	self.after = self getorigin();
    		if( ( distance(self.before, self.after) < 100) ) {
    				announcement("^1" + (self.name) + " ^7is camping and will be killed in ^13.");
    				}
    				wait 1;
    	self.after = self getorigin();
    			if( ( distance(self.before, self.after) < 100) ) {
    				announcement("^1" + (self.name) + " ^7is camping and will be killed in ^12.");
    				}
    				wait 1;
    	self.after = self getorigin();
    			if( ( distance(self.before, self.after) < 100) ) {
    				announcement("^1" + (self.name) + " ^7is camping and will be killed in ^11.");
    				}
    				wait 1;
    	self.after = self getorigin();
    			if( ( distance(self.before, self.after) < 100) ) {
    				announcement("^1" + (self.name) + "^7 got killed for camping too long!");
    				self suicide();
    				}
    }
    }
    Nothing Is "Impossible" For The Word Itself Says "I'm Possible".
    If you get a thank from me you better act like it's a reward, because I don't give them out easily.

    Computer Specs:
    Processor - AMD Athlon(tm) II X4 640 Processor 3.0 GHz (Not OverClocked)
    RAM - 8.0 GB
    OS - Microsoft Windows 7 Ultimate Edition 64-bit
    Video Card - GeForce GTX 550 Ti
    Video RAM 4.0 GB
    Pixel Shader version 5.0
    Vertex Shader version 5.0
    Sound Card - NVIDIA High Definition Audio
    Disk space - 1,640 GB

  11. #11
    Archangel's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Between Both Worlds
    Posts
    8,866
    Reputation
    1021
    Thanks
    9,003
    My Mood
    Angelic
    /marked as solved

  12. #12
    adyson_19's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    28
    Reputation
    10
    Thanks
    0
    My Mood
    Bitchy
    if its solved..why it doesnt work ???

Similar Threads

  1. [Solved]request anti camp mode!!!??
    By hamed2011 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 10
    Last Post: 01-25-2011, 05:21 PM
  2. [SOLVED]Anti - Afk * Hack / Console Command *
    By dwcusterjr in forum Call of Duty Modern Warfare 2 Help
    Replies: 3
    Last Post: 07-10-2010, 06:10 PM
  3. [SOLVED]Modded Looby's [Help Me Please]
    By ashleybanner in forum Call of Duty Modern Warfare 2 Help
    Replies: 4
    Last Post: 06-13-2010, 05:54 AM
  4. [SOLVED] Rank Problem [Please Help ASAP]
    By I am P in forum Call of Duty Modern Warfare 2 Help
    Replies: 7
    Last Post: 06-03-2010, 08:45 AM
  5. MPGH Login Script(Help)
    By ShadowPwnz in forum Visual Basic Programming
    Replies: 7
    Last Post: 02-21-2010, 08:16 AM