SA-MP Forums Archive
Walk style problem - 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: Walk style problem (/showthread.php?tid=325277)



Walk style problem - N0FeaR - 12.03.2012

can you guys see the problem here what i doing wrong

pawn Код:
if (!(newkeys & KEY_WALK) && (oldkeys & KEY_WALK)) {
    if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT)
    {
        return 1;
    }

    switch(PlayerInfo[playerid][pWalk])
    {
        case 1:
        {
            LoopingAnim(playerid,"PED","WALK_gang1",4.1,1,1,1,1,1);
        }
        case 2:
        {
            LoopingAnim(playerid,"PED","WOMAN_walksexy",4.1,1,1,1,1,1);
        }
        case 3:
        {
            LoopingAnim(playerid,"PED","WALK_armed",4.1,1,1,1,1,1);
        }
        case 4:
        {
            LoopingAnim(playerid,"PED","WALK_civi",4.1,1,1,1,1,1);
        }
        case 5:
        {
            LoopingAnim(playerid,"PED","WALK_csaw",4.1,1,1,1,1,1);
        }
        case 6:
        {
            LoopingAnim(playerid,"PED","WALK_gang2",4.1,1,1,1,1,1);
        }
        case 7:
        {
            LoopingAnim(playerid,"PED","WALK_drunk",4.1,1,1,1,1,1);
        }
        case 8:
        {
            LoopingAnim(playerid,"PED","WALK_fat",4.1,1,1,1,1,1);
        }
        case 9:
        {
            LoopingAnim(playerid,"PED","WALK_fatold",4.1,1,1,1,1,1);
        }
        case 10:
        {
            LoopingAnim(playerid,"PED","WALK_old",4.1,1,1,1,1,1);
        }
        case 11:
        {
            LoopingAnim(playerid,"PED","WALK_player",4.1,1,1,1,1,1);
        }
        case 12:
        {
            LoopingAnim(playerid,"PED","WALK_rocket",4.1,1,1,1,1,1);
        }
        case 13:
        {
            LoopingAnim(playerid,"PED","WALK_shuffle",4.1,1,1,1,1,1);
        }
        case 14:
        {
            LoopingAnim(playerid,"PED","WOMAN_walknorm",4.1,1,1,1,1,1);
        }
        case 15:
        {
            LoopingAnim(playerid,"PED","WOMAN_walkpro",4.1,1,1,1,1,1);
        }
        case 16:
        {
            LoopingAnim(playerid,"PED","WOMAN_walkbusy",4.1,1,1,1,1,1);
        }
        case 17:
        {
            LoopingAnim(playerid,"PED","WOMAN_walknorm",4.1,1,1,1,1,1);
        }
        case 18:
        {
            LoopingAnim(playerid,"PED","Walk_Wuzi",4.1,1,1,1,1,1);
        }
    }



Re: Walk style problem - N0FeaR - 12.03.2012

Fixed but one problem when i have change walk style. and press alt he start walk i want it so when you press he walk and when you not puch he stop walk?


Re: Walk style problem - N0FeaR - 15.05.2012

bump