Thread: BHD Heartbeat
View Single Post
  #2  
Old 12-12-2018, 08:11 AM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,919

It should be possible if you have the map images for sure. Your code would look something like this:
Code:
if(file_exists("/pathto/mapimages/".$Server['MissionFile'].".jpg")) {
	echo "<img src=\"/pathto/mapimages/".$Server['MissionFile'].".jpg\" />";
} else {
	echo "<img src=\"/pathto/mapimages/nophoto.jpg\" />";
}
$Server['MissionFile'] should be something like mapname.bms so just name your jpg files mapname.bms.jpg
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote