Posts: 59 Joined: Tue Mar 25 2008, 11:18PM Registered Member #3872
That works but in the game battlefield 2, players have clan tags. i have no way to keep up to date with the admins' clan tags. sooo. i need it to search the array, but not need to be an exact match. is there anyway to do that?
Posts: 59 Joined: Tue Mar 25 2008, 11:18PM Registered Member #3872
Rich wrote ...
You can do partial case-insensitive matching:
foreach ($server['p'] as $player_key => $player)
{
foreach ($admin as $admin_name)
{
if (stristr($player['name'], $admin_name) !== FALSE)
{
$player['name'] = "<img src='admin_icon.gif' />".$player['name'];
break;
}
}
}
I think im just going to look up player ID's and do it that way. our admins change tags like its going out of style.
i also added un-commented the "pid" => "Player ID" and added a code that when you clicked on the player id it would take you to the players full stats.
Posts: 4 Joined: Mon May 26 2008, 09:32PM Registered Member #4079
[/quote1206935720] i also added un-commented the "pid" => "Player ID" and added a code that when you clicked on the player id it would take you to the players full stats. [/quote1211852308]