make objects respawn
#1

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 ?
Reply
#2

They will respawn after a certain amount of time try going far away from they then going back.
Reply
#3

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)
Reply
#4

how to do it with steamer?
Reply
#5

Streamers do it automatically. When a player is in range of an object, it gets created. When the player isn't, it gets destroyed.
Reply
#6

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
Reply
#7

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); //
Reply
#8

i add steamer.dll in server.cfg but again this message
http://imageshack.us/photo/my-images/96/capture1jd.png/
someone help me?
Reply
#9

Quote:
Originally Posted by nton
Посмотреть сообщение
i add steamer.dll in server.cfg but again this message
http://imageshack.us/photo/my-images/96/capture1jd.png/
someone help me?
Make sure you have all the includes listed in your script in pawno/includes
Reply
#10

i have this
http://imageshack.us/photo/my-images...apture3is.png/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)