Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Castillo

    Looking 4

    The script I made was an example, you can edit your main spawn script and add mine to work together.
  2. No es un archivo, es una funcion, tenes que aprender lo basico de Lua para usarla correctamente. http://development.mtasa.com/wiki/ES/In ... %B3n_a_Lua http://www.lua.org/manual/5.1/es/manual.html http://lua-users.org/wiki/TutorialDirectory http://www.lua.org/pil/index.html
  3. Castillo

    Looking 4

    You can get a random spawn point if he's not in the table.
  4. You mean all names in just one label? Example: Solidsnake14 | Charlie_Jefferson
  5. Castillo

    Pls help me

    What do you mean by an "anim"?
  6. Eso debe ser el blur, podes quitarlo con esta funcion: setPlayerBlurLevel.
  7. Vehicle mod: https://community.multitheftauto.com/index.php?p= ... ls&id=4431
  8. Show us how you trigger the "CriminososJob" event.
  9. exports [ "scoreboard" ]:addScoreboardColumn ("Money", 3 ) function updatePlayersMoney ( ) for index, player in ipairs ( getElementsByType ( "player" ) ) do setElementData ( player, "Money", getPlayerMoney ( player ) ) end end setTimer ( updatePlayersMoney, 2500, 0 ) Ese script va a updatear el dinero de los jugadores cada 2.5 segundos.
  10. Podria ser: "function.aclGroupAddObject" o "command.setgroup".
  11. I binded 4 chat outputs to one key and it worked.
  12. What you're saying is that your server has one or more scripts causing the server lag?
  13. local playerTimers = { } function pescar ( thePlayer ) local randpos = math.random ( 1, 9 ) if ( randpos == 2 or randpos == 7 or randpos == 8 or randpos == 9 ) then setElementHealth ( thePlayer, 100 ) else if ( isTimer ( playerTimers [ thePlayer ] ) ) then killTimer ( playerTimers [ thePlayer ] ) end playerTimers [ thePlayer ] = setTimer ( setElementData, thePlayer, 1000, 10, "contador", tonumber ( getElementData ( thePlayer, "contador" ) ) or 0 + 1 ) end end addEventHandler ( "onMarkerHit", pescado, pescar )
  14. Podes usar un for-loop en todos los vehiculos del servidor, luego buscas el ID si queres. Usa: getElementsByType.
  15. Castillo

    Question

    Are you talking to me, Gamekiller? or to Blazy?
  16. http://lua-users.org/wiki/ForTutorial
  17. No existe ningun evento, pero si una funcion para verificar si un elemento esta en el agua. https://wiki.multitheftauto.com/wiki/IsElementInWater
  18. Castillo

    Doesn't work

    His problem has nothing related to a Scoreboard, I guess he said that karthik184's code worked.
  19. Castillo

    xml top list

    I'll leave the topic open, someone else may have the same problem.
  20. Castillo

    Client crashes

    Moved to "Support for MTA:SA 1.x > Client".
×
×
  • Create New...