• Login
  • Register
  • Zoek
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Filebase Entry
  • More Options

ICTscripters

Dé plek voor IT

Dé plek voor IT

Login

Geavanceerde opties
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Dé plek voor IT - ICTscripters
  2. Forum
  3. Scripting & programmeren
  4. Overige
  5. Archief
  6. Request

Forum

  • [PROJECT] Gamekeuring.nl - Hét onafhankelijke keuringsplatform voor maffiagames & RPG's!

    frio 21 september 2026 om 16:25
  • 🚀 WE ZOEKEN TESTERS! 🚀

    Lijno 19 september 2026 om 19:37
  • Kweekrijk - van stekje tot Imperium

    Lijno 14 september 2026 om 23:00
  • Crimora.nl

    Jeffrey.Hoekman 8 september 2026 om 18:49
  • Programmeren geocht die samen met mij maffiaskrill.com

    Dennii 2 september 2026 om 11:15
  • Gezocht mafiasnextkill

    mrsenati 1 september 2026 om 17:38
  • nieuwe game

    tigermaffia 27 augustus 2026 om 18:02
  • Ik heb probeem in mijn dashboard.php

    Syntax 20 augustus 2026 om 09:59

Marktplaats

  • 402 Nieuwe Domeinnamen Augustus 2026

    shiga 19 september 2026 om 13:53
  • Ik verkoop maffiaskrill.com voor 30 eur0

    Jeffrey.Hoekman 9 september 2026 om 11:55
  • Straatbaas.eu – complete Nederlandstalige en Engelstalige online maffia-RPG

    Syntax 25 augustus 2026 om 14:41

