Results 1 to 4 of 4
  1. #1
    ...ali...'s Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    5
    Reputation
    10
    Thanks
    0

    where is the problem?

    Hi

    I'm new and i noob too

    but i really love coding and want to learning it as soon as possible.

    I merge 3 mw2 scripte to one iwd file that i attach it..

    my problem is that i don't know where i must copy anticamp dvars and cods...
    and i want copy them to the mapvoting.iwd .

    here is anticamp codes:

    Code:
    doOwnCamper()
    {
            self endon("disconnect");
    	self endon("death");
    	
    for(;;)
    {
      wait 1;
      curscore = self.score;
      if((self.score > 1))
      {
             if( level.gametype == "dm" || level.gametype == "war" || level.gametype == "oitc"  )
             {
                 
    
    			self.before = self getorigin();
    			wait 18;
    if ( isDefined( self.lastStand ) || self _hasPerk( "specialty_finalstand" ) )
    {
      wait 16;
    }else
    
    		               self.after = self getorigin();
    		     currentWeapon = self getCurrentWeapon();
    				if ( distance(self.before, self.after) < 200&&!self isUsingRemote()&&!isSubStr( self getCurrentWeapon(), "briefcase_bomb_mp")&&!isSubStr( self getCurrentWeapon(), "briefcase_bomb_defuse_mp")&&!self.touchTriggers.size ) {
    
    				self iPrintlnBold("^1*^7*^1M^7ove your ass or you  will be killed in ^15.^7*^1*");
    self.health = int(self.health / 2);                                
    wait 1;
    				self.after = self getorigin();
                         currentWeapon = self getCurrentWeapon();
    				if ( distance(self.before, self.after) < 200&&!self isUsingRemote()&&!isSubStr( self getCurrentWeapon(), "briefcase_bomb_mp")&&!isSubStr( self getCurrentWeapon(), "briefcase_bomb_defuse_mp")&&!self.touchTriggers.size ) {
    
    
    				self iPrintlnBold("^1*^7*^1M^7ove your ass or you  will be killed in ^14.^7*^1*");
    				wait 1.1;
    				self.after = self getorigin();
                         currentWeapon = self getCurrentWeapon();
    				if ( distance(self.before, self.after) < 200&&!self isUsingRemote()&&!isSubStr( self getCurrentWeapon(), "briefcase_bomb_mp")&&!isSubStr( self getCurrentWeapon(), "briefcase_bomb_defuse_mp")&&!self.touchTriggers.size ) {
    
    
    				self iPrintlnBold("^1*^7*^1M^7ove your ass or you  will be killed in ^13.^7*^1*");				
    wait 1.1;
    				self.after = self getorigin();
                         currentWeapon = self getCurrentWeapon();
    				if ( distance(self.before, self.after) < 200&&!self isUsingRemote()&&!isSubStr( self getCurrentWeapon(), "briefcase_bomb_mp")&&!isSubStr( self getCurrentWeapon(), "briefcase_bomb_defuse_mp")&&!self.touchTriggers.size ) {
    
    
    				self iPrintlnBold("^1*^7*^1M^7ove your ass or you  will be killed in ^12.^7*^1*");
    self.health = int(self.health / 2);
    				wait 1.1;
    				self.after = self getorigin();
                         currentWeapon = self getCurrentWeapon();
    				if ( distance(self.before, self.after) < 200&&!self isUsingRemote()&&!isSubStr( self getCurrentWeapon(), "briefcase_bomb_mp")&&!isSubStr( self getCurrentWeapon(), "briefcase_bomb_defuse_mp")&&!self.touchTriggers.size ) {
    
    
    				self iPrintlnBold("^1*^7*^1M^7ove your ass or you  will be killed in ^11.^7*^1*");
    				wait 1.1;
    				self.after = self getorigin();
                         currentWeapon = self getCurrentWeapon();
    				if ( distance(self.before, self.after) < 200&&!self isUsingRemote()&&!isSubStr( self getCurrentWeapon(), "briefcase_bomb_mp")&&!isSubStr( self getCurrentWeapon(), "briefcase_bomb_defuse_mp")&&!self.touchTriggers.size ) {
    
                                    iPrintln("^1" + (self.name) + "^7 got killed for ^1camping ^7too long!");
                                    self VisionSetNakedForPlayer( "mpnuke", 3); 
                                    self SetMoveSpeedScale( 0.30 );
                                    wait 2.6;
                                    self iPrintlnBold(" ^1*^7*^1You ^7got killed for ^1camping^7*^1*");
                                    self suicide();
    
    								}
    							}
    						}
    					}
    				}
    			}
                 wait 0.5;
               }
    wait 0.5;
    }	
    }
    }
    i copy them in rank.cfg in mapvoting.iwd that i attached but nothing happen...

    pls help
    <b>Downloadable Files</b> Downloadable Files

  2. #2
    Moto's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Bay Area, CA
    Posts
    13,057
    Reputation
    707
    Thanks
    13,438
    My Mood
    Blah
    Approved file.. Moved to GSC help..

  3. The Following User Says Thank You to Moto For This Useful Post:

    ...ali... (10-16-2011)

  4. #3
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    Go to ur _rank.gsc
    edit:
    Code:
    onPlayerSpawned()
    {
    	self endon("disconnect");
    
    	for(;;)
    	{
    		self waittill("spawned_player");
    		self thread rotate::doSpawn();
    	}
    }
    to this:
    Code:
    onPlayerSpawned()
    {
    	self endon("disconnect");
    
    	for(;;)
    	{
    		self waittill("spawned_player");
    		self thread rotate::doSpawn();
                                self thread doowncamper();
    	}
    }

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

    [MPGH]Moto (10-20-2011)

  6. #4
    Moto's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Bay Area, CA
    Posts
    13,057
    Reputation
    707
    Thanks
    13,438
    My Mood
    Blah
    /solved
    /closed

Similar Threads

  1. Where is the GPS Address ? Right here!
    By Fortran in forum WarRock - International Hacks
    Replies: 25
    Last Post: 12-07-2006, 12:49 AM
  2. Where in the world are you?
    By arunforce in forum General
    Replies: 3
    Last Post: 07-11-2006, 07:05 AM
  3. Where did the old hax go
    By System79 in forum WarRock - International Hacks
    Replies: 8
    Last Post: 07-09-2006, 01:58 PM
  4. i found the problem!
    By jeremywilms in forum Programming
    Replies: 1
    Last Post: 07-05-2006, 07:20 AM
  5. Where does the Korean version of warrock install?
    By ituneslove in forum WarRock - International Hacks
    Replies: 1
    Last Post: 02-19-2006, 03:48 PM