16.01.2016, 18:23
Check the distance between the player and the actor OnPlayerUpdate, for example:
this should work.
pawn Код:
public OnPlayerUpdate(playerid)
{
new Float:X,Float:Y,Float:Z;
for(new i = 0; i < MAX_ACTORS; i ++)
{
GetActorPos(i,X,Y,Z);
if(IsPlayerInRangeOfPoint(playerid,5.0,X,Y,Z))
{
ResyncActor(i);
}
}
return 1;
}