25.02.2012, 20:43
Well I've got a problem. Only 1 animation is working...
Code:
Only /walkdrunk is working
Code:
PHP код:
OnPlayerCommand
if(strcmp(cmdtext, "/walkdrunk", true) == 0)
{
ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1,1);
}
if(strcmp(cmdtext, "/gwalk1", true) == 0)
{
ApplyAnimation(playerid,"PED","WALK_gang1 ",4.1,1,1,1,1,1,1);
}
if(strcmp(cmdtext, "/gwalk2", true) == 0)
{
ApplyAnimation(playerid,"PED","WALK_gang2 ",4.1,1,1,1,1,1,1);
}
if(strcmp(cmdtext, "/oldwalk", true) == 0)
{
ApplyAnimation(playerid,"PED","WALK_old ",4.1,1,1,1,1,1,1);
}
if(strcmp(cmdtext, "/walkarmed", true) == 0)
{
ApplyAnimation(playerid,"PED","WALK_armed ",4.1,1,1,1,1,1,1);
}
if(strcmp(cmdtext, "/walkciv", true) == 0)
{
ApplyAnimation(playerid,"PED","WALK_civi ",4.1,1,1,1,1,1,1);
}
return 0;
}