It's a very bad idea. You want to replace a system coded and optimized in C with a system code in Pawn ? It will be way slower and inefficient. Also, thinking each 0.1 seconds it's what does basically the code for set_task. Using set_task with "b" flag is fine.