Jump to content

WorthlessCynomys

Members
  • Posts

    369
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by WorthlessCynomys

  1. You want to evaluate the top positions first, wait for all the tops and then give then points. This will not require to subtract points, hence saving you a lot of time and trouble.
  2. You can use .. to use variables in strings. Just like this: outputChatBox("You have "..getPedArmor(localPlayer).."% armour") and you can calculate the length of a dxRectangle with this formula: maxLength*(currentValue/maxValue) At armour it looks like this: maxLength*(getPedArmor(localPlayer)/100) Whereas getPedArmor is your current value, of how much armor a player has, and 100 is the max, since a full armor has a value of 100. The length can be decided by you.
  3. It means that your servers default joinquit.lua script is empty. If you don't use it, it shouldn't cause a problem.
  4. You would have to use a timer for that: setTimer() which calls a function that clears the player of being wanted.
  5. Hello everyone! So I'm trying to model a lightbar on the LSPD police car. I use blender with the GTA SA script. My problem is with the TXD file. As long as I put only one of the textures in the TXD file, the game loads it and it is visible on the lightbar. Problems happen when I put more of the textures into the TXD file. When I try to load the TXD with 2 of the textures in it, I get the "Error Loading TXD" message. Wonder if anyone here knows why it's doing this. I use TXDWorkshop to assemble the TXD files, and I extracted the copcarla.txd file from the GTA3.img file and modified it. Thanks in advance!
  6. GetCursorPosition return the relative position as the first two. You don't need to multiply it.
  7. Now your lights are actually transparent. I can't help you with the shader thingy.
  8. You don't even need the modeling programs. Get TXD Workshop, open the .txd file of the infernus and then you can extract the taillight texture in PNG, BMP, TGA formats. You can edit that and put it back in the TXD file. Using that TXD will result in a brighter light if you do it so.
  9. 6 years into MTA Scripting and just learned about showmemstat.. Thank you! ? I don't know if it's solved yet, but this could occur if you haven't refreshed your resource, or you could be missing the file extension. I mean it can be jpg while you try using PNG. Those are my guesses.
  10. Don't replace the original animations unless you want to change the way the player holds a gun or something. The new animation functions allow you to use new animations without removing others. Also moving animations move by the animation itself. Get the gta3.img file and pick a walking animation then load it in 3ds. You'll see how it works.
  11. Hello! Make it a server side command and use triggerClientEvent to trigger an event for everyone on clientside. In this event, pass the vehicle that should be ghosted, and on clientside disable that given vehicles collision. Doing this will disable the collisions of that vehicle to all ONLINE players, making it uncollidable for everyone.
  12. toggleControl function disables the F11 map. You have to re-enable it with toggleControl("radar", true)
  13. Could you rephrase your question?
  14. Hello! Általában nem írom le sehol, úgy vagyok vele, hogy akit érdekel majd megtalál, de van egy YT csatornám ami LEHET, hogy segít neked elindulni. A csatornám (Egyébként ha beírtad volna YTra, hogy MTA scripting akkor rengetek videót találtál volna róla)
  15. To render an image in 3D I would use a render target, draw on It with dxDrawImage and I would use that renderTarget as the texture in dxDrawMaterialLine3D.
  16. As far as I know, there is not a function present for skin names. You would have to implement a table with the IDs and the names associated with them.
  17. Put the word client to where the root is now.
  18. You can use the client side event "onClientKey" or you can use the function "getKeyState". The first one gets called when you push or release a key. The second one returns if the key is currently pressed or not.
  19. Next time use code mode for codes. It's the "<>" button. I'll do it for you this time and I'll get back to the topic later to see if I can help. -- Do not allow the following IDs to be spawned local forbiddenCars = { [435] = true, [441] = true, [449] = true, [450] = true, [464] = true, [465] = true, [501] = true, [537] = true, [538] = true, [564] = true, [569] = true, [570] = true, [584] = true, [590] = true, [591] = true, [594] = true, [606] = true, [607] = true, [608] = true, [610] = true, [611] = true } local cmdVehRoot = createElement("commandVehicles") -- Dummy element containing the cars that this command has created addCommandHandler("spveh", function(player, cmd, modelID, x, y, z, platetext) -- Check whether arguments are correct local modelID, x, y, z = tonumber(modelID), tonumber(x), tonumber(y), tonumber(z) if modelID and x and y and z then -- Do not continue if we shouldn't if forbiddenCars[modelID] then outputChatBox("#ff0000In Mashin Ra Nemishe Sakht!", player, 255, 0, 0, true) return end local platetext = type(platetext) == "string" and platetext or "PRIVATE" -- Create the actual vehicle and set it as a children of our dummy element setElementParent(createVehicle(modelID, x, y, z, 0, 0, 0, platetext), cmdVehRoot) -- Inform the player about what we did outputChatBox("#ffffffShoma Mashine : (#00ff00" .. getVehicleNameFromModel(modelID) .. " #ffffffBa ID #00ff00" .. modelID .. "#ffffff) #ffffffDar Position : [#00ff00" .. table.concat({ x, y, z }, ", ") .. "#ffffff] Ba Pelak : (#00ff00" .. platetext .. "#ffffff) Sakhtid!", player, 0, 255, 0, true) else outputChatBox ("#DAA520SYNTAX: /"..cmd.." (Model ID) (x) (y) (z) (Pelak)", player, 255, 255, 255, true) end end ) -- If a vehicle that has been created using the command blows up, respawn it where it was created addEventHandler("onVehicleExplode", cmdVehRoot, function() respawnVehicle(source) end )
  20. Azzal is lehet. Igazából bármivel ami képes magától vagy scripttel dff fájlt készíteni.
  21. Ha darabokban modelezed le a szigetet és rohadt jól, kevés ployból és a 3 sziget helyére cseréled ki, akkor sem biztos, hogy elvinné az MTA. De ha naaaagyon profin csinálod meg, akkor az erősebb gépek talán vinnék.
  22. Hello! Lehetséges. Rengeteg munka és fáradtság, de meg lehet oldani. Azonban van vele 1-2 gond, például az, hogy a San Andreas még nem arra van kitalálva, hogy az emberek mindenféle modelt kicseréljenek benne, ezért rendkívül szarul viseli ha ezt megteszik. Nagyon takarékosan kell modelezni, ha egy egész mapot/map részt le akarsz cserélni, hogy ne szarja össze magát. Ezért nincs egyik szerveren sem lecserélve az egész map, mert egyszerűen az MTA nem alkalmas rá. Pontosabban a San Andreas régi játékmotorja nem alkalmas rá. Röviden a válasz: Igen, de rohadt teljesítmény igényes.
×
×
  • Create New...