[Include] [Converter] removeWorldObject(MTA) to RemoveBuildingForPlayer(SAMP)
#1

Hey. Few days ago, I made a converter that will convert removeWorldObject(removes gtasa object in mta map editor) to RemoveBuildingForPlayer. Currently, there is no way to convert it(even with convertffs or delux converter). So that's why I made it. I got an idea from here; https://sampforum.blast.hk/showthread.php?tid=426489

How to use:
It's easy and fast.
- Copy your .map file to Scriptfiles folder.
- Open any gamemode like grandlarc, bare, or anything.
- Find OnGameModeInit and type:-
Convert("yourmapfilename.map");
- Compile it.
- Now run samp-server.exe and.. that's it! You're done. The converted codes are saved in scriptfiles folder called Converted.pwn

Screenshots
MTA
http://imgffs.com/i/v3i4h.png (some objects are not visible in the image because of draw distance in MTA)
SAMP
http://imgffs.com/i/4bNOU.png

Updated! Thanks to Sanguy
Quote:
Originally Posted by Sanguy
Посмотреть сообщение
GOOD NEWS GUYS, newbienewb has given me permission to release my fixed and updated version!!! I give credits to newbienewb for creating the original include. All I did was fix it and add some new features. Just like the original version, you NEED sscanf for it to work!

http://www.mediafire.com/download.php?6uvbluaygwdjo54
http://www.mediafire.com/download.php?7g1g479kr7qa81x

Download both of those files.

Now, instructions on use:

- Copy your .map file to Scriptfiles folder.

- Open RWOconverter.pwn in pawno

- Replace "Convert(_______________.map);" with "Convert(MAP NAME HERE .map);"
NOTE: this new version has the ability to generate RemoveBuilding lines for an object's LODs, as well. If you want to utilize that functionality(highly recommended), uncomment the Convertlod line and the coding below it

- Compile the script.

- Add RWOconverter to server.cfg and run samp-server.exe.

If you did it properly, there should be a file in Scriptfiles called Converted.pwn(AND Convertedlod.pwn if you used the lod functionality) containing the new RemoveBuildingforPlayer lines. You can now make your map using them(NOTICE: if you used the lod option, then when you open the new convertedlod.pwn, ignore or delete the lines that have a zero for the modelid. Those were for objects that have no LODs)

Tips & Tricks: if you encounter the old problem where the include doesn't convert all the removeworldobject entries, try increasing the string lengths and the pragma(if you get stack/heap notices upon compiling the .pwn).

PM me if you found any bug.
Reply


Messages In This Thread
[Converter] removeWorldObject(MTA) to RemoveBuildingForPlayer(SAMP) - by newbienoob - 31.03.2013, 18:21
Re: [Converter] removeWorldObject(MTA) to RemoveBuildingForPlayer(SAMP) - by judothijs - 01.04.2013, 13:37
Re: [Converter] removeWorldObject(MTA) to RemoveBuildingForPlayer(SAMP) - by judothijs - 01.04.2013, 13:48
Re: [Converter] removeWorldObject(MTA) to RemoveBuildingForPlayer(SAMP) - by JasonAntonioVans - 02.04.2013, 19:27
Re: [Converter] removeWorldObject(MTA) to RemoveBuildingForPlayer(SAMP) - by faff - 02.04.2013, 19:54
Re: [Converter] removeWorldObject(MTA) to RemoveBuildingForPlayer(SAMP) - by JasonAntonioVans - 02.04.2013, 19:59
Re: [Converter] removeWorldObject(MTA) to RemoveBuildingForPlayer(SAMP) - by faff - 02.04.2013, 20:05
Re: [Converter] removeWorldObject(MTA) to RemoveBuildingForPlayer(SAMP) - by Sanguy - 13.04.2013, 21:41
Re: [Converter] removeWorldObject(MTA) to RemoveBuildingForPlayer(SAMP) - by Vlad_Dredd - 14.04.2013, 01:43
Re: [Converter] removeWorldObject(MTA) to RemoveBuildingForPlayer(SAMP) - by Sanguy - 14.04.2013, 13:15
Re: [Converter] removeWorldObject(MTA) to RemoveBuildingForPlayer(SAMP) - by Vlad_Dredd - 14.04.2013, 13:19
Re: [Converter] removeWorldObject(MTA) to RemoveBuildingForPlayer(SAMP) - by Sanguy - 14.04.2013, 22:15
Re: [Converter] removeWorldObject(MTA) to RemoveBuildingForPlayer(SAMP) - by Vlad_Dredd - 15.04.2013, 09:16
Re: [Converter] removeWorldObject(MTA) to RemoveBuildingForPlayer(SAMP) - by Fredrick - 22.04.2013, 04:23
Re: [Converter] removeWorldObject(MTA) to RemoveBuildingForPlayer(SAMP) - by newbienoob - 22.04.2013, 06:50
Re: [Converter] removeWorldObject(MTA) to RemoveBuildingForPlayer(SAMP) - by Niko_boy - 22.04.2013, 09:38
Re: [Converter] removeWorldObject(MTA) to RemoveBuildingForPlayer(SAMP) - by Maran3llo - 27.04.2013, 09:14
Re: [Converter] removeWorldObject(MTA) to RemoveBuildingForPlayer(SAMP) - by Maran3llo - 27.04.2013, 09:18
Re: [Converter] removeWorldObject(MTA) to RemoveBuildingForPlayer(SAMP) - by Sanguy - 27.04.2013, 18:42

Forum Jump:


Users browsing this thread: 2 Guest(s)