How to use a command on another player?
#7

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:

Код:
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);
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
Reply


Messages In This Thread
How to use a command on another player? - by gnoomen2 - 31.07.2012, 23:58
Re: How to use a command on another player? - by Ranama - 01.08.2012, 00:04
Re: How to use a command on another player? - by Devilxz97 - 01.08.2012, 00:26
Re: How to use a command on another player? - by gnoomen2 - 01.08.2012, 01:10
Re: How to use a command on another player? - by Ranama - 01.08.2012, 01:20
Re: How to use a command on another player? - by gnoomen2 - 01.08.2012, 02:30
Re: How to use a command on another player? - by Ranama - 01.08.2012, 02:42

Forum Jump:


Users browsing this thread: 1 Guest(s)