SA-MP Forums Archive
Object Removing - 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: Object Removing (/showthread.php?tid=347291)



Object Removing - WiPaS - 01.06.2012

Hi, i have a problem. I can't remove these objects



If someone knows how to solve this problem. Write here how to.

Thanks


Re: Object Removing - TzAkS. - 01.06.2012

With Map editor,click on them and press delete.


Re: Object Removing - Sandiel - 01.06.2012

Did you create those?
If its in the original GTA mappings..I dont think you can, I'm not a mapper but not sure, most likely not.


Re: Object Removing - CptK - 01.06.2012

Try using RemoveBuildingForPlayer


Re: Object Removing - pasha97 - 01.06.2012

Use: https://sampwiki.blast.hk/wiki/RemoveBuildingForPlayer if its a standart mapping and

https://sampwiki.blast.hk/wiki/DestroyObject if you created this objects yourself


Re: Object Removing - Sandiel - 01.06.2012

Here's how you do it...
Код:
public OnPlayerUpdate(playerid)
{
	for(new i = 0; i < MAX_PLAYERS; i++)
	if(IsPlayerConnected(i))
	{
	    RemoveBuildingForPlayer(......)
	}
	return 1;
}



Re: Object Removing - aaronwelsh - 01.06.2012

You can use JernejL's map editor https://sampforum.blast.hk/showthread.php?tid=282801 to remove any objects. Then 'Show code' and place it within your gamemode.