Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. No, if you would read the other replies instead of just advertise your resource, you would know what does he want.
  2. Stop double-posting and wait for an answer. P.S: As I said, is updating every render, is faster than every second.
  3. That script is getting the money on every render.
  4. Castillo

    help

    Make a check, so if another player enters the colshape and the gate is already opening, cancel the operation.
  5. Ese script es un lio, volve a la wiki y empeza de nuevo.
  6. Show us how are you using the function.
  7. What do you mean? set player health? if so setElementHealth
  8. You can do: getPedWeapon(thePlayer) and it'll return player's weapon ID.
  9. Robert_Pope, the links are dead.
  10. I had a server with a 4mb XML file and 5500+ accounts (in a SQLITE db) and the server didn't crash.
  11. "cheese.mp3" type="client"/> It still doesn't work attempt to call global "playSound" (a nil value) I meant the SCRIPT, not the FILE.
  12. This should go in "Media" section. Anyway, nice, but it has some weird stuff, like birds in the space (lol). P.S: We had a similar idea in SAUR.
  13. Check the meta.xml, see if the type is set as server side, playSound is only client side.
  14. function drawSpectators() local textX = x - spectatorSettings.xOffset local textY = spectatorSettings.yOffset dxDrawText("MIRANDO: "..tostring(#spectators), textX - 0.2, textY - 0.2, x, y, tocolor(0, 0, 0, 255), 0.4, "bankgothic") drawColor("#00FF00MIRANDO: #ffffff"..tonumber(#spectators), textX, textY, x, y, tocolor(83, 134, 139), 0.4, "bankgothic") dxDrawText("FPS: "..tostring(getElementData(getLocalPlayer(), "fps")), textX - 0.2, textY + 15 - 0.2, x, y, tocolor(0, 0, 0, 255), 0.4, "bankgothic") drawColor("#00FF00FPS: #ffffff"..tostring(getElementData(getLocalPlayer(), "fps")), textX, textY + 15, x, y, tocolor(15, 192, 252, 255), 0.4, "bankgothic") dxDrawText("$: "..tostring(getPlayerMoney()), textX - 0.2, textY + 15 + 15 - 0.2, x, y, tocolor(0, 0, 0, 255), 0.4, "bankgothic") drawColor("#00FF00$: #ffffff"..tostring(getPlayerMoney()), textX, textY + 15 + 15, x, y, tocolor(15, 192, 252, 255), 0.4, "bankgothic") end addEventHandler("onClientRender",root,drawSpectators) You're insane, a timer into a onClientRender event handler?!
  15. Castillo

    Problem

    You're all doing it wrong, what has driveby to do with his script?? because you see the image with a error you think it's the same resource...? function createMarkers() bankMarker = createMarker ( 1654.1, -1654.76, 21.51, "cylinder", 2, 255, 255, 255, 255 ) outBankMarker = createMarker ( 389.82, 173.71, 1008.38, "cylinder", 2, 255, 255, 255, 255 ) setElementDimension (outBankMarker, 1 ) addEventHandler( "onMarkerHit", bankMarker, goIntoBank ) addEventHandler( "onMarkerHit", outBankMarker, goOutOfBank ) end addEventHandler( "onResourceStart", resourceRoot, createMarkers ) function goIntoBank(hitElement, matchingDimension) if (matchingDimension and getElementType( hitElement ) == "player" and not isPedInVehicle(hitElement) ) then setPedFrozen( hitElement, true ) setElementDimension ( hitElement, 1 ) setElementInterior ( hitElement, 3, 386.59, 173.84, 1008.38 ) setPedFrozen( hitElement, false ) end end function goOutOfBank(hitElement, matchingDimension) if (matchingDimension and getElementType( hitElement ) == "player" and not isPedInVehicle(hitElement) ) then setPedFrozen( hitElement, true ) setElementDimension ( hitElement, 0 ) setElementInterior ( hitElement, 0, 1654.496, -1661.855, 22.51 ) setPedFrozen( hitElement, false ) end end
  16. If you want to create custom blips, then use this resource: https://community.multitheftauto.com/index.php?p= ... ils&id=960
  17. Admigo: You want to enable HEX colours in nametag? if so, that's not possible, you must create a custom nametag for that.
  18. First, welcome to MTA! Now, let's try to help you: I don't have much experience with MTASE (I use Notepad++), but I think you should select where your MTA Server folder is, usually it's on: c:\Program Files\MTA San Andreas 1.1\server\
  19. Pues, solo tienes que agregar todos los archivos (menos el meta.xml) del recurso "snow" en tu mapa, y editar el meta.xml del mapa agregandole los archivos del "snow".
  20. Copy my code again, I forgot about something.
  21. Castillo

    buymap

    You'll have to do that, you didn't suppose that I was going to give you everything done, right?
  22. -- -- c_water.lua -- local waterOn = false addEventHandler( "onClientResourceStart", resourceRoot, function() -- Version check if getVersion ().sortable < "1.1.0" then return end -- Create shader myShader, tec = dxCreateShader ( "water.fx" ) if myShader then outputChatBox( "Using technique " .. tec ) -- Set textures local textureVol = dxCreateTexture ( "images/smallnoise3d.dds" ); local textureCube = dxCreateTexture ( "images/cube_env256.dds" ); dxSetShaderValue ( myShader, "microflakeNMapVol_Tex", textureVol ); dxSetShaderValue ( myShader, "showroomMapCube_Tex", textureCube ); end end ) function setWaterShaderEnabled(bool) if bool then engineApplyShaderToWorldTexture ( myShader, "waterclear256" ) -- Update water color incase it gets changed by persons unknown waterTimer = setTimer( function() if myShader then local r,g,b,a = getWaterColor() dxSetShaderValue ( myShader, "gWaterColor", r/255, g/255, b/255, a/255 ); end end ,100,0 ) waterOn = true else if isTimer(waterTimer) then killTimer(waterTimer) end engineRemoveShaderFromWorldTexture ( myShader, "waterclear256" ) waterOn = false end end bindKey("K","down", function () waterOn = not waterOn setWaterShaderEnabled(waterOn) end)
×
×
  • Create New...