[Ajuda] Animaзгo para dois jogadores
#1

E ai pessoal, estou com duvida, tipo, estou fazendo um comando de cumprimentar e queria saber como fazer com que quando as duas pessoas for executar a animaзгo, elas ficarem de frente retinho, e bate as mгos de cada um. Como? nгo achei uma logica..
Reply
#2

Sabe pelo menos um anime?
Reply
#3

Sim, jб estou com todas as animaзхes aqui.
Reply
#4

Код:
stock SetPlayerFacePlayer(playerid, faceplayerid)
{
	new Float:Px, Float:Py, Float: Pa;
	GetPlayerPos(playerid, Px, Py, Pa);
	new Float:fpX, Float:fpY, Float: fpZ;
	GetPlayerPos(faceplayerid, fpX, fpY, fpZ);
	Pa = floatabs(atan((fpY-Py)/(fpX-Px)));
	if(fpX <= Px && fpY >= Py) Pa = floatsub(180, Pa);
	else if(fpX < Px && fpY < Py) Pa = floatadd(Pa, 180);
	else if(fpX >= Px && fpY <= Py) Pa = floatsub(360.0, Pa);
	Pa = floatsub(Pa, 90.0);
	if(Pa >= 360.0) Pa = floatsub(Pa, 360.0);
	if(!IsPlayerInAnyVehicle(playerid)) SetPlayerFacingAngle(playerid, Pa);
	else SetVehicleZAngle(GetPlayerVehicleID(playerid), Pa);
}
+ ApplyAnimation
Reply
#5

Me desculpa gente, coloquei no lugar errado meu post (editei) ---


Ta tentando fazer um sistema de apertar a mгo e beijos?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)