15.06.2011, 14:44
Hello,
I'm trying to apply animations on NPC but I got a little "BUG".
Here is what i've tried to do:
if(IsPlayerNPC(playerid))
{
GetPlayerName(playerid,playername,64);
if(strfind(playername, "[F]",false) != -1)
{
ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1 ,1,1,1);
}
}
It's just not applying the animation, the NPC is doing nothing.
What should I do and what's the problem here?
Thanks a lot.
I'm trying to apply animations on NPC but I got a little "BUG".
Here is what i've tried to do:
if(IsPlayerNPC(playerid))
{
GetPlayerName(playerid,playername,64);
if(strfind(playername, "[F]",false) != -1)
{
ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1 ,1,1,1);
}
}
It's just not applying the animation, the NPC is doing nothing.
What should I do and what's the problem here?
Thanks a lot.