Jump to content

Xeonmeister

Members
  • Posts

    35
  • Joined

  • Last visited

Everything posted by Xeonmeister

  1. Noki i think it may actually work, but what if i have thousands of objects? The idea itself is really good but how to put it into practice? I know i should create the objects once, and then again and set the first creations' lowLOD element the same from the second creation. But how?
  2. So no, that's not what i need. I've seen objects with a greater draw distance, and even people were talking about it, that it is possible but noone knew how. I'm looking for something that would help me to change the draw distance to something over 300 units.
  3. Is it possible to set a higher draw distance for the objects of a .map file? I'm not talking about the LOD distance nor the setfarclipdistance function. Doesn't matter what i try, the draw distance remains 300. In sa-mp you can easily set a 1000 units as draw distance. I would only need like 400-500 units, but i can't change it.
  4. addEventHandler("onClientPlayerWeaponFire", root, function ( weapon) if weapon == 34 then local x,y,z = getElementPosition(localPlayer) local sound = playSound3D("sounds/sound027.wav", x,y,z) setSoundMaxDistance(sound,75) end end ) Why doesn't this work? If i shoot with the weapon 34 (sniper) nothing happens. I have the sound027.wav in the sounds folder in the resource's folder. I also added it to meta.xml. edit: the mta volume was on 0.......
  5. How can i get the player's sfx volume level?
  6. Hi! I want to replace every single original weapon sound in the game. I've done a little searching and i'd say i almost know how to do it, but i have some questions about the solution. First: How can i mute the original gun sounds? Is it possible? Second: If i add an event handler for onClienPlayerWeaponFire and play a sound with playSound3D then will this play the sound for only the local player or for everyone else on the server within the sounds range? It's important cuz i want every player to hear the sound of a sniper shot (within the range of course). And the last one: How can i adjust the volume of the sound to the player's sound settings? I mean the sound will play, even if the player has his sound volume set to 0, or the sound will be too quiet if the player set his sound volume to maximum.
  7. Thanks Dimos, but the type is wrong there. I did it as i said, and it didn't work. I did it again and now it's magically working. Thanks for your help!
  8. i made a .lua, put the code in it and added to meta with type "client" but still doesn't work.
  9. wow, you guys are really helpful. Okay, the problem is that i've already found this solution, but i get errors when i use it. For example this one: addEventHandler("onClientPlayerDamage", localPlayer, function(_, wp) if wp == 54 then -- 54 is the fall id. cancelEvent() end end) It says that localPlayer is a nil value and since i'm a noob i don't know what to do with it.
  10. I did a little searching but what i found is not working for me. I'm a noob in lua, i started scripting in lua 2 days ago, so can you explain me how to do this?
×
×
  • Create New...