Jump to content

dzek (varez)

Retired Staff
  • Posts

    4,144
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by dzek (varez)

  1. yup.. you can hit marker in any height, even 100000units above.. You can fix it with getting local player and marker position on hit and getting distance with some function (cant remember its name) (you can find it on wiki - search "useful functions") -- but remember -- once you hit marker and distance will be too far - you have to left marker and hit it again
  2. getPedOccupiedVehicle returns vehihicle element, not its model id. After you get element get model id with getElementModel(vehicle)
  3. Player = getLocalPlayer() function ClientStarted () outputDebugString("starting resource") WaterJump = createObject(1655, 264.8388671875, -2051.4384765625, 21.06884765625, 53.9912109375, 0, 180) WaterJumpCheckpoint = createMarker(264.8388671875, -2034.388671875, 50.7795753479, "cylinder", 7, 0, 0, 255, 0) addEventHandler ( "onClientMarkerHit", WaterJumpCheckpoint, MarkerHit ) end function MarkerHit(hitPlayer, matchingDimension) outputDebugString("something hit marker?") if hitPlayer == Player and matchingDimension then outputDebugString("and looks like this is local player") --Car = getPedOccupiedVehicle(hitPlayer) setElementCollisionsEnabled(WaterJump, false) setTimer(Collision, 10000, 1) end end function Collision () outputDebugString("reverting collision") setElementCollisionsEnabled(WaterJump, true) end addEventHandler( "onClientResourceStart", getResourceRootElement(getThisResource()), ClientStarted ) now watch out for messages in debugscript /3
  4. bug on first line Player = getLocalPlayer() btw: you can attach your onClientMarkerHit to your marker, instead of checking source edit: for what is line 11?
  5. Wow. This is really long post, written in well-language, I'm ipressed First thing you for sure want to know: Application that connects to internet is gta_sa.exe, not Multi Theft Auto.exe, or something. So this application need to have enabled access to internet. I bet it's a Windows 7 problem - Windows "protections" gets more and more complicated and confusing since Vista. What can I suggest you? Hmm.. My first attempt would be to remove AVG. Not disable. Remove. AV'es services often remain silently active, when disabled, still filterning something (like in Kaspersky - which is the least annoying, and still very good AV. I'm not using any if you ask me. AV'es are only for getting money. Better invest in good firewall, and you won't get infected. You seems to be smart enough for firewall, popping up every 15 minutes with something - most ppl just click "allow" on all - making firewall useless.) 2nd thing you can do - try to find how to disable some kind of "hidden" and "magical" Win 7 protections. Google will help you. I never used Windows 7, only installed it 2 times for somebody else. 3rd.. hmm, i don't have more ideas at the moment. Let us know if you fixed your problem. Good luck, and welcome to MTA community
  6. You don't know basics about server set-up i think. https://wiki.multitheftauto.com/wiki/Server_Manual And remember to put files in MTA/server/mods/deathmatch/resources NOT MTA/mods/deathmatch/resources
  7. Use [lua][/lua] tags, not , thanks!
  8. uhm.. you want one player to set turn signal in all cars? getElementsByType will get all cars, but this is not correct way to make indicators. btw: script like that should be in community? or i saw it somewhere else maybe?
  9. I was checking reports every day. Sometimes I was getting even 7 messages per day. You just need to inform your players about /report feature as i did in random chatbox msgs every 5 mins
  10. Just set Z rotation on your object to this value! I won't split it for you, i can't remember how to do it, and I left 3d editing few years ago. Just live without this map, or do map exchange with benox.
  11. Sweet, but there's also a texture file called vgncarshade. YOU added "1". So i still believe that he meant texture file But i thought it have something with car shadows (car shade). Sorry that i don't know all gta textures/models name.
  12. Correct rotation for collision: 211.40017700195 This won't fix issues with whole island disappearing anyway. This object must be splitted.
  13. i think wiki is better, as im using it all the time. Recipe for timer: 1. Open wiki 2. In search field type "timer". Hit enter. 3.
  14. TIMER??? this is timer for setting radio station (but you dont need if you cancel radio changes) setTimer(function() setRadioChannel(0) end, 50, 0) and setting new timer each time you enter vehicle - more and more lag. adn your event was wrong anyway
  15. Your welcome. And thank you
  16. wtf is this setRadioChannel (50,1,0) something new in syntax in 1.1? tbh i didnt check 1.1 yet. this should disable gta standard radio: addEventHandler("onClientPlayerVehicleEnter", getLocalPlayer(), function() setRadioChannel(0) end) addEventHandler("onClientPlayerRadioSwitch", getLocalPlayer(), function() setRadioChannel(0) cancelEvent() -- or try without canelling too.. hope that firing setRadioChannel is not causing onClientPlayerRadioSwitch event -- cause it will be cancelling itself, making impossible to change radio station ;| end )
  17. read my replies in this: https://forum.multitheftauto.com/viewtop ... 91&t=28778
  18. how you want to replace car shadow? afair its in common txd file that DONT have id
  19. i dont think you need to modify whole race, adding "submode" (like normal race,destruction derby,etc) should be enough. btw - trackmania ftw! make restart button too, and other features from tm
  20. idk either.. you can just revert bindings to defaults...
  21. its extremly easy.. but well, original idea was to collect all kills,deaths,etc from all servers.. so if somebody wants to rewrite this functionality - he needs to install it on all servers
  22. how would you install it on all servers?
  23. Please use "edit" button next time. Download this attachment.
  24. Looks like this is a bug (i will report it). Just after every move, getObjectRotation twice - to get right value.. and btw: onResourceStart should be attached to getResourceRootElement(getThisResource()) NOT to getRootElement() ! Why? Read here. Here's your script: function onResourceStart ( name, root ) vehBar = getElementByID ( "vehbar" ) origX, origY, origZ = getElementPosition ( vehBar ) end function closeVehicleBar ( playerSource, commandName ) local preX, preY, preZ = getObjectRotation( vehBar ) local preX, preY, preZ = getObjectRotation( vehBar ) if preY == 0.0 then local rotY = 90.0 end end function openVehicleBar ( playerSource, commandName ) local preX, preY, preZ = getObjectRotation( vehBar ) local preX, preY, preZ = getObjectRotation( vehBar ) if preY == 90.0 then local rotY = -90.0 end end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), onResourceStart ) addCommandHandler ( "closebar", closeVehicleBar ) addCommandHandler ( "openbar", openVehicleBar )
  25. https://wiki.multitheftauto.com/wiki/Server_Manua ... nistrators but add resource as administrator, like this: (i assume your resource name is RdxSerwer) <ACL> ... <group name="Admin"> <acl name="Admin"/> ... <object name="resource.RdxSerwer" /> </group> ... </ACL>
×
×
  • Create New...