Hi all…here goes.
I’m a complete novice to PHP so I hope i’ve posted this question in the correct catagory.
I run a website along with a few mates. We play online gaming. Anyway on one of our pages we have a PHP script called BF2LIVE.http://www.nsiclan.co.uk/bf2live/demo.php. If you look at the site you’ll see I’ve inserted a line at the bottom to show the word ‘cheat’ which is highlighted in green. I have a list of reported players who cheat on the game we play. I can put a single player in the script so the name changes to green when he’s on our server but i dont know how to get a complete list in the script.
Here’s what i mean:
//Cheats name will show light green.
$cheat = ‘oBy! GretzMan-’;
$cheatcolor = ‘#00FF00’;
if($row[‘name’] == $cheat) $namecolor=$cheatcolor;
These are the lines I’ve added and the player ‘oBy! GretzMan-’ lights up green when playing on our server. Is there a way to add multiple players.
Thanks in advance.