userdata["acclevel"] < 80) die ("Access denied!"); $edlist = new EditList("weaponId", "hlstats_Weapons", "gun", false); $edlist->columns[] = new EditListColumn("game", "Game", 0, true, "hidden", $gamecode); $edlist->columns[] = new EditListColumn("code", "Weapon Code", 15, true, "text", "", 32); $edlist->columns[] = new EditListColumn("name", "Weapon Name", 25, true, "text", "", 64); $edlist->columns[] = new EditListColumn("modifier", "Points Modifier", 10, true, "text", "1.00"); if ($_POST) { if ($edlist->update()) message("success", "Operation successful."); else message("warning", $edlist->error()); } ?> You can give each weapon a points modifier, a multiplier which determines how many points will be gained or lost for killing with or being killed by that weapon. (Refer to ?mode=help#points">Help for a full description of how points ratings are calculated.) The baseline points modifier for weapons is 1.00. A points modifier of 0.00 will cause kills with that weapon to have no effect on players' points.

query(" SELECT weaponId, code, name, modifier FROM hlstats_Weapons WHERE game='$gamecode' ORDER BY code ASC "); $edlist->draw($result); ?>