முதன்மை உள்ளடக்கத்துக்குச் செல்லவும்

IsActorStreamedIn

எச்சரிக்கை

செயல்பாடு என்பது SA-MP 0.3.7 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!

Description​

Checks if an actor is streamed in for a player.

NameDescription
actoridThe ID of the actor.
playeridThe ID of the player.

Returns​

This function returns 1 if the actor is streamed in for the player, or 0 if it is not.

Examples​

new gMyActor;

public OnGameModeInit()
{
gMyActor = CreateActor(0, 0.0, 0.0, 3.0, 0.0);
return 1;
}

public OnPlayerSpawn(playerid)
{
if (IsActorStreamedIn(gMyActor, playerid))
{
// Do something
}
return 1;
}