File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
addons/source-python/packages/source-python/commands
src/core/modules/commands Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1919from _commands import CommandReturn
2020from _commands import ConCommand
2121from _commands import ConCommandBase
22+ from _commands import get_command_index
2223
2324
2425# =============================================================================
2829 'CommandReturn' ,
2930 'ConCommand' ,
3031 'ConCommandBase' ,
32+ 'get_command_index' ,
3133 )
3234
3335
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ extern void ClearAllServerCommands();
4545extern void RegisterSayCommands ();
4646extern void UnregisterSayCommands ();
4747
48+ extern int GetCommandIndex ();
4849
4950// -----------------------------------------------------------------------------
5051// Initializes the Server and Say command modules.
@@ -92,6 +93,11 @@ DECLARE_SP_MODULE(_commands)
9293 export_command_return (_commands);
9394 export_concommandbase (_commands);
9495 export_concommand (_commands);
96+
97+ def (" get_command_index" ,
98+ &GetCommandIndex,
99+ " Returns the index of the player that issued the current command."
100+ );
95101}
96102
97103
You can’t perform that action at this time.
0 commit comments