SA-MP Forums Archive
How to remove Area51 objects? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to remove Area51 objects? (/showthread.php?tid=553885)



How to remove Area51 objects? - Onfroi - 01.01.2015

These objects..


They don't appear in Map Construction but in game they do, any fix?
Thanks in advance.


Re: How to remove Area51 objects? - Abagail - 01.01.2015

Well; if you can get their object ID's; and their rough position... You should be able to remove it using an extended radius. So basically /save close to the object; and find out it's ID, and remove the building with a suitable range from the coordinates to the object.


Re: How to remove Area51 objects? - Pottus - 01.01.2015

Those objects you probably won't be able to remove just like certain doors but you can try.


Re: How to remove Area51 objects? - Abagail - 01.01.2015

Quote:
Originally Posted by Pottus
Посмотреть сообщение
Those objects you probably won't be able to remove just like certain doors but you can try.
And why wouldn't you be able to? They are objects, right? I guess someone should update the wiki if that's the case.


Re: How to remove Area51 objects? - Onfroi - 01.01.2015

Quote:
Originally Posted by Abagail
Посмотреть сообщение
Well; if you can get their object ID's; and their rough position... You should be able to remove it using an extended radius. So basically /save close to the object; and find out it's ID, and remove the building with a suitable range from the coordinates to the object.
I don't think that's how RemoveBuilding works but I'll try anyways.


Re: How to remove Area51 objects? - ball - 01.01.2015

It's not one object, but three (2887, 2888, 2889). Try this code

Код:
RemoveBuildingForPlayer(playerid, 2887, 0.0, 0.0, 0.0, 6000.0);
RemoveBuildingForPlayer(playerid, 2888, 0.0, 0.0, 0.0, 6000.0);
RemoveBuildingForPlayer(playerid, 2889, 0.0, 0.0, 0.0, 6000.0);
Should work. You can also set positions of it (code above will remove all objects with model 2887 - 2889).

Quote:

Those objects you probably won't be able to remove

Please don't post if you don't know, thanks. It's not first time when your post means nothing, zero help. Embarrassing.


Re: How to remove Area51 objects? - Promlesbian - 27.11.2017

Here you go:
RemoveBuildingForPlayer(playerid, 2887, 103.946, 1901.047, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2888, 103.946, 1901.047, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2889, 103.946, 1901.047, 36.246, 0.25);

RemoveBuildingForPlayer(playerid, 2887, 161.962, 1933.043, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2888, 161.962, 1933.043, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2889, 161.962, 1933.043, 36.246, 0.25);

RemoveBuildingForPlayer(playerid, 2887, 233.486, 1934.789, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2888, 233.486, 1934.789, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2889, 233.486, 1934.789, 36.246, 0.25);

RemoveBuildingForPlayer(playerid, 2887, 267.116, 1895.241, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2888, 267.116, 1895.241, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2889, 267.116, 1895.241, 36.246, 0.25);

RemoveBuildingForPlayer(playerid, 2887, 262.145, 1807.62, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2888, 262.145, 1807.62, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2889, 262.145, 1807.62, 36.246, 0.25);

RemoveBuildingForPlayer(playerid, 2887, 166.003, 1849.937, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2888, 166.003, 1849.937, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2889, 166.003, 1849.937, 36.246, 0.25);

RemoveBuildingForPlayer(playerid, 2887, 113.439, 1814.405, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2888, 113.439, 1814.405, 36.246, 0.25);
RemoveBuildingForPlayer(playerid, 2889, 113.439, 1814.405, 36.246, 0.25);