[Tutorial] Player Walk Style
#1

Player Walk Style by Mahardika

This Tutorial Will Change The Walk Style not use the UsePlayerPedAnims();

Sorry For The Bad English, if u found bug or somethin' Reply!

Okay Lets Go


First Of All We Need to include The Includes!
pawn Код:
//You cant do anything without this
#include <a_samp> //by Samp Team
// For Command Process (if you want to use it )
#include <zcmd> //by ZeeX
Add Some define For the walking Style
pawn Код:
//walkstyle defines by NewDIvine
#define                     WALK_DEFAULT                        (0)
#define                     WALK_NORMAL                         (1)
#define                     WALK_PED                            (2)
#define                     WALK_GANGSTA                        (3)
#define                     WALK_GANGSTA2                       (4)
#define                     WALK_OLD                            (5)
#define                     WALK_FAT_OLD                        (6)
#define                     WALK_FAT                            (7)
#define                     WALK_LADY                           (8)
#define                     WALK_LADY2                          (9)
#define                     WALK_WHORE                          (10)
#define                     WALK_WHORE2                         (11)
#define                     WALK_DRUNK                          (12)
#define                     WALK_BLIND                          (13)

// Define The Color
#define                                    COLOR_WHITE                                          0xFFFFFFFF //0xRRGGBBAA
And The Next We Need To Crate Player Variables
You Can Put it under all Defines
pawn Код:
new walktime[MAX_PLAYERS]; // for timer
new PlayerWalkStyle[MAX_PLAYERS]; // for the walk style
Strcmp Version, if you want to use this ( IF YOU WANT TO USE ZCMD DONT USE THIS LINE )
put under public OnPlayerCommandText(playerid, cmdtext[])
pawn Код:
new cmd[128], idx;
    cmd = strtok(cmdtext, idx); //This (strtok) is used to search a string and find a variable typed after a " " (space), then return it as a string.
    if (strcmp(cmd, "/walkstyle", true) == 0) // checking if he typed /walkstyle
    {
        new tmp[128];
        tmp = strtok(cmdtext, idx);
        if(strval(tmp) < 1 || strval(tmp) > 11)  //Check if the params is not lower then 1 and bigger then 11
            return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /walkstyle [1-11]");  // Send A Error Message
         
        SetPlayerWalkingStyle(playerid, strval(tmp)); // if Sucsess, Set The Player Walking Style
        return 1;
    }
( IF YOU WANT TO USE ZCMD DONT USE THIS LINE )
so it will be like this
PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    new 
cmd[128], idx;
    
cmd strtok(cmdtextidx); //This (strtok) is used to search a string and find a variable typed after a " " (space), then return it as a string.
    
if (strcmp(cmd"/walkstyle"true) == 0// checking if he typed /walkstyle
    
{
        new 
tmp[128];
        
tmp strtok(cmdtextidx);
        if(
strval(tmp) < || strval(tmp) > 11)  //Check if the params is not lower then 1 and bigger then 11
            
return SendClientMessage(playeridCOLOR_WHITE"USAGE: /walkstyle [1-11]");  // Send A Error Message
         
        
SetPlayerWalkingStyle(playeridstrval(tmp)); // if Sucsess, Set The Player Walking Style 
        
return 1;
    }
    return 
0;

ZCMD version ( no need public OnPlayerCommandText(playerid, cmdtext[]) )
Old : http://pastebin.com/1RjeqCm3
pawn Код:
//UPDATED Thanks To CrazyFrenzy
CMD:walkstyle(playerid, params[])
{
    if(strval(params) < 1 || strval(params) > 11)  //Check if the params is not lower then 1 and bigger then 11
        return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /walkstyle [1-11]");  // Send A Error Message
         
    SetPlayerWalkingStyle(playerid, strval(params)); // if Sucsess, Set The Player Walking Style
    return 1;
}
Put When The Player Spawning ( by default = OnPlayerSpawn )
To Load The Anim Lib
pawn Код:
PreloadAnimLib(playerid, "PED");
put in public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) to check player is walking
pawn Код:
//Check if player Pressing The Key
    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))
        && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) { // if player are on foot, not at vehs
            walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid); // set the timer
    }
So it Will be like this

PHP код:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    
//Check if player Pressing The Key
    
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))
        && 
GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) { // if player are on foot, not at vehs
            
walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid); // set the timer
    
}
    return 
1;

Stocks and Timer

Put it Under all The script
pawn Код:
stock SetPlayerWalkingStyle(playerid, style) // set the player walking style
{
    PlayerWalkStyle[playerid] = style;
}

