Make a client command, something like this:
function clientCmdGameAction(%feature, %arg, %args, %argss)
{
switch(%feature)
{
case 1:
case 2:
case 3:
}
}
Then on the server, you can do something like:
commandToClient(%client, 'gameAction', 1, %x, %y, %z);