make objects respawn -
nton - 15.06.2012
Hi i create this objects
CreateObject(3851, 211.06, 1827.90, 203.75, 0.00, 90.00, 0.00);
CreateObject(3851, 207.08, 1839.19, 203.75, 0.00, 90.00, 0.00);
CreateObject(3851, 207.07, 1850.47, 203.75, 0.00, 90.00, 0.00);
CreateObject(3851, 211.09, 1873.19, 203.75, 0.00, 90.00, 0.00);
CreateObject(3851, 215.05, 1873.21, 203.75, 0.00, 90.00, 0.00);
CreateObject(3851, 218.95, 1873.19, 203.75, 0.00, 90.00, 0.00);
CreateObject(3851, 222.89, 1873.20, 203.75, 0.00, 90.00, 0.00);
but when destroyed don't respawn
how to do that ?
Re: make objects respawn -
tiernantheman - 15.06.2012
They will respawn after a certain amount of time try going far away from they then going back.
Re: make objects respawn -
IstuntmanI - 15.06.2012
You can't respawn a object when it is destroyed.
With streamers, after it is de-streamed from you and you come back to it, it will be created again, that's the only way.
Or you can try to delete and create them every 5 seconds. (bad idea)
Re: make objects respawn -
nton - 15.06.2012
how to do it with steamer?
Re: make objects respawn -
Yuryfury - 15.06.2012
Streamers do it automatically. When a player is in range of an object, it gets created. When the player isn't, it gets destroyed.
Re: make objects respawn -
Mento - 15.06.2012
Here is a streamer:
https://sampforum.blast.hk/showthread.php?tid=102865
Go there download the plugin and go to Pawno folder and put the .inc file into the includes folder.
Then go inside your script and change CreateObject to CreateDynamicObject
Re: make objects respawn -
Jhero - 15.06.2012
For it to stream with
streamer you will need to convert it using
convertFFS.
Settings should be like this,
I've although converted the objects you had above for you, to make things easier.
pawn Код:
CreateDynamicObject(3851,211.06000000,1827.90000000,203.75000000,0.00000000,90.00000000,0.00000000); //
CreateDynamicObject(3851,207.08000000,1839.19000000,203.75000000,0.00000000,90.00000000,0.00000000); //
CreateDynamicObject(3851,207.07000000,1850.47000000,203.75000000,0.00000000,90.00000000,0.00000000); //
CreateDynamicObject(3851,211.09000000,1873.19000000,203.75000000,0.00000000,90.00000000,0.00000000); //
CreateDynamicObject(3851,215.05000000,1873.21000000,203.75000000,0.00000000,90.00000000,0.00000000); //
CreateDynamicObject(3851,218.95000000,1873.19000000,203.75000000,0.00000000,90.00000000,0.00000000); //
CreateDynamicObject(3851,222.89000000,1873.20000000,203.75000000,0.00000000,90.00000000,0.00000000); //
Re: make objects respawn -
nton - 15.06.2012
i add steamer.dll in server.cfg but again this message
http://imageshack.us/photo/my-images/96/capture1jd.png/
someone help me?
Re: make objects respawn -
tiernantheman - 15.06.2012
Quote:
Originally Posted by nton
|
Make sure you have all the includes listed in your script in pawno/includes
Re: make objects respawn -
nton - 15.06.2012
i have this
http://imageshack.us/photo/my-images...apture3is.png/