Jump to content

RenanPG

Members
  • Posts

    186
  • Joined

  • Last visited

Everything posted by RenanPG

  1. it's not what he want, he wants to know when the data must be stored. In that case when admins set ( VIP ) for certain account.
  2. RenanPG

    help please

    Try to create a function to get the time when admins give " VIP " for certain player. And send the time to the VIP panel using: setAccountData( )
  3. RenanPG

    [help] Edit

    Thanks man, it's exactly i needed.
  4. RenanPG

    [help] Edit

    hi everybody, i am creating a login using dx functions, but i have no idea how to make an EditBox in dx. I know need a table to store the keys pressed using this event: addEventHandler("onClientCharacter", getRootElement(), getCharacter)
  5. As far i know isn't possible compile txds, dffs, etc. And putting "Cache" in false, players will download eveything again.
  6. This can help you. addEventHandler("onClientGUIClick", root, function() if ( source == button ) then ------- exemple end end )
  7. try this, but i haven't tested. test = createPickup (1660, 296, 21, 3, 1247, 6000 ) function destroy(player) destroyElement(test) setPlayerWantedLevel(player,getPlayerWantedLevel(player)-1) function delay() test = createPickup (1660, 296, 21, 3, 1247, 6000 ) end setTimer ( delay, 6000, 1 ) end addEventHandler("onPickupHit",test,destroy)
  8. Problably the flag don't have the same name "TN", of couse if you added.
  9. Explain what you want, i don't understand.
  10. triggerClientEvent Use essa função para enviar informações do server para client. https://wiki.multitheftauto.com/wiki/TriggerClientEvent
  11. I used to have the same problem on my blips system, using shaders u can fix it.
  12. RenanPG

    Linux server

    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.
  13. Some codes were removed.
  14. RenanPG

    zombie

    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.
  15. Post your script.
  16. 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.
  17. 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)
  18. 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
  19. i only want to rotate the image not the dxDrawImageSection. see this: i think is -45 deegres on Y axe
  20. 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
  21. 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 )
  22. Valeu DNL, esqueci de mencionar isso. retirei de antigo script de teleportes. So tira Player e por Ped
  23. 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.
  24. Poste seus codes aqui.
×
×
  • Create New...