ข้ามไปยังเนื้อหาหลัก

OnScriptUnloadPlayer

คำเตือน

คอลแบ็กนี้ถูกเพิ่มใน omp v1.3.1.2748 และจะไม่ทำงานในเวอร์ชันก่อนหน้า!

Description​

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

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

Returns​

This callback does not handle returns.

Examples​

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

Notes​

หมายเหตุ

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

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