Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. That won't work, you forgot about: addEvent and "root" at second argument of addEventHandler. local ZOMBIE_REWARD = 50 -- The amount of money rewarded to a player once killed addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", root, function ( player ) givePlayerMoney ( player, ZOMBIE_REWARD ) end )
  2. onClientPlayerWeaponFire doesn't work for Melee.
  3. Si que hay, es: getZoneName, primero obtenes la posicion del elemento con: getElementPosition.
  4. Castillo

    Zona de BOT

    createColRectangle -- Para la zona. onZombieWasted -- Para cuando un zombie muere. exports [ "slothbot" ]:spawnBoth ( argumentos ) -- Para spawnear un bot.
  5. I just know that you can't damage with Melee out of SA map bounds.
  6. Yo pensaba que era automatico.
  7. Topic moved to "Support for MTA:SA 1.x > Client".
  8. Eso es porque el recurso: "mapmanager" crea ese evento, no es nativo del MTA. El unico argumento que veo es el recurso iniciado.
  9. Eso es porque estas intentando cambiar el interior/dimension de un boolean ( el resultado de setElementData ): local x, y, z = getElementPosition ( source ) local int = getElementInterior ( source ) local dim = getElementDimension ( source ) outputChatBox ( "estas en el int " .. int .. " y en la dim " .. dim, source, 0, 255, 0 ) local Paquete = createPickup ( x - 1.5, y - 1.5 , z, 3, 1279 ) setElementData ( Paquete, "Drup2", input ) setElementDimension ( Paquete, dim ) setElementInterior ( Paquete, int )
  10. You can't damage with melee if you are out of San Andreas.
  11. Castillo

    Problem

    There's no need to lock it.
  12. Oh, are you out of the San Andreas Map bounds?
  13. The "WSAD" controls are default from GTA, and you run with "Space" key. P.S: What has this to do with Scripting?
  14. No, is not, but you can convert the map to a MTA map file with this: http://gtamap.delux-host.com/converter/
  15. No te recomiendo hacer consultas de MySQL tan seguido, yo guardaria los datos en element data y al irse los guardas en MySQL.
  16. This is one: https://community.multitheftauto.com/index.php?p= ... ils&id=910 but is on russian. This is the second one I found: https://community.multitheftauto.com/index.php?p= ... ls&id=1152
  17. I would say your TXD file is wrong.
  18. Castillo

    Player selector

    You can't just "create" another skin, you must replace an existing one.
  19. The same happens at my server, players can't damage others, they have to reconnect/logout in order to do so. It must be a new MTA bug.
  20. Castillo

    Mta Comunity

    1: As far as I know, you can't delete a resource by your own, you must post here to request it to be removed: viewtopic.php?f=108&t=25351 2: Change the version of the resource in the meta.xml and upload it again. 3: That's not possible as far as I know.
  21. Crea una tabla, agrega el marker y luego a la misma y luego cuando alguien pasa por el marker verifica quien es el dueño del marker, o simplemente dale un element data al marker como: setElementData ( elMarkerCreado, "owner", elJugadorQueLoCreo )
  22. You must use the event: onClientGUIClick for the button and bindKey to bind a key to a function to show your window
  23. Castillo

    teamsay

    No que yo sepa.
×
×
  • Create New...