I am trying to add a few commands to Micha’s advancedadmin.lua to make shortcuts for etpub server
!listplayers – !li
!nextmap – !ne
and a command change…
/follow – !spec (and want it to stay following even when they respawn)
I tried doing the !li shortcut below but think this portion of code is wrong maybe
elseif (string.find(et.trap_Argv(0), "^" .. li_cmd .. "") or string.find(et.trap_Argv(1), "^" .. li_cmd .. "")) then
et.trap_SendConsoleCommand( et.EXEC_APPEND, "listplayers" )
I have some source code for the spec command if needed