Jump to content
MakeWebGames

Ghetto

Members
  • Posts

    413
  • Joined

  • Last visited

    Never

Everything posted by Ghetto

  1. Ghetto

    WWI

    Re: WWI Germany-21 Great Britan-79
  2. Re: Counting (nr game) 1755
  3. Re: Guess the next poster Yep Younggold next..
  4. Ghetto

    WWI

    Re: WWI Germany-23 Great Britan-77
  5. Re: 3 Word Game Everyone start to
  6. Re: [FREE] Server Time [v1.1 v2 v1] Here you go then :lol: Create file time.html or add into your header: <script type="text/javascript"> var currenttime = ' <?php echo date ('F j, Y H:i:s', time())?>' var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December") var serverdate=new Date(currenttime) function padlength(what){ var output=(what.toString().length==1)? "0"+what : what return output } function displaytime(){ serverdate.setSeconds(serverdate.getSeconds()+1) var datestring=montharray[serverdate.getMonth()]+" "+padlength(serverdate.getDate())+", "+serverdate.getFullYear() var timestring=padlength(serverdate.getHours())+":"+padlength(serverdate.getMinutes())+":"+padlength(serverdate.getSeconds()) document.getElementById("servertime").innerHTML=datestring+" "+timestring } window.onload=function(){ setInterval("displaytime()", 1000) } </script> <span id='servertime'></span>   If you add it to header remove the <span id='servertime'></span> from the bottom of that code. Then in mainmenu.php add: include_once("time.html");   Or if its on your header add: ?> <span id='servertime'></span> <?php   *NOTE: This wasent made by myself ive just edited it to work with mccodes. I've yet to get it working from the header but im not useing it so im not going to try :lol:.
  7. Re: Guess the next poster Yep Hehe, Yeah i know :lol:. But i havent got a clue whos next tho :lol:. Im just going to guess as usual :-P. Redeye maybe?
  8. Re: Counting (nr game) 1753
  9. Re: throw an object at the top poster *Ghetto stays back, Throwing little stones at younggold and vorlen.
  10. Ghetto

    WWI

    Re: WWI Germany-23 Great Britan-77
  11. Ghetto

    WWI

    Re: WWI Germany-25 Great Britan-75 Haha, Im too tired to count :-P I just took one off of each :lol:
  12. Ghetto

    WWI

    Re: WWI Germany-23 Great Britan-75 Haha, Well at the moment it's like 3 verses 1 :-P
  13. Re: [mccode] Steps market add a ,$db in all the: global $ir,$c,$userid; so it would be like: global $ir,$c,$userid,$db;
  14. Re: 3 Word Game He starts to
  15. Re: Guess the next poster Yep im so loved :lol: Hmm.. Younggold next
  16. Re: Counting (nr game) 1751
  17. This is not the acctual newspaper.php its onlt an accesory to it 8-) Create file nagent.php and add this in it: <?php //Newspaper mod //Made by SubGhetto //Do not remove this message - Even tho most people do =P include "globals.php"; if(!isset($_GET['buy'])) { echo "<h3>News Agents</h3>"; if($ir['nsubscribed']==0) { echo "[url='nagent.php?buy=subscribe']You can signup to the nespaper round to revive a newspaper every morning here[/url] "; } echo "[url='nagent.php=buy=unsubscribe']Unsubcribe from the newspaper round[/url]"; echo "<table cellspacing='1' class='zebra' border='0' width='70%'><tr><th width='70%'>Item</th><th width='20%'>Price</th><th width='10%'>Buy</th></tr> <tr><td>Newspaper</td><td>\$0.50</td><td>[url='nagent.php?buy=newspaper']Buy[/url]</td>"; //You can add more news agent items here if you want. //E.g. echo "<td>Penny sweets</td><td>\$0.01</td><td><a href='npaper.php?buy=pennysweets'></td>"; echo "</tr></table>"; } else { if($_GET['buy']=='newspaper') { if($ir['nsubscribed']==1 || $ir['newspaper']==1) { echo "You eather already have a newspaper today or you have subscribed to the newspaper round."; $h->endpage(); exit; } $db->query("UPDATE users SET money=money-50, newspaper=1 WHERE userid=$userid"); echo "You have brought a newspaper. You can now read the newspaper today."; } elseif($_GET['buy']=='subscribe') { if($ir['nsubscribed']==1) { echo "You eather already have a newspaper today or you have subscribed to the newspaper round."; $h->endpage(); exit; } $db->query("UPDATE users SET money=money-50, newspaper=1, nsubscribed=1 WHERE userid=$userid"); echo "You signed up for the daily newspaper round. You will autmaticly recive a newspaper ever morning."; } elseif($_GET['buy']=='unsubscribe') { if($ir['nsubscribed']==0 || $ir['newspaper']==0) { echo "You are not subscribed to the newspaper round."; $h->endpage(); exit; } $db->query("UPDATE users SET nsubscribed=0 WHERE userid=$userid"); echo "You have unsubscribed to the paper round."; } //Here if youve added more items/stuff you need to add then here like the examples above. elseif($_GET['buy']!='newspaper' || $_GET['buy']!='subscribe' || $_GET['buy']!='unsubscribe') { //Also add the get action into the above query E.G. || $_GET['buy']!='pennysweets' if you add more things. echo "You shouldent be doing that!"; $h->endpage(); exit; } } $h->endpage(); ?> Add to top of newspaper.php under include "globals.php"; if($ir['newspaper']==0) { echo "You havent brought a newspaper today go to the <a href=nagent.php>newsagents</a> and buy one."; $h->endpage(); exit; } Add to cron_day.php if($r['money'] < 50 && $r['nsubscribed'] == 1) { $userid=$r['userid']; $db->query("INSERT INTO events VALUES('',$userid,unix_timestamp(),0,You did not have enouth money to pay for the newspaper this morning. Go to the <a href=nagent.php>news agents</a> to buy one.')"); $db->query("UPDATE users SET new_events=new_events+1 WHERE userid=$userid"); $db->query("UPDATE users SET newspaper=0 WHERE userid=$userid } else { $db->query("UPDATE users SET newspaper=0 WHERE nsubscribed=0"); $db->query("UPDATE users SET money=money-50 WHERE nsubscribed=1"); } SQL: ALTER TABLE `users` ADD `newspaper` TINYINT( 1 ) NOT NULL ; ALTER TABLE `users` ADD `nsubscribed` TINYINT( 1 ) NOT NULL ; Its simple and easy but not for n00bs :wink:. This just makes it a bit more realistic i think.
  18. Re: Counting (nr game) 1749
  19. Re: 3 Word Game It got so
  20. Re: Guess the next poster Nope me again :-D Younggold next.
  21. Ghetto

    WWI

    Re: WWI Germany-23 Great Britan-77
  22. Re: Guess the next poster Yep :-) Hmm.. Redeye next maybe?
  23. Re: Counting (nr game) 1746
  24. Ghetto

    WWI

    Re: WWI Germany-25 Great Britan-75
  25. Ghetto

    WWI

    Re: WWI Germany-27 Great Britan-73 Smart thinking :-o
×
×
  • Create New...