samp.directory
← Scripts y librerías

dinhkhoi2298/async-a-controller

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

Librería★ 4actualizado oct 2020Sin licenciaPawnsampctl
Abrir en GitHub

Este repositorio no tiene archivo de licencia. Se puede leer, pero eso por sí solo no da permiso para reutilizarlo.

Instalar con sampctl

sampctl package install dinhkhoi2298/async-a-controller

Ejecútalo en la carpeta de tu proyecto. sampctl descarga el paquete y sus dependencias.

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

Esta página se genera con lo que GitHub publica sobre el repositorio. samp.directory no aloja el código. Informar de un problema con esta ficha

dinhkhoi2298/async-a-controller: Librería de SA-MP | samp.directory