Results 1 to 8 of 8
  1. #1
    TrueTom96's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    43
    Reputation
    10
    Thanks
    0
    My Mood
    Inspired

    On Taking Damage Function

    on what position has this function be?

    Function:
    [PHP]if ( self isAtBrinkOfDeath() )
    {
    //Code here
    }[/PHP]

  2. #2
    spiritwo's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Rochester, NY
    Posts
    709
    Reputation
    17
    Thanks
    76
    My Mood
    Happy
    What exactly are you asking? Your wording is kind of funny.
    --
    "Life is tough. It's tougher if you're stupid."

    Spiritwo |






  3. #3
    TrueTom96's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    43
    Reputation
    10
    Thanks
    0
    My Mood
    Inspired
    i wan to do somethingliek this

    [php]if ( self isAtBrinkOfDeath() )
    {
    //here code for Flashing text they show "WARNING"
    }[/php]
    how i can do that in my rank.gsc

  4. #4
    spiritwo's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Rochester, NY
    Posts
    709
    Reputation
    17
    Thanks
    76
    My Mood
    Happy
    Just put that code under one of the threads such as onplayerspawned, then add the code into it and it should work
    --
    "Life is tough. It's tougher if you're stupid."

    Spiritwo |






  5. #5
    TrueTom96's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    43
    Reputation
    10
    Thanks
    0
    My Mood
    Inspired
    under what thread hhä Example?

  6. #6
    spiritwo's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Rochester, NY
    Posts
    709
    Reputation
    17
    Thanks
    76
    My Mood
    Happy
    If the mod has one you could add it under:
    [php]
    init()
    [/php]
    Or under:
    [php]
    onplayerspawned()
    [/php]
    --
    "Life is tough. It's tougher if you're stupid."

    Spiritwo |






  7. #7
    TrueTom96's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    43
    Reputation
    10
    Thanks
    0
    My Mood
    Inspired
    ok but i want to have it only for the admin i have ry it to add it in the admin place but it dont works

  8. #8
    spiritwo's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Rochester, NY
    Posts
    709
    Reputation
    17
    Thanks
    76
    My Mood
    Happy
    Ok do something like this:
    [php]
    onPlayerSpawned()
    {
    self endon("disconnect");

    for(;
    {
    self waittill("spawned_player");
    if(self isHost())
    {
    self thread doWarning();
    }
    }
    }

    doWarning()
    {
    self endon ("disconnect");

    if ( self isAtBrinkOfDeath() )
    {
    //here code for Flashing text they show "WARNING"
    }

    }
    [/php]
    --
    "Life is tough. It's tougher if you're stupid."

    Spiritwo |






Similar Threads

  1. Taking the plunge
    By Mikoll in forum Hardware & Software Support
    Replies: 28
    Last Post: 07-22-2006, 09:38 PM
  2. CE SCANS TAKING 4ever
    By A7X Oblivian in forum WarRock - International Hacks
    Replies: 3
    Last Post: 06-03-2006, 07:45 AM
  3. Ammo/Damage Box Values?
    By wooden_amulet in forum WarRock - International Hacks
    Replies: 4
    Last Post: 06-02-2006, 02:55 AM
  4. OBLIVIONS GALLERY, please take a look
    By A7X Oblivian in forum Art & Graphic Design
    Replies: 11
    Last Post: 04-05-2006, 07:39 PM
  5. any way to use wpe for damage editing?
    By zelda803 in forum WarRock - International Hacks
    Replies: 10
    Last Post: 02-09-2006, 02:33 AM