SA-MP Forums Archive
Help with remove 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: Help with remove objects (/showthread.php?tid=301507)



Help with remove objects - Hattrick - 04.12.2011

Hi, okay, I know how to delete an object on 3d, but I do not know exactly how to remove these selected objects at San Fierro.



I have JernejL map editor, but i don't find this object's on it. So please, tell me someone how to remove them or tell me id's of them. Thanks.


Re: Help with remove objects - Hattrick - 04.12.2011

Someone help me?


Re: Help with remove objects - Hattrick - 05.12.2011

So, no one can help me?


Re: Help with remove objects - yanir3 - 05.12.2011

Those objects are probably in your script.


Re: Help with remove objects - Thresholdold - 05.12.2011

Try these ID's... untested. (This is for the crane)

1378 - huge crane
1384 - top part of construction crane
1383 - crane stand

Quote:
Originally Posted by yanir3
View Post
Those objects are probably in your script.
They are static objects, they are not in any of his scripts, they are included in GTA SA itself.


Re: Help with remove objects - Jack_Leslie - 05.12.2011

Doesn't remove building for player require an X, Y, Z point too?


Re: Help with remove objects - Thresholdold - 05.12.2011

Quote:
Originally Posted by Jack_Leslie
View Post
Doesn't remove building for player require an X, Y, Z point too?
Yes... but I'm counting on him to find that out himself.


Re: Help with remove objects - Thresholdold - 05.12.2011

OMG Bro... can you give me the script where you deleted the construction site? I really need it :S


Re: Help with remove objects - SupremeCommander - 05.12.2011

You can report this bug


Re: Help with remove objects - SupremeCommander - 05.12.2011

@Threshold Here you go

pawn Code:
RemoveBuildingForPlayer(playerid, 3865, -2063.2422, 258.7500, 35.7422, 0.25);
RemoveBuildingForPlayer(playerid, 3869, -2123.2891, 269.5313, 41.8516, 0.25);
RemoveBuildingForPlayer(playerid, 3869, -2126.2109, 231.9766, 41.6875, 0.25);
RemoveBuildingForPlayer(playerid, 3869, -2116.6797, 131.0078, 42.1484, 0.25);
RemoveBuildingForPlayer(playerid, 3865, -2063.0156, 247.9453, 35.7422, 0.25);
RemoveBuildingForPlayer(playerid, 3865, -2057.7500, 249.9531, 35.5938, 0.25);
RemoveBuildingForPlayer(playerid, 3865, -2057.7031, 229.8047, 35.3516, 0.25);
RemoveBuildingForPlayer(playerid, 3865, -2059.5313, 256.5234, 37.0078, 0.25);
RemoveBuildingForPlayer(playerid, 3888, -2128.1797, 171.4609, 42.4297, 0.25);
RemoveBuildingForPlayer(playerid, 3888, -2066.3594, 301.9141, 42.1719, 0.25);
RemoveBuildingForPlayer(playerid, 3887, -2066.3594, 301.9141, 42.1719, 0.25);
RemoveBuildingForPlayer(playerid, 3887, -2128.1797, 171.4609, 42.4297, 0.25);
RemoveBuildingForPlayer(playerid, 3866, -2116.6797, 131.0078, 42.1484, 0.25);
RemoveBuildingForPlayer(playerid, 3864, -2082.5391, 153.5469, 40.1016, 0.25);
RemoveBuildingForPlayer(playerid, 3872, -2079.8203, 159.6719, 40.8906, 0.25);
RemoveBuildingForPlayer(playerid, 3864, -2111.8828, 172.4688, 40.1953, 0.25);
RemoveBuildingForPlayer(playerid, 3872, -2116.7500, 177.0781, 40.9844, 0.25);
RemoveBuildingForPlayer(playerid, 3872, -2064.2109, 210.1406, 41.2578, 0.25);
RemoveBuildingForPlayer(playerid, 3872, -2107.0313, 226.0391, 40.8438, 0.25);
RemoveBuildingForPlayer(playerid, 10984, -2126.1563, 238.6172, 35.2656, 0.25);
RemoveBuildingForPlayer(playerid, 3864, -2102.2109, 230.7031, 40.0547, 0.25);
RemoveBuildingForPlayer(playerid, 3866, -2126.2109, 231.9766, 41.6875, 0.25);
RemoveBuildingForPlayer(playerid, 10986, -2130.0547, 275.5625, 35.3750, 0.25);
RemoveBuildingForPlayer(playerid, 3866, -2123.2891, 269.5313, 41.8516, 0.25);
RemoveBuildingForPlayer(playerid, 3864, -2113.3125, 268.5078, 40.5703, 0.25);
RemoveBuildingForPlayer(playerid, 3872, -2118.1328, 263.8438, 41.3594, 0.25);
RemoveBuildingForPlayer(playerid, 10985, -2099.2734, 292.9141, 35.0703, 0.25);
RemoveBuildingForPlayer(playerid, 3864, -2059.3438, 205.5313, 40.4688, 0.25);
RemoveBuildingForPlayer(playerid, 3872, -2048.4531, 265.0938, 41.6563, 0.25);
RemoveBuildingForPlayer(playerid, 3864, -2041.7500, 265.1016, 40.8672, 0.25);



