-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
No, if you would read the other replies instead of just advertise your resource, you would know what does he want.
-
Stop double-posting and wait for an answer. P.S: As I said, is updating every render, is faster than every second.
-
That script is getting the money on every render.
-
Make a check, so if another player enters the colshape and the gate is already opening, cancel the operation.
-
Ese script es un lio, volve a la wiki y empeza de nuevo.
-
Show us how are you using the function.
-
What do you mean? set player health? if so setElementHealth
-
You can do: getPedWeapon(thePlayer) and it'll return player's weapon ID.
-
Robert_Pope, the links are dead.
-
I had a server with a 4mb XML file and 5500+ accounts (in a SQLITE db) and the server didn't crash.
-
"cheese.mp3" type="client"/> It still doesn't work attempt to call global "playSound" (a nil value) I meant the SCRIPT, not the FILE.
-
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.
-
Check the meta.xml, see if the type is set as server side, playSound is only client side.
-
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?!
-
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
-
If you want to create custom blips, then use this resource: https://community.multitheftauto.com/index.php?p= ... ils&id=960
-
Admigo: You want to enable HEX colours in nametag? if so, that's not possible, you must create a custom nametag for that.
-
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\
-
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".
-
Voted, good luck!
-
Copy my code again, I forgot about something.
-
You'll have to do that, you didn't suppose that I was going to give you everything done, right?
-
-- -- 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)
