OnScriptLoadPlayer
cảnh báo
Đã thêm hàm gọi lại trong phiên bản omp v1.3.1.2748. Mục này không hoạt động trên các phiên bản cũ hơn!
Description
This callback is called for each connected player when a script is loaded.
| Name | Description |
|---|---|
| playerid | The ID of the player that script is loaded for. |
| bool:isEntryScript | Determining 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
ghi chú
This callback is called when you are loading a side script (filterscript) at runtime.
Related Callbacks
The following callbacks might be useful, as they're related to this callback in one way or another.
- OnScriptUnloadPlayer: This callback is called for each connected player when a script is unloaded.
- OnPlayerConnect: This callback is called when a player connects to the server.
- OnPlayerDisconnect: This callback is called when a player leaves the server.