SA-MP Forums Archive
Animation list - 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: Animation list (/showthread.php?tid=190158)



Animation list - Hoss - 14.11.2010

Hello pleople
How to make when player do /animations to show the animation list like image Its posible


Re: Animation list - ExeC - 14.11.2010

What do you mean by image? Like a dialog?


Re: Animation list - Hoss - 14.11.2010

Yeah
Idk maybe any players saw in RPG servers when u do /status u saw a list Like /status list to be and /animlist


Re: Animation list - ExeC - 14.11.2010

Yeah, its possible:

OnPlayerCommandText, add:

Under your command, example: /anims:
pawn Код:
ShowPlayerDialog(playerid,DialogID, DIALOG_STYLE_LIST, "Animations", "Animation1 \nAnimation2 \nAnimation3\nAnimation4", "Cancel", "Continue");
Or, you can add diffrend box styles:

pawn Код:
ShowPlayerDialog(playerid,DialogID, DIALOG_STYLE_MSGBOX, "Animations", "/Animation1, /Animation2, /Animation3, /Animation4 \n /Animation 5", "Cancel", "Continue");
(You can add more, ofc.)
pawn Код:
\n // means a new line.



Re: Animation list - Hoss - 25.11.2010

Quote:
Originally Posted by ExeC
Посмотреть сообщение
Yeah, its possible:

OnPlayerCommandText, add:

Under your command, example: /anims:
pawn Код:
ShowPlayerDialog(playerid,DialogID, DIALOG_STYLE_LIST, "Animations", "Animation1 \nAnimation2 \nAnimation3\nAnimation4", "Cancel", "Continue");
Or, you can add diffrend box styles:

pawn Код:
ShowPlayerDialog(playerid,DialogID, DIALOG_STYLE_MSGBOX, "Animations", "/Animation1, /Animation2, /Animation3, /Animation4 \n /Animation 5", "Cancel", "Continue");
(You can add more, ofc.)
pawn Код:
\n // means a new line.

1.error


pawn Код:
error 017: undefined symbol "DialogID"



Re: Animation list - FreshDoubleX - 25.11.2010

Код:
#define   DialogID     123



Re: Animation list - jonnyboy - 25.11.2010

Cool will use this have looled everywhere for this ^^


Re: Animation list - jonnyboy - 25.11.2010

it works but i want to use the animations "dunno how"