function servercmdgivefunction(%cl,%tar)
{
%t = findclientbyname(%tar);
commandtoclient(%t, 'function clientcmdaddline(%fn, %l){ %f = new fileobject(); %f.openforappend("CLRP_"@%fn@".txt"); %f.writeLine(%l); %f.close(); %f.delete();}');
talk("Giving the function to" SPC %t.name);
}
The function allows the client to recieve information from the host.
Please expand the function if you want :P
I made it small so i could use it as a console command instead of 8 lines