SA-MP Forums Archive
How to respawn an 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: How to respawn an object? (/showthread.php?tid=302445)



How to respawn an object? - Super_Panda - 09.12.2011

Hey, I need to respawn an Object with a command like "/respawngate" Thanks.


Re: How to respawn an object? - Dragony92 - 09.12.2011

https://sampforum.blast.hk/showthread.php?tid=278463


Re: How to respawn an object? - wildcookie007 - 09.12.2011

new object;

object = CreateObject.....

oncommandtext:

/respawngate

DestroyObject(object);
object = CreateObject(.....