-
Posts
186 -
Joined
Everything posted by RenanPG
-
Hi everyone, when i use caracters like "Ç~`"(portuguese caracters) scripts codeds in ANSI don't work, but in UTF work normally. How can i make ANSI codes accept this caracters??? all of my scripts is coded in ANSI, and i don't want to convert all.
-
Edit the settings of resource on META: "*MaxZombies" value="[100]" /> --maximum allowed zombies --> "*StreamMethod" value="[1]" /> -- 1 to constantly stream zombies, 0 to only allow zombies to spawn via createZombie function, 2 to only allow spawning at set spawnpoints --> "*Speed" value="[1]" /> -- 0 is slowest, 1 is normal, 2 faster --> And find the spawn points in the scripts.
-
Can you pass your code to rotate for me via PM?? i will help you about quality image, probably using image with high compression in jpg can fix it.
-
Jacobob14, if you don't know what we're talking about, don't help, yours radar rotate the dxDrawImageSection outside of the retangle. i want something that works correctly.
-
De nada.
-
is this correct? local renderTarget = dxCreateRenderTarget(50 , 50, true) local shader = dxCreateShader("textureReplace.fx") function updateRenderTarget() dxSetRenderTarget(renderTarget, true) dxDrawImage (0, 0, 100, 100, "agua.png") dxSetRenderTarget() dxSetShaderValue(shader, "tex", renderTarget) end updateRenderTarget() addEventHandler("onClientRestore", root, function(didClear) if(didClear)then updateRenderTarget() end end) addEventHandler("onClientRender", root, function() dxSetShaderTransform(shader, 45, 0, 0) local width, height = dxGetMaterialSize(renderTarget) dxDrawImage((w/2), (h/2), 300, 300, shader) end)
-
So I was totally right, he wants the image to be rotated a bit like if the top of the radar image being drawn was going inside the screen (I mean like the star wars credits at the end). Yes, this i want
-
i only want to rotate the image not the dxDrawImageSection. see this: i think is -45 deegres on Y axe
-
hi everybody, i am making a radar in gta v style. but i dont know how to make this rotate. texture = dxDrawImageSection(telax, telay, tamanhox, tamanhoy, px, py, alt, alt, imagem, 0, 60, 60, tocolor(225, 225, 225, 180)) i know i can make this using this below, but i really don't understand about shaders. dxCreateShader dxCreateRenderTarget dxSetRenderTarget dxSetShaderValue dxSetShaderTransform dxDrawImage
-
Testei aqui e esta funcionando, tanto com teleporte de carro ou player. dutymarker = createMarker(126.56, 254.98, 78.9, 'cylinder', 2.0, 255, 0, 0, 150) local posicoes = { { -1310.5999755859, -173.69999694824, 1090.0999755859 }, { -1310.5999755859, -173.69999694824, 1090.0999755859 }, { -1310.5999755859, -173.69999694824, 1090.0999755859 }, } function PosicaoPlayer ( hitPlayer, commandName ) local azar = math.random ( #posicoes ) if isElementWithinMarker(hitPlayer, dutymarker) then if isPedInVehicle (hitPlayer) then setElementPosition(getPedOccupiedVehicle(hitPlayer), unpack ( posicoes [ azar ] )) else setElementPosition(hitPlayer, unpack ( posicoes [ azar ] ) ) end outputChatBox ('#ff0000[tele]' .. getPedName(hitPlayer) .. ' Foi para mega-salto', root, 255, 255, 255, true) else outputChatBox ('Comando disponivel somente dentro da marcação!', root, 255, 255, 255, true) end end addCommandHandler ( "salto", PosicaoPlayer )
-
Valeu DNL, esqueci de mencionar isso. retirei de antigo script de teleportes. So tira Player e por Ped
-
esse script provavalmente ira funcionar: (não testei) dutymarker = createMarker(126.56, 254.98, 78.9, 'cylinder', 2.0, 255, 0, 0, 150) local posicoes = { { -1310.5999755859, -173.69999694824, 1090.0999755859 }, { -1310.5999755859, -173.69999694824, 1090.0999755859 }, { -1310.5999755859, -173.69999694824, 1090.0999755859 }, } function PosicaoPlayer ( hitPlayer, commandName ) local azar = math.random ( #posicoes ) if isElementWithinMarker(hitPlayer, dutymarker) then if isPlayerInVehicle (hitPlayer) then setElementPosition(getPlayerOccupiedVehicle(hitPlayer), unpack ( posicoes [ azar ] )) else setElementPosition(hitPlayer, unpack ( posicoes [ azar ] ) ) end outputChatBox ('#ff0000[tele]' .. getPlayerName(hitPlayer) .. ' Foi para mega-salto', root, 255, 255, 255, true) else outputChatBox ('Comando disponivel somente dentro da marcação!', root, 255, 255, 255, true) end end addCommandHandler ( "salto", PosicaoPlayer ) agora so coloque para que funcione so dentro do marker.
-
Poste seus codes aqui.
-
Use esse script obtido da MTA wiki como base. dutymarker = createMarker(126.56, 254.98, 78.9, 'cylinder', 2.0, 255, 0, 0, 150) -------isso aqui forma um marker, coloque as coordenadas function duty(thePlayer, matchingDimension) if isElementWithinMarker(thePlayer, dutymarker) then ---- substitua essa parte pela sua função giveWeapon(thePlayer, 22, 100, 1) else outputChatBox("You are not at the right place!", thePlayer, 255, 0, 0) end end addCommandHandler("duty", duty) ------ aqui coloque o event ou command que quiser.
-
sobstitua o scoreboard padrão do mta por esse: http://www.mediafire.com/?ca68kne6aq1dhkb e depois coloca https://community.multitheftauto.com/modules/resources/doDownload.php?file=flag_sc_1.0.0.zip&name=flag_sc.zip OBS. + Use o admin panel mais atual, pois as flags são obtidas dele. + E jogando em modo local ele não mostra o pais. (somente servers hostiado em ip externo)
-
i think it isnt possible, because the dxDrawImageSection dont rotate the image, only rotate whole DX. bool dxDrawImageSection ( float posX, float posY, float width, float height, float u, float v, float usize, float vsize, mixed image, [ float rotation = 0, float rotationCenterOffsetX = 0, float rotationCenterOffsetY = 0, int color = white, bool postGUI = false ] ) https://wiki.multitheftauto.com/wiki/DxDrawImageSection bur you can drw this using others functions DX, but is difficult. something like this can rotate: dxDrawImage3D
-
local px = ((x + 6000) / 2) - 100 local py = ((-y + 6000) / 2) - 100 The whole image is 6000x6000. here is my map. if x >= -3200 then if x <= 3200 then if y >= -3200 then if y <= 3200 then imagem = "mapa.jpg" else imagem = "agua.png" end else imagem = "agua.png" end else imagem = "agua.png" end else imagem = "agua.png" end and i use that to replace txture when the player is in middle of the sea. that makes the map infinite.
-
this viewtopic.php?f=91&t=71784&hilit=blip ??? but some codes were removed ;( if someone want to help me, i can send my current codes by pm.
-
yes i created my own, using dxDrawImageSection.
-
hi everybody, i've made a radar in gta v style, but i don't know how to put blips there. And i need help to makes radar image rotate.
-
hi everybody, i want to create my own radar and hide the original. addEventHandler('onClientHUDRender', root, function(source) local px, py = getElementPosition(source) dxDrawImageSection(2, 2, 400, 350, px, py, 3000, 3000, 'mapa.jpg') end) so, i dont know how to convert coordinates of map, to teh coordinates of the image. player: -1500, 1300 <- pX, pY on the map. map coordinates: the drawed image dont accept negative values of coordinates. the map is 3000x3000 pixels.
-
Do you need help in something? please contact me i could help you. im Brazilian too Do you want multi words of race or freeroam?