Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. You mean that after reaching first destination, the second destination blip is not created?
  2. You can use: setElementVisibleTo
  3. You're welcome.
  4. Post the part where you trigger that event.
  5. How do you trigger this event: "settext"?
  6. Castillo

    Zona de BOT

    Crea una variable y anda incrementandola, luego fijate si esa variable es mayor o igual que 30 y ahi lo spawneas al bot.
  7. 1: 'source' no esta definido, osea que enviara el mensaje a todo el servidor. 2: getPlayersInTeam no se usa para saber si un jugador esta en ese team, para eso necesitas obtener el team del jugador con: getPlayerTeam y compararlo.
  8. Castillo

    Gates

    Tenes que crear el meta.xml para que el recurso funcione, lee este manual: https://wiki.multitheftauto.com/wiki/Meta.xml P.D: El MTA no soporta .rar, usa .zip o usa una carpeta.
  9. No, you can save them via account data ( easier way ). setAccountData
  10. That error is because this line: if isObjectInACLGroup("user."..accName = getAccountName(acc), aclGetGroup("Admin")) then makes no sense.
  11. Aca si se dispara sin problemas.
  12. Here it works perfectly.
  13. That's right, Lil Toady did this: _guiCreateButton = guiCreateButton function guiCreateButton ( x, y, w, h, text, relative, parent, right ) local button = _guiCreateButton ( x, y, w, h, text, relative, parent ) if ( button ) then if ( right ) then right = "command."..right if ( not hasPermissionTo ( right ) ) then guiSetEnabled ( button, false ) _guiprotected[right] = button end end guiSetFont ( button, "default-bold-small" ) return button end return false end
  14. Castillo

    Zona de BOT

    El zombi esta dentro del colshape?
  15. addEventHandler( 'onClientGUIClick', GUIEditor_Grid[1], function( ) local nRow, nColumn = guiGridListGetSelectedItem( source ) if nRow == 0 and nColumn == 0 then triggerServerEvent("CameraM1",getLocalPlayer()) end end ) El primer argumento es el nombre del evento.
  16. You're welcome. P.S: There's no need to lock it.
  17. This has nothing to do with the nick name color.
  18. I think the command is: /out
  19. Castillo

    Zona de BOT

    Que parte no te funciona?
  20. No entiendo que queres decir con "enfocar una camara matrix".
  21. Fijate si no tienen "read-only" activado y si no hay otro elemento GUI ensima de ellos ( invisible talvez ).
  22. Castillo

    Zona de BOT

    local colshape = createColCuboid ( 189.61836242676, 1979.748535355163, 17066425, 220, 200, 60 ) function zona ( ) if ( isElementWithinColShape ( source, colshape ) ) then slothbot = exports [ "slothbot" ]:spawnBot ( 189.61836242676, 1979.748535355163, 17066425, 90, math.random ( 300, 303 ), 0, 0, Boss, 38, "hunting", true ) exports.extra_health:setElementExtraHealth ( slothbot, 5000 ) end end addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", getRootElement(), zona )
  23. De nada.
  24. Castillo

    Zona de BOT

    No necesitas esa funcion.
  25. Aca hay algunos: https://community.multitheftauto.com/ind ... ls&id=3264 https://community.multitheftauto.com/ind ... ls&id=2963 https://community.multitheftauto.com/ind ... ls&id=3268
×
×
  • Create New...