login}'"); /* ------------------------- */ ?> [( Criminals )] "> clanlevel >= 8 || $data->clanlevel == 6)) { print " \n"; $dbres = mysql_query("SELECT * FROM `[clans]` WHERE `name`='{$data->clan}'"); $clan = mysql_fetch_object($dbres); if(isset($_GET['x'])) { $dbres = mysql_query("SELECT * FROM `[weapons]` WHERE `name`='{$_GET['x']}' AND (`area`=8 OR `area`=8+{$clan->type})"); if($item = mysql_fetch_object($dbres)) { if($clan->type == 1) $item->costs = round($item->costs*0.95); if($item->costs <= $clan->cash) { if(eval($item->eval) > 0) { $type = Array("Huis" => "homes", "Muur" => "def_lvl1", "Coffeeshop" => "money_lvl1", "Chemie Lab" => "money_lvl1", "Aandeel" => "money_lvl1"); $type = $type[$item->name]; $clan->cash -= $item->costs; $clan->{"$type"}++; mysql_query("UPDATE `[clans]` SET `cash`={$clan->cash},`$type`=". ($clan->{"$type"}) ." WHERE `name`='{$clan->name}'"); print " \n"; } else print " \n"; } else print " \n"; } } $dbres = mysql_query("SELECT * FROM `[weapons]` WHERE `area`=8 OR `area`=8+{$clan->type}"); while($weapon = mysql_fetch_object($dbres)) { if($clan->type == 1) $weapon->costs = round($weapon->costs*0.95); else if($clan->type == 2) $weapon->defence = round($weapon->defence*1.05); eval($weapon->eval); eval("\$weapon->max = \"{$weapon->max}\";"); print <<
Clan - Bouwterrein
Je hebt een nieuw {$item->name} gekocht
{$item->error}
Je hebt niet genoeg geld om een {$item->name} te bouwen
ENDHTML; eval("\$weapon->max = \"{$weapon->max}\";"); print "
 {$weapon->name}
\n"; print " \n"; print " ENDHTML; if($clan->cash >= preg_replace("/,/","",$weapon->costs) && eval($weapon->eval) > 0) print " \n"; else print " \n"; print << ENDHTML; } } else if($data->clanlevel >= 8 || $data->clanlevel == 6) { print << ENDHTML; } /* ------------------------- */ ?>
{$weapon->extra}
\n"; if($weapon->attack != NULL) print " \n"; if($weapon->defence != NULL) print " \n"; if($weapon->costs != NULL) print " \n"; if($weapon->max != NULL) print " \n"; print <<
Attack: {$weapon->attack}
Defence: {$weapon->defence}
Kost: \${$weapon->costs}
Benodigdheden: {$weapon->max}
name}\">Koop
name}\" style=\"color: #000000;\">Koop
Clan - Bouwterrein
- Bouw