dinhkhoi2298/async-a-controller
Task-based Ares Controller https://github.com/AresVN/a_controller
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.
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
Ares: Original script (https://github.com/AresVN/a_controller)
Me: Make async version
This page is built from what GitHub publishes about the repository. samp.directory does not host the code. Report a problem with this listing