Jump to content

MadMaximus

Members
  • Posts

    20
  • Joined

  • Last visited

1 Follower

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

MadMaximus's Achievements

Civilian

Civilian (7/54)

2

Reputation

  1. I have searched about this for the past year now but still didn't find a way. Can anyone help me to find a way to create ctf maps with shooting cars. Something like that: Doesn't have to be complicated as this. just a simple map. How can I make it without accessing server side.. with only using client side scripts... × Pasted as rich text. Paste as plain text instead Insert other media Off Notify me of replies Cancel Submit Topic Unread Content Mark site read Home community.multitheftauto.com Scripting Create New Topic Theme Powered by Invision Community Doesn't have to be complicated as this. just a simple map. How can I make it without accessing server side.. with only using client side scripts...
  2. Thnx a lot. It works. Thank you so much
  3. I was trying to display images when someone his a marker. it works if there is only 1 script. But when I tried to use two scripts, both markers display the 2nd image. Why is that and how can I fix? check1 = createMarker(3569.400390625, -700.599609375, 72.59, "corona", 2, 0, 0, 0, 0) function MarkerHit5 ( hitPlayer, matchingDimension ) vehicle = getPedOccupiedVehicle ( hitPlayer ) if hitPlayer ~= localPlayer then return end if source == check1 then HandleTheRendering() -- Shows image setTimer ( StopHandling, 10000, 1 ) -- 10 sec timer. 1000 = 1 sec end end addEventHandler("onClientMarkerHit", root, MarkerHit5) local screenWidth,screenHeight = guiGetScreenSize() -- Get screen resolution. function renderDisplay ( ) -- ScreenWidth, ScreenHeight, Pixel X, Pixel Y dxDrawImage ( screenWidth/2 - 200, screenHeight/2 + 200, 400, 100, 'img1.png' ) end function StopHandling ( ) removeEventHandler("onClientRender", root, renderDisplay ) -- Destroys the image end function HandleTheRendering ( ) addEventHandler("onClientRender", root, renderDisplay) -- Makes sure image is shown end check2 = createMarker(3696.3000488281, -694, 60.02, "corona", 2, 0, 0, 0, 0) function MarkerHit5 ( hitPlayer, matchingDimension ) vehicle = getPedOccupiedVehicle ( hitPlayer ) if hitPlayer ~= localPlayer then return end if source == check2 then HandleTheRendering() -- Shows image setTimer ( StopHandling, 10000, 1 ) -- 10 sec timer. 1000 = 1 sec end end addEventHandler("onClientMarkerHit", root, MarkerHit5) local screenWidth,screenHeight = guiGetScreenSize() -- Get screen resolution. function renderDisplay ( ) -- ScreenWidth, ScreenHeight, Pixel X, Pixel Y dxDrawImage ( screenWidth/2 - 200, screenHeight/2 + 200, 400, 100, 'img2.png' ) end function StopHandling ( ) removeEventHandler("onClientRender", root, renderDisplay ) -- Destroys the image end function HandleTheRendering ( ) addEventHandler("onClientRender", root, renderDisplay) -- Makes sure image is shown end
  4. Well if someone like to help they will. I didn't ask your damn help. I don't give a damn about the reputation. if you think people should learn how to script just for a small function, there is no bigger idiot than you. And there are people who is willing to help someone who doesn't know scripting, So if you can't help take your monkey butt out. If they want to help they will, and if they don't want to help they will not so its time for you to take your nose out from the butt hole and do something useful for a change.
  5. I'm a multimedia engineer with a msc for multimedia so I have 0 interest in coding. I just want to know how can I do that so I can use it for myself. And mta forum is a good place to get the help i needed. So thats why i posted here. And I bump the topic cuz I still didn't get the answer that I want. so why don't u stop been a jerk and help someone who is looking for a function for a change...
  6. I don't know. Its like this.. there are 2 players on the server. when they win in any map in any arena it plays a sound. when other players wins there is no sound. And it's not an admin option either.. here:
  7. I don't understand. where should I put the script? Its not base in each map. every different map when they win this sound plays. And they don't have access to server side also....
  8. Hello guys, I got a question. When some people win a map they gets a music play. how can I do that? EG: player1 wins the game(no sound) player2 wins the game(each time it plays a sound) Can someone tells me how to do that?
  9. I wanna make a map which doesn't have the mouse control on camera. It should stick to a specific angle but it should still follow the player. Something like in a 2d game.
  10. Yes I know I can set camera position using setCameraMatrix. But what I don't know is how to write the full script. I'm really new to lua.
×
×
  • Create New...