File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,6 @@ PLUGIN_EXPORT bool PLUGIN_CALL OnGameModeInit() {
21
21
return PySAMP ::callback ("OnGameModeInit" , NULL );
22
22
}
23
23
24
- PLUGIN_EXPORT bool PLUGIN_CALL OnGameModeExit () {
25
- return PySAMP ::callback ("OnGameModeExit" , NULL );
26
- }
27
24
28
25
PLUGIN_EXPORT bool PLUGIN_CALL OnPlayerConnect (int playerid ) {
29
26
return PySAMP ::callback ("OnPlayerConnect" , Py_BuildValue ("(i)" , playerid ));
Original file line number Diff line number Diff line change @@ -45,11 +45,6 @@ PLUGIN_EXPORT bool PLUGIN_CALL Load(void **ppData)
45
45
46
46
PLUGIN_EXPORT void PLUGIN_CALL Unload ()
47
47
{
48
- if (threadingInitialized)
49
- {
50
- PySAMP::callback (" OnThreadingStopSignal" , NULL );
51
- threading.join ();
52
- }
53
48
sampgdk::Unload ();
54
49
}
55
50
@@ -58,3 +53,13 @@ PLUGIN_EXPORT void PLUGIN_CALL ProcessTick()
58
53
sampgdk::ProcessTick ();
59
54
PySAMP::callback (" OnProcessTick" , NULL );
60
55
}
56
+
57
+
58
+ PLUGIN_EXPORT bool PLUGIN_CALL OnGameModeExit () {
59
+ if (threadingInitialized)
60
+ {
61
+ PySAMP::callback (" OnThreadingStopSignal" , NULL );
62
+ threading.join ();
63
+ }
64
+ return PySAMP::callback (" OnGameModeExit" , NULL );
65
+ }
You can’t perform that action at this time.
0 commit comments