
The modifications to have it working :
In game/gpublic.h :
in the gameImport_t enum adding the line :
EXAMPLE_TRAP_FUNCTION = 600
In server/sv_game.c :
in the SV_GameSystemCalls function adding the lines :
case EXAMPLE_TRAP_FUNCTION:
example_trap_function();
return 0;