Glass Object Respawn
#1



Hi, i have Glass DM mode in my server.
If anyone shoot this glass, glassґll destroy.
I want to create spawner of this glass objects (but i have 50 this object !).
Can you help me ?
Reply
#2

if make a timer and every 1min ( or how much time you want ) for destroy object and create new replace old
if you give more info about your object then I can show you how to do it
Reply
#3

I using streamer.
pawn Код:
CreateDynamicObject();
Reply
#4

I not used before the createdynamicobject but I think it's not diferent between usualy createobject
pawn Код:
new obj[9];
new check
public OnGameModeInit()
{
    obj[0] = CreateDynamicObject();
    obj[1] = CreateDynamicObject();
    check = SetTimer("Objects",1000,1); // every 1 min
return 1;
}
public OnGameModeExit()
{
KillTimer(check);
return 1;
}
forward Objects();
public Objects();
{
DestroyObject(obj[0]);
DestroyObject(obj[1]);
obj[0] = CreateDynamicObject();
obj[1] = CreateDynamicObject();
return 1;
}
it should work
note: untested
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)