Jump to content

iiv03

Members
  • Posts

    476
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by iiv03

  1. Hey, i think ur answer is above in [Q/A] also u can pay with paypal [[email protected]] or https://payhip.com/b/6D9Nw
  2. hello there I think that I am banned in Discord server mta cuz of what I really forgot about the problem i left from the game about 1.5 years due to circumstances and came back a month ago, but I would like to apologize to what I did previously of a problem that was banned and I want to say I am v.sorry. I would like to request unbanned me and thx my discord account: ! Yukino 熱い#5613
  3. I tried created a road in using 3DS Max. when I finished I added Material Textures. On the way and after I extracted COL + DFF, since I don't have TXD, I tried to run COL + DFF by using functions on wiki mtasa. engineLoadCOL and engineLoadDFF but the problem did not come to me correctly really cracked my head I tried to discover a bug cuz the first time i'm use 3ds Max and did not find a solution, where trouble? how i fix that? Screenshot 3DS Max: Screenshot In-Game: Only inside a game I see a small object that is incomplete and I am sure that I extracted them Edit: when I just extracted cs_roadbridge04 and not specified them all and since I put all objects in -> cs_roadbridge04 I get the result, that's why. ? Screenshot in-game: Screenshot 3DS Max:
  4. i tested and this one worked thanks a lot :DD setPedAnimation( localPlayer, "CARRY", "crry_prtial")
  5. there is a lot of animations in mta sa. https://wiki.multitheftauto.com/wiki/Animations It is difficult to find this ID name anim. something like taking an object?
  6. ty guys I was needed a part of camera that followed ("Element") and found the solution addEventHandler("onClientRender", root, function() local ox,oy,oz = getElementPosition(army1) setCameraMatrix(ox,oy,oz,ox,oy,oz) end)
  7. hey i would like to make camera . on other position and i'm use setCameraMatrix and i created that ped start movements. but i want make cam follow ped when his move . what should i use on functions? --if this ->> setCameraTarget + attachElements? and how will be?
  8. trust me nothing happen addEventHandler("onMarkerHit", marker_auto_teleport_botscars, function(hitElement) -- get element 1 parent from group thats i created above if hitElement == pedveh1 and getElementParent(hitElement) == group then --part check if ped in vehicle try to hit marker if (isElement(pedveh1)) and (getElementType(pedveh1)=="ped") and (getElementModel(pedveh1)==0) then -- here problem text spam me 2 if second car behind firstly and also touching the marker outputChatBox("vehicle touched 1") end end end) should I know hitElement for an item? like a car vehicle?
  9. I didn't understand exactly where wrong please check my new code local group = createElement("pedsbots") setElementParent(pedveh1, group) --setElementParent(pedveh2, group) --setElementParent(pedveh3, group) --setElementParent(pedveh4, group) addEventHandler("onMarkerHit", marker_auto_teleport_botscars, function() -- get element 1 parent from group thats i created above if getElementParent(pedveh1) == group then --part check if ped in vehicle try to hit marker if (isElement(pedveh1)) and (getElementType(pedveh1)=="ped") and (getElementModel(pedveh1)==0) then -- here problem text spam me 2 if second car behind firstly and also touching the marker outputChatBox("vehicle touched 1") end end end)
  10. i shortened everything first time i used setElementParent and createElement. but I have a problem with the vehicles not moving now when i touch the marker and btw I used the triggerClientEvent to call the onControlState function and my code I did above correct or no? it did not give me any error --client side addEvent ( "onControlState", true ) addEventHandler ( "onControlState", resourceRoot, function () setPedControlState ( source, "accelerate", true ) end ) --server side marker_auto_teleport_botscars = createMarker(-759.40002441406, 126.5, 41,"corona",4,0,0,0,0) teleport_part = createMarker(-757.400390625, 109.099609375, 41.400001525879,"corona",4,0,0,0,0) function parts(teleport_part) -- take element hit from marker if teleport_part then triggerClientEvent ( root, "onControlState", pedveh1 ) -- start make vehicle walk triggerClientEvent ( root, "onControlState", pedveh2 ) -- start make vehicle walk triggerClientEvent ( root, "onControlState", pedveh3 ) -- start make vehicle walk triggerClientEvent ( root, "onControlState", pedveh4 ) -- start make vehicle walk print("touched by player") end end addEventHandler ( "onPlayerMarkerHit", root, parts) local group = createElement("VehicleBots") setElementParent(botvehicle1, group) setElementParent(botvehicle2, group) setElementParent(botvehicle3, group) setElementParent(botvehicle4, group) addEventHandler("onMarkerHit", marker_auto_teleport_botscars, function(group) -- take hit elements from group if getElementType ( botvehicle1 ) == "vehicle" and getElementModel ( botvehicle1 ) == 405 then print("vehicle touched 1") setElementPosition(botvehicle1,-414.1000061035, 157.19999694824, 41.400001525879) elseif getElementType ( botvehicle2 ) == "vehicle" and getElementModel ( botvehicle2 ) == 547 then print("vehicle touched 2") setElementPosition(botvehicle2,-414.1000061035, 157.19999694824, 41.400001525879) elseif getElementType ( botvehicle3 ) == "vehicle" and getElementModel ( botvehicle3 ) == 507 then print("vehicle touched 3") setElementPosition(botvehicle3,-414.1000061035, 157.19999694824, 41.400001525879) elseif getElementType ( botvehicle4 ) == "vehicle" and getElementModel ( botvehicle4 ) == 585 then print("vehicle touched 4") setElementPosition(botvehicle4,-414.1000061035, 157.19999694824, 41.400001525879) end end) when i add setElementParent vehicles not move? why and i put if player touche the marker makes vehicles start moving
  11. hey i did not understand here, why vehicle "3" and "4" if it hit marker, nothing happens? only vehicle "1" and "2" work? I tried to make it through the ped that did not work for me, but if I changed botvehicle 2 -to-> botvehicle 3 it would work 3 I would like them to work all also i didn't get any error in debugscript my line: marker_auto_teleport_botscars = createMarker(-759.40002441406, 126.5, 41,"corona",4,0,0,0,0) botvehicle1 = createVehicle( 405, -688.45050048828, 132.56692504883, 41.400001525879, 0, 0, 95.99853515625) botvehicle2 = createVehicle( 547, -651.70001220703, 135.69999694824, 41.400001525879, 0, 0, 95.99853515625) botvehicle3 = createVehicle( 507, -615.09997558594, 138.89999389648, 41.400001525879, 0, 0, 95.99853515625) botvehicle4 = createVehicle( 585, -581.40002441406, 141.69999694824, 41.400001525879, 0, 0, 95.99853515625) addEventHandler("onMarkerHit", marker_auto_teleport_botscars, function(botvehicle1) -- element hit take from createVehicle. if getElementType ( botvehicle1 ) == "vehicle" and getElementModel ( botvehicle1 ) == 405 then print("vehicle touched 1") setElementPosition(botvehicle1,-414.1000061035, 157.19999694824, 41.400001525879) end end) addEventHandler("onMarkerHit", marker_auto_teleport_botscars, function(botvehicle2) -- element hit take from createVehicle. if getElementType ( botvehicle2 ) == "vehicle" and getElementModel ( botvehicle2 ) == 547 then print("vehicle touched 2") setElementPosition(botvehicle2,-414.1000061035, 157.19999694824, 41.400001525879) end end) addEventHandler("onMarkerHit", marker_auto_teleport_botscars, function(botvehicle3) -- element hit take from createVehicle. if getElementType ( botvehicle3 ) == "vehicle" and getElementModel ( botvehicle3 ) == 507 then print("vehicle touched 3") setElementPosition(botvehicle3,-414.1000061035, 157.19999694824, 41.400001525879) end end) addEventHandler("onMarkerHit", marker_auto_teleport_botscars, function(botvehicle4) -- element hit take from createVehicle. if getElementType ( botvehicle4 ) == "vehicle" and getElementModel ( botvehicle4 ) == 585 then print("vehicle touched 4") setElementPosition(botvehicle4,-414.1000061035, 157.19999694824, 41.400001525879) end end)
  12. I switched everything on the server side, but is there function to let ped move a car ? such as setPedAnalogControlState :((
  13. i know but have u see my question down? tried it on onClientMarkerHit nothing happen does it mean only works with onMarkerHit?
  14. hello I would like to know how should I check if ped while inside a car and touched marker and then something happens? I used these functions in the client side because at beginning i put it if the player touched the marker and then do movement Vehicle Ped, and now I would like to know how to check if the ped hit marker something happens? createPed createVehicle warpPedIntoVehicle setPedAnalogControlState client side: teleport_part = createMarker(-757.400390625, 109.099609375, 41.400001525879,"corona",4,0,0,0,0) function parts() pedveh1 = createPed(0,0,0,0,0) warpPedIntoVehicle(pedveh1,botvehicle1) setPedAnalogControlState(pedveh1, "accelerate", 1) pedveh2 = createPed(0,0,0,0,0) warpPedIntoVehicle(pedveh2,botvehicle2) setPedAnalogControlState(pedveh2, "accelerate", 1) pedveh3 = createPed(0,0,0,0,0) warpPedIntoVehicle(pedveh3,botvehicle3) setPedAnalogControlState(pedveh3, "accelerate", 1) pedveh4 = createPed(0,0,0,0,0) warpPedIntoVehicle(pedveh4,botvehicle4) setPedAnalogControlState(pedveh4, "accelerate", 1) end addEventHandler ( "onClientMarkerHit", teleport_part, parts) do i need to use event "onMarkerHit"? + function "getPedOccupiedVehicle"? in server side how do I know vehicles in getPedOccupiedVehicle because I put them on a client side path. do I need to use the triggerClientEvent, how i do way?
  15. hey mate I have tried this: if progress >= timeSpeedBorder then anim = 0 borderTick = getTickCount() removeEventHandler("onClientRender", root,borderRender) addEventHandler("onClientRender", root,borderRender) end but it keeps giving anim = 0 an end repeating how I should stop getTickCount without setting "setTimer" on removeEventHandler? because I think if i try remove line addEventHandler animation will bug In the last move btw i gave addEventHandler out line function cuz after i will setting function with marker. EDIT: well maybe i fixed. I gave the timing to removeEventHandler if the anime value 0 if anim == 1 then borderY = interpolateBetween ( sy/1, 0, 0, sy/1.15, 0, 0, progress, "Linear") else borderY = interpolateBetween ( sy/1.15, 0, 0, sy/1, 0, 0, progress, "Linear") setTimer(function() removeEventHandler("onClientRender", root,borderRender) end,1000,1) end If you have an idea or a second simple solution can u tell me
  16. how should I move position dxdraw rectangle if try to check progress time has end up ? borderY = interpolateBetween ( sy/1, 0, 0, sy/1.15, 0, 0, progress, "Linear") dxDrawRectangle ( 0, borderY, sx, 100, tocolor(0,0,0,255),false) -- panel if progress >= 1 then -- i want move position Y goes down but how?? -- tired: borderY = borderY-50 It didn't work for me end
  17. احب ذا شخص مدري ليش
  18. iiv03

    MTA Offline Wiki

    yes please this will help a lot of people
  19. لعاد ترسلي خاص. يمديك تحذفه من resource/[gameplay]/scoreboard.zip دور هنا كل شيى تغاه https://community.multitheftauto.com/index.php?p=resources
  20. هاذي وظيفه تلغي الحدث اذا استخدمت انت addEventHandler مثال كلينت addEventHandler ( "onClientPlayerDamage", getRootElement(), function() cancelEvent() end ) ضفنى حدث الي هو يدمج الاعب "onClientPlayerDamage فتحنا فانكشن بعدين نحط بداخله كنسل يعني اذا لاعب يدمج راح يلغي الحدث. نفس شيئ ب سيرفر بس في ارجيمنت اول بيكون bool يعني true او false اذا true = راح يكنسل الحدث واذا false = مراح يكسنل الحدث وارجيمنت ثاني السبب. راجع ويكي https://wiki.multitheftauto.com/wiki/CancelEvent مو كل شيئ فيديوات + قسم غلط لو عندك وقت او اجازه شيك علي ويكي مراح تخسر شيئ
×
×
  • Create New...