Toon 10x10 ipv 3x3

  • gamecontrol
  • 13 december 2009 om 20:52
  • Closed
  • gamecontrol
    Professional
    Berichten
    699
    • 13 december 2009 om 20:52
    • #1

    In criminolz source worden nu 3x3 coordinaten getoond om te kunnen bouwen. Maar ik wil deze map vergroten zodat er 10x10 locaties direct zichtbaar zijn, hoe kan ik dit veranderen? (ik denk dat dit script nodig is)

    PHP
    <?php
                   $empty = 'empty' . @$_SESSION['empty'];
      if(empty($_GET['x'])) {
        $_GET['x'] = 0;
      }
    
    
      if(empty($_GET['y'])) {
        $_GET['y'] = 0;
      }
    echo'
    <div id="content_top"> </div>
    <script type="text/javascript">
    var x = 0;
    var y = 0;
    function gotox(value) {
      destination = (250 - value) * -1;
      if(destination <= 249) {
        if(destination >= -249) {
          if(destination != x) {
            x = destination;
            sendReq(\'ajax/townmap.php?x=\' + x + \'&y=\' + y + \'&ajaxsession=' . rand(10000, 99999) . '\', \'map\');
          }
        } else if(x != -249) {
           x = -249;
          sendReq(\'ajax/townmap.php?x=\' + x + \'&y=\' + y + \'&ajaxsession=' . rand(10000, 99999) . '\', \'map\');
        }
      } else if(x != 249) {
         x = 249;
        sendReq(\'ajax/townmap.php?x=\' + x + \'&y=\' + y + \'&ajaxsession=' . rand(10000, 99999) . '\', \'map\');
      }
    }
    
    
    function gotoy(value) {
      destination = (250 - value) * -1;
      if(destination <= 249) {
        if(destination >= -249) {
          if(destination != y) {
            y = destination;
            sendReq(\'ajax/townmap.php?x=\' + x + \'&y=\' + y + \'&ajaxsession=' . rand(10000, 99999) . '\', \'map\');
          }
        } else if(y != -249) {
          y = -249;
          sendReq(\'ajax/townmap.php?x=\' + x + \'&y=\' + y + \'&ajaxsession=' . rand(10000, 99999) . '\', \'map\');
        }
      } else if(y != 249) {
         y = 249;
        sendReq(\'ajax/townmap.php?x=\' + x + \'&y=\' + y + \'&ajaxsession=' . rand(10000, 99999) . '\', \'map\');
      }
    }
    </script>
    		<div id="content">
    
    
    <h1 class="titel">Plattegrond van ' . $steden[$own['stad']] . '</h1>
      Hier staan jouw woningen en woningen geplaatst door anderen. Klik op een woning om naar het profiel te gaan, waar je de woningen kunt aanvallen of repareren. Klik op een stukje grond om er een woning te plaatsen.<br /><br />
    
    
      <center>Ga naar: <input type="text" onkeyup="gotox(value)" size="3" value="250" class="input"> x <input type="text" onkeyup="gotoy(value)" size="3" value="250" class="input"></center>
    
    
      <div style="float: left"><a href="#" onclick="if(y > -249) {sendReq(\'ajax/townmap.php?x=\' + x + \'&y=\' + (y - 1) + \'&ajaxsession=' . rand(10000, 99999) . '\', \'map\');y--;} return false;"><img src="images/map/arrow_up.gif" border="0"></a><br /><br /><a href="#" onclick="if(y < 249) {sendReq(\'ajax/townmap.php?x=\' + x + \'&y=\' + (y + 1) + \'&ajaxsession=' . rand(10000, 99999) . '\', \'map\');y++;} return false;"><img src="images/map/arrow_down.gif" border="0"></a></div>
    <div id="map">
      <table cellpadding="0" cellspacing="0" align="center">';
      $xcenter = 250;
      $ycenter = 250;
      $i = $ycenter - 1;
      while($i <= $ycenter + 1) {
        echo'
             <tr>
               <td width="30">' . $i . '</td>';
               $j = $xcenter - 1;
               while($j <= $xcenter + 1) {
                 echo'
                 <td style="background: url(images/map/' . $empty . '.jpg) no-repeat; width: 100px; height: 100px;">';
                 $house = mysql_fetch_query("SELECT soort, eigenaar, id FROM woningen WHERE geplaatst = 'Ja' AND stad = '" . $own['stad'] . "' AND coordinaten_y = '" . $i . "' AND coordinaten_x = '" . $j . "'");
                 if(!empty($house)) {
                   $woning = mysql_fetch_query("SELECT naam FROM woningenmarkt WHERE id = '" . $house['soort'] . "'");
                   if($house['eigenaar'] == $own['login']) {
                     $plaatje = 'house_' . ($house['soort'] - 1) . 'stars_own.gif';
                     $titel   = 'Jouw ' . strtolower($woning['naam']);
                   } else {
                     $plaatje = 'house_' . ($house['soort'] - 1) . 'stars.gif';
                     $titel   = $woning['naam'] . ' van ' . $house['eigenaar'];
                   }
                   echo'<a href="index.php?p=woning&id=' . $house['id'] . '"><img src="images/map/' . $plaatje . '" title="' . $titel . '" border="0"></a>';
                 } else {
                   echo'<a href="index.php?p=build&x=' . $j . '&y=' . $i . '"><img src="images/map/' . $empty . '.jpg" border="0"></a>';
                 }
                 echo'</td>';
                 $j++;
               }
               echo'
             </tr>';
             $i++;
      }
      echo'
      
      <tr>
      <td>&nbsp;</td>';
      $j = $xcenter - 1;
      while($j <= $xcenter + 1) {
        echo'<td align="center">' . $j . '</td>';
        $j++;
      }
      echo'
      </tr>
      </table>
      </div>
      <table align="center">
      <tr>
      <td align="center"><a href="#" onclick="if(x > -249) {sendReq(\'ajax/townmap.php?x=\' + (x - 1) + \'&y=\' + y + \'&ajaxsession=' . rand(10000, 99999) . '\', \'map\');x--;} return false;"><img src="images/map/arrow_left.gif" border="0"></a></td>
      <td align="center"><a href="#" onclick="if(x < 249) {sendReq(\'ajax/townmap.php?x=\' + (x + 1) + \'&y=\' + y + \'&ajaxsession=' . rand(10000, 99999) . '\', \'map\');x++;} return false;"><img src="images/map/arrow_right.gif" border="0"></a></td>
      </tr>
      </table><br />
      <a href="index.php?p=listbuildings&owner=' . $own['id'] . '">Mijn woningen weergeven</a>';
      echo'
    		</div>
    		<div id="content_bottom"> </div>';
    ?>
    Toon Meer

    Promoot je site gratis op http://www.gamevote.nl

  • Guest, wil je besparen op je domeinnamen? (ad)

Participate now!

Heb je nog geen account? Registreer je nu en word deel van onze community!

Maak een account aan Login

ICT Nieuws

  • Quanscient ontvangt €10M om AI- en kwantum-native hardware engineering te bevorderen - Tech.eu

    ICTscripters 27 mei 2026 om 12:03
  • Datalek bij leverancier Canvas - Universiteit van Amsterdam

    ICTscripters 10 mei 2026 om 12:03
  • Data privacy in 2026: Hoe de naleving van GDPR verandert

    ICTscripters 8 mei 2026 om 12:16

Blogs

  • Functioneel ontwerp

    Dees 28 december 2014 om 12:38
  • Access Control List implementatie in PHP/MySQL - deel 1/2

    FangorN 28 december 2018 om 12:35
  • Access Control List implementatie in PHP/MySQL - deel 2/2

    FangorN 29 december 2018 om 12:37
  1. Marktplaats
  2. Design
  3. Voorwaarden
  4. Ons team
  5. Leden
  6. Geschiedenis
  7. Regels
  8. Links
  9. Privacy Policy
ICTscripters ©2005 - 2026 , goedkope hosting door DiMoWeb.com, BE0558.915.582
Sponsors: Beste kattenhotel provincie Antwerpen | Beste Zetes eid kaartlezer webshop
Style: Nexus by cls-design
Stylename
Nexus
Manufacturer
cls-design
Licence
Commercial styles
Help
Supportforum
Visit cls-design