Glass Object Respawn
#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


Messages In This Thread
Glass Object Respawn - by lamarr007 - 14.01.2012, 10:00
Re: Glass Object Respawn - by mineralo - 14.01.2012, 10:03
Re: Glass Object Respawn - by lamarr007 - 14.01.2012, 10:11
Re: Glass Object Respawn - by mineralo - 14.01.2012, 10:42

Forum Jump:


Users browsing this thread: 1 Guest(s)