Cmds like map_restart are static and can only be added through engine itself.
But you can edit libcod and add your own cmds there by using Cmd_AddCommand
https://github.com/voron00/libcod/bl...r/bsp.cpp#L167
PHP Code:
void my_function()
{
printf("test\n");
}
Cmd_AddCommand("my_cmd_name", my_function);