Jump to content
Mr. Green Gaming

Location of Mappers - Help/scripts/tools/resources/mods/tutorial


viiNi

Recommended Posts

  • 2 weeks later...
  • 4 months later...
  • 2 months later...

--- How to Reduce the Size of the Map Song ---

(Program (CRACKED) Credits to M.T)

 

 

Step 1: Download Instal and Crack the MP3Resizer

http://www.mediafire.com/download/qzi2rtv0bytuq5u/MP3+Resizer+++Crack+By+M.T.rar

 

post-12121-0-26444900-1430522298_thumb.p

 

Step 2: Open and click in ADD FILES+, choose your .mp3 file (song).

Eg. The original song size is 3.97 mb.

 

post-12121-0-79257300-1430522603_thumb.p

 

 

You can change the setting... I use the standard, I think it is already very good.

 

Step 3: Just click in Reesize... the new song.mp3 will be saved in your desktop. 

 

post-12121-0-28488800-1430522903_thumb.p

 

Now the file is just 2.48mb.

 

The size reduction may vary depending on the format and the codec of the .mp3!

 

 

Any questions? Ask!

 

Link to comment
  • 1 month later...
Guest AleksCore

Vehicles

Part 1. Vehicles with collisions. 

 

Sometimes we want to add some vehicles in our map, but we all noticed that they are non-collidable. And I just found really easy solution. Code:

addEventHandler("onClientResourceStart", resourceRoot, function()
for key, vehicle in ipairs(getElementsByType("vehicle", resourceRoot)) do
setElementData (vehicle, 'race.collideothers', 1 )
end
end

)

 
1) Copy this code to notepad and save as "vehicles.lua" to map folder.
2) <script src="vehicles.lua" type="client" /> 
Insert this line into meta.xml of your map.
3) Enjoy!
 

Part 2. Vehicles, collisions, lights, sirens

 

Well, you will say: "Now I can put cars with collisions, but can I enable lights and sirens on police cars?". Yes! Sure you can! And here is working code:

addEventHandler("onClientResourceStart", resourceRoot, function()
for key, vehicle in ipairs(getElementsByType("vehicle", resourceRoot)) do
setElementData (vehicle, 'race.collideothers', 1 )
setVehicleOverrideLights (vehicle, 2)
setVehicleSirensOn(vehicle, true)
end
end

)

bEvSAmMh.jpg

Part 3? TBA

P.S. warpPedIntoVehicle function and some others don't works this way. They'll work only with client created vehicles. Sadly ;)

Edited by AleksCore
Link to comment
Guest AleksCore

No. But it's also possible to do
 
setElementCollidableWith(vehicle, getPedOccupiedVehicle(localPlayer))
 
But you need to attach this function to onClientVehicleEnter event

Edited by AleksCore
Link to comment
  • 3 weeks later...
  • 2 months later...

--- How to use RCG (Roller Coaster Generator) ---

 

 

Step 1. Download: http://www.mediafire.com/download/bvs226ozxuozuyj/RCG.rar

 

Step 2. Extract the files to you resources folder: 

 

Like that - C:\Program Files (x86)\MTA San Andreas 1.5\server\mods\deathmatch\resources

 

post-12121-0-70736200-1443374944_thumb.j

 

Step 3. Open your MTA EDITOR and write in the chat:

 

/start rcg

 

And press Enter :D

 

Step 4. In the toolbar, roll the mouse wheel until you find the following!

 

 

post-12121-0-51599200-1443374766_thumb.p

 

 

Step 5. The system works like this: We have to create two control points, and then create the track, always have to connect one point to another. Very simple!

 

Note: You can choose any object, but not all of them are good.

 

EXAMPLE:

 

post-12121-0-78637000-1443374799_thumb.p

 

 

Step 6. Now we have to create the track: 

 

 

post-12121-0-30886900-1443374826_thumb.p

 

post-12121-0-88135500-1443374851_thumb.p

 

The track:

 

post-12121-0-46569800-1443374878_thumb.p

 

Step 7. You have to adjust the track as you prefer:

 

 

post-12121-0-29033700-1443374905_thumb.p

 

post-12121-0-68817500-1443374937_thumb.p

 

 

Note: You can do what you want, several different forms and objects, that's the basics. With practice you learn to do many other things.

 

 

Step 8. Save your map. xD

 

Step 9. Download and install Notepad++: https://notepad-plus-plus.org/download/v6.8.3.html

 

Step 10. Go to your map folder and open the map.lua (name that you saved .lua) with notepad++:

 

 

post-12121-0-75283000-1443374745_thumb.j

 

 

Step 11. Delete all the line containing these words:

<controlPoint id="controlPoint.....<track id="track.....
To do this, press Ctrl + F and type:
 
ControlPoint
Track
 
And click in find next.
 
post-12121-0-03041100-1443374965_thumb.j
 
post-12121-0-73618100-1443374949_thumb.p
 
 
Step 12. Save and close.
 
A map that I used this script
 
 
Finished!!
 
Any questions? Ask!
Edited by viiNi
Link to comment

What do i want:

I want barrels explode in a certain moment using ONLY in-game editor. Race mode. For example, in the front of the player, before he reached barrel, to scare him, but without damage to his car.

How do I do it:

Dont laught, but i create a barrel, after that i create a car with alpha 0 (invisible) ABOVE that barrel. When players reach certain moment, car appears and begins to fall on a barrel => explosion. I can choose the moment of explosion by changing the height of the vehicle spawn - it's very conveniently and easy.

Problem:

Often the car appears but does not fall down. It just hanging in the air. I tryed to add one more barrel INSIDE of car. It works 50/50. And it's became too difficult and not convenient.

 

How can i force vehicle guaranteed to fall down on barrel each time?

And maybe - how can i make an explosion easier? Again, it's very easy to adjust the moment of the explosion by the height of car spawn. So i do not want to give up this option, but it is necessary that the vehicle is guaranteed to fall when player appears in sight. Using only in-game editor.

 

Thanks!

Edited by Red_Angel
Link to comment

What do i want:

I want barrels explode in a certain moment using ONLY in-game editor. Race mode. For example, in the front of the player, before he reached barrel, to scare him, but without damage to his car.

How do I do it:

Dont laught, but i create a barrel, after that i create a car with alpha 0 (invisible) ABOVE that barrel. When players reach certain moment, car appears and begins to fall on a barrel => explosion. I can choose the moment of explosion by changing the height of the vehicle spawn - it's very conveniently and easy.

Problem:

Often the car appears but does not fall down. It just hanging in the air. I tryed to add one more barrel INSIDE of car. It works 50/50. And it's became too difficult and not convenient.

 

How can i force vehicle guaranteed to fall down on barrel each time?

And maybe - how can i make an explosion easier? Again, it's very easy to adjust the moment of the explosion by the height of car spawn. So i do not want to give up this option, but it is necessary that the vehicle is guaranteed to fall when player appears in sight. Using only in-game editor.

 

Thanks!

Try different vehicles, the sea sparrow seems to fall every time.

Link to comment
  • 2 weeks later...

 

--- Bally Model, Flashing lights ----

 

Download the file: http://www.mediafire.com/download/clldx939g0sh7ju/bally.rar

 

Step 1. Create a map using ballypllr01_lvs OBJECT ID: 3437

attachicon.gifSem Título-1.png

 

Step 2. After you finish and save your map... go to the map folder, and paste all files of the downloaded file.

attachicon.gifdsa.png

 

Step 3. Add these lines meta.xml:

    <file src="b1.dff"></file>    <file src="b2.dff"></file>    <file src="b1.txd"></file>    <file src="b2.txd"></file>    <script src="bally_client.lua" type="client"></script>

Step 5. Need to be like that:

<meta>    <file src="b1.dff"></file>    <file src="b2.dff"></file>    <file src="b1.txd"></file>    <file src="b2.txd"></file>    <script src="bally_client.lua" type="client"></script>    <info type="map" version="1.0.0"></info>    <map src="vmjgfbvbccbv.map" dimension="0"></map>    <settings>        <setting name="#skins" value='[ "cj" ]'></setting>        <setting name="#time" value="1:0"></setting>        <setting name="#maxplayers" value="[ 128 ]"></setting>        <setting name="#useLODs" value="[ false ]"></setting>        <setting name="#gamespeed" value="[ 1 ]"></setting>        <setting name="#ghostmode" value='[ "false" ]'></setting>        <setting name="#weather" value="[ 0 ]"></setting>        <setting name="#vehicleweapons" value='[ "false" ]'></setting>        <setting name="#minplayers" value="[ 0 ]"></setting>        <setting name="#respawntime" value="[ 5 ]"></setting>        <setting name="#gravity" value="[ 0.0080000004 ]"></setting>        <setting name="#waveheight" value="[ 0 ]"></setting>        <setting name="#racemode" value='[ "Race\/DD" ]'></setting>        <setting name="#locked_time" value="[ true ]"></setting>        <setting name="#duration" value="[ 1800 ]"></setting>        <setting name="#respawn" value='[ "timelimit" ]'></setting>    </settings>    <script src="mapEditorScriptingExtension_s.lua" type="server"></script>    <script src="mapEditorScriptingExtension_c.lua" type="client" validate="false"></script></meta>

Step 6 . Finished.

Video that shows how it looks:

 

 

Fixed, now it works fine!

Note : Go back to the page 1 to see the full tutorial xD

Edited by viiNi
Link to comment
~>> outputChatBox (Message when start the map) <<~

 

 

 

 

 

 

 

2º - Extract the file "ChatBox.lua" inside the folder of your map

 

 

 

3º - Open the "meta.xml" file of your map and add the line:

 

 

 

    <script src="ChatBox.lua" type="client" />

 

 

 

01.png

 

 

 

4º - Open the file "ChatBox.lua" and inside it there will be a line that says outputChatBox ("chatbox texto", 27, 89, 224, true)

 

 

    Where it says "chatbox texto" you can put any text you want to

 

 

02.png

 

 

example:
 

 

03.png

 

 

 

 

5º - For more information on additional chat just add the line:

 

 

outputChatBox ("chatbox texto", 27, 89, 224, true)

 

 

And change "chatbox texto" by the text you want and at the end the map will stay that way

 

 

 

05.png

 

Edited by NITROX
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...