File tree 2 files changed +8
-0
lines changed
addons/source-python/packages/source-python/commands
src/core/modules/commands
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 19
19
from _commands import CommandReturn
20
20
from _commands import ConCommand
21
21
from _commands import ConCommandBase
22
+ from _commands import get_command_index
22
23
23
24
24
25
# =============================================================================
28
29
'CommandReturn' ,
29
30
'ConCommand' ,
30
31
'ConCommandBase' ,
32
+ 'get_command_index' ,
31
33
)
32
34
33
35
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ extern void ClearAllServerCommands();
45
45
extern void RegisterSayCommands ();
46
46
extern void UnregisterSayCommands ();
47
47
48
+ extern int GetCommandIndex ();
48
49
49
50
// -----------------------------------------------------------------------------
50
51
// Initializes the Server and Say command modules.
@@ -92,6 +93,11 @@ DECLARE_SP_MODULE(_commands)
92
93
export_command_return (_commands);
93
94
export_concommandbase (_commands);
94
95
export_concommand (_commands);
96
+
97
+ def (" get_command_index" ,
98
+ &GetCommandIndex,
99
+ " Returns the index of the player that issued the current command."
100
+ );
95
101
}
96
102
97
103
You can’t perform that action at this time.
0 commit comments