Nurick
25.06.2014, 20:38
Ув. пользователи портала Pro-Pawn при использовании ClearAnimations(playerid); анимация не останавливаеться.
Делал команду /animation + TextDraw при использовании анимации и при нажатие на пробел анимация и TextDraw должны исчезать, но TextDraw исчезает а анимации не останавливается
new Text: completion_animation;
completion_animation = TextDrawCreate(5.000000, 425.833251, "To stop the animation press ~r~space");
TextDrawLetterSize(completion_animation, 0.449999, 1.600000);
TextDrawAlignment(completion_animation, 1);
TextDrawColor(completion_animation, -105);
TextDrawSetShadow(completion_animation, 0);
TextDrawSetOutline(completion_animation, 1);
TextDrawBackgroundColor(completion_animation, 51);
TextDrawFont(completion_animation, 1);
TextDrawSetProportional(completion_animation, 1);
if(newkeys == KEY_SPRINT)
{
ClearAnimations(playerid);
TextDrawHideForPlayer(playerid, completion_animation);
}
case 32:
{
if(!response) return 1;
switch(listitem)
{
case 0: ApplyAnimation( playerid, "PED", "WALK_DRUNK", 4.1, 1, 1, 1, 1, 1 ), TextDrawShowForPlayer(playerid, completion_animation);
}
}
CMD:animation(playerid, params[])
{
ShowPlayerDialog(playerid,32,DIALOG_STYLE_LIST,"Список анимаций","1. Походка пьяного","Включить","Отмена");
return 1;
}
http://i016.radikal.ru/1406/0d/c2fc7aecf7af.png
http://s004.radikal.ru/i207/1406/75/7287cc4b705e.png
Делал команду /animation + TextDraw при использовании анимации и при нажатие на пробел анимация и TextDraw должны исчезать, но TextDraw исчезает а анимации не останавливается
new Text: completion_animation;
completion_animation = TextDrawCreate(5.000000, 425.833251, "To stop the animation press ~r~space");
TextDrawLetterSize(completion_animation, 0.449999, 1.600000);
TextDrawAlignment(completion_animation, 1);
TextDrawColor(completion_animation, -105);
TextDrawSetShadow(completion_animation, 0);
TextDrawSetOutline(completion_animation, 1);
TextDrawBackgroundColor(completion_animation, 51);
TextDrawFont(completion_animation, 1);
TextDrawSetProportional(completion_animation, 1);
if(newkeys == KEY_SPRINT)
{
ClearAnimations(playerid);
TextDrawHideForPlayer(playerid, completion_animation);
}
case 32:
{
if(!response) return 1;
switch(listitem)
{
case 0: ApplyAnimation( playerid, "PED", "WALK_DRUNK", 4.1, 1, 1, 1, 1, 1 ), TextDrawShowForPlayer(playerid, completion_animation);
}
}
CMD:animation(playerid, params[])
{
ShowPlayerDialog(playerid,32,DIALOG_STYLE_LIST,"Список анимаций","1. Походка пьяного","Включить","Отмена");
return 1;
}
http://i016.radikal.ru/1406/0d/c2fc7aecf7af.png
http://s004.radikal.ru/i207/1406/75/7287cc4b705e.png