SA-MP Forums Archive
Hm.... Any Suggestions? - 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: Hm.... Any Suggestions? (/showthread.php?tid=244394)



Hm.... Any Suggestions? - Mr_Scripter - 27.03.2011

There Are Alot Of Animations like "thrw_barl_thrw" How I make it like
pawn Код:
if (strcmp("/test", cmdtext, true) == 0)
{
       SetPlayerAnimation(playerid, thrw_barl_thrw, "Animation"); // No Idea
       return 1;
    }
    return 0;
}
So Then Player Can Apply The ANim Any Idea?


Re: Hm.... Any Suggestions? - Stigg - 27.03.2011

Quote:
Originally Posted by Mr_Scripter
Посмотреть сообщение
There Are Alot Of Animations like "thrw_barl_thrw" How I make it like
pawn Код:
if (strcmp("/test", cmdtext, true) == 0)
{
       SetPlayerAnimation(playerid, thrw_barl_thrw, "Animation"); // No Idea
       return 1;
    }
    return 0;
}
So Then Player Can Apply The ANim Any Idea?
https://sampwiki.blast.hk/wiki/ApplyAnimation
https://sampwiki.blast.hk/wiki/Animations
https://sampwiki.blast.hk/wiki/SetPlayerSpecialAction


Re: Hm.... Any Suggestions? - Mr_Scripter - 27.03.2011

What "PED" Means? and 4.1,1,1,1,1,1); ?
pawn Код:
,"PED","WALK_DRUNK",4.1,1,1,1,1,1);



Re: Hm.... Any Suggestions? - Stigg - 27.03.2011

Quote:
Originally Posted by Mr_Scripter
Посмотреть сообщение
What "PED" Means? and 4.1,1,1,1,1,1); ?
pawn Код:
,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
Read the links i provided.


Re: Hm.... Any Suggestions? - Mr_Scripter - 27.03.2011

You LEave it you can't help me i saw there's nothing about ped or The numbers


Re: Hm.... Any Suggestions? - Stigg - 27.03.2011

Quote:
Originally Posted by Mr_Scripter
Посмотреть сообщение
You LEave it you can't help me i saw there's nothing about ped or The numbers
You dont tell me what to do and you hav'nt read the links because that has everything you asked for, explained in detail. It's not my fault your brain is'nt taking it in.

pawn Код:
(playerid, animlib[], animname[], Float:fS, opt1, opt2, opt3, opt4, opt5)



Re: Hm.... Any Suggestions? - Grim_ - 27.03.2011

Take another look at the link Stigg provided you with: https://sampwiki.blast.hk/wiki/ApplyAnimation

It explains the parameters of the function. So, the example code you provided:
pawn Код:
ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
For a list of the animations, check the other link by Stigg, https://sampwiki.blast.hk/wiki/Animations

The animlib (the library the animation is in) will be in larger text size and bold. You put those for the "animlib" parameter in the ApplyAnimation function. The literal name of the animation will be found under the animation library, and you will put those in the "animname" parameter in the ApplyAnimation function.


Re: Hm.... Any Suggestions? - Mr_Scripter - 27.03.2011

Thanks Now I understand Thaks Grim