running/walking styles?
#1

some servers have all there skins diff.. if ur a girl you run like a girl if your a hobo you run like a hobo. how really?

seif walking styles only works for walking with alt only
Reply
#2

Don't use UsePlayerPedAnims.
Reply
#3

then everyone runs weird..
Reply
#4

Under OnPlayerKeyStateChange, check the player while he is on-foot using GetPlayerState and if he's moving, a.k.a if the KEY_WALK button is being pressed down or was recently pressed, perform a looping animation of the user walking depending on their skin.
Reply
#5

alright, so it looks like i'll look at sief's script

hes got the walking done but, he uses this for walking

pawn Code:
ApplyAnimation(playerid,"PED","WALK_player",4.1,1,1,1,1,1);
4.1 speed what speed you think i should use for running?

does this look right?
pawn Code:
if (newkeys & KEY_WALK && newkeys & KEY_UP || newkeys & KEY_WALK && newkeys & KEY_DOWN || newkeys & KEY_WALK && newkeys & KEY_LEFT || newkeys & KEY_WALK && newkeys & KEY_RIGHT
    || oldkeys & KEY_WALK && newkeys & KEY_UP || oldkeys & KEY_WALK && newkeys & KEY_DOWN || oldkeys & KEY_WALK && newkeys & KEY_LEFT || oldkeys & KEY_WALK && newkeys & KEY_RIGHT
    || newkeys & KEY_WALK && oldkeys & KEY_UP || newkeys & KEY_WALK && oldkeys & KEY_DOWN || newkeys & KEY_WALK && oldkeys & KEY_LEFT || newkeys & KEY_WALK && oldkeys & KEY_RIGHT
    || newkeys & KEY_SPRINT && newkeys & KEY_UP || newkeys & KEY_SPRINT && newkeys & KEY_DOWN || newkeys & KEY_SPRINT && newkeys & KEY_LEFT || newkeys & KEY_SPRINT && newkeys & KEY_RIGHT
    || oldkeys & KEY_SPRINT && newkeys & KEY_UP || oldkeys & KEY_SPRINT && newkeys & KEY_DOWN || oldkeys & KEY_SPRINT && newkeys & KEY_LEFT || oldkeys & KEY_SPRINT && newkeys & KEY_RIGHT
    || newkeys & KEY_SPRINT && oldkeys & KEY_UP || newkeys & KEY_SPRINT && oldkeys & KEY_DOWN || newkeys & KEY_SPRINT && oldkeys & KEY_LEFT || newkeys & KEY_SPRINT && oldkeys & KEY_RIGHT
    || newkeys & KEY_UP && newkeys & KEY_SPRINT == KEY_SPRINT || newkeys & KEY_DOWN && newkeys & KEY_SPRINT == KEY_SPRINT || newkeys & KEY_LEFT && newkeys & KEY_SPRINT == KEY_SPRINT || newkeys & KEY_RIGHT && newkeys & KEY_SPRINT == KEY_SPRINT)
    || oldkeys & KEY_UP && newkeys & KEY_SPRINT == KEY_SPRINT || oldkeys & KEY_DOWN && newkeys & KEY_SPRINT == KEY_SPRINT || oldkeys & KEY_LEFT && newkeys & KEY_SPRINT == KEY_SPRINT || oldkeys & KEY_RIGHT && newkeys & KEY_SPRINT == KEY_SPRINT)
    || newkeys & KEY_UP && oldkeys & KEY_SPRINT == KEY_SPRINT || newkeys & KEY_DOWN && oldkeys & KEY_SPRINT == KEY_SPRINT || newkeys & KEY_LEFT && oldkeys & KEY_SPRINT == KEY_SPRINT || newkeys & KEY_RIGHT && oldkeys & KEY_SPRINT == KEY_SPRINT)
    && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
    {
    walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid);
    }
first 3, for walking
second 3, for holding sprint key
last one, for tapping sprint
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)