stock GetPlayerWalkingStyle(playerid) // get the player walking style
{
    return PlayerWalkStyle[playerid];
}

stock PreloadAnimLib(playerid, animlib[])
{
    ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
}
//UPDATED Thanks To CrazyFrenzy
//Old : http://pastebin.com/8W2Hzfsg
forward WalkAnim(playerid); // forwarding the timer function
public WalkAnim(playerid)  // Function of The Timer
{
    new keys, updown, leftright;
    GetPlayerKeys(playerid,keys,updown,leftright); // Get The Player Pressed Key
    if ((keys & KEY_WALK && updown & KEY_UP) || (keys & KEY_WALK && updown & KEY_DOWN) || (keys & KEY_WALK && leftright & KEY_LEFT) || (keys & KEY_WALK && leftright & KEY_RIGHT))  // if player pressed Key to Walk
    {
        KillTimer(walktime[playerid]); // kill the walk timer if player was walked before
        switch(GetPlayerWalkingStyle(playerid))  //  switching The PlayerWalkStyle
        {
            //Aplly The Walk Anim
            case 1: ApplyAnimation(playerid,"PED","WALK_player",4.1,1,1,1,1,1);
            case 2: ApplyAnimation(playerid,"PED","WALK_civi",4.1,1,1,1,1,1);
            case 3: ApplyAnimation(playerid,"PED","WALK_gang1",4.1,1,1,1,1,1);
            case 4: ApplyAnimation(playerid,"PED","WALK_gang2",4.1,1,1,1,1,1);
            case 5: ApplyAnimation(playerid,"PED","WALK_old",4.1,1,1,1,1,1);
            case 6: ApplyAnimation(playerid,"PED","WALK_fatold",4.1,1,1,1,1,1);
            case 7: ApplyAnimation(playerid,"PED","WALK_fat",4.1,1,1,1,1,1);
            case 8: ApplyAnimation(playerid,"PED","WOMAN_walknorm",4.1,1,1,1,1,1);
            case 9: ApplyAnimation(playerid,"PED","WOMAN_walkbusy",4.1,1,1,1,1,1);
            case 10: ApplyAnimation(playerid,"PED","WOMAN_walkpro",4.1,1,1,1,1,1);
            case 11: ApplyAnimation(playerid,"PED","WOMAN_walksexy",4.1,1,1,1,1,1);
            case 12: ApplyAnimation(playerid,"PED","Walk_Wuzi",4.1,1,1,1,1,1);
            default: ClearAnimations(playerid);  // if player not choosed a Walk Style, Not Playing Anim
        }
        walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid); //Set The Timer For Looping The Anims
    }
    return true;
}  
strtok(const string[], &index) //This (strtok) is used to search a string and find a variable typed after a " " (space), then return it as a string.
{
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
        index++;
    }
 
    new offset = index;
    new result[20];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;
}
Reseting The Player Variable
Put On OnPlayerConnect and on player dissconnect
pawn Код:
PlayerWalkStyle[playerid] = 0;
Is That All?
Yep!

if You Make This as FilterScript
it will look like
This! (With ZCMD)

