14.01.2019, 17:01
Write it like this and check the logs out
PHP код:
public OnPlayerUpdate(playerid)
{
if(GetPlayerAnimationIndex(playerid) != 0) printf("%d",GetPlayerAnimationIndex(playerid));
if(GetPlayerAnimationIndex(playerid) == 551) // 551 = this animation FOOD","FF_Sit_Eat3"??
{
SendClientMessage(playerid, 0xFF9900AA, "Test");
}
return 1;
}