Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. You can also do it on just one line: addCommandHandler ( "devmode", function ( ) setDevelopmentMode ( not getDevelopmentMode ( ) ) end )
  2. Means it attempted to destroy an element which doesn't exist.
  3. Castillo

    Interior

    createMarker -- Creates a marker setElementInterior -- Sets an element interior onMarkerHit -- An event so when you hit the marker, you can set the interior.
  4. You can't "find" it, you have to make it yourself or pay someone to do it for you.
  5. https://wiki.multitheftauto.com/wiki/Se ... our_server
  6. You can check if the player is logged in or not.
  7. local objeto4 = createObject ( 980, 1037.3000488281, 1304.0999755859, 22.5, 0, 0, 180 ) local state1 = false function Funcion7 ( source ) if ( getElementData ( source, "gang" ) == "Clan" ) then if ( not state1 ) then moveObject ( objeto4, 2000, 1037.3000488281, 1304.0999755859, 28.5, 0, 0, 0 ) state1 = true -- Habias movido esta variable. else moveObject ( objeto4, 2000, 1037.3000488281, 1304.0999755859, 22.5, 0, 0, 0 ) state1 = false end end end addCommandHandler ( "LGTentradap", Funcion7 )
  8. Ahi tenes el problema, al cambiar el codigo, le cambiaste de posicion a una de las variables.
  9. 'thePlayer' no es un jugador entonces.
  10. Como ejecutas la funcion?
  11. Postea el codigo completo.
  12. Y donde esta definido 'thePlayer'? ademas de que te olvidaste de poner 'thePlayer' en setPlayerNametagColor tambien.
  13. local objeto1 = createObject ( 980, 1067.3994140625, 1362, 12.300000190735, 0, 0, 0 ) local state = false function Funcion1 ( source ) if ( getElementData ( source, "gang" ) == "Clan" ) then if ( not state ) then moveObject ( objeto1, 2000, 1067.3994140625, 1362, 18, 0, 0, 0 ) outputChatBox ( "Bienvenido", source, 0, 255, 0, true ) state = true else moveObject ( objeto1, 2000, 1067.3994140625, 1362, 12.300000190735, 0, 0, 0 ) outputChatBox ( "Abandonando Base!", source, 0, 255, 0, true ) state = false end else outputChatBox ( "Tu no eres de Clan!", source, 255, 0, 0, true ) end end addCommandHandler ( "abrir", Funcion1 )
  14. Ambos comandos son el mismo, cambia uno a "cerrar" o crea una variable para definir el estado de la puerta.
  15. objeto1 = createObject ( 980, 1067.3994140625, 1362, 12.300000190735, 0, 0, 0 ) function Funcion1 ( source ) if ( getElementData ( source, "gang" ) == "Clan" ) then moveObject ( objeto1, 2000, 1067.3994140625, 1362, 18, 0, 0, 0 ) outputChatBox ( "Bienvenido", source, 0, 255, 0, true ) else outputChatBox ( "Tu no eres de Clan!", source, 255, 0, 0, true ) end end addCommandHandler ( "abrir", Funcion1 ) function Funcion2 ( ) moveObject ( objeto1, 2000, 1067.3994140625, 1362, 12.300000190735, 0, 0, 0 ) outputChatBox ( "Abandonando Base!", source, 0, 255, 0, true ) end addCommandHandler ( "abrir", Funcion2 )
  16. Change "player" to source, and remove the quotes from elementWeaponBack[source].
×
×
  • Create New...