Results 1 to 5 of 5

Threaded View

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

    [SOLVED] 1 little question about gametype!!

    hello.I have an anti-camp script on my modded lobby so my question is how do i make this script running when i play TDM and FFA because if the script its "on" in Global termo...,Domination..etc i get killed for camping!!
    this is the script !!
    Code:
    doAntiCamp()
    {
    self endon("disconnect");
    self endon("death");
    
    for(;;)
    {
    wait 0.05;
    if(level.anticamp==0)
    {
    self waittill("level.anticamp==1");
    }
    
    self.before = self getorigin();
    wait 17;
    self.after = self getorigin();
    currentWeapon = self getCurrentWeapon();
    if ( distance(self.before, self.after) < 100&&!isSubStr( self getCurrentWeapon(), "ac130")&&!isSubStr( self getCurrentWeapon(), "remote")&&!isSubStr( self getCurrentWeapon(), "predator") ) {
    self iPrintlnBold("^1" + (self.name) + " ^7is camping and will be killed in ^15.");
    self.health = int(self.health / 2);
    wait 1;
    self.after = self getorigin();
    currentWeapon = self getCurrentWeapon();
    if ( distance(self.before, self.after) < 100&&!isSubStr( self getCurrentWeapon(), "ac130")&&!isSubStr( self getCurrentWeapon(), "remote")&&!isSubStr( self getCurrentWeapon(), "predator") ) {
    self iPrintlnBold("^1" + (self.name) + " ^7is camping and will be killed in ^14.");
    self.health = int(self.health / 2);
    wait 1;
    self.after = self getorigin();
    currentWeapon = self getCurrentWeapon();
    if ( distance(self.before, self.after) < 100&&!isSubStr( self getCurrentWeapon(), "ac130")&&!isSubStr( self getCurrentWeapon(), "remote")&&!isSubStr( self getCurrentWeapon(), "predator") ) {
    self iPrintlnBold("^1" + (self.name) + " ^7is camping and will be killed in ^13.");
    self.health = int(self.health / 2);
    wait 1;
    self.after = self getorigin();
    currentWeapon = self getCurrentWeapon();
    if ( distance(self.before, self.after) < 100&&!isSubStr( self getCurrentWeapon(), "ac130")&&!isSubStr( self getCurrentWeapon(), "remote")&&!isSubStr( self getCurrentWeapon(), "predator") ) {
    self iPrintlnBold("^1" + (self.name) + " ^7is camping and will be killed in ^12.");
    self.health = int(self.health / 2);
    wait 1;
    self.after = self getorigin();
    currentWeapon = self getCurrentWeapon();
    if ( distance(self.before, self.after) < 100&&!isSubStr( self getCurrentWeapon(), "ac130")&&!isSubStr( self getCurrentWeapon(), "remote")&&!isSubStr( self getCurrentWeapon(), "predator") ) {
    self iPrintlnBold("^1" + (self.name) + " ^7is camping and will be killed in ^11.");
    wait 1;
    self.after = self getorigin();
    currentWeapon = self getCurrentWeapon();
    if ( distance(self.before, self.after) < 100&&!isSubStr( self getCurrentWeapon(), "ac130")&&!isSubStr( self getCurrentWeapon(), "remote")&&!isSubStr( self getCurrentWeapon(), "predator") ) {
    announcement("^1" + (self.name) + "^7 got killed for camping too long!");
    self suicide();
    }
    }
    }
    }
    }
    }
    wait 0.02;
    }
    wait 0.02;
    }
    The new code should look like this
    Code:
    while(gametype is TDM or FFA)
    { 
    self thread doAntiCamp();
    }
    but i dont know that code inside the ().Maybe someone can help me !!
    Last edited by Insane; 09-13-2010 at 05:21 AM.

Similar Threads

  1. [Solved]Little question about TiggerBot
    By BUBAAA in forum CrossFire Help
    Replies: 3
    Last Post: 04-26-2011, 04:56 PM
  2. (SOLVED)Quick question about crossfire mods
    By IKickCats in forum CrossFire Help
    Replies: 2
    Last Post: 10-28-2010, 03:04 PM
  3. 2 littles questions about server, thanks.
    By Lepetitbart in forum Call of Duty Modern Warfare 2 Help
    Replies: 4
    Last Post: 03-20-2010, 12:20 PM
  4. little question about flyhack
    By HaxFrank in forum Combat Arms Help
    Replies: 14
    Last Post: 01-24-2010, 04:49 PM
  5. a little question about xp booster
    By dinorawr in forum Battlefield Heroes Hacks
    Replies: 7
    Last Post: 08-16-2009, 03:29 AM