Help: Objects spawn on death - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help: Objects spawn on death (
/showthread.php?tid=137889)
Help: Objects spawn on death -
Dudits - 30.03.2010
How to make a certain object spawn after death?
I'm making a stunt server with explosive barrels, I need to know how to make them respawn when someone crashes into them and dies.
Re: Help: Objects spawn on death -
Carlton - 30.03.2010
I think the barrels spawn right after death? If not then create the object again.
Re: Help: Objects spawn on death -
aircombat - 30.03.2010
OnPlayerDeath(playerid,killerid)
{
CreateObject(etc....);
return 1;
}
Re: Help: Objects spawn on death -
dice7 - 30.03.2010
Quote:
Originally Posted by [AC
Etch ]
OnPlayerDeath(playerid,killerid)
{
CreateObject(etc....);
return 1;
}
|
And create 5000 objects after a day.
Destroy them with DestroyObject and then recreate them again
Re: Help: Objects spawn on death -
Dudits - 30.03.2010
I tried OnPlayerDeath but they don't respawn :S