SA-MP Forums Archive
RemoveBuildingForPlayer scripting help - 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: RemoveBuildingForPlayer scripting help (/showthread.php?tid=490462)



RemoveBuildingForPlayer scripting help - roncohen - 26.01.2014

Hey guys, I need help with the RemoveBuildingForPlayer.
Look, I will upload a picture

Picture:


Code:
PHP код:
public OnPlayerConnect(playerid)
{
    
RemoveBuildingForPlayer(playerid40021479.86719, -1790.3984456.0234496.110511779785); // Remove LA_Cityhall
    
RemoveBuildingForPlayer(playerid39801481.1875, -1785.0703122.3828177.638008117676); // Remove LA_Cityhall 2 
And It's Still didn't remove, help me?


Re: RemoveBuildingForPlayer scripting help - pyrodojo25 - 26.01.2014

You didn't remove the LODs. I would recommend you using SA-MP Map Construction because it removes LODs automatically
pawn Код:
RemoveBuildingForPlayer(playerid, 4024, 1479.8672, -1790.3984, 56.0234, 0.25); //LOD
RemoveBuildingForPlayer(playerid, 4044, 1481.1875, -1785.0703, 22.3828, 0.25); //LOD
RemoveBuildingForPlayer(playerid, 4002, 1479.8672, -1790.3984, 56.0234, 0.25);
RemoveBuildingForPlayer(playerid, 3980, 1481.1875, -1785.0703, 22.3828, 0.25);



Re: RemoveBuildingForPlayer scripting help - roncohen - 26.01.2014

I will check it and back to you,
And what is LOD?


Re: RemoveBuildingForPlayer scripting help - roncohen - 26.01.2014

THANK YOU THANK YOU THANK YOU!!!!
ITS WORK YES!


Re: RemoveBuildingForPlayer scripting help - roncohen - 26.01.2014

And look, you see the america flags?
I can't remove that from the MTA, why?


Re: RemoveBuildingForPlayer scripting help - pyrodojo25 - 26.01.2014

LOD is something like low detailed model. I guess you can't remove(or select?) that flag object in MTA because it has no collision.
pawn Код:
RemoveBuildingForPlayer(playerid, 4003, 1481.0781, -1747.0313, 33.5234, 0.25);