Change walkstyle - 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)
+--- Thread: Change walkstyle (
/showthread.php?tid=361388)
Change walkstyle -
DeeCaay - 20.07.2012
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.
Re: Change walkstyle -
Devilxz97 - 20.07.2012
just an Animation on a Dialog
Re : Change walkstyle -
Sandiel - 21.07.2012
Example:
pawn Код:
#define DIALOG_ANIMATIONS 1 // on top of script, change 1 to any AVAILABLE dialog ID.
pawn Код:
CMD:walkstyles(playerid, params[])
{
ShowPlayerDialog(playerid, DIALOG_ANIMATIONS, DIALOG_STYLE_LIST, "Walk Styles", "Style1\nStyle2\nStyle3", "Select", "Cancel");
return 1;
}
pawn Код:
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;
}
https://sampwiki.blast.hk/wiki/ShowPlayerDialog
https://sampwiki.blast.hk/wiki/OnDialogResponse
Re : Change walkstyle -
DeeCaay - 22.07.2012
Quote:
Originally Posted by Sandiel
Example:
pawn Код:
#define DIALOG_ANIMATIONS 1 // on top of script, change 1 to any AVAILABLE dialog ID.
pawn Код:
CMD:walkstyles(playerid, params[]) { ShowPlayerDialog(playerid, DIALOG_ANIMATIONS, DIALOG_STYLE_LIST, "Walk Styles", "Style1\nStyle2\nStyle3", "Select", "Cancel"); return 1; }
pawn Код:
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; }
https://sampwiki.blast.hk/wiki/ShowPlayerDialog
https://sampwiki.blast.hk/wiki/OnDialogResponse
|
Thanks bro fixed.
Re: Change walkstyle -
Noesis - 24.07.2012
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?
Re: Change walkstyle -
Stigg - 24.07.2012
Quote:
Originally Posted by Noesis
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?
|
https://sampwiki.blast.hk/wiki/OnPlayerText
https://sampwiki.blast.hk/wiki/ApplyAnimation
Re: Change walkstyle -
SuperViper - 24.07.2012
This should be posted on the include thread.
Re: Change walkstyle -
Noesis - 24.07.2012
Thank you Stigg