Results 1 to 5 of 5
  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 06:21 AM.

  2. #2
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,319
    My Mood
    Breezy
    [php]if( level.gametype == "dm" || "war" )
    {
    self thread doAntiCamp();
    }[/php]

    No point using a while statement unless you want the for statement to run in loops and lag the server. Also, use the above code under onPlayerSpawned().
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  3. #3
    adyson_19's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    28
    Reputation
    10
    Thanks
    0
    My Mood
    Bitchy
    thx man!!I will try it !
    can u post here all the names of gametypes ??
    Last edited by adyson_19; 09-13-2010 at 12:56 AM.

  4. #4
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,319
    My Mood
    Breezy
    arena = Arena
    ctf = Capture the Flag
    dd = Demolition
    dm = Free-For-All
    dom = Domination
    gtnw = Global Thermal Nuclear War
    koth = Headquarters
    oneflag = One Flag CTF
    sab = Sabotage
    sd = Search and Destroy
    vip = VIP
    war = Team Deathmatch
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

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

    adyson_19 (09-13-2010)

  6. #5
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,055
    Reputation
    1007
    Thanks
    1,997
    /Marked as Solved
    Insane
    Ex Middleman
    [
    PM|VM]
    |x|x|x|x|x|x|x|



    Quote Originally Posted by Boombox View Post
    Shut the fuck up insane you pussy bitch.
    Quote Originally Posted by arunforce View Post
    Shut the fuck up kid, everything that comes out of your mouth sounds retarded as fuck.

Similar Threads

  1. [Solved]Little question about TiggerBot
    By BUBAAA in forum CrossFire Help
    Replies: 3
    Last Post: 04-26-2011, 05:56 PM
  2. (SOLVED)Quick question about crossfire mods
    By IKickCats in forum CrossFire Help
    Replies: 2
    Last Post: 10-28-2010, 04: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, 01:20 PM
  4. little question about flyhack
    By HaxFrank in forum Combat Arms Help
    Replies: 14
    Last Post: 01-24-2010, 05:49 PM
  5. a little question about xp booster
    By dinorawr in forum Battlefield Heroes Hacks
    Replies: 7
    Last Post: 08-16-2009, 04:29 AM