Black Dragon

Past MTA Contributors
  • Content Count

    1,472
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Black Dragon

  • Rank
    Loc

Details

  • Location
    Where not needed.
  • Occupation
    Burning stuff.
  • Interests
    Burning stuff.

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. What's that? Only members may posts? That's discrimination against persons of non-phallic origins.
  2. Black Dragon

    War!

    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
  3. Huh, well that's odd. Can you round the number to be an integer (with math.ceil() or math.floor())? I'm speculating MTA somehow reads it wrong because of the dot in the middle of that number.
  4. http://development.mtasa.com/index.php?title=Vehicle_Upgrades
  5. tonumber(loss) prolly returns false or something. Try this: outputChatBox( tostring(tonumber(loss)) ) And see what it outputs.
  6. Well, yeah. If you care to know, it was due to players moving a bit while dead under certain circumstances, (for example: fire, drowning and desync) causing the flag col element being hit. About map elements and usage: http://development.mtasa.com/index.php?title=CTF
  7. 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
  8. No, the idle respawner is exclusive to cdm_ls, as far as I know.
  9. Err yeah, that's what I meant. It was morning and I didn't sleep well. Don't judge me.
  10. 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.
  11. 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.