15.03.2011, 21:03
dunno use this it is better
pawn Code:
if(strcmp(cmd, "/walk", true) == 0)
{
if (!strlen(cmdtext[6])) return SendClientMessage(playerid,0xEFEFF7AA,"USAGE: /walk [1/2]");
new style = strval(cmdtext[6]);
if (style == 1)
{
ApplyAnimation(playerid,"PED","WALK_gang1",4.1,1,1,1,1,1);
}
else if (style == 2)
{
ApplyAnimation(playerid,"PED","WALK_gang2",4.1,1,1,1,1,1);
}
else SendClientMessage(playerid,0xEFEFF7AA,"USAGE: /walk [1/2]");
return 1;
}