PHP код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
//You cant do anything without this
#include <a_samp> //by Samp Team
// For Command Process (if you want to use it )
#include <zcmd> //by ZeeX
//walkstyle defines by NewDIvine
#define                     WALK_DEFAULT                        (0)
#define                     WALK_NORMAL                         (1)
#define                     WALK_PED                               (2)
#define                     WALK_GANGSTA                           (3)
#define                     WALK_GANGSTA2                          (4)
#define                     WALK_OLD                               (5)
#define                     WALK_FAT_OLD                           (6)
#define                     WALK_FAT                              (7)
#define                     WALK_LADY                             (8)
#define                     WALK_LADY2                            (9)
#define                     WALK_WHORE                            (10)
#define                     WALK_WHORE2                           (11)
#define                     WALK_DRUNK                             (12)
#define                     WALK_BLIND                             (13)
// Define The Color
#define                                    COLOR_WHITE                                          0xFFFFFFFF //0xRRGGBBAA
new walktime[MAX_PLAYERS]; // for timer
new PlayerWalkStyle[MAX_PLAYERS]; // for the walk style
#if defined FILTERSCRIPT // if this is a Filterscript
public OnFilterScriptInit() // func when filterscript was started
{
    print(
"\n--------------------------------------");
    print(
" Blank Filterscript by your name here");
    print(
" With Player Walking Style System By Mahardika!");
    print(
"--------------------------------------\n");
    return 
1;
}
public 
OnFilterScriptExit()
{
    return 
1;
}
#else
main()
{
    print(
"\n----------------------------------");
    print(
" Blank Gamemode by your name here");
    print(
"----------------------------------\n");
}
#endif
public OnGameModeInit()
{
    
// Don't use these lines if it's a filterscript
    
SetGameModeText("Blank Script");
    
AddPlayerClass(01958.37831343.157215.3746269.1425000000);
    return 
1;
}
public 
OnGameModeExit()
{
    return 
1;
}
public 
OnPlayerConnect(playerid)
{
    
PlayerWalkStyle[playerid] = 0;
    return 
1;
}
public 
OnPlayerDisconnect(playeridreason)
{
    
PlayerWalkStyle[playerid] = 0;
    return 
1;
}
public 
OnPlayerCommandText(playeridcmdtext[])
{
    new 
cmd[128], idx;
    
cmd strtok(cmdtextidx); //This (strtok) is used to search a string and find a variable typed after a " " (space), then return it as a string.
    
if (strcmp(cmd"/walkstyle"true) == 0// checking if he typed /walkstyle
    
{
        new 
tmp[128];
        
tmp strtok(cmdtextidx);
        if(
strval(tmp) < || strval(tmp) > 11)  //Check if the params is not lower then 1 and bigger then 11
            
return SendClientMessage(playeridCOLOR_WHITE"USAGE: /walkstyle [1-11]");  // Send A Error Message
         
        
SetPlayerWalkingStyle(playeridstrval(tmp)); // if Sucsess, Set The Player Walking Style 
        
return 1;
    }
    return 
0;
}
public 
OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    
//Check if player Pressing The Key
    
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))
        && 
GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) { // if player are on foot, not at vehs
            
walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid); // set the timer
    
}
    return 
1;
}
CMD:walkstyle(playeridparams[]) 

    if(
strval(params) < || strval(params) > 11)  //Check if the params is not lower then 1 and bigger then 11
        
return SendClientMessage(playeridCOLOR_WHITE"USAGE: /walkstyle [1-11]");  // Send A Error Message
         
    
SetPlayerWalkingStyle(playeridstrval(params)); // if Sucsess, Set The Player Walking Style
    
