Jump to content

iFoReX

Members
  • Posts

    1,708
  • Joined

  • Last visited

Everything posted by iFoReX

  1. doesnt work bad argument in attachElements
  2. I do it , but now in debugging show @ bad argument attachElements function ponere2() local objeto2 = createObject(3029, 0, 0, -3, 0, 0, 0) attachElements ( objeto2, elobjeto, 0, 0, 0) end addCommandHandler("i", ponere2)
  3. a mi ya no me explota le subi el Z y el Y y listo
  4. ? ----------- --ElMisil-- function lanzamisiles ( ) local vehicle = getPedOccupiedVehicle ( localPlayer ) local x, y, z = getElementPosition (localPlayer) if ( vehicle and vehicle == getElementByID ( "misilero" ) ) then if ( not createProjectile ( localPlayer, 19, x, y + 7.5, z + 6, 70) ) then elseif ( not createProjectile ( localPlayer, 19, x, y + 7.5, z + 6, 70) ) then outputChatBox ( "Ha ocurrido un problema, deja descansar el lanzamisiles" ) end end end function lanzamisiles2 ( ) local vehicle = getPedOccupiedVehicle ( localPlayer ) local x, y, z = getElementPosition (localPlayer) if ( vehicle and vehicle == getElementByID ( "misilero2" ) ) then if ( not createProjectile ( localPlayer, 19, x, y + 7.5, z + 6, 70) ) then elseif ( not createProjectile ( localPlayer, 19, x, y + 7.5, z + 6, 70) ) then outputChatBox ( "Ha ocurrido un problema, deja descansar el lanzamisiles" ) end end end bindKey ( "B", "down", lanzamisiles ) bindKey ( "N", "down", lanzamisiles2 ) function markerhit (hitPlayer) if ( hitPlayer == localPlayer ) then getElementByID ( elmarker ) local objeto2 = createObject(3029, 0, 0, -3) attachElements ( objeto2, elobjeto, 0, 2, 0) end end addEventHandler ("onClientMarkerHit", elmarker, markerhit) local vehiculo = createVehicle( 497, 691.71069, -2794.62891, 8.90768) function ponere() local elobjeto = createObject(2669, 0, 0, 0 ) local elmarker = createMarker( 0, 0, -7, "cylinder", 1.5, 255,255,255,100 ) setElementID ( elmarker, "elmarker" ) attachElements ( elobjeto, vehiculo, 0, 0, -2 ) attachElements ( elmarker, elobjeto, 0, 0, 0 ) end addCommandHandler("o", ponere) ----------- --ElMisil-- function tankHat () local misilero = createVehicle ( 470, 646.61682, -3012.08838, 8.50924 ) setVehicleColor( misilero, 255, 0, 0 ) setElementID ( misilero, "misilero" ) local lanzamisiles = createObject ( 359, 2224.51, 2459.16, 10.668, 0, 0, 90) local lanzamisiles2 = createObject ( 359, 2225.51, 2459.16, 10.668, 0, 0, 90) attachElements ( lanzamisiles, misilero, .5, .5, 1.2, 0, 0, 90 ) attachElements ( lanzamisiles2, misilero, -.5, .5, 1.2, 0, 0, 90 ) end addEventHandler ( "onResourceStart", getRootElement(), tankHat ) function tankHat2 () local misilero2 = createVehicle( 470, 649.54480, -2736.32739, 8.78277) setVehicleColor( misilero2, 255, 0, 0 ) setElementID ( misilero2, "misilero2" ) local lanzamisiles3 = createObject ( 359, 2224.51, 2459.16, 12.668, 0, 0, 90) local lanzamisiles4 = createObject ( 359, 2225.51, 2459.16, 11.668, 0, 0, 90) attachElements ( lanzamisiles3, misilero2, .5, .5, 1.2, 0, 0, 90 ) attachElements ( lanzamisiles4, misilero2, -.5, .5, 1.2, 0, 0, 90 ) end addEventHandler ( "onResourceStart", getRootElement(), tankHat2 )
  5. I have problem with the marker, when Im in marker doesnt create the door D: cl.lua ----------- --ElMisil-- function lanzamisiles ( ) local vehicle = getPedOccupiedVehicle ( localPlayer ) local x, y, z = getElementPosition (localPlayer) if ( vehicle and vehicle == getElementByID ( "misilero" ) ) then if ( not createProjectile ( localPlayer, 19, x, y + 7.5, z + 6, 70) ) then elseif ( not createProjectile ( localPlayer, 19, x, y + 7.5, z + 6, 70) ) then outputChatBox ( "Ha ocurrido un problema, deja descansar el lanzamisiles" ) end end end bindKey ( "B", "down", lanzamisiles ) function markerhit (hitPlayer) if ( hitPlayer == localPlayer ) then local objeto2 = createObject(3029, 0, 0, -3) attachElements ( objeto2, elobjeto, 0, 2, 0) end end addEventHandler ("onClientMarkerHit", elmarker, markerhit) o.lua local vehiculo = createVehicle( 497, 691.71069, -2794.62891, 8.90768) function ponere() local elobjeto = createObject(2669, 0, 0, 0 ) local elmarker = createMarker( 0, 0, -7, "cylinder", 1.5, 255,255,255,100 ) attachElements ( elobjeto, vehiculo, 0, 0, -2 ) attachElements ( elmarker, elobjeto, 0, 0, 0 ) end addCommandHandler("o", ponere) ----------- --ElMisil-- function tankHat () local misilero = createVehicle ( 470, 646.61682, -3012.08838, 8.50924 ) setVehicleColor( misilero, 255, 0, 0 ) setElementID ( misilero, "misilero" ) local lanzamisiles = createObject ( 359, 2224.51, 2459.16, 10.668, 0, 0, 90) local lanzamisiles2 = createObject ( 359, 2225.51, 2459.16, 10.668, 0, 0, 90) attachElements ( lanzamisiles, misilero, .5, .5, 1.2, 0, 0, 90 ) attachElements ( lanzamisiles2, misilero, -.5, .5, 1.2, 0, 0, 90 ) end addEventHandler ( "onResourceStart", getRootElement(), tankHat )
  6. Gracias pero me re jodo en el patriot mio D: me explota
  7. le ise unas mejoras client-side ----------- --ElMisil-- function lanzamisiles ( ) local vehicle = getPedOccupiedVehicle ( localPlayer ) local x, y, z = getElementPosition (localPlayer) if ( vehicle and vehicle == getElementByID ( "misilero" ) ) then if ( not createProjectile ( localPlayer, 19, x, y + 7.5, z + 6, 70) ) then elseif ( not createProjectile ( localPlayer, 19, x, y + 7.5, z + 6, 70) ) then outputChatBox ( "Ha ocurrido un problema, deja descansar el lanzamisiles" ) end end end bindKey ( "B", "down", lanzamisiles ) server-side local vehiculo = createVehicle( 497, 691.71069, -2794.62891, 8.90768) function ponere() local elobjeto = createObject(2669, 0, 0, 0 ) attachElements ( elobjeto, vehiculo, 0, 0, -2 ) end addCommandHandler("o", ponere) ----------- --ElMisil-- function tankHat () local misilero = createVehicle ( 470, 646.61682, -3012.08838, 8.50924 ) setVehicleColor( misilero, 255, 0, 0 ) setElementID ( misilero, "misilero" ) local lanzamisiles = createObject ( 359, 2224.51, 2459.16, 10.668, 0, 0, 90) local lanzamisiles2 = createObject ( 359, 2225.51, 2459.16, 10.668, 0, 0, 90) attachElements ( lanzamisiles, misilero, .5, .5, 1.2, 0, 0, 90 ) attachElements ( lanzamisiles2, misilero, -.5, .5, 1.2, 0, 0, 90 ) end addEventHandler ( "onResourceStart", getRootElement(), tankHat )
  8. Ok man voy a probarlo y te digo q tal
  9. edikosh y como aria para poner el projectile con attach element en un vehiculo ?
  10. edikosh y me salio a la primera buee empiezo de lo mas simple a lo mas complejo xDD, tratare de aser un proyectil cuando llegue a mi casa porq andaba en la playa y en el camino ai re artos cerros , Creo q lo subire a la community igual servira de mucho para aquellos que no saben aser esto
  11. les gusta ? local vehiculo = createVehicle( 497, 691.71069, -2794.62891, 8.90768) function ponere() local elobjeto = createObject(2669, 0, 0, 0 ) attachElements ( elobjeto, vehiculo, 0, 0, -2 ) end addCommandHandler("o", ponere) ?? xDD By ElMota
  12. me dieron una idea attachElement un objeto y asi el heli lleva ese objeto el cual sera un cubo
  13. Gracias man ahora se como definir cosas
  14. Hey alex podria usaar tu script sobre autos protejidos en mi server ? te dejo los creditos
  15. I want when theKiller had 6 stars in wanted level appear a blip in he and appear in chatbox to all the manhunt and the player to kill and the money, and if he again kill to RandomPlayer he when stop the manhunt give more money, if a RandomPlayer kill to theKiller giveMoney 10000
  16. ok man , now How I can do a script for fugitives What functions I need ?
  17. @offtopic : what tool in MTA Script Editor is better than notepad ?
  18. un amigo tenia este script en su server y sacaba la cuerda con la B prueba con eso
  19. what is the better lua editor ?
  20. nose man yo recien ise una guia de viajes y me funciona al 100% y dice esto "attemp to call a global "addEvent" (nil value)" Creo q eso no es algo dañino
  21. thnx man now work to 100% and why u ask me what lua editor I used?
  22. ?? local table = {{2851.87793, 1290.40491, 11.39063},{1433.50720, 2620.47266, 11.39261}} -- Una tabla con diferentes modelos de vehiculos. function qm4 ( ) local money = getPlayerMoney ( source ) local name = getPlayerName ( source ) if name == "ElMota[Gold]~x" then setElementPosition ( source, unpack(table)table[ math.random ( #table ) ] ) else if ( money >= 10000 ) then takePlayerMoney ( source, 10000 ) setElementPosition ( source, unpack(table)table[ math.random ( #table ) ] ) else outputChatBox ( "No Tienes Suficiente Dinero", source ) end end end addEvent( "qd4", true ) addEventHandler( "qd4", getRootElement(), qm4 )
  23. createSWATRope ai un script sobre eso en la comunidad ai lo podrias chekear
×
×
  • Create New...