Jump to content

FraN-724

Members
  • Posts

    438
  • Joined

  • Last visited

Everything posted by FraN-724

  1. Entonces prueba con el script que te dio Solid.
  2. Solo tendrías que matarlo con la arma 8 y ya
  3. Oh verdad, no me habia dado cuenta, quizás esto le podria servir ahora enves de mandar trigger function healthP ( attacker, weapon, bodypart, loss ) if (getElementType( attacker ) == "ped") and weapon == 8 then setElementHealth(source, 0) outputChatBox("Estás muerto...", source, 255, 0, 0, false) end end addEventHandler("onClientPedDamage", getRootElement(), healthP)
  4. No estoy muy seguro de esto, no lo tengo testeado function healthP ( attacker, weapon, bodypart, loss ) if (getElementType( attacker ) == "ped") and weapon == 8 then killPed ( source ) outputChatBox("Estás muerto...", source, 255, 0, 0, false) end end addEventHandler("onClientPedDamage", getRootElement(), healthP)
  5. FraN-724

    Anuncios

    Un Ejemplo local lista = { "Si necesitas ayuda, Presiona F9", } setTimer ( function() outputChatBox('Server:'..lista [ math.random ( lista[1,#lista] ])) addEventHandler ( "onClientRender", root ) setTimer ( function ( ) removeEventHandler ( "onClientRender", root ) end, 10000, 1) end, 15000,0)
  6. Talvés sea tu internet o podrías reinstalar mta
  7. Please delete script: 1- https://community.multitheftauto.com/ind ... ls&id=7301 2- https://community.multitheftauto.com/ind ... ls&id=7299 3- https://community.multitheftauto.com/ind ... ls&id=7300 DONE
  8. No sé, yo arregle solo el error que tenia, pero por lo que veo al script les faltan argumentos
  9. results = { "no lo logra", "lo logra" } function colouredChat ( message, theType ) if theType == 0 then --if its normal chat (uso de /intentar) then outputChatBox ( chatterName..":#FFFFFF "..message.." "..results[math.random( 1, #results )], getRootElement(), 255, 255, 255, true ) end end addCommandHandler ( "intentar", colouredChat )
  10. No te anda el script o no te sale en el panel admin, si es así diste refresh?
  11. Donde dice NOMBRE DE LA CARPETA cambia el nombre y pon el nombre de la carpeta donde se encuentran los shaders y en el script igual, salen en las lineas 30,31,32,105
  12. Si jajaja es que eso pasa cuando ya hay muchos objetos iguales creados o mucha vegetación
  13. No sé si te sirve este evento onClientWeaponFire
  14. i believe better do with xml.
  15. Para quitar el lag de las nubes es sencillo, solo usas la funcion setCloudsEnabled pero el lag de la vegetación no u-u.
  16. Bueno Steven23, yo conozco su sistema de spawn, y yo era miembro del Staff de [vS] que ahora se llama -SxE' cambio de nombre por motivos 'X', ok, una de las funciones que es son isObjectInACLGroup spawnPlayer getPlayerAccount getAccountName getElementsByType
  17. Ami me pasa algo similar pero cuando hay mucha vegetación en la zona, los fps se me bajan asta 1 o 9.
  18. Intenta con esto addEventHandler("onClientVehicleEnter", getRootElement(), function(thePlayer, seat) if thePlayer == getLocalPlayer() then if ( getElementModel ( source ) == 574 ) then Marker1 = createMarker ( -2350.89, 2469.5, 5, "checkpoint", 2.5, 255, 255, 0, 255 ) Blip1 = createBlip ( -2350.89 , 2469.5 , 5 , 0 ) end end end ) function Marker20 ( hitPlayer, matchingDimension ) if source == Marker1 then Marker2 = createMarker ( -2281.30, 2403.80, 4.9, "checkpoint", 2.5, 0, 255, 0, 255 ) Blip2 = createBlip ( -2281.30 , 2403.80 , 4.9 , 0 ) destroyElement ( Marker1 ) destroyElement ( Blip1 ) end end addEventHandler ( "onClientMarkerHit", getRootElement(), Marker20 ) function Marker50 ( hitPlayer, matchingDimension ) if source == Marker2 then Marker3 = createMarker ( -2263.2, 2339.8, 4.8, "checkpoint", 2.5, 0, 255, 0, 255 ) Blip3 = createBlip ( -2263.2 , 2339.8 , 4.8 , 0 ) givePlayerMoney ( 50 ) destroyElement ( Marker2 ) destroyElement ( Blip2 ) end end addEventHandler ( "onClientMarkerHit", getRootElement(), Marker50 ) function Marker80 ( hitPlayer, matchingDimension ) if source == Marker3 then Marker4 = createMarker ( -2327.39, 2390.3, 5.8, "checkpoint", 2.5, 0, 255, 0, 255 ) Blip4 = createBlip ( -2327.39 , 2390.3 , 5.8 , 0 ) givePlayerMoney ( 50 ) destroyElement ( Marker3 ) destroyElement ( Blip3 ) end end addEventHandler ( "onClientMarkerHit", getRootElement(), Marker80 ) function Marker110 ( hitPlayer, matchingDimension ) if source == Marker4 then Marker5 = createMarker ( -2451.8, 2334.30, 4.8, "checkpoint", 2.5, 0, 255, 0, 255 ) Blip5 = createBlip ( -2451.8 , 2334.30 , 4.8 , 0 ) givePlayerMoney ( 50 ) destroyElement ( Marker4 ) destroyElement ( Blip4 ) end end addEventHandler ( "onClientMarkerHit", getRootElement(), Marker110 ) function Marker140 ( hitPlayer, matchingDimension ) if source == Marker5 then Marker6 = createMarker ( -2470.7, 2263.2, 4.8, "checkpoint", 2.5, 0, 255, 0, 255 ) Blip6 = createBlip ( -2470.7 , 2263.2 , 4.8 , 0 ) givePlayerMoney ( 50 ) destroyElement ( Marker5 ) destroyElement ( Blip5 ) end end addEventHandler ( "onClientMarkerHit", getRootElement(), Marker140 ) function Marker170 ( hitPlayer, matchingDimension ) if source == Marker6 then Marker7 = createMarker ( -2539.80, 2283, 4.8, "checkpoint", 2.5, 0, 255, 0, 255 ) Blip7 = createBlip ( -2539.80 , 2283 , 4.8 , 0 ) givePlayerMoney ( 50 ) destroyElement ( Marker6 ) destroyElement ( Blip6 ) end end addEventHandler ( "onClientMarkerHit", getRootElement(), Marker170 ) function Marker200 ( hitPlayer, matchingDimension ) if source == Marker7 then Marker8 = createMarker ( -2557.5, 2370.3, 10.8, "checkpoint", 2.5, 0, 255, 0, 255 ) Blip8 = createBlip ( -2557.5 , 2370.3 , 10.8 , 0 ) givePlayerMoney ( 50 ) destroyElement ( Marker7 ) destroyElement ( Blip7 ) end end addEventHandler ( "onClientMarkerHit", getRootElement(), Marker200 ) function Marker230 ( hitPlayer, matchingDimension ) if source == Marker8 then Marker9 = createMarker ( -2438, 2431.8, 13.6, "checkpoint", 2.5, 0, 255, 0, 255 ) Blip9 = createBlip ( -2438 , 2431.8 , 13.6 , 0 ) givePlayerMoney ( 50 ) destroyElement ( Marker8 ) destroyElement ( Blip8 ) end end addEventHandler ( "onClientMarkerHit", getRootElement(), Marker230 ) function Marker270 ( hitPlayer, matchingDimension ) if source == Marker9 then Marker10 = createMarker ( -2436.5, 2476, 13.8, "checkpoint", 2.5, 0, 255, 0, 255 ) Blip10 = createBlip ( -2436.5 , 2476 , 13.8 , 0 ) givePlayerMoney ( 50 ) destroyElement ( Marker9 ) destroyElement ( Blip9 ) end end addEventHandler ( "onClientMarkerHit", getRootElement(), Marker270 ) function Marker300 ( hitPlayer, matchingDimension ) if source == Marker10 then Marker11 = createMarker ( -2350.89, 2469.5, 5, "checkpoint", 2.5, 255, 255, 0, 255 ) Blip11 = createBlip ( -2350.89 , 2469.5 , 5 , 0 ) givePlayerMoney ( 50 ) destroyElement ( Marker10 ) destroyElement ( Blip10 ) end end addEventHandler ( "onClientMarkerHit", getRootElement(), Marker300 ) function Marker330 ( hitPlayer, matchingDimension ) if source == Marker11 then destroyElement ( Marker11 ) destroyElement ( Blip11 ) end end addEventHandler ( "onClientMarkerHit", getRootElement(), Marker330 ) addEventHandler("onClientVehicleExit", getRootElement(), function(thePlayer, seat) if thePlayer == getLocalPlayer() then destroyElement ( Marker1 ) destroyElement ( Marker2 ) destroyElement ( Marker3 ) destroyElement ( Marker4 ) destroyElement ( Marker5 ) destroyElement ( Marker6 ) destroyElement ( Marker7 ) destroyElement ( Marker8 ) destroyElement ( Marker9 ) destroyElement ( Marker10 ) destroyElement ( Marker11 ) end end ) addEventHandler("onClientVehicleExit", getRootElement(), function(thePlayer, seat) if thePlayer == getLocalPlayer() then destroyElement ( Blip1 ) destroyElement ( Blip2 ) destroyElement ( Blip3 ) destroyElement ( Blip4 ) destroyElement ( Blip5 ) destroyElement ( Blip6 ) destroyElement ( Blip7 ) destroyElement ( Blip8 ) destroyElement ( Blip9 ) destroyElement ( Blip10 ) destroyElement ( Blip11 ) end end )
  19. te falto cerrar la funcion function state() setVehicleDoorState ( aqui iria el coche actual, 0, 4 ) end addCommandHandler ( "capo", state )
×
×
  • Create New...