50 Cent has just pled not guilty to domestic violence charges -- after allegedly attacking his baby mama in her home in June -- but a judge still ordered him to stay the hell away from her ... and TURN IN ALL HIS GUNS.
According to the protective order, 50 is also prohibited from contacting model Daphne Joy -- the alleged mother of his second child -- in any way. He must stay at least 100 yards away from her at all times.
And this is interesting -- on his way out of L.A. court Monday morning, a process server hit 50 with a stack of legal papers. The process server told us the docs were related to this case.
We broke the story ... Fiddy was charged with domestic violence after he allegedly kicked Joy and then destroyed a bunch of property in her L.A. condo.
During the rampage, officials say the 38-year-old rapper broke chandeliers, furniture, a TV and a lamp -- and allegedly ransacked the bedroom closet.
Joy told investigators 50 is the father of her child -- though 50 has never publicly acknowledged fathering a child with Joy.
50 is due back in court next month.