View Single Post
Old 01/01/2019, 02:07 PM   #7
NexyAG
Banned
 
Join Date: Oct 2017
Posts: 23
Reputation: 0
Default Re: Serious Discussion about TIMERS!

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 )
NexyAG is offline   Reply With Quote