i tried some more, and for a moment i thought i could get it working (compiling). But nope, it does not want to work:
Code:
CUserCmd cmd; // create command
bf_read *buf = NULL; // the buffer
bf_write *write_buf = NULL; // write buf?
cmd.Reset();
// Write it into buf
WriteUsercmd( write_buf, &cmd, &cmd ); //
// put cmd into buf somehow
gameclients->ProcessUsercmds(clients[iClients].pEdict, buf, 1, 1, -1, false, false);
the WriteUserCmd cannot be compiled with the server plugin. So, in other words, i cannot seem to fill the buffer; unless i write some own magical function to compress it so HL2 understands it. This seems to be a tough one though.