Createobject - 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: Createobject (
/showthread.php?tid=130725)
Createobject -
ihatetn931 - 28.02.2010
Is there a way for setting respawn times on objects? Like for exampl i put a glass in side the interior of San fierror pd and it gets shot and gets destoyed, How would i make it so it respawns again and How would i go about scirpting it in?
Re: Createobject -
[HiC]TheKiller - 28.02.2010
Just do this
pawn Код:
new Object[2];
public OnGameModeInit()
{
Object[0] = CreateObject(....);
Object[1] = CreateObject(....);
SetTimer("ReloadObjects", 10000, true);
//And so on
return 1;
}
forward ReloadObjects();
public ReloadObjects()
{
DestroyObject(Object[0]);
Object[0] = CreateObject(....);
DestroyObject(Object[0]);
Object[1] = CreateObject(....);
return 1;
}
Or get a object streamer.
Re: Createobject -
ihatetn931 - 28.02.2010
Quote:
Originally Posted by [HiC
TheKiller ]
Just do this
pawn Код:
new Object[2];
public OnGameModeInit() { Object[0] = CreateObject(....); Object[1] = CreateObject(....); SetTimer("ReloadObjects", 10000, true); //And so on return 1; }
forward ReloadObjects(); public ReloadObjects() { DestroyObject(Object[0]); Object[0] = CreateObject(....); DestroyObject(Object[0]); Object[1] = CreateObject(....); return 1; }
Or get a object streamer.
|
Thank you for your help.