I dont think it would be to hard, you put a radio transceiver on each player. you then have three or more receivers on the field so you can triangulate the players exact position. The referee and linesman then wear some kind of buzzer that vibrates when it receives the appropriate signal. The the linesman and ref just have to look out for when the ball is played, if they vibrating when it is played then offside!