Re: Help with remove objects - Thresholdold - 06.12.2011

I needed the crane and few buildings removed...
thanks anyway for your help Rep+1


Re: Help with remove objects - Grindl - 06.12.2011

RemoveBuildingForPlayer(playerid, 3887, -2076.6394,233.4760,34.7686, 350.0); //Baustelle
RemoveBuildingForPlayer(playerid, 3888, -2076.6394,233.4760,34.7686, 350.0); //Baustelle
RemoveBuildingForPlayer(playerid, 10985, -2076.6394,233.4760,34.7686, 350.0); //Baustelle
RemoveBuildingForPlayer(playerid, 3866, -2076.6394,233.4760,34.7686, 350.0); //Baustelle
RemoveBuildingForPlayer(playerid, 3869, -2076.6394,233.4760,34.7686, 350.0); //Baustelle
RemoveBuildingForPlayer(playerid, 10986, -2076.6394,233.4760,34.7686, 350.0); //Baustelle
RemoveBuildingForPlayer(playerid, 3872, -2076.6394,233.4760,34.7686, 350.0); //Baustelle
RemoveBuildingForPlayer(playerid, 3864, -2076.6394,233.4760,34.7686, 350.0); //Baustelle
RemoveBuildingForPlayer(playerid, 10984, -2076.6394,233.4760,34.7686, 350.0); //Baustelle
RemoveBuildingForPlayer(playerid, 3865, -2076.6394,233.4760,34.7686, 350.0); //Baustelle
RemoveBuildingForPlayer(playerid, 10987, -2076.6394,233.4760,34.7686, 350.0); //Baustelle
RemoveBuildingForPlayer(playerid, 1383, -2076.6394,233.4760,34.7686, 350.0); //Baustelle
RemoveBuildingForPlayer(playerid, 1384, -2076.6394,233.4760,34.7686, 350.0); //Baustelle
RemoveBuildingForPlayer(playerid, 1684, -2076.6394,233.4760,34.7686, 350.0); //Baustelle
RemoveBuildingForPlayer(playerid,1383,-2080.8096,250.6403,105.0677,100); //Baustelle Kran
RemoveBuildingForPlayer(playerid,1384,-2080.8096,250.6403,105.0677,100); //Baustelle Kran
RemoveBuildingForPlayer(playerid,1385,-2080.8096,250.6403,105.0677,100); //Baustelle Kran
RemoveBuildingForPlayer(playerid,1403,-2080.8096,250.6403,105.0677,100); //Baustelle Kran
RemoveBuildingForPlayer(playerid,1404,-2080.8096,250.6403,105.0677,100); //Baustelle Kran


Re: Help with remove objects - Thresholdold - 06.12.2011

