Jump to content
MakeWebGames

XCU53S

Members
  • Posts

    353
  • Joined

  • Last visited

    Never

Everything posted by XCU53S

  1. Re: cron_day.php   <?php include "config.php"; global $_CONFIG; if($_GET['code'] != $_CONFIG['code']) { die("Cron Not Ran"); } define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $db->query("UPDATE fedjail set fed_days=fed_days-1"); $q=$db->query("SELECT * FROM fedjail WHERE fed_days=0"); $ids=array(); while($r=$db->fetch_row($q)) { $ids[]=$r['fed_userid']; } if(count($ids) > 0) { $db->query("UPDATE users SET fedjail=0 WHERE userid IN(".implode(",", $ids).")"); } $db->query("DELETE FROM fedjail WHERE fed_days=0"); $db->query("UPDATE users SET daysingang=daysingang+1 WHERE gang > 0"); $db->query("UPDATE users SET daysold=daysold+1, boxes_opened=0"); $db->query("UPDATE users SET gameturns=50"); $stockreset = rand(100,500); //100 is the minimum it will reset to and 500 is maximum, you can change $db->query("update shopitems set sitemQTY = ".$stockreset." "); $db->query("UPDATE users SET fishing_aloud=20"); $db->query("UPDATE users SET mailban=mailban-1 WHERE mailban > 0"); $db->query("UPDATE users SET donatordays=donatordays-1 WHERE donatordays > 0"); $db->query("UPDATE users SET cdays=cdays-1 WHERE course > 0"); $db->query('UPDATE users SET hoesbuy = 0 WHERE hoesbuy > 0 ); $db->query("UPDATE users SET bankmoney=bankmoney+(bankmoney/50) where bankmoney>0"); $db->query("UPDATE users SET bankmoney=bankmoney+(bankmoney/50) where bankmoney>0 and donatordays>0"); $db->query("UPDATE users SET cybermoney=cybermoney+(cybermoney/100*7) where cybermoney>0"); $q=$db->query("SELECT * FROM users WHERE cdays=0 AND course > 0"); while($r=$db->fetch_row($q)) { $cd=$db->query("SELECT * FROM courses WHERE crID={$r['course']}"); $coud=$db->fetch_row($cd); $userid=$r['userid']; $db->query("INSERT INTO coursesdone VALUES({$r['userid']},{$r['course']})"); $upd=""; $ev=""; if($coud['crSTR'] > 0) { $upd.=",us.strength=us.strength+{$coud['crSTR']}"; $ev.=", {$coud['crSTR']} strength"; } if($coud['crGUARD'] > 0) { $upd.=",us.guard=us.guard+{$coud['crGUARD']}"; $ev.=", {$coud['crGUARD']} guard"; } if($coud['crLABOUR'] > 0) { $upd.=",us.labour=us.labour+{$coud['crLABOUR']}"; $ev.=", {$coud['crLABOUR']} labour"; } if($coud['crAGIL'] > 0) { $upd.=",us.agility=us.agility+{$coud['crAGIL']}"; $ev.=", {$coud['crAGIL']} agility"; } if($coud['crIQ'] > 0) { $upd.=",us.IQ=us.IQ+{$coud['crIQ']}"; $ev.=", {$coud['crIQ']} IQ"; } $ev=substr($ev,1); if ($upd) { $db->query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid SET us.userid=us.userid $upd WHERE u.userid=$userid"); } $db->query("INSERT INTO events VALUES('',$userid,unix_timestamp(),0,'Congratulations, you completed the {$coud['crNAME']} and gained $ev!')"); } $db->query("UPDATE users SET course=0 WHERE cdays=0"); $db->query("TRUNCATE TABLE votes;"); $rem=$db->query("SELECT * FROM users WHERE fedjail=0 AND user_level>0 AND reminder=0"); while($rem1=$db->fetch_row($rem)) { $lon=($rem1['laston'] > 0) ?date('F j, Y g:i:s a',$rem1['laston']) : "Never"; if($rem1['laston'] > 0) { $la=time()-$rem1['laston']; $unit="seconds"; if($la >= 60) { $la=(int) ($la/60); $unit="minutes"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; if ($la>30) { $db->query("UPDATE users SET reminder=1 WHERE userid={$rem1['userid']}"); // send email. $site_name = "The Destroyers"; $site_mail = "[email protected]"; $bericht = "Inactive Reminder.\n\n"; $bericht .= "Username: ".$rem1['username']."\n"; $bericht .= "Password: ".$rem1['password']."\n"; $bericht .= "Email: ".$rem1['email']."\n"; $bericht .= "\n"; $bericht .= "We have noticed that you have not logged in over 1 month. A lot of changes have happened in our site since then. Why don't you come and try it out. Your account details are still active. So come on and lets all have fun together."; mail($rem1['email'],"Welcome to ".$site_name,$bericht,"From: ".$site_name." <".$site_mail.">"); } } } } } ?>   he means put it in them lol i seriously think you should start at html before making a game.
  2. Re: Legends of the Gods (Not My Game) I dont see nothing special needs alot more done and the layout lets not go there.
  3. Re: [Mccodes V2]Emergency Surgery Look at the error displayed: Parse error: syntax error, unexpected '&' in /home/cityoftu/public_html/surgery.php on line 5 Think what the error could be saying to you...then look at line 5: die("You are not in the hospital!"); You see anything wrong?...
  4. Re: Fast & Furious Worth the watch for defo, but alot of you may be disapointed my expectations where high for this one. Anyone watched The Children?..
  5. Re: New Banner yh maybe remove the soldier the tank looks alright, just move the text when you remove the soldier and take the tanks outline away.
  6. Re: New Banner For 5 mins work i have to say its good, only problems are as dave said the soldier is treched out too much and the text could be poistioned better would have been better centered in this case. the outlines are not working with the foreground which dramatically affects the appeal. Other than that good work :-D
  7. Re: Login & Register [$15] Sites not mines mate, they may be modifying the code i am not aaware of this and it doesnt concern me just be assured when pusrchased the its all in working order.
  8. Re: Problem with making crimes Im no genius but im guessing you need to look in your staff_crimes.php there must be a problem with the query that inserts the crime into the database. If you cant fix i suggest just adding crimes via phpmyadmin much quicker and ewasier hope i helped :-D
  9. Re: Login & Register [$15] Oh i see thats fine then. So anyone want this?..
  10. Re: Login & Register [$15] Thanks for the comment POG1 and this is my first login and reg i made al by myself. @AlabamaHit just leave your comments out if its not good please.
  11. Re: Login & Register [$15] Thanks next person to purchase get a free add banner :-D
  12. Re: Login & Register [$15] So anyone interested?..It comes with a custom banner and like I said i can change it all to suit your game doesnt have to be a gangster theme. Take a look at SBR: http://www.theshinobibattle-rpg.com/ I did what they asked i made a custom banner and changed font styles. I can change colors too.
  13. Re: Login & Register [$15] Well you may fail to see them, but there are 9 images I have no reason to lie unless thats what you were trying to imply..
  14. Re: Login & Register [$15] Thank you for the comments keep the feedback coming in and hopfully someone is interested in this design i would have originally sold this for $25 but since its not made for any specific game and im posting on CE i took $10 off the price. And remember this has 9 images which would cost you alot more than $15 anywere else.
  15. Hello this is a login & register i threw together, it is simple but effective and i think it would suit a RPG site perfectly. Here is a Screenshot of the login: Here is a Screenshot of the register: Each purchase Comes with a custom banner for the game instead of the text name on these screenshots. I will modify colours to what ever you wish change font styles to match your game. What you receive with this: [*]2 php file (login,register) [*]9 Images (all customised to your desire) If you interested or have and questions please free to mail me on CE or contact me via msn at [email protected] Thank you for your time.
  16. Re: Which File Extension are You? Im a... :|
  17. Re: V2 crystal temple.. Yh its just more neat with all content wraped with tables =]
  18. Re: [REVIEW] Review my game plz. Fearless-Dojo Whats age got to do with anything really, if you ask me 13 is quite a fair age for people to reach maturity. I mean a 30 year old man could be just like them. The fact you should have stated was that they are just immature people.
  19. Re: [mccodes] Board Game [$15] demo account isnt working someone has probably changed the pass
  20. Re: [Mccodes V2]Prayer Mod you say "pray at least 5 times", thats the most your meant to do you cant go over that except for shiah muslims who pray 3 times a day. Also this could be a good mod if you take the religion aspect out of it.
  21. Re: [Mccodes V2]Prayer Mod Why would you make a mosque if you can only pray once muslims prat 5 times a day. And anyway this mod would cause racial porblems in game i believe not something i would look at but nice attempt.
  22. Re: Arrowed Main Menu Links Add On This may help some, but in my opinion its a waste of time. The easiest method would be make a gif with an arrow that blinks then add a .hover in you css.
  23. Re: [MCCODES V2] Order an FBI investigation. $10 Yh i see your point but its taking the fun out of attacking thats the best part of these mccodes based games being able to attack others, in my opinion atleast. But nice to see you tried making unique mods :wink:
  24. Re: [MCCODES V2] Order an FBI investigation. $10 Mate not being rude or anything but this mod sounds so simple to make and its unfair on the other gang loosing the respect then that takes the fun of attacking during war away and it will give more power to the higher ranked players which in turn would cause less new people coming to your game.
  25. Re: Working Close Page System [MCCODE V2] well from reading this im guessing it tells the game what pages a user can and cannot view. And nice idea Pog1 selective punishment :-P
×
×
  • Create New...