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

OnScriptLoadPlayer

எச்சரிக்கை

கால்பேக் என்பது omp v1.3.1.2748 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!

Description​

This callback is called for each connected player when a script is loaded.

NameDescription
playeridThe ID of the player that script is loaded for.
bool:isEntryScriptDetermining whether it's an entry script (main script) or a side script.

Returns​

This callback does not handle returns.

Examples​

public OnScriptLoadPlayer(playerid, bool:isEntryScript)
{
printf("Script loaded for player ID %d (isEntryScript: %s)", playerid, isEntryScript ? "Yes" : "No");
}

Notes​

குறிப்பு

This callback is called when you are loading a side script (filterscript) at runtime.

The following callbacks might be useful, as they're related to this callback in one way or another.