Remove world object - 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: Remove world object (
/showthread.php?tid=515006)
Remove world object -
Steel_ - 24.05.2014
How do i remove a world object for samp?
i deleted a house in MTA and replaced it with another one and now the two houses are on top of each other??
Re: Remove world object -
Steel_ - 24.05.2014
ok i got it now its RemoveBuildingForPlayer
Код:
public OnPlayerConnect(playerid)
{
RemoveBuildingForPlayer(playerid, 615, 0.0, 0.0, 0.0, 200.0);
return 1;
}
but how do i find the id of the building now? its the little building in Big Ear
Re : Remove world object -
yusei - 24.05.2014
Use MapEditor to find the ID
https://sampforum.blast.hk/showthread.php?tid=282801
Re: Remove world object -
Steel_ - 24.05.2014
Код:
public OnPlayerConnect(playerid)
{
RemoveBuildingForPlayer(playerid, 615, 0.0, 0.0, 0.0, 200.0);
return 1;
}
so i put the ID in where 615 is?
Re: Remove world object -
Stanford - 24.05.2014
You need to open up map editor and press DELETE when you've selected the object that you want to delete (it will be in RED once you select it), I hope that I helped you!.
Re: Remove world object -
Steel_ - 24.05.2014
thx for the help i got it working