20.07.2012, 21:47
I have seif_walk.inc but i dont know how to make a script like this one in the picture, is there any around?
No CJ RUN.
No CJ RUN.
#define DIALOG_ANIMATIONS 1 // on top of script, change 1 to any AVAILABLE dialog ID.
CMD:walkstyles(playerid, params[])
{
ShowPlayerDialog(playerid, DIALOG_ANIMATIONS, DIALOG_STYLE_LIST, "Walk Styles", "Style1\nStyle2\nStyle3", "Select", "Cancel");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
case DIALOG_ANIMATIONS:
{
if(response) // checks if he pressed Button 1 (Select)
{
switch(listitem)
{
case 0: // Walk style 1.
{
ApplyAnimation(...);
}
case 1: // Walk style 2.
{
ApplyAnimation(...);
}
case 2: // Walk style 3.
{
ApplyAnimation(...);
}
}
}
}
return 1;
}
Example:
pawn Код:
pawn Код:
pawn Код:
https://sampwiki.blast.hk/wiki/OnDialogResponse |
Could you possibly explain how to do something like this, but instead of a walk animation, use it to set a certain talking animation for when people talk IG?
|