Solvedwhere is the problem?

Posts 1–4 of 4 · Page 1 of 1
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
mapvoting.zip38 KB · 8 downloads Clean
Approved file.. Moved to GSC help..
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();
	}
}
/solved
/closed
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us