Help updateTeamNames on (MAM)
#1
Hi

Did someone have Knowledge about Manu Admin Mod (MAM)

i need some help in update team name on MW3:

what code must be in missed section (????).

PHP Code:
public function updateTeamNames() { if (in_array($this->getGame(), array("cod4", "cod5"))) { $teamnames = $this->rconDvarList("scr_a*s"); $this->teamnames["axis"] = $teamnames["scr_axis"]; $this->teamnames["allies"] = $teamnames["scr_allies"]; $this->logging->write(MOD_NOTICE, "Updated teamnames ($teamnames[scr_allies] vs. $teamnames[scr_axis])"); return; } if ($this->getGame() == "cod6") { $teamnames = $this->rconDvarList("*teamname*"); $pattern = "|^mp_([a-z0-9_]+?)(_short)?_name$|i"; preg_match($pattern, $teamnames["g_teamname_axis"], $treffer); $this->teamnames["axis"] = strtolower($treffer[1]); preg_match($pattern, $teamnames["g_teamname_allies"], $treffer); $this->teamnames["allies"] = strtolower($treffer[1]); $this->logging->write(MOD_NOTICE, "Updated teamnames ({$this->teamnames["axis"]} vs. {$this->teamnames["allies"]})"); return; } if ($this->getGame() == "cod8") { ???????????????? } }

And also the team names for cod8 is:
[Thanks for @archit about team names]

PHP Code:
team_opforce_urban_cod8 = Spetsnaz team_delta_multicam_cod8 = Delta team_sas_urban_cod8 = SAS team_opforce_henchmen_cod8 = Inner Circle team_opforce_africa_cod8 = Africa Militia team_pmc_africa_cod8 = PMC team_gign_paris_cod8 = GIGN team_opforce_air_cod8 = Spetsnaz team_opforce_woodland_cod8 = Spetsnaz team_opforce_snow_cod8 = Spetsnaz


Thank you.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2026 Melroy van den Berg.