samp.directory
← Scripts and libraries

dinhkhoi2298/async-a-controller

Task-based Ares Controller https://github.com/AresVN/a_controller

Library★ 4updated Oct 2020No licencePawnsampctl
Open on GitHub

This repository has no licence file. It is public to read, but that alone does not give permission to reuse it.

Install with sampctl

sampctl package install dinhkhoi2298/async-a-controller

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

async-a-controller

Installation

Simply install to your project:

sampctl package install roesanne26/async-a-controller

Include in your code and begin using the library:

#include <async-a-controller>

Dependencies

https://github.com/IllidanS4/PawnPlus/

Usage

Function: Task:async_controller_show

#include <Async-A-Controller>

CMD:dancing(playerid) {
	task_yield(1);
	SetPlayerSpecialAction(playerid, 5);
	new 
		result = task_await(async_controller_show(playerid));
	
	if(result) 
		SendClientMessage(playerid, 0xFFFF00AA, "[DANCING]: Ban da hoan thanh thu thach");
	
	else 
		SendClientMessage(playerid, 0xFF6347AA, "[DANCING]: Ban da that bai thu thach");

	ClearAnimations(playerid);
	SetPlayerSpecialAction(playerid, 0);
	TogglePlayerControllable(playerid, true);
	SetCameraBehindPlayer(playerid);
	return 1;
}

Testing

To test, simply run the package:

sampctl package run

Credits

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

dinhkhoi2298/async-a-controller: SA-MP Library | samp.directory