1є- You need to map them.
2є- Save the map.
3є- Convert the objects on converterffs.com or any other else.
4є- Open pawno with new.
5є- Delete all what is under the callback OnFilterScriptInit.
6є- Put #include <zcmd> in the top if your script, under #include <a_samp>.
7є- Search, downlaod and paste the include zcmd.inc in your pawno includes folder.
8є- Add the converted objects to pawno, in the OnFilterScriptInit callback.
9є- Take the positions of the gate opened, write them.
10є- Put this before the gate object. gatename = Object code.
Example:
pawn Code:
gatename = CreateObject(ObjectId, posX, posY, PosZ, ObjectRotX, ObjectRotY, ObjectRotZ);
11є- Put new gatename; on the top of script, under #include <zcmd>.
12є- Than, put this anywhere in your script.
pawn Code:
CMD:opengate(playerid, params[])
{
MoveObject(gatename, PosX, PosY, PosZ, 2.0);
SendClientMessage(playerid, 0xFFFFFF, "Gate Opened");
return 1;
}
Replace PosX, PosY and PosZ with the positions of opened gates.
13є- Click F5 to compile the script.
Post here if you didn't understand something.