samp.directory
← Scripts and libraries

knryuu/pp-task-binding

PawnPlus Task Binding to specific ID (currently support playerid)

Library★ 1updated Feb 2026MITPawnsampctl
Open on GitHub

Install with sampctl

sampctl package install knryuu/pp-task-binding

Run this in your project folder. sampctl downloads the package and what it depends on.

Try it in the Pawn compiler →

Adds its include files, with the libraries it depends on, to the Pawn compiler in your browser, ready to include in a script.

README.md

PawnPlus Task Binding

PawnPlus Task Binding to specific ID (currently support playerid)

Functions

/*
* Description:
* Will bind the task to OnPlayerDisconnect.
*
* Returns:
* Returns INVALID_TASK when the current task is invalid
* otherwise it will return the current task itself.
*/

forward Task:task_bind_player(playerid, Task:currentTask);

Usage

If PP_SYNTAX or PP_SYNTAX_AWAIT is defined, await syntax can be used:

await bind_to(playerid) mysql_aquery(myHandle, str_format("SELECT ..."));

or

await task_bind_player(playerid, mysql_aquery(myHandle, str_format("SELECT ...")));

If not using await syntax

task_await(bind_to(playerid) mysql_aquery(myHandle, str_format("SELECT ...")));

or

task_await(task_bind_player(playerid, mysql_aquery(myHandle, str_format("SELECT ..."))));

This page is built from what GitHub publishes about the repository. samp.directory does not host the code. Report a problem with this listing

knryuu/pp-task-binding: SA-MP Library | samp.directory