return 1
}  
stock SetPlayerWalkingStyle(playeridstyle// set the player walking style
{
    
PlayerWalkStyle[playerid] = style;
}
stock GetPlayerWalkingStyle(playerid// get the player walking style
{
    return 
PlayerWalkStyle[playerid];
}
stock PreloadAnimLib(playeridanimlib[])
{
    
ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
}
strtok(const string[], &index)
{
    new 
length strlen(string);
    while ((
index length) && (string[index] <= ' '))
    {
        
index++;
    }
 
    new 
offset index;
    new 
result[20];
    while ((
index length) && (string[index] > ' ') && ((index offset) < (sizeof(result) - 1)))
    {
        
result[index offset] = string[index];
        
index++;
    }
    
result[index offset] = EOS;
    return 
result;
}
//UPDATED Thanks To CrazyFrenzy
//Old : http://pastebin.com/8W2Hzfsg
forward WalkAnim(playerid); // forwarding the timer function
public WalkAnim(playerid)  // Function of The Timer

    new 
keysupdownleftright
    
GetPlayerKeys(playerid,keys,updown,leftright); // Get The Player Pressed Key
    
if ((keys KEY_WALK && updown KEY_UP) || (keys KEY_WALK && updown KEY_DOWN) || (keys KEY_WALK && leftright KEY_LEFT) || (keys KEY_WALK && leftright KEY_RIGHT))  // if player pressed Key to Walk
    

        
KillTimer(walktime[playerid]); // kill the walk timer if player was walked before
        
switch(GetPlayerWalkingStyle(playerid))  //  switching The PlayerWalkStyle
        

            
//Aplly The Walk Anim
            
case 1ApplyAnimation(playerid,"PED","WALK_player",4.1,1,1,1,1,1); 
            case 
2ApplyAnimation(playerid,"PED","WALK_civi",4.1,1,1,1,1,1); 
            case 
3ApplyAnimation(playerid,"PED","WALK_gang1",4.1,1,1,1,1,1); 
            case 
4ApplyAnimation(playerid,"PED","WALK_gang2",4.1,1,1,1,1,1); 
            case 
5ApplyAnimation(playerid,"PED","WALK_old",4.1,1,1,1,1,1); 
            case 
6ApplyAnimation(playerid,"PED","WALK_fatold",4.1,1,1,1,1,1); 
            case 
7ApplyAnimation(playerid,"PED","WALK_fat",4.1,1,1,1,1,1); 
            case 
8ApplyAnimation(playerid,"PED","WOMAN_walknorm",4.1,1,1,1,1,1); 
            case 
9ApplyAnimation(playerid,"PED","WOMAN_walkbusy",4.1,1,1,1,1,1); 
            case 
10ApplyAnimation(playerid,"PED","WOMAN_walkpro",4.1,1,1,1,1,1); 
            case 
11ApplyAnimation(playerid,"PED","WOMAN_walksexy",4.1,1,1,1,1,1); 
            case 
12ApplyAnimation(playerid,"PED","Walk_Wuzi",4.1,1,1,1,1,1); 
            default: 
ClearAnimations(playerid);  // if player not choosed a Walk Style, Not Playing Anim
        

        
walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid); //Set The Timer For Looping The Anims
    

    return 
true

Thanks For Thanks To CrazyFrenzy To the Feedback
Reply
#2

Not Bad
Reply
#3

Quote:
Originally Posted by Krisna
Посмотреть сообщение
Not Bad
Thx yu
Reply
#4

Thank you for the tutorial! You could have just make this to simplify the whole idea.

PHP код:
CMD:walkstyle(playeridparams[])
{
    if(
strval(params) < || strval(params) > 11)
        return 
SendClientMessage(playeridCOLOR_WHITE"USAGE: /walkstyle [1-11]");
        
    
SetPlayerWalkingStyle(playeridstrval(params));
    return 
1;

And making the public even shorter -
PHP код:
forward WalkAnim(playerid);
public 
WalkAnim(playerid)
{
    new 
keysupdownleftright;
    
GetPlayerKeys(playerid,keys,updown,leftright);
    if ((
keys KEY_WALK && updown KEY_UP) || (keys KEY_WALK && updown KEY_DOWN) || (keys KEY_WALK && leftright KEY_LEFT) || (keys KEY_WALK && leftright KEY_RIGHT))
    {
        
KillTimer(walktime[playerid]);
        switch(
GetPlayerWalkingStyle(playerid))
        {
            case 
1ApplyAnimation(playerid,"PED","WALK_player",4.1,1,1,1,1,1);
            case 
2ApplyAnimation(playerid,"PED","WALK_civi",4.1,1,1,1,1,1);
            case 
3ApplyAnimation(playerid,"PED","WALK_gang1",4.1,1,1,1,1,1);
            case 
4ApplyAnimation(playerid,"PED","WALK_gang2",4.1,1,1,1,1,1);
            case 
5ApplyAnimation(playerid,"PED","WALK_old",4.1,1,1,1,1,1);
            case 
6ApplyAnimation(playerid,"PED","WALK_fatold",4.1,1,1,1,1,1);
            case 
7ApplyAnimation(playerid,"PED","WALK_fat",4.1,1,1,1,1,1);
            case 
8ApplyAnimation(playerid,"PED","WOMAN_walknorm",4.1,1,1,1,1,1);
            case 
9ApplyAnimation(playerid,"PED","WOMAN_walkbusy",4.1,1,1,1,1,1);
            case 
10ApplyAnimation(playerid,"PED","WOMAN_walkpro",4.1,1,1,1,1,1);
            case 
11ApplyAnimation(playerid,"PED","WOMAN_walksexy",4.1,1,1,1,1,1);
            case 
12ApplyAnimation(playerid,"PED","Walk_Wuzi",4.1,1,1,1,1,1);
            default: 
ClearAnimations(playerid);
        }
        
walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid);
    }
    return 
true;

Reply
#5

You need to explain it more detail, so anyone can learn something from this tut.
____
Quote:
Originally Posted by CrazyFrenzy
Посмотреть сообщение
Thank you for the tutorial! You could have just make this to simplify the whole idea.

PHP код:
CMD:walkstyle(playeridparams[])
{
    if(
strval(params) < || strval(params) > 11)
        return 
SendClientMessage(playeridCOLOR_WHITE"USAGE: /walkstyle [1-11]");
        
    
SetPlayerWalkingStyle(playeridstrval(params));
    return 
1;

And making the public even shorter -
PHP код:
forward WalkAnim(playerid);
public 
WalkAnim(playerid)
{
    new 
keysupdownleftright;
    
GetPlayerKeys(playerid,keys,updown,leftright);
    if ((
keys KEY_WALK && updown KEY_UP) || (keys KEY_WALK && updown KEY_DOWN) || (keys KEY_WALK && leftright KEY_LEFT) || (keys KEY_WALK && leftright KEY_RIGHT))
    {
        
KillTimer(walktime[playerid]);
        switch(
GetPlayerWalkingStyle(playerid))
        {
            case 
1ApplyAnimation(playerid,"PED","WALK_player",4.1,1,1,1,1,1);
            case 
2ApplyAnimation(playerid,"PED","WALK_civi",4.1,1,1,1,1,1);
            case 
3ApplyAnimation(playerid,"PED","WALK_gang1",4.1,1,1,1,1,1);
            case 
4ApplyAnimation(playerid,"PED","WALK_gang2",4.1,1,1,1,1,1);
            case 
5ApplyAnimation(playerid,"PED","WALK_old",4.1,1,1,1,1,1);
            case 
6ApplyAnimation(playerid,"PED","WALK_fatold",4.1,1,1,1,1,1);
            case 
7ApplyAnimation(playerid,"PED","WALK_fat",4.1,1,1,1,1,1);
            case 
8ApplyAnimation(playerid,"PED","WOMAN_walknorm",4.1,1,1,1,1,1);
            case 
9ApplyAnimation(playerid,"PED","WOMAN_walkbusy",4.1,1,1,1,1,1);
            case 
10ApplyAnimation(playerid,"PED","WOMAN_walkpro",4.1,1,1,1,1,1);
            case 
11ApplyAnimation(playerid,"PED","WOMAN_walksexy",4.1,1,1,1,1,1);
            case 
12ApplyAnimation(playerid,"PED","Walk_Wuzi",4.1,1,1,1,1,1);
            default: 
ClearAnimations(playerid);
        }
        
walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid);
    }
    return 
true;

I agree, your GM will be more optimized.
Reply
#6

Quote:
Originally Posted by CrazyFrenzy
Посмотреть сообщение
Thank you for the tutorial! You could have just make this to simplify the whole idea.

PHP код:
CMD:walkstyle(playeridparams[])
{
    if(
strval(params) < || strval(params) > 11)
        return 
SendClientMessage(playeridCOLOR_WHITE"USAGE: /walkstyle [1-11]");
        
    
SetPlayerWalkingStyle(playeridstrval(params));
    return 
1;

And making the public even shorter -
PHP код:
forward WalkAnim(playerid);
public 
WalkAnim(playerid)
{
    new 
keysupdownleftright;
    
GetPlayerKeys(playerid,keys,updown,leftright);
    if ((
keys KEY_WALK && updown KEY_UP) || (keys KEY_WALK && updown KEY_DOWN) || (keys KEY_WALK && leftright KEY_LEFT) || (keys KEY_WALK && leftright KEY_RIGHT))
    {
        
KillTimer(walktime[playerid]);
        switch(
GetPlayerWalkingStyle(playerid))
        {
            case 
1ApplyAnimation(playerid,"PED","WALK_player",4.1,1,1,1,1,1);
            case 
2ApplyAnimation(playerid,"PED","WALK_civi",4.1,1,1,1,1,1);
            case 
3ApplyAnimation(playerid,"PED","WALK_gang1",4.1,1,1,1,1,1);
            case 
4ApplyAnimation(playerid,"PED","WALK_gang2",4.1,1,1,1,1,1);
            case 
5ApplyAnimation(playerid,"PED","WALK_old",4.1,1,1,1,1,1);
            case 
6ApplyAnimation(playerid,"PED","WALK_fatold",4.1,1,1,1,1,1);
            case 
7ApplyAnimation(playerid,"PED","WALK_fat",4.1,1,1,1,1,1);
            case 
8ApplyAnimation(playerid,"PED","WOMAN_walknorm",4.1,1,1,1,1,1);
            case 
9ApplyAnimation(playerid,"PED","WOMAN_walkbusy",4.1,1,1,1,1,1);
            case 
10ApplyAnimation(playerid,"PED","WOMAN_walkpro",4.1,1,1,1,1,1);
            case 
11ApplyAnimation(playerid,"PED","WOMAN_walksexy",4.1,1,1,1,1,1);
            case 
12ApplyAnimation(playerid,"PED","Walk_Wuzi",4.1,1,1,1,1,1);
            default: 
ClearAnimations(playerid);
        }
        
walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid);
    }
    return 
true;

Thanks for feedback
Reply
#7

Quote:
Originally Posted by Kiyozi_Mu
Посмотреть сообщение
You need to explain it more detail, so anyone can learn something from this tut.
Okay Masvroh
Reply
#8

Nice
I give you +REP1
Reply
#9

Quote:
Originally Posted by VenomMancer
Посмотреть сообщение
Nice
I give you +REP1
thx yuuu
Reply
#10

UPDATED
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)