SA-MP Forums Archive
[Help] Plugin "The 1MS Refresh" - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help] Plugin "The 1MS Refresh" (/showthread.php?tid=354393)



[Help] Plugin "The 1MS Refresh" - Prosettur - 26.06.2012

I want write plugin ( in this a timer refresh 1 ms). But i dont know how ;d help!


Re: [Help] Plugin "The 1MS Refresh" - tyler12 - 26.06.2012

what?


Re: [Help] Plugin "The 1MS Refresh" - peterory - 26.06.2012

you just use
SetTimer("symbol",1,false);
SetTimer("symbol",time(ms),(true or false));


Re: [Help] Plugin "The 1MS Refresh" - Prosettur - 26.06.2012

I want this in plugin....


Re: [Help] Plugin "The 1MS Refresh" - iggy1 - 26.06.2012

Look in the plugin development guide (its stickied in the plugin section). There is a function you can use within your plugin called ProcessTick() it is called for every server tick.

WARNING: Be careful with the type of code you put in that function. If you put any slow code there it will lag your server.