Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. So, is the index from getAccounts?
  2. You can't do it as far as I know. I'm not sure if the index returned from getAccounts is the "id" that appears there.
  3. http://en.wikipedia.org/wiki/Projectile
  4. function nemesisuca ( ) if ( getElementData ( source, "nemesis" ) ) then local x, y, z = getElementPosition ( localPlayer ) createProjectile ( source, 19, x, y, z, 500 ) end end addEventHandler ( "onClientPedWeaponFire", root, nemesisuca )
  5. Lo que pasa es que estas creando las labels fuera de la imagen.
  6. g_GUI = { timeleftstatic = guiCreateStaticImage(screenWidth-333, -20, 1920/4.8, 1024/4.4, 'img/timeleft.png', false), timeleft = guiCreateLabel(screenWidth-156, 72, 100, 30, '', false), timepassed = guiCreateLabel(screenWidth-140, 136, 100, 30, '', false), } guiMoveToBack(g_GUI.timeleftstatic)
  7. Result is returning a boolean, but you are trying to get length of it, which is why it returns an error, you can't get length of a boolean.
  8. Castillo

    Problem

    Do you have any cheat program installed? because that's what it says.
  9. Read arguments of onPlayerDamage: https://wiki.multitheftauto.com/wiki/OnPlayerDamage
  10. Seeing that it's a spawn screen, I would say that it's meant for the player that joined, not for when a remote joins. @Zombie: Show it when resource starts.
  11. "onClientPlayerJoin" is triggered when a remote player joins, it does not trigger to the local player.
  12. Castillo

    f9

    Did it say this on the console?
  13. I'm not sure if that event actually works, I tried to use it yesterday and it didn't work, same today with latest nightly.
  14. Castillo

    f9

    I tested it, works perfectly fine, you obviously did something wrong.
  15. Topic locked.
  16. That's not what he's talking about, what Puma posted is what he's looking for.
  17. If you give/take money client side, it won't sync with the server, which means it won't really give/take it.
  18. There isn't a menu/panel for it.
  19. Edited without giving author credits: https://community.multitheftauto.com/index.php?p= ... ls&id=6413 Original: https://community.multitheftauto.com/index.php?p= ... ils&id=695 DONE
  20. Castillo

    f9

    Download this and put it on your server resources folder: http://www.mediafire.com/?s2wwafh5sfi4qzv
  21. Castillo

    Ayuda XML

    El error es en el argumento numero 3? si es asi, entonces es porque getPlayerTeam devuelve un elemento, no un nombre.
  22. Castillo

    TCT: FlowEditor

    Good job, it's awesome!
  23. Castillo

    Help needed

    Replace: local lvls = tonumber(getAccountData(pAccount, "lvl")) With: local lvls = tonumber ( getAccountData ( pAccount, "lvl" ) ) or 1
  24. Castillo

    Help needed

    "lvls" is returning something else than a number.
  25. stars = { } setTimer ( function ( ) for _, player in ipairs ( getElementsByType ( "player" ) ) do local wanted = getPlayerWantedLevel ( player ) local x, y, z = getElementPosition ( player ) if ( wanted == 0 ) then if ( isElement ( stars [ player ] ) ) then destroyElement ( stars [ player ] ) end else stars [ player ] = createObject ( 1247, x, y, z ) attachElements ( stars [ player ], player, 0, 0, 1.5 ) end end end ,1000, 0 )
×
×
  • Create New...