Seeking PHP code for gamers to find each other

Hi, I’m looking for a php/mysql script I can use on my site to allow gamers to find other gamers in their area. Basically it needs a form for people to add themselves. Also, they should be able to search their area. Maybe by state, country, or number of miles from a zipcode.