Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Tails: Your script works, I hit the marker and I get message + the money, although, you should not create blips on every resource start. -- blips function blips ( ) createBlip ( 1713.02, 917.98, 10.80, 27 ) -- mechanic createBlip ( 1381.99, 1019.81, 10.82, 51 ) -- store myMarker = createMarker ( -1374.29, 1019.93, 10.8, 'arrow', 1.75, 255, 136, 255, 100 ) addEventHandler ( "onMarkerHit", myMarker, MarkerHit ) end addEventHandler ( "onResourceStart", resourceRoot, blips ) -- markers function MarkerHit ( thePlayer, matchingDimension ) local elementType = getElementType ( thePlayer ) if ( elementType == "player" ) then outputChatBox ( "You hit the marker", thePlayer, 255,0,0 ) givePlayerMoney ( thePlayer, 5000 ) end end
  2. It'll not work, the colorCoded argument is available on MTA 1.3.1.
  3. No podes cancelar un disparo. En el evento: onClientPlayerDamage checkea si el arma usada es 16 ( granada ) y cancelalo con: cancelEvent.
  4. Camera: setCameraMatrix Distorsion: Puede que sea un shader o talvez una imagen.
  5. Si el colshape tiene que ser un rectangulo, usa createColRectangle.
  6. Como lo suponia, hiciste local a la variable "myBlip". local colshape = createColCuboid ( 103.88594818115, 1302.0729980469, 10.5859375, 220, 200, 60 ) zombiesMatados = 0 function zona ( ) if ( isElementWithinColShape ( source, colshape ) ) then zombiesMatados = ( zombiesMatados + 1 ) if ( zombiesMatados == 1 ) then if ( not isElement ( slothbot1 ) ) then slothbot1 = exports [ "slothbot" ]:spawnBot ( 111.79273223877, 1336.3046875, 10.5859375, 90, math.random ( 300, 303 ), 0, 0, ex, 38, "hunting", true ) exports.extra_health:setElementExtraHealth ( slothbot1, 100 ) outputChatBox("Boss spawned", getRootElement(), 155, 155, 155) onZomieWasted = 1 myBlip = createBlipAttachedTo ( slothbot1, 23 ) end end end end addEvent ( "onZombieWasted", true )
  7. Las funciones de DirectX necesitan el evento onClientRender para funcionar.
  8. I found your problem, the value of: skin.modelId is a string, not a number, so the result is "29", not 29. if ( skin.modelId == "29" and not isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( client ) ), aclGetGroup ( "SoS" ) ) ) then spawn = false end With that it'll work, tested.
  9. Castillo

    HELP Resource

    https://community.multitheftauto.com/ind ... ls&id=2847 That's a business system, what you described on the screenshot.
  10. local state = false function Panel ( ) dxDrawImage(1240.0,163.0,126.0,96.0,"Imagenes/Stats.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) dxDrawImage(1239.0,1.0,126.0,102.0,"Imagenes/Maps.png",0.0,0.0,0.0,tocolor(255,0,0,255),false) dxDrawRectangle(1238.0,0.0,128.0,767.0,tocolor(0,0,0,160),false) end bindKey ( "F7", "down", function ( ) state = ( not state ) removeEventHandler ( "onClientRender", root, Panel ) if ( state ) then addEventHandler ( "onClientRender", root, Panel ) end end )
  11. You could PM me some and I'll think about it.
  12. Postea el script entero, faltan cosas.
  13. Stop the resource: "play".
  14. Nada quever, ademas necesitas las imagenes del pais que tengan el mismo formato. Tenes que usar: setElementData al entrar al servidor, osea: onPlayerJoin, ahi obtener el pais del jugador y guardarlo como element data. Luego en el client side obtenes esa element data con: getElementData. Mejor explicado imposible.
  15. That must be caused by the "play" game mode, you surely have it started.
  16. element data no necesita XML, es para guardar datos temporarios, al destruirse el elemento, en este caso el jugador se va, esa informacion se borra.
  17. No podes, ya que la funcion esa es server side, tenes que guardar el codigo del pais en element data al entrar al servidor.
  18. I made this one some time ago: http://www.mediafire.com/?987jtj8cade5qcb Command: /godmode
  19. Mind uploading the whole spawn system to: mediafire.com and paste the link here? so I can see what's wrong.
  20. You want to fix the vehicle when player sprays the car? Edit: That script is not yours, is the same one from this topic: viewtopic.php?f=91&t=43535
×
×
  • Create New...