Jump to content

Alex0002

Members
  • Posts

    21
  • Joined

  • Last visited

Details

  • Gang
    -ESP-

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Alex0002's Achievements

Civilian

Civilian (7/54)

0

Reputation

  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
×
×
  • Create New...