Jump to content

Alex0002

Members
  • Posts

    21
  • Joined

  • Last visited

Everything posted by Alex0002

  1. Close theme. Gamemode is already selled. Thanks
  2. I don't sell a paradise gm free.. i sell a full paradise server with a new login, Alr ert system, etc
  3. If really u are interested, contact me and i tell you all about gamemode.
  4. Sell: Roleplay gamemode based on paradise full with innovative and good scripts and systems, ready to open a server. For more information, send me a private message. Thanks
  5. http://imgur.com/yzS4Aj9 When i use the /phone command, the phone was black screen, please help me to fix. 0 debug error
  6. I use the /phone command but it don't works, please help me to install this
  7. En otros servidores no me pasa, logro entrar correctamente, es extraño.
  8. Hola a todos, pues mi problema es el siguiente: Abro mi servidor local y entro... y antes de realizar el primer movimiento el GTA:SA se queda en "No responde", ¿Alguien sabe a qué se debe?, el mismo servidor (default) en otro ordenador funciona correctamente.
  9. Hola a todos, pues, estoy buscando un recurso para disparar desde el vehículo, hay uno en la comunidad que es el "realdriveby", pero tiene el bug de que si te asomas por la ventanilla eres inmortal, y pues me gustaría saber si alguien conoce algun recurso parecido o similar, gracias
  10. Me ofrezco a participar como scripter en tu proyecto Zero
  11. Pues tengo ya los archivos de mi servidor de roleplay al servidor FTP, también tengo la base de datos que éste requiere (MySQL). Se trata del gamemode de Paradise Roleplay, y el problema está en que al tener un host para enlazarlo al servidor, si mal no creo debo de añadir una linea al mta.conf, el caso es que no se cuala. Si alguien pudiera facilitarme esa linea para el gamemode de paradise o alguna forma de como hacerlo se lo agradecería
  12. Pues no sé porque éste velocimetro me da tantos problemas. Solo me cargan las gujas del velocimetro, la imagen no. --fuellessVehicle = { [594]=true, [537]=true, [538]=true, [569]=true, [590]=true, [606]=true, [607]=true, [610]=true, [590]=true, [569]=true, [611]=true, [584]=true, [608]=true, [435]=true, [450]=true, [591]=true, [472]=true, [473]=true, [493]=true, [595]=true, [484]=true, [430]=true, [453]=true, [452]=true, [446]=true, [454]=true, [497]=true, [592]=true, [577]=true, [511]=true, [548]=true, [512]=true, [593]=true, [425]=true, [520]=true, [417]=true, [487]=true, [553]=true, [488]=true, [563]=true, [476]=true, [447]=true, [519]=true, [460]=true, [469]=true, [513]=true, [509]=true, [510]=true, [481]=true } fuellessVehicle = {} enginelessVehicle = { [510]=true, [509]=true, [481]=true } local active = true local fuel = 0 local factor = 1.5 function relateVelocity(speed) return factor * speed end function getVehicleVelocity(vehicle) speedx, speedy, speedz = getElementVelocity (vehicle) actualSpeed = (speedx^2 + speedy^2 + speedz^2)^(0.5) mph = math.floor(actualSpeed * 180) return mph end function drawSpeedo() if active then local vehicle = getPedOccupiedVehicle(getLocalPlayer()) if (vehicle) then speed = getVehicleVelocity(vehicle) local width, height = guiGetScreenSize() local x = width local y = height dxDrawImage(x-210, y-275, 200, 200, "diskete.png", 0, 0, 0, tocolor(255, 255, 255, 200), false) speed = speed - 100 nx = x + math.sin(math.rad(-(speed)-150)) * 90 ny = y + math.cos(math.rad(-(speed)-150)) * 90 dxDrawLine(x-110, y-175, nx-110, ny-175, tocolor(255, 0, 0, 255), 2, true) -- street names xp, yp, zp = getElementPosition( getLocalPlayer() ) local streetname = getZoneName( xp, yp, zp ) if streetname and getVehicleType(vehicle) ~= "Boat" and getVehicleType(vehicle) ~= "Helicopter" and getVehicleType(vehicle) ~= "Plane" then local width = dxGetTextWidth( streetname ) local x = width < 200 and ( x - 110 - width / 2 ) or ( x - 10 - width ) dxDrawRectangle( x - 8, y - 296, width + 17, 24, tocolor( 5, 5, 5, 220 ) ) dxDrawText( streetname, x, y - 292 ) end local speedlimit = 60 if speedlimit and getElementType(vehicle) ~= "Boat" and getElementType(vehicle) ~= "Helicopter" and getElementType(vehicle) ~= "Plane" then local ax, ay = x - 243, y - 202 dxDrawImage(ax,ay,64,64,"images/speed" .. speedlimit .. ".png") ay = ay - 32 if speedlimit >= 120 then dxDrawImage(ax,ay,64,64,"images/highway.png") ay = ay - 32 end if speed > speedlimit then dxDrawImage(ax,ay,64,64,"images/accident.png") end end end end end function syncFuel() if isPedInVehicle( getLocalPlayer() ) then fuel = getElementData( getPedOccupiedVehicle( getLocalPlayer()), "fuel" ) end end function drawFuel() if active and not isPlayerMapVisible() then local vehicle = getPedOccupiedVehicle(getLocalPlayer()) if (vehicle) then local width, height = guiGetScreenSize() local x = width local y = height dxDrawImage(x-265, y-165, 100, 100, "gasolina.png", 0, 0, 0, tocolor(255, 255, 255, 200), false) movingx = x + math.sin(math.rad(-(fuel)-50)) * 50 movingy = y + math.cos(math.rad(-(fuel)-50)) * 50 dxDrawLine(x-215, y-115, movingx-210, movingy-115, tocolor(255, 0, 0, 255), 2, true) if fuel < 10 then local ax, ay = x - 274, y - 202 if (getElementData(vehicle, "vehicle:windowstat") == 1) then ay = ay - 32 end if getTickCount() % 1000 < 500 then dxDrawImage(ax,ay,32,37,"images/fuel.png") else dxDrawImage(ax,ay,32,37,"images/fuel2.png") end end end end end function drawWindow() if active and not isPlayerMapVisible() then local vehicle = getPedOccupiedVehicle(getLocalPlayer()) if (vehicle) then local width, height = guiGetScreenSize() local x = width local y = height local ax, ay = x - 274, y - 202 --dxDrawImage(ax,ay,32,37,"images/window.png") end end end -- Check if the vehicle is engineless or fuelless when a player enters. If not, draw the speedo and fuel needles. function onVehicleEnter(thePlayer, seat) if (thePlayer==getLocalPlayer()) then if (seat<2) then local id = getElementModel(source) if seat == 0 and not (fuellessVehicle[id]) then addEventHandler("onClientRender", getRootElement(), drawFuel) addEventHandler("onClientRender", getRootElement(), syncFuel) addEventHandler("onClientRender", getRootElement(), drawSpeedo) addEventHandler("onClientRender", getRootElement(), drawWindow) end if not (enginelessVehicle[id]) then --addEventHandler("onClientRender", getRootElement(), drawSpeedo) --addEventHandler("onClientRender", getRootElement(), drawWindow) end end end end addEventHandler("onClientVehicleEnter", getRootElement(), onVehicleEnter) -- Check if the vehicle is engineless or fuelless when a player exits. If not, stop drawing the speedo and fuel needles. function onVehicleExit(thePlayer, seat) if (thePlayer==getLocalPlayer()) then if (seat<2) then local id = getElementModel(source) if seat == 0 and not (fuellessVehicle[id]) then removeEventHandler("onClientRender", getRootElement(), drawFuel) removeEventHandler("onClientRender", getRootElement(), syncFuel) end if not(enginelessVehicle[id]) then removeEventHandler("onClientRender", getRootElement(), drawSpeedo) removeEventHandler("onClientRender", getRootElement(), drawWindow) end end end end addEventHandler("onClientVehicleExit", getRootElement(), onVehicleExit) function hideSpeedo() removeEventHandler("onClientRender", getRootElement(), drawSpeedo) removeEventHandler("onClientRender", getRootElement(), drawFuel) removeEventHandler("onClientRender", getRootElement(), drawWindow) end function showSpeedo() source = getPedOccupiedVehicle(getLocalPlayer()) if source then if getVehicleOccupant( source ) == getLocalPlayer() then onVehicleEnter(getLocalPlayer(), 0) elseif getVehicleOccupant( source, 1 ) == getLocalPlayer() then onVehicleEnter(getLocalPlayer(), 1) end end end -- If player is not in vehicle stop drawing the speedo needle. function removeSpeedo() if not (isPedInVehicle(getLocalPlayer())) then hideSpeedo() end end setTimer(removeSpeedo, 1000, 0) addCommandHandler( "togglespeedo", function( ) local source = getPedOccupiedVehicle(getLocalPlayer()) if source then active = not active if active then --outputChatBox( "Speedo is now on.", 0, 255, 0 ) else --outputChatBox( "Speedo is now off.", 255, 0, 0 ) end end end ) addEventHandler( "onClientResourceStart", getResourceRootElement(), showSpeedo ) addEvent("addWindow", true) addEventHandler("addWindow", getRootElement(), function () if source == getLocalPlayer() then addEventHandler("onClientRender", getRootElement(), drawWindow) end end ) addEvent("removeWindow", true) addEventHandler("removeWindow", getRootElement(), function () if source == getLocalPlayer() then removeEventHandler("onClientRender", getRootElement(), drawWindow) end end ) Aclaro: Lo estoy ejecutando como client-side
  13. Buenas a todos, pues he estado añadiendo una música al login de PARADISE (Gamemode de roleplay), y todo perfecto, pero la cancion no se para, he pensado en cortar la cancion a 5 segundos, pero..., no todo el mundo tarda lo mismo en logearse y sería una chapuza, aquí todo el fragmento. Si alguien me pudiese ayudar, lo agradecería local messageTimer local messageCount = 0 sound = playSound("sonido.mp3") function stopSonido() stopSound(sonido) end addEventHandler("onClientPlayerSpawn", root, stopSonido)
  14. Ya lo arreglé, gracias de todas maneras. Era ese el fallo
  15. Los Jobs, son todos iguales si te fijas, todo checkpoints, solo que cada uno te muestra un exports.gui:hint diferente (Cartel verde / azul de abajo que te dice: barre las calles tal tal tal. Lo único que has de hacer es copiar otro job exactamente igual, y cambiar esos chats, las coordenadas de los checkpoints y los coches de trabajo, y listo, espero que te haya servido
  16. Bién, ¿Alguien tiene idea de lo que le pasa a la linea 26 al getLocalPlayer porfavor?, se lo agradecería
  17. Me da un problema del getLocarPlayer linea 26, aunque creo que no es el único error
  18. Pues, tengo errores con el siguiente script, y no sé como arreglarlo, he modificado varias veces el getLocalPlayer, pero nada, a ver si alguien me puede ayudar porfavor I have problems with that script, if anyone can help me, please.., y change sometimes getLocalPlayer... but no... help me please local enginelessVehicle = { [510]=true, [509]=true, [481]=true } local odometer -- draw the odometer as soon as the player enters the car. function showOdometer( theVehicle, seat ) if not guiGetVisible( odometer ) then local id = getElementModel( theVehicle ) if (seat < 2) then if not (enginelessVehicle[id]) then -- If the vehicle has an engine. local x, y = guiGetScreenSize() local vehicle = getPedOccupiedVehicle( source ) local km = getElementData(vehicle, "odometer") local km = math.floor(km/1000) local odoKM = string.format("%07d", km) odometer = guiCreateLabel(x-138, y-215, 200, 200, tostring(odoKM), false) guiSetFont(odometer, "default-bold-small") kilo = guiCreateLabel(x-122, y-202, 200, 200, "km", false) guiSetFont(kilo, "default-bold-small") end end end end addEventHandler("onClientPlayerVehicleEnter", getLocalPlayer(), showOdometer) -- hide the odometer as soon as the player exits the car. function hideOdometer( ) if not (isVehicleLocked(source)) then setTimer( -- So that the odometer doesn't disappear as soon as you press 'F'. function() if (odometer) then destroyElement(odometer) odometer = nil end if (kilo) then destroyElement(kilo) kilo = nil end end, 1700, 1) end end addEventHandler("onClientVehicleStartExit", getLocalPlayer(), hideOdometer) -- update the odometer as the player moves in his vehicle. function updateOdometer( currentKilometers ) if isElement( odometer ) then if (guiGetVisible(odometer)) then local currentKilometers = math.floor(currentKilometers/1000) local odoKM = string.format("%07d", currentKilometers) guiSetText(odometer, tostring(odoKM)) end end end addEvent("updateOdo", true) addEventHandler("updateOdo", getLocalPlayer(), updateOdometer) -- remove the odometer if the player is not a in a vehicle but he is still seeing it. function removeOdometer() if not (isPedInVehicle(getLocalPlayer())) then if (odometer) then destroyElement(odometer) odometer = nil end if (kilo) then destroyElement(kilo) kilo = nil end end end setTimer(removeOdometer, 50, 0)
  19. Pues estoy en el proyecto de un roleplay el cual va bastante bien, y estamos buscando un HOST, he encontrado éste y parece tener muy buena pinta además del precio que tiene, y además de ver que tiene varios servidores muy desenvolupados hosteados, aún así quisiera ver vuestra opinion acerca de éste, gracias. Im creating a roleplay server gaming, and im searching for a host, please, say me about this host, ¿This is good?, ¿Not bad?, say your opinion please, thank you URL Host: http://mta-host.biz/
  20. Bueno pues soy Alex, y llevo un tiempo intentando a scriptear/Aprender pero sé extremadamente poco sobre ello. Si alguien que tenga tiempo, quiera y sepa scriptear me pudiera ayudar para poder crear algunos scripts se lo agradecería muchisimo de verdad, y luego la otra: Como creo una faccion para paradise (Roleplay) desde MySQL? Lo que viene siendo un F3 para los que juegan rol. Gracias de antemano
×
×
  • Create New...