Page 6 of 6 FirstFirst ... 456
Results 51 to 59 of 59

Thread: Grenads

  1. #51

    Default

    these scripts not running
    Last edited by Old Fox; March 25th, 2019 at 10:49 PM.

  2. #52

    Default

    Quote Originally Posted by Old Fox View Post
    these scripts not running
    btw smithy ur first scr is the best
    now ill share ur best code and its running now in my server .. running well so i need the same scr for smokenads thats it.

    Quote Originally Posted by moh
    main:

    //////////////////////////
    level waittill prespawn //
    //////////////////////////

    level.grenades[max_spawns] = 10 // max concurrent spawns //
    level.grenades[spawn_duration] = 15 // how long they stay in seconds //
    level.grenades[respawn_delay] = 0 // how long till they come back in seconds // // how many a player can carry //

    //*********************************************************************//

    level.spot[1] = ( 000 000 000 000 )
    level.spot[2] = ( 000 000 000 000 )
    level.spot[3] = ( 000 000 000 000 )
    level.spot[4] = ( 000 000 000 000 )
    level.spot[5] = ( 000 000 000 000 )

    //*********************************************************************//

    ///////////////////////
    level waittill spawn //
    ///////////////////////

    thread InitGrenades
    end
    }
    else
    { // try to pick the nade up and increment their nade count if successful //
    if (local.grenade)
    {
    local.trigger.processing = 1

    local.grenade triggerable
    local.player trigger local.grenade // try to pick it up (won't allow more than max nade amount) //
    local.grenade nottriggerable
    waitframe // wait a frame so we can check if nade is there or not //
    if !(local.grenade)
    local.player.nades++ // if nade has gone, player successfully picked it up //
    else
    local.trigger triggerable // he couldn't pick it up (he has 6 already) //

    local.trigger.processing = 0
    }
    }
    end
    Last edited by Old Fox; March 25th, 2019 at 10:50 PM.

  3. #53

    Default

    https://www.x-null.net/forums/threads/2384-xcode-tags
    sorry guys i try to make a code but i Failed
    Last edited by Old Fox; September 3rd, 2018 at 09:16 AM.

  4. #54

    Default

    I've tested both and they work. That version is not up to date, it has bugs, and it isn't as efficient like I said. If you use *ALL* of the version 2 pages back it will work.

    Like I also said, too many changes are needed if you want smoke nades too, so it isn't just a simple copy/paste job.

    You add code tags like it says on that page (take away the '_' on both)
    [_xcode=moh]
    // code here
    [/_xcode]

    Please copy all of the code you tried to run (with your own spots etc...) *WITH* the indentation. Also show your DMprecache. Remember that they are in separate files.

  5. #55

    Default

    I've made some changes to the code on previous page so copy it all again (added pickup sounds, changed label, etc...).

  6. #56

    Default

    smithy ur last post is no running in the server its give nothing
    Last edited by Old Fox; September 14th, 2018 at 08:48 PM.

  7. #57

    Default

    Quote Originally Posted by 1337Smithy View Post
    You add code tags like it says on that page (take away the '_' on both)
    [_xcode=moh]
    // code here
    [/_xcode]

    Please copy all of the code you tried to run (with your own spots etc...) *WITH* the indentation. Also show your DMprecache. Remember that they are in separate files.
    ^^^^^^^^^^^^^^

  8. #58

    Default

    As suspected, the stuff you sent through to me in PM shows you're still using level.spot when it should be group.spot[spawnpoint][1] etc...

  9. #59

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •