14.01.2012, 10:42
I not used before the createdynamicobject but I think it's not diferent between usualy createobject
it should work
note: untested
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;
}
note: untested