Jump to content

denny199

Members
  • Posts

    877
  • Joined

  • Last visited

Everything posted by denny199

  1. Nuhu, I'd rather use a couple colshapes instead of adding hundreds of spawnpoints. Colshapes are not the ones that are zombieProof,Any way, Create big radar areas, and restart your zombie resource so that the new zombie-proof areas are inserted into the tables...And well thats about it, you can make them invisible setting the alfa to 0 .. Any other thing just say so Settings the alpha to 0 hahahaha, getting body raped, and bited in your neck by hordes of invisible zombies so funny Anyways You can maybe use this resource: https://community.multitheftauto.com/in ... ls&id=2020
  2. use spawnPlayer with onPlayerWasted
  3. Because this line: " else return; end; " was useless
  4. Press f8> and then typ "refresh", you still need admin.
  5. Why are you changing the topic? It was: Not something like "I think that ixjf is a noob scripter." off-topic: Dude, stay ontopic, and stop replying on those guys, you know that you can't win this discussion. And also, he asked a way to learn lua, not to make a gamemode like FFS, ffs, learn to read the topic title, and the topic poster instead of writing to 2 guys who want to help this guy. on-topic: viewtopic.php?f=148&t=40809 Go chek it out
  6. denny199

    how i can ?

    They made a costum script loader, so they could get the file size, and then send the data to the client and then calulate how much kb is needed.
  7. Create it client side, with table's and variables like: You still need to edit it for yourself. local checkpoint = 1 local table = { [1] = { 0,4,6 }, [2] = { 0,67, 5} --etc } function createNextMarker(hitElement) if hitElement == getLocalPlayer() then checkpoint = checkpoint + 1 --unpack the table here with the checkpoint table --and attach everything what you want on it. end end addEventHandler ( "onClientMarkerHit", resourceRoot, createNextMarker ) addEventHandler ( "onClientResourceStart", resourceRoot, function () -- make here your first marker with unpack(table[1]) and createMarker end)
  8. That won't work pain, since there is a chatting limit on the chatbox input.
  9. He doesn't want to center the window, he wants to make it for everyone screen. Quote:
  10. A quote from me: https://wiki.multitheftauto.com/wiki/GuiGetScreenSize There are some calculations there 2. Divide each of the DX text's position values by the screen size manually (remembering the resolution is 1024x768): Left position value is 684, 684/1024 = 0.668 Top position value is 731, 731/768 = 0.952 Right position values is 732, 732/1024 = 0.715 Bottom position value is 766, 766/768 = 0.997 You may want to use a calculator to help you count. 3. Now with the answer above remove all of the position values and replace it with the width or height variable multiplied by the answer. Which would be: local sWidth,sHeight = guiGetScreenSize() -- The variables dxDrawText("Hello World!",sWidth*0.668, sHeight*0.952, sWidth*0.715, sHeight*0.997,tocolor(0,255,255,175),1.0,"bankgothic","left","top",false,false,false) ------------------------------MY EXAMPLE---------------------------------------------- So if you look at "2." then you need to calculate it like this: calc1 = Left position value / my local screenx = answer for all screen for next calculation screenX calc2 = Top position value / my local screeny = answer for all screen for next calculation screenY calc3 = Right position value/ my local screenx = answer for all screen for next calculation width calc4 = Bottom position value/ my local screeny = answer for all screen for next calculation height So after that you can use it like this: local sX,sY = guiGetScreenSize() sX*calc1, sY*calc2, sX*calc3, sY*calc4 This will be on all the resolutions the same. I hope that I helped you. Kindly regards, Danny
  11. You can remove the players shadow with shaders. You need to use these functions: https://wiki.multitheftauto.com/wiki/DxCreateShader https://wiki.multitheftauto.com/wiki/En ... rldTexture https://wiki.multitheftauto.com/wiki/DxSetShaderValue and a good .fx file
  12. Chek the parameters element playSound ( string soundPath, [ bool looped = false ] ) So: local bg = playSound("sound/sea.mp3", true) setSoundVolume(bg, 1.0)
  13. It will only output on the client since it's a client script. And this might help you: https://wiki.multitheftauto.com/wiki/CenterWindow
  14. denny199

    Question

    Use some calculations, like the wiki said(copy of a post a mine):
  15. Ah yeah, little mistake was needed to eat
  16. Try to test it WITHOUT editor. And use this: addEvent ( "onPlayerRaceWasted", true ) addEventHandler("onPlayerRaceWasted", root, function (car) if getElementModel(getPedOccupiedVehicle(car)) == rmodel then for i, v in ipairs(getElementsByType("player")) do setElementHealth(v, 0) end outputChatBox("Cops win!", root, 255, 0, 0, true) end end )
  17. Use https://wiki.multitheftauto.com/wiki/Ge ... ldPosition
  18. You could use getElementBoundingBox Something like this: local minx, miny, minz, mx, my, mz = getElementBoundingBox(value) local x, y, z = getElementPosition(value) dxDrawLine3D(minx+x, miny+y, mz+z+5, minx+x, my+y ,mz+z+5, tocolor(255, 0, 0, 255), 15, false, 0) dxDrawLine3D(minx+x, miny+y, mz+z+5, mx+x, miny+y ,mz+z+5, tocolor(255, 0, 0, 255), 15, false, 0) dxDrawLine3D(mx+x, my+y, mz+z+5, minx+x, my+y ,mz+z+5, tocolor(255, 0, 0, 255), 15, false, 0) dxDrawLine3D(mx+x, miny+y, mz+z+5, mx+x, my+y ,mz+z+5, tocolor(255, 0, 0, 255), 15, false, 0) [This will create a square arround the player, used this for a predator missle] This will resize automatic, as i saw on your picture, you are tryting to make a info box right?
  19. It's because race i think, the vehicle will be destroyed before it cheks it, use the race events "onPlayerRaceWasted" instead of "onPlayerWasted" ( --Eventname: source arguments --onPlayerRaceWasted player vehicle playersVehicle )
  20. denny199

    Problems

    How are you making your GUI on onClientResourceStart, or without, or does it create when a player hits the col/marker?
  21. What code are you using for calculating the position
  22. denny199

    player sync

    I think that you can't disable it since it's default from GTA, anyways, it's always synced by the server. And why would you disable those things?.. It's always so less data, and btw; you are always in panic about data, wtf dude? MTA is synced enough, even that, the bandwidth usage is very low....
  23. He just want to make a multi gamemode I think.. He want to cache the scripts in the file's memory in a another file, and then stop the resource so he can unload the scripts via that way so he won't use wrappers. I think, say if I'm right.
×
×
  • Create New...