09.09.2011, 17:21
(
Последний раз редактировалось =WoR=G4M3Ov3r; 27.02.2012 в 18:05.
)
Alright, Before you post "There are alot of tutorials like that", All I've seen are Horrible ones and definetly not explained well, and I've seen alot of People lately, asking how to add em, and how to Convert em.
Step 1: Getting the .map file.
-If Filterscript:
Additional Stuff.
Since SA-MP has limited using CreateObjects, you might wanna use the Streamer Plugin, which is found Here.
If Linux:
At Last, you've got Streamer now, and you will be able to use Shitloads of objects.
For the last task, get on your script again and change the codes:
To
This Tutorial, is based for Beginners, and to lack headaches going on over "Scripting Discussions".
Credits: Incognito For Streamer.
Step 1: Getting the .map file.
- After you're done with mapping your custom map, you will need the .map file to be able to convert it.
- You will need to goto Your MTA folder > mods > deathmatch, there you will be able to find the .map file you mapped.
- Alright, so after getting into your folder where the .map file is located, right click on it, and Open it using Notepad.
- After you do, you will need to copy EVERYTHING inside the notepad, Then when you copy it, goto www.convertFFS.com
- When you get on convertFFS, you'll see a HUGE text saying: PASTE HERE, paste what you copied from the notepad there, and then click the convert tab under it.
Screen:
- After you've pressed on the Convert button, you'll get something like this:
- Click on "Select all of the output", and copy the code.
- After copying the code, open your .pwn script and paste your custom map code you just copied under OnGameModeInit, If you wanna use it in a Filterscript, then put it under OnFilterScriptInit.
PHP код:
public OnGameModeInit()
{
// The CreateObject codes goes here.
return 1;
}
PHP код:
public OnFilterScriptInit()
{
// The CreateObject codes goes here.
return 1;
}
- Compile the script and You're done.
Additional Stuff.
Since SA-MP has limited using CreateObjects, you might wanna use the Streamer Plugin, which is found Here.
- After downloading it, Copy the Streamer.inc to your pawno > Includes folder.
- Get on your .pwn script and add this the top of your script, right under #include <a_samp>
PHP код:
#include <streamer>
- After including it, copy the streamer.dll (if the host is Windows), or the streamer.so (if the host is Linux), and paste it in the plugins folder, in your server's file.
- Finally, open your server.cfg and add this:
Код:
plugins Streamer
Код:
plugins Streamer.so - Don't forget the .so
For the last task, get on your script again and change the codes:
PHP код:
CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance)
PHP код:
CreateDynamicObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance)
Credits: Incognito For Streamer.