01.08.2012, 02:42
well, what you could do is create the object in the local scope(not in any function to be able to destroy it in another function)
So you'll have to do this:
That would work since first you name the function you want to call, then the time, then if you want it to loop, then the type of the data you want to put into the function, then what data you want to put in there, more info here:
https://sampwiki.blast.hk/wiki/SetTimerEx
So you'll have to do this:
Код:
new wep1;//set this at the start of your gamemode before OnGameModeInit(); //and then you could do that timer, but not exactly like you whrite it, do it like this. SetTimerEx("DestroyDynamicObject", 1500, false , "i", wep1);
https://sampwiki.blast.hk/wiki/SetTimerEx