01.12.2015, 01:10
Hello, It's a little system that I want to do is when I make this command the actor should look at me.
pawn Код:
CMD:styles(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 769.8349, 13.1127, 1000.7004))//LS Gym
{
new Float:a1;
GetPlayerFacingAngle(playerid, a1);//i dunno
SetActorFacingAngle(boxeractor1, -a1);//i dunno
ClearActorAnimations(boxeractor1)
PlayerPlaySound(playerid, 4800, 0.0, 0.0, 0.0);//
ShowPlayerDialog(playerid, DIALOG_FIGHTSTYLES, DIALOG_STYLE_TABLIST_HEADERS, "{00CCFF}Estilos de lucha", "Style\tRequired Level\nDelete actual fighting style\t-\Boxing\t1\nKung Fu\t2\nStreet\t3\nFighter\t8", "Accept", "Cancel");
}
else SendClientMessage(playerid, Orange, "You're not in the gym.");
return 1;
}