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. Post the part where you trigger that event.
  4. How do you trigger this event: "settext"?
  5. 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.
  6. 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.
  7. 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.
  8. No, you can save them via account data ( easier way ). setAccountData
  9. That error is because this line: if isObjectInACLGroup("user."..accName = getAccountName(acc), aclGetGroup("Admin")) then makes no sense.
  10. Aca si se dispara sin problemas.
  11. Here it works perfectly.
  12. 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
  13. Castillo

    Zona de BOT

    El zombi esta dentro del colshape?
  14. 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.
  15. You're welcome. P.S: There's no need to lock it.
  16. This has nothing to do with the nick name color.
  17. Castillo

    Zona de BOT

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

    Zona de BOT

    No necesitas esa funcion.
  22. 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...