[HELP]REP++
#3

I think the best is the second. Use a timer to destroy and create again the objects you want.

An example of how to do:

Код:
new timer_reload;
forward ReloadObj();


CreateObj()
{
	obj1 = CreateObject(.........	// your code here
	obj2 = CreateObject(.........
	......
}

DestroyObj()
{
	DestroyObject(obj1);
	DestroyObject(obj2);
	....
}

public ReloadObj()
{
	DestroyObj();
	CreateObj();
}
Thats an example so the variables name doesn't matter.
OnGameModeInit you have to start timer:

Код:
timer_reload = SetTimer("ReloadObj",1000,1); // 1000 = 1 sec
Reply


Messages In This Thread
[HELP]REP++ - by Mya - 20.03.2015, 14:42
Re: [HELP]REP++ - by De4dpOol - 20.03.2015, 14:52
Respuesta: [HELP]REP++ - by alexus - 20.03.2015, 14:58
Re: [HELP]REP++ - by Mya - 20.03.2015, 16:10

Forum Jump:


Users browsing this thread: 1 Guest(s)