Results 1 to 1 of 1
  1. #1
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,827
    Reputation
    3310
    Thanks
    74,424
    My Mood
    Breezy

    [Help] Detecting player hits and timers!

    I've been working on a mod for a few days and it's almost complete. I have a few problems. I will describe them below:

    OK. What I need is a thread that will detect and player tags and then peform some stuff. I have no idea where to start with that.

    I also need to have a timer that runs at the same time as everyone else. I looked at a few Zombie mods and they seem to use level thread blahtimer(); at the end of the init() thread after level thread OnPlayerConnect():

    [php]
    init()
    //blah blah
    //blah blah
    //end of the init() thread:

    level.rankTable[rankId][1] = tableLookup( "mp/ranktable.csv", 0, rankId, 1 );
    level.rankTable[rankId][2] = tableLookup( "mp/ranktable.csv", 0, rankId, 2 );
    level.rankTable[rankId][3] = tableLookup( "mp/ranktable.csv", 0, rankId, 3 );
    level.rankTable[rankId][7] = tableLookup( "mp/ranktable.csv", 0, rankId, 7 );

    precacheString( tableLookupIString( "mp/ranktable.csv", 0, rankId, 16 ) );

    rankId++;
    rankName = tableLookup( "mp/ranktable.csv", 0, rankId, 1 );
    }

    maps\mp\gametypes\_missions::buildChallegeInfo();

    level thread patientZeroWaiter();

    level thread onPlayerConnect();

    level thread blahtimer(); // <------
    }[/php]

    However, when I try that with mine, the timer doesn't appear but it does when I try under OnPlayerSpawned()!

    This is what my timer thread looks like:

    [php]playertimer()
    {
    level.counter = 60;
    while(level.counter > 0)
    {
    level.TimerText setText("^1Player will be chosen in: " + level.counter);
    wait 1;
    level.counter--;
    }
    level.TimerText setText("");
    level thread doPickPlayer();
    }[/php]

    One last question (shouldn't be TOO hard). How can you make Free-For-All have only one life?
    scr_dm_numlives doesn't work because you respawn after you die.
    EDIT - Just realised I posted in the wrong section Please move to Help section!
    Last edited by master131; 08-24-2010 at 10:29 PM.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7 *NEW* 2017 Update!
    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]

Similar Threads

  1. [Help Request] Help with god mode and ohk and ohk2
    By BledByNature in forum Vindictus Help
    Replies: 2
    Last Post: 11-02-2011, 05:39 AM
  2. [Help Request] HEY WHY IM HELPING EVERY BODY HERE AND NO ONE HELP ME!!!
    By sonik12317 in forum CrossFire Help
    Replies: 4
    Last Post: 08-07-2011, 02:49 AM
  3. [Solved] Need Help with Bypass Xtrap and game crash
    By Table in forum CrossFire Help
    Replies: 7
    Last Post: 07-06-2011, 08:11 AM
  4. [Question]How to detect if the player hits ground?
    By NOOBJr in forum Combat Arms Coding Help & Discussion
    Replies: 12
    Last Post: 03-16-2011, 06:02 AM
  5. [Help]Difference between VB6 and VB2005?
    By MaskedFox in forum Visual Basic Programming
    Replies: 1
    Last Post: 11-13-2007, 10:01 AM