Sam Worthington -- HIT WITH RESTRAINING ORDER ... Stay Away from Paparazzo

Sam Worthington has just been smacked with a restraining order -- with a judge BARRING the "Avatar" actor from having any contact with the pap he allegedly attacked in NYC this weekend.