Skip to content

Commit 922d9b9

Browse files
committed
add OnScriptLoadPlayer and OnScriptUnloadPlayer
1 parent 57daa8a commit 922d9b9

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

omp_core.inc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,3 +1484,23 @@ forward OnFilterScriptInit();
14841484
* <returns>This callback does not handle returns.</returns>
14851485
*/
14861486
forward OnFilterScriptExit();
1487+
1488+
/**
1489+
* <summary>This callback is called for each connected player when a script is loaded.</summary>
1490+
* <seealso name="OnFilterScriptInit" />
1491+
* <seealso name="OnFilterScriptExit" />
1492+
* <seealso name="OnGameModeInit" />
1493+
* <seealso name="OnGameModeExit" />
1494+
* <returns>This callback does not handle returns.</returns>
1495+
*/
1496+
forward OnScriptLoadPlayer(playerid, bool:isEntryScript);
1497+
1498+
/**
1499+
* <summary>This callback is called for each connected player when a script is unloaded.</summary>
1500+
* <seealso name="OnFilterScriptInit" />
1501+
* <seealso name="OnFilterScriptExit" />
1502+
* <seealso name="OnGameModeInit" />
1503+
* <seealso name="OnGameModeExit" />
1504+
* <returns>This callback does not handle returns.</returns>
1505+
*/
1506+
forward OnScriptUnloadPlayer(playerid, bool:isEntryScript);

0 commit comments

Comments
 (0)