How big is your radar panel? You might have to adjust certain values. The 96 in 'radar.pos_x+96' and radar.pos_y+96' has to be your panels size/2, to get the dots in the middle of your radar panel. Do you use the radar for a first person shooter? Because the way it's originally coded is for a radar dependent on the camera, not the player.
Cheers