Jump to content

Black Dragon

Retired Staff
  • Posts

    1,470
  • Joined

  • Last visited

Posts posted by Black Dragon

  1. War! Unf!

    Good God, y'all.

    What is it good for?

    Absolutely nothing!

    Say it again

    War! Unf!

    Lord, what is it good for?

    Absolutely nothing!

    Listen to me

  2. Thanks a lot. I'll look into it ASAP.

    Edit: it was due to dead players picking up flags. The updated version would be released along with dp3. For now you can update line 361 in ctf.lua to:

        if ( ( getClientName( player ) ~= false ) and ( isPlayerDead ( player ) == false ) ) then 
    

  3. I'm aware of the respawning-with-flag bug and have no idea how it happens, as it only started happening after the first dp was released. If anyone has any info on how to reproduce it I would be eternally grateful.

    As for the flag being pickable only on vehicles, well, seems logical to me. I'll ask around to see if there's demend for it.

  4. Lemme correct some errors.

    function keydown() 
        if ( mouseon == 0 ) then 
            ActivateMouse() 
        else 
            DeactivateMouse() 
        end 
    end 
      
    function startup() 
        -- At startup, we'll bind the key. 
        outputChatBox( "Startup." ) 
        bindKey( "b", "down", keydown ) 
        outputChatBox( "Key binded." ) 
    end 
      
    addEventHandler("onClientResourceStart", getRootElement(), startup) 
      
    function commands( commandName, arg, arg2 ) 
        if( arg == "keydown" ) 
            keydown() 
            outputChatBox( "key down." ) 
            return 
        elseif( arg == "mouse" ) then 
            if( arg2 == "on" ) then 
                ActivateMouse() 
                outputChatBox( "Mouse activated." ) 
            else 
                DeactivateMouse() 
                outputChatBox( "Mouse deactivated." ) 
            end 
            return 
        else 
            outputChatBox( "Bomber script is active. (c) tomozj 2008" ) 
            outputChatBox( "USAGE: /bomber [start/keydown/mouse] [on/off]" ) 
            return 
        end 
    end 
      
    addCommandHandler("bomber", commands, arg, arg2) 
    

    All in all, you added ends before elses, which is a syntax error in Lua. Also, onClientResourceStart actually executes on resource start, (honest!) so it's redundant to have a command to execute it again.

    Oh, and I didn't check to see if it actually works, it's up to you from here. :P

  5. I wrote an idle vehicle respawner when I made the cdm_ls map, meaning that idle cars (as in, cars without people in them or close to them) would respawn after a while. I made it so that it would only effect the maps vehicles to not interfere with other resources. Hope that sheds some light on this problem.

    What puzzles me is that you could see a vehicle in one location while he could see the very same vehicle in some other location. Are you certain that it is the EXACT same vehicle you two are looking at?

×
×
  • Create New...