[Include] RemoveWorldObject from MTA to RemoveBuildingForPlayer
#1

RemoveWorldObject to RemoveBuildingForPlayer

Basically what this include does is convert MTA Remove World Object code to RemoveBuildingForPlayer.

What do you need:

Код:
-sscanf(include + plugin) by ******
How to use it:

On top of your script:
pawn Код:
#include <a_samp>
#include <converter>
Updated.

Now the only thing you need to do is to put "Convert(filename[])".
It will check if is a Model or a LodModel.


Below OnGameModeInit()

pawn Код:
public OnGameModeInit()
{
    Convert("filename.map");//Here goes the file name that stores the MTA Code. Model/LodModel.
    return 1;
}
Finally you have to open samp_server.exe and then go to your scriptfiles folder and open Remove.pwn, the converted code will be placed there.


Download
Pastebin
Reply
#2

Sorry but i don't understand. Please explain with video :/
Reply
#3

Why would I need to add a video? It's a simple include.
Reply
#4

I don't understand pawno so much
Reply
#5

Place the include on your PAWN > includes folder.

1. Open a new gamemode, below <a_samp> put <converter>.
2. Below OnGameModeInit put:
PHP код:
Convertf("YourfileGoesHere.map"); 
3. Open your samp_server.exe and done, check out your scriptfiles and a file called "RemoveBuilding" will be placed there with the converted code.
Reply
#6

Okay, i will try
Reply
#7

It would be handy if you also upload the include on pastebin.
Reply
#8

Uploaded to pastebin.
Reply
#9

This is usefull include, good job!
Reply
#10

Thanks.
Reply
#11

You should read the lod model from map, and write this too to the .pwn file if the lod model not 0.
Reply
#12

Updated.
Now, it will check whether is a model or a lodmodel.
Reply
#13

Nice.
Reply
#14

Great job.This is really,really useful.
Reply
#15

This paste has been removed!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)