Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 28/06/20 in Posts

  1. Apenas faltou : function formatNumber ( number ) local formatar = number while true do formatar, k = string.gsub(formatar, "^(-?%d+)(%d%d%d)", '%1,%2') if ( k == 0 ) then break end end return formatar end -- .. código abaixo.
    2 points
  2. tente: local Dinheiro = (getPlayerMoney(getLocalPlayer())) local DinheiroF = formatNumber(Dinheiro) local Banco = getElementData(localPlayer,"Banco") or 0 local DinheiroB = formatNumber(Banco) local procurado = getPlayerWantedLevel(getLocalPlayer()) dxDrawText(Empregos, screenW - 140 - 10, 15 + 200, screenW - 328 - 10 + 315, 30, tocolor(255, 255, 255, 255), 0.9, Fonte, "center", "center", false, false, false, false, false) dxDrawText(DinheiroF, screenW - 328 - 10, 10 + 183, screenW - 350 - 10 + 190, 20, tocolor ( 255, 255, 255, 255 ), 0.7, Fonte, "right", "top", false, false, false, true ) dxDrawText(DinheiroB, screenW - 328 - 10, 10 + 183, screenW - 321 - 10 + 312, 20, tocolor ( 255, 255, 255, 255 ), 0.7, Fonte, "right", "top", false, false, false, true )
    2 points
  3. OK so after many requests from people asking me to install discord bots to their servers I have decided to make the simplest tutorial on setting up a bot for your servers. [NOTE]: THIS IS A VPS TUTORIAL. IF YOUR SERVER ISN'T RUNNING ON A VPS THIS WILL NOT WORK FOR YOU UNLESS YOU UNDERSTAND HOW NODE.JS WORKS. Part 1: Bot creation Part 2: Files Configuration Part 3: SSH commands That should be all now go have fun annoying players in your server. Some feedback would be appreciated Good luck
    1 point
  4. This quickguide covers how you can remove objects like night lights and wires. SAMP editor method To install SAMP editor, simply drag and drop the packaged contents into your GTA SA installation. Run the application. https://www.moddb.com/downloads/san-andreas-multiplayer-map-editor Code for removing object in video removeWorldModel ( 16745, 1, 392.9141, 1511.5625, 21.5859 ) ^This is for the script.Lua file <meta> <script src="script.Lua" type="server" /> </meta> ^This is for the meta.xml file For those who want to load it into a .map file, the below code can be edited with your coordinates, ID and radius. <removeWorldObject id="removeWorldObject (objectname) (1)" radius="100" interior="0" model="9934" posX="-1724" posY="765" posZ="24" rotX="0" rotY="0" rotZ="0"></removeWorldObject> ^This is for the .map file if you rather use map editor format Note: SAMP editor doesn't want to run if MTA (gta exe) is already running. Therefore you'll want to add SAMP editor into a separate gta sa installation. I use 3 (1 for playing, 1 for samp editor, 1 as clean backup) on my PC. This requires 12gb disk space. This lets you boot up MTA and SAMP editor without conflicting issues. Prineside method Prineside is a site containing IPL and IDE information about objects, it also serves a GTA map with position pinpoint functionality, allowing you to get the object ID easily by clicking a spot in the map. Use Prineside's Model search by location to pinpoint the location closest to the object of interest. This generates a list of objects within 500 meters from the pin, closest to farthest. Clicking an object page gets you its object name and ID. At the bottom of an object page you can get the position export. Repeat the steps from SAMP editor method for adding the coordinates to the code. Transcluent/transparent objects like shadows, telewires and small flowers may not have any clear thumbnail, in which case it's actually easier to spot them as they're the ones with an empty thumbnail. https://wiki.multitheftauto.com/wiki/RemoveWorldModel https://dev.prineside.com/en/gtasa_samp_model_id/
    1 point
  5. É uma função útil. E os parâmetros dela são um pouco diferentes do dxDrawText. Vc esqueceu de declarar a espessura da borda no primeiro argumento.
    1 point
  6. https://wiki.multitheftauto.com/wiki/DxDrawBorderedText
    1 point
  7. Totally forgot about IsInsideColShape function, thank you so much. You saved my day. It solved my problem
    1 point
  8. uhh, verdade, esqueci de por não entendi, tem algum exemplo?
    1 point
  9. yok kanka o da olmadı başka şekilde düzelttim farklı kod satırları vs ekleyerek çözdüm problemi admin fix konuyu kapatalım
    1 point
  10. no resouce, o problema se encontra aqui : --> Valor : local housesLimit = tonumber ( get ( "maxHouses" ) ) or 2 --linha 164 : if ( #getAccountHouses ( accountName ) >= housesLimit ) then --> Problema : ">=", o que significa? se for maior, ou igual. --> Então se a pessoa tentar compra a 2ª casa, retornará. Solução : if ( #getAccountHouses ( accountName ) > housesLimit ) then --> Apenas deixa, se for acima do valor.
    1 point
  11. UPDATE: -Smoke grenades will now explode after 5 seconds and eject smoke that is synced from the creator to all other players to prevent smoke desync -Fixed non-working mortar smoke shells -Fixed satchel detonator not working when the player is sitting in a vehicle -Satchels can now be detonated with any weapon equipped (No longer needed to equip satchels specifically) -Satchels can now be "defused" by shooting them or by exploding something in their proximity (Beware, satchels have no collision, you have to hit the surface that is next to the satchel) -Players can no longer switch first person mode while reviving to cancel the revive animation -Changed default key for "Sonar Ping" to "J" -Changed default key for "Toggle vehicle light" to "O" -Changed default key for "Detonate satchels" to "P" -Added new key "Call artillery", default key is "lalt" (I separated artillery call from satchel detonator) I will soon upload the new maps Westerplatte and Budapest. I wont create a new post for that and i dont know when they will be added exactly. Also we have currently a problem with missing killer information when a satchel explodes. I will fix this soon.
    1 point
  12. You could also use this function. https://wiki.multitheftauto.com/wiki/IsInsideColShape https://wiki.multitheftauto.com/wiki/GetElementBoundingBox If you run it 8x times for each corner, per object = 16x. Then it will detect most of the collisions, except when no corners are inside each other. There is also something by crystamv. https://web.archive.org/web/20160507103732/http://crystalmv.net84.net/pages/scripts/server_coldata.php But that one only supports peds and vehicles. But you could modify it to also support objects
    1 point
  13. onPlayerWasted getPlayerTeam getTeamName spawnPlayer
    1 point
  14. You must have broken something in your acl.xml file. Restore the original file and the problem will go away. (https://raw.githubusercontent.com/multitheftauto/mtasa-blue/master/Server/mods/deathmatch/acl.xml)
    1 point
  15. local myShader_raw_data = [[ texture Tex0; technique simple { pass P0 { Texture[0] = Tex0; } } ]] local theTechnique = dxCreateShader(myShader_raw_data) local theTechniqueon = dxCreateShader(myShader_raw_data) local texture = dxCreateTexture("vehlights.png") local texture_on = dxCreateTexture("vehlightson.png") dxSetShaderValue(theTechnique,"Tex0", texture) dxSetShaderValue(theTechniqueon,"Tex0", texture_on) -- replace everywhere, not only for a specific element (don't use 3rd arg) engineApplyShaderToWorldTexture(theTechnique, "vehiclelights128") engineApplyShaderToWorldTexture(theTechniqueon, "vehiclelightson128")
    1 point
×
×
  • Create New...