you have to preload the AnimLib on players connect to make the anims synced for players and NPC's
PHP код:
public OnPlayerConnect(playerid)
{
PreloadAnims(playerid);
}
stock PreloadAnims(playerid)
{
PreloadAnimLib(playerid,"DANCING");
PreloadAnimLib(playerid,"HEIST9");
PreloadAnimLib(playerid,"BOMBER");
PreloadAnimLib(playerid,"RAPPING");
PreloadAnimLib(playerid,"SHOP");
PreloadAnimLib(playerid,"BEACH");
PreloadAnimLib(playerid,"SMOKING");
PreloadAnimLib(playerid,"FOOD");
PreloadAnimLib(playerid,"ON_LOOKERS");
PreloadAnimLib(playerid,"DEALER");
PreloadAnimLib(playerid,"CRACK");
PreloadAnimLib(playerid,"CARRY");
PreloadAnimLib(playerid,"COP_AMBIENT");
PreloadAnimLib(playerid,"PARK");
PreloadAnimLib(playerid,"INT_HOUSE");
PreloadAnimLib(playerid,"FOOD" );
PreloadAnimLib(playerid,"ped" );
PreloadAnimLib(playerid,"MISC" );
PreloadAnimLib(playerid,"POLICE" );
PreloadAnimLib(playerid,"GRAVEYARD" );
PreloadAnimLib(playerid,"WUZI" );
PreloadAnimLib(playerid,"SUNBATHE" );
PreloadAnimLib(playerid,"PLAYIDLES" );
PreloadAnimLib(playerid,"CAMERA" );
PreloadAnimLib(playerid,"RIOT" );
PreloadAnimLib(playerid,"DAM_JUMP" );
PreloadAnimLib(playerid,"JST_BUISNESS" );
PreloadAnimLib(playerid,"KISSING" );
PreloadAnimLib(playerid,"GANGS" );
PreloadAnimLib(playerid,"GHANDS" );
PreloadAnimLib(playerid,"BLOWJOBZ" );
PreloadAnimLib(playerid,"SWEET" );
}
stock PreloadAnimLib(playerid, animlib[]) {
ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0); }