Serious Discussion about TIMERS!
#7

Quote:
Originally Posted by IllidanS4
View Post
You can use PawnPlus to create a per-player Map or List, then use task_ms to represent the waiting task, create a new handle to it via handle_new, call handle_acquire on the handle, and store it in the map or list. Then, when the player disconnects, call map_delete_deep or list_delete_deep. This will delete the per-player collection and all its contents, thus release the handles and in turn destroy all tasks stored there, even though they were not completed yet.

Waiting on such a task will be cancelled and no further code will run.
I'm actually alredy using PawnPlus since the very beginning of the plugin, i was using only 1% of it ( wait_ms haha )
Reply


Messages In This Thread
Serious Discussion about TIMERS! - by NexyAG - 31.12.2018, 23:36
Re: Serious Discussion about TIMERS! - by CantBeJohn - 01.01.2019, 00:03
Re: Serious Discussion about TIMERS! - by CantBeJohn - 01.01.2019, 03:49
Re: Serious Discussion about TIMERS! - by NexyAG - 01.01.2019, 10:49
Re: Serious Discussion about TIMERS! - by Spmn - 01.01.2019, 12:21
Re: Serious Discussion about TIMERS! - by IllidanS4 - 01.01.2019, 12:46
Re: Serious Discussion about TIMERS! - by NexyAG - 01.01.2019, 13:07
Re: Serious Discussion about TIMERS! - by B3x7K - 18.01.2019, 23:44

Forum Jump:


Users browsing this thread: 2 Guest(s)