Complete Script:
pawn Code:
public OnPlayerConnect(playerid)
{
    RemoveBuildingForPlayer(playerid, 3865, -2063.2422, 258.7500, 35.7422, 0.25);
    RemoveBuildingForPlayer(playerid, 3869, -2123.2891, 269.5313, 41.8516, 0.25);
    RemoveBuildingForPlayer(playerid, 3869, -2126.2109, 231.9766, 41.6875, 0.25);
    RemoveBuildingForPlayer(playerid, 3869, -2116.6797, 131.0078, 42.1484, 0.25);
    RemoveBuildingForPlayer(playerid, 3865, -2063.0156, 247.9453, 35.7422, 0.25);
    RemoveBuildingForPlayer(playerid, 3865, -2057.7500, 249.9531, 35.5938, 0.25);
    RemoveBuildingForPlayer(playerid, 3865, -2057.7031, 229.8047, 35.3516, 0.25);
    RemoveBuildingForPlayer(playerid, 3865, -2059.5313, 256.5234, 37.0078, 0.25);
    RemoveBuildingForPlayer(playerid, 3888, -2128.1797, 171.4609, 42.4297, 0.25);
    RemoveBuildingForPlayer(playerid, 3888, -2066.3594, 301.9141, 42.1719, 0.25);
    RemoveBuildingForPlayer(playerid, 3887, -2066.3594, 301.9141, 42.1719, 0.25);
    RemoveBuildingForPlayer(playerid, 3887, -2128.1797, 171.4609, 42.4297, 0.25);
    RemoveBuildingForPlayer(playerid, 3866, -2116.6797, 131.0078, 42.1484, 0.25);
    RemoveBuildingForPlayer(playerid, 3864, -2082.5391, 153.5469, 40.1016, 0.25);
    RemoveBuildingForPlayer(playerid, 3872, -2079.8203, 159.6719, 40.8906, 0.25);
    RemoveBuildingForPlayer(playerid, 3864, -2111.8828, 172.4688, 40.1953, 0.25);
    RemoveBuildingForPlayer(playerid, 3872, -2116.7500, 177.0781, 40.9844, 0.25);
    RemoveBuildingForPlayer(playerid, 3872, -2064.2109, 210.1406, 41.2578, 0.25);
    RemoveBuildingForPlayer(playerid, 3872, -2107.0313, 226.0391, 40.8438, 0.25);
    RemoveBuildingForPlayer(playerid, 10984, -2126.1563, 238.6172, 35.2656, 0.25);
    RemoveBuildingForPlayer(playerid, 3864, -2102.2109, 230.7031, 40.0547, 0.25);
    RemoveBuildingForPlayer(playerid, 3866, -2126.2109, 231.9766, 41.6875, 0.25);
    RemoveBuildingForPlayer(playerid, 10986, -2130.0547, 275.5625, 35.3750, 0.25);
    RemoveBuildingForPlayer(playerid, 10987, -2137.8203, 264.2813, 35.7813, 0.25);
    RemoveBuildingForPlayer(playerid, 3866, -2123.2891, 269.5313, 41.8516, 0.25);
    RemoveBuildingForPlayer(playerid, 3864, -2113.3125, 268.5078, 40.5703, 0.25);
    RemoveBuildingForPlayer(playerid, 3872, -2118.1328, 263.8438, 41.3594, 0.25);
    RemoveBuildingForPlayer(playerid, 10985, -2099.2734, 292.9141, 35.0703, 0.25);
    RemoveBuildingForPlayer(playerid, 3864, -2059.3438, 205.5313, 40.4688, 0.25);
    RemoveBuildingForPlayer(playerid, 3872, -2048.4531, 265.0938, 41.6563, 0.25);
    RemoveBuildingForPlayer(playerid, 1383, -2076.6394,233.4760,34.7686, 350.0); //Baustelle
    RemoveBuildingForPlayer(playerid, 1384, -2076.6394,233.4760,34.7686, 350.0); //Baustelle
    RemoveBuildingForPlayer(playerid, 1684, -2076.6394,233.4760,34.7686, 350.0); //Baustelle
    RemoveBuildingForPlayer(playerid,1383,-2080.8096,250.6403,105.0677,100); //Baustelle Kran
    RemoveBuildingForPlayer(playerid,1384,-2080.8096,250.6403,105.0677,100); //Baustelle Kran
    RemoveBuildingForPlayer(playerid,1385,-2080.8096,250.6403,105.0677,100); //Baustelle Kran
    RemoveBuildingForPlayer(playerid,1403,-2080.8096,250.6403,105.0677,100); //Baustelle Kran
    RemoveBuildingForPlayer(playerid,1404,-2080.8096,250.6403,105.0677,100); //Baustelle Kran
    RemoveBuildingForPlayer(playerid, 3864, -2041.7500, 265.1016, 40.8672, 0.25);
Credits go to: Threshold, Grindl (Rep+1) and SupremeCommander (Rep+1)