SA-MP Forums Archive
Take back RemoveBuildingForPlayer - 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: Take back RemoveBuildingForPlayer (/showthread.php?tid=519659)



Take back RemoveBuildingForPlayer - LeaveMe - 15.06.2014

How to replace removed stuff[add them back] when you do RemoveBuildingForPlayer ?


Re: Take back RemoveBuildingForPlayer - HeLiOn_PrImE - 15.06.2014

before removing them with the editor, duplicate them so you can add them using
createobject, or createdynamicobject.


Re: Take back RemoveBuildingForPlayer - LeaveMe - 15.06.2014

Good trick. Is there any include made for this ?


Re: Take back RemoveBuildingForPlayer - Redirect Left - 15.06.2014

Yes, search the forum.


Re: Take back RemoveBuildingForPlayer - LeaveMe - 15.06.2014

Quote:
Originally Posted by Redirect Left
Посмотреть сообщение
Yes, search the forum.
I'm searching for one hour already and found nothing. Please share your information if you have any ?


Re: Take back RemoveBuildingForPlayer - HeLiOn_PrImE - 15.06.2014

dude if you removed them using RemoveBuildingForPlayer, you now have to re-add them using a streamer (incognito's streamer is the most commonly used).
You add the objects exaclty in the position they were in the first place.

PHP код:
#include <streamer>
#include <a_samp>
//blah blah
CreateDynamicObject(3279262.093751807.6718816.82031,   356.858400.000003.14159, -1, -1, -1500.0500.0);    
//this is just an example. You can read all about Incognito's streamer by clicking the link below. 
https://sampforum.blast.hk/showthread.php?tid=102865

Be sure to add all the parameters, because the map editors and converters don't release them as output. The last 5 parameters will be missing.


Re: Take back RemoveBuildingForPlayer - Abagail - 15.06.2014

Maybe you could just use variables to store the details of the object you removed so you'll be able to replicate it later when needed.