SA-MP Forums Archive
Help With Animations ... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help With Animations ... (/showthread.php?tid=165219)



Help With Animations ... - waim - 03.08.2010

Hello I guys ... I've problem With Animation When I Type for exemple /hide .. it shows to me Press Space To Stop The .... and when I press it the Animation Stoped , But Please i don't want this message show on the screen .. when I deleted it the Code of this Option Or i changed something on it the Animation doesn't stop

This is the code Of if :


public OnFilterScriptInit()
{
Anim_Textdraw = TextDrawCreate(610.0, 400.0,"~r~~k~~PED_SPRINT~ ~w~to stop the animation");
TextDrawUseBox(Anim_Textdraw, 0);
TextDrawFont(Anim_Textdraw, 2);
TextDrawSetShadow(Anim_Textdraw,0);
TextDrawSetOutline(Anim_Textdraw,1);
TextDrawBackgroundColor(Anim_Textdraw,0x000000FF);
TextDrawColor(Anim_Textdraw,0xFFFFFFFF);
TextDrawAlignment(Anim_Textdraw,3);
return 1;
}


Re: Help With Animations ... - Carlton - 03.08.2010

Delete all the TextDrawShowForPlayer lines in your animation commands. If you're too lazy to do that, then delete this but leave the variable.

pawn Код:
public OnFilterScriptInit()
{
Anim_Textdraw = TextDrawCreate(610.0, 400.0,"~r~~k~~PED_SPRINT~ ~w~to stop the animation");
TextDrawUseBox(Anim_Textdraw, 0);
TextDrawFont(Anim_Textdraw, 2);
TextDrawSetShadow(Anim_Textdraw,0);
TextDrawSetOutline(Anim_Textdraw,1);
TextDrawBackgroundColor(Anim_Textdraw,0x000000FF);
TextDrawColor(Anim_Textdraw,0xFFFFFFFF);
TextDrawAlignment(Anim_Textdraw,3);
return 1;
}



Re: Help With Animations ... - waim - 03.08.2010

Thank you But I Didn't Find any TextDrawShowForPlayer In The FilterScript For This Anims .. !


Re: Help With Animations ... - Carlton - 03.08.2010

Then use the second process I mentioned.


Re: Help With Animations ... - waim - 04.08.2010

What do u mean ?