Jump to content
MakeWebGames

vampireduff

Members
  • Posts

    77
  • Joined

  • Last visited

Everything posted by vampireduff

  1. Gang Wars How about a new gang wars for Mccodes v2. where gangs use levels instead of respect, and you have a number of days that gang leaders can set for the gang war to go on, the gang with the most hits in set number of days wins the war and gain exp. to help level. This would be a whole lot better than the gang war option on mccodes now where you fight until you have no respect left and then your gang is deleted so you don't just lost a war you loose a gang with all the stuff you did to it and spent on it. I also think that a gang war like that (with levels and stuff) would make the games more fun because players won't be scared to go to war. Also I think this would be a good mod that you could sell instead of making it free, I for one would buy a mod like that for my sites :) But I think all the gang system on the mccodes need to total revamp.....I just wish I was good enough to do it.. but I just learning
  2. I have edited a few files and added table to mysql but I can't get this to auto credit users, can some look at these codes for me and tell me where I have went wrong. thanks buyhonors.php <?php include "globals.php"; print <<<EOF <h2><font color=purple>Honors</font></h2> Buy Honors today! <font color=red>[i]If the honors do not go to your account after purchase, please mail Admin and he will credit you the honors as soon as he checks the payment thank you.[/i]</font> [b]<font color=gold>Buy One (1):[/b] (\$1)</font> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="{$set['paypal']}"> <input type="hidden" name="item_name" value="{$domain}|HP|1|{$userid}"> <input type="hidden" name="amount" value="1.00"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="return" value="http://{$domain}/honordone.php?action=done&quantity=one"> <input type="hidden" name="cancel_return" value="http://{$domain}/honordone.php?action=cancel"> <input type="hidden" name="notify_url" value="http://{$domain}/ipn_hp.php"> <input type="hidden" name="cn" value="Your Player ID"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="tax" value="0"> <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> </form> [b]<font color=gold>Buy Ten (10):[/b] (\$10.00)</font> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="{$set['paypal']}"> <input type="hidden" name="item_name" value="{$domain}|HP|10|{$userid}"> <input type="hidden" name="amount" value="10.00"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="return" value="http://{$domain}/honordone.php?action=done&quantity=ten"> <input type="hidden" name="cancel_return" value="http://{$domain}/honordone.php?action=cancel"> <input type="hidden" name="notify_url" value="http://{$domain}/ipn_hp.php"> <input type="hidden" name="cn" value="Your Player ID"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="tax" value="0"> <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> </form> [b]<font color=gold>Buy Thirty (30):[/b] (\$25.00)</font> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="{$set['paypal']}"> <input type="hidden" name="item_name" value="{$domain}|HP|30|{$userid}"> <input type="hidden" name="amount" value="25.00"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="return" value="http://{$domain}/honordone.php?action=done&quantity=thirty"> <input type="hidden" name="cancel_return" value="http://{$domain}/honordone.php?action=cancel"> <input type="hidden" name="notify_url" value="http://{$domain}/ipn_hp.php"> <input type="hidden" name="cn" value="Your Player ID"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="tax" value="0"> <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> </form> [b]<font color=gold>Buy Fifty (50):[/b] (\$45.00)</font> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="{$set['paypal']}"> <input type="hidden" name="item_name" value="{$domain}|HP|50|{$userid}"> <input type="hidden" name="amount" value="45.00"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="return" value="http://{$domain}/honordone.php?action=done&quantity=fifty"> <input type="hidden" name="cancel_return" value="http://{$domain}/honordone.php?action=cancel"> <input type="hidden" name="notify_url" value="http://{$domain}/ipn_hp.php"> <input type="hidden" name="cn" value="Your Player ID"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="tax" value="0"> <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> </form> EOF; $h->endpage(); ?>   ipn_hp.php <? include "config.php"; global $_CONFIG; 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; require 'global_func.php'; $set=array(); $settq=$db->query("SELECT * FROM settings"); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } // read the post from PayPal system and add 'cmd' $req = 'cmd=_notify-validate'; foreach ($_POST as $key => $value) { $value = urlencode(stripslashes($value)); $req .= "&$key=$value"; } // post back to PayPal system to validate $header .= "POST /cgi-bin/webscr HTTP/1.0\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; $header .= "Content-Length: " . strlen($req) . "\r\n\r\n"; $fp = fsockopen ('www.paypal.com', 80, $errno, $errstr, 30); // assign posted variables to local variables $item_name = $_POST['item_name']; $item_number = $_POST['item_number']; $payment_status = $_POST['payment_status']; $payment_amount = $_POST['mc_gross']; $payment_currency = $_POST['mc_currency']; $txn_id = $_POST['txn_id']; $receiver_email = $_POST['receiver_email']; $payer_email = $_POST['payer_email']; if (!$fp) { // HTTP ERROR } else { fputs ($fp, $header . $req); while (!feof($fp)) { $res = fgets ($fp, 1024); if (strcmp ($res, "VERIFIED") == 0) { // check the payment_status is Completed if($payment_status != "Completed") { fclose ($fp);die(""); } if(mysql_num_rows($db->query("SELECT * FROM dps_accepted WHERE dpTXN='{$txn_id}'", $c)) > 0) { fclose ($fp);die(""); } if(mysql_num_rows($db->query("SELECT * FROM willps_accepted WHERE dpTXN='{$txn_id}'", $c)) > 0) { fclose ($fp);die(""); } if(mysql_num_rows($db->query("SELECT * FROM honors_accepted WHERE dpTXN='{$txn_id}'", $c)) > 0) { fclose ($fp);die(""); } // check that txn_id has not been previously processed // check that receiver_email is your Primary PayPal email if($receiver_email != $set['paypal']) { fclose ($fp);die(""); } // check that payment_amount/payment_currency are correct if($payment_currency != "USD") { fclose ($fp);die(""); } // parse for pack $packr=explode('|',$item_name); if(str_replace("www.","",$packr[0]) != str_replace("www.","",$_SERVER['HTTP_HOST'])) { fclose($fp); die(""); } if($packr[1] != "HP") { fclose($fp);die(""); } $pack=$packr[4]; if( $pack != 1 and $pack != 10 and $pack != 30 and $pack != 50) { fclose($fp);die(""); } if(($pack == 1) && $payment_amount != "1.00") { fclose ($fp);die(""); } if($pack == 10 && $payment_amount != "10.00") { fclose ($fp);die(""); } if($pack == 30 && $payment_amount != "25.00") { fclose ($fp);die(""); } if($pack == 50 && $payment_amount != "45.00") { fclose ($fp);die(""); } // grab IDs $buyer=$packr[3]; $for=$buyer; // all seems to be in order, credit it. if($pack==1) { $db->query("INSERT INTO honorawards values ($userid,'$rlist')"); $db->query("UPDATE users SET honors=honors+1 WHERE userid=$userid"); print "<font color=green>Award Credited!</font> "; } else if($pack==10) { $db->query("INSERT INTO honorawards values ($userid,'$rlist')"); $db->query("UPDATE users SET honors=honors+10 WHERE userid=$userid"); print "<font color=green>Award Credited!</font> "; } else if($pack==30) { $db->query("INSERT INTO honorawards values ($userid,'$rlist')"); $db->query("UPDATE users SET honors=honors+30 WHERE userid=$userid"); print "<font color=green>Award Credited!</font> "; } else if($pack==50) { $db->query("INSERT INTO honorawards values ($userid,'$rlist')"); $db->query("UPDATE users SET honors=honors+50 WHERE userid=$userid"); print "<font color=green>Award Credited!</font> "; } // process payment event_add($for, "Your \${$payment_amount} worth of Honors ($pack) has been successfully credited.", $c); $db->query("INSERT INTO honors_accepted VALUES('', {$buyer}, {$for}, '$pack', unix_timestamp(), '$txn_id')", $c); } else if (strcmp ($res, "INVALID") == 0) { fwrite($f,"Invalid?"); } } fclose ($fp); } ?>   I don't get errors and the users buying get everything there would normally get, messages from paypal and all that stuff, they just don't get the honors, until staff credit them I would like it so it would auto credit, like the donator packs do and the will potions :) thanks for any help from you guys
  3. how much is the script and can you show me a good screen pic of it so I can decide if it is worth buying or better to just use this free one here :)
  4. the codes on redtube work just fine on this youtube script, so why buy lol
  5. well this may be a little late. but this mod is great, just what I have been looking for. I am making an adult game too so this will be great to convert to 'Redtube' :P
  6. Where would I put that piece of script you posted POG1? I want to use timestamps instead of crons because I am building a new game on a free hosting site and they don't have crons. I have search how to replace crons with timestamps but I can find nothing about it. and just for the record, I know nothing about timestamps, so any help would be great :)
  7. great mod man, I am using it but just noticed a couple of things, at the end of your 'words.txt' your have this: [/b[ I think it should be [/b] and in your 'adventcal.php' your have: print " but the adventgridnumbered pic is a png not a jpg so it should be print " of course I see by reading the posts you know about these, but besides from that I am having no problems at all, all works fine on my site :) +1 to you man
  8. There is a mod called 'statsmarket' I got it from here a while ago when this site was called CE. the statsmarket mod does the same as this. I have used it on my site at first the players where great with it. but after 1 week it seemed to die and no one used it after that. I still give you a +1 though for the hard work you put in :)
  9. I have played a few games over the years and I was just wandering what engine is behind the these two games? 1) vilecity.com 2) mafiadeath.com I know (or at least I think) there are not Mccodes. also where would I find the game engines for vilecity or mafiadeath and any idea how much there would cost?
  10. OK I could not get Karlos job.php to work, I messaged him asking for his help on this but got no reply so I have edited another job.php and tried it and this one works. so if you like the idea of having jobs with Work Exp making it harder for players to get the good jobs (because they have to wait longer lol) then use all the code I posted in the first part except for the job.php. use this better one. replace job.php with this working copy <?php $jobquery=1; include "globals.php"; $_GET['interview'] = abs((int) $_GET['interview']); if(!$ir['job']) { if(!$_GET['interview']) { print "You do not yet have a job. A list of jobs is available below. "; $q=$db->query("SELECT * FROM jobs"); while($r=$db->fetch_row($q)) { print "<table width='500' cellspacing=1 class='table'><tr style='background:gray;'><th><center>{$r['jNAME']}</th></table><table width='500' cellspacing=1 class='table'><tr style='background:gray;'><td><center>{$r['jDESC']}</td></table><table width='500' cellspacing=1 class='table'><tr style='background:gray;'><td><center>[url='job.php?interview={$r[']Go to interview[/url]</td></table> "; } } else { $q=$db->query("SELECT j.*,jr.* FROM jobs j LEFT JOIN jobranks jr ON j.jFIRST = jr.jrID WHERE j.jID={$_GET['interview']}"); $r=$db->fetch_row($q); print "{$r['jOWNER']}: So {$ir['username']}, you were looking for a job with us? {$ir['username']}: Yes please! "; if($ir['strength'] >= $r['jrSTRN'] && $ir['labour'] >= $r['jrLABOURN'] && $ir['IQ'] >= $r['jrIQN'] && $ir['Work_Exp'] >= $r['jrWORK_EXPN']) { $db->query("UPDATE users SET job={$_GET['interview']},jobrank={$r['jrID']} WHERE userid=$userid;"); print "{$r['jOWNER']}: Okay {$ir['username']}, we're good to go, see you tomorrow. {$ir['username']}: Thanks! [url='job.php']:)[/url]"; } else { print "{$r['jOWNER']}: Sorry {$ir['username']}, you're not far enough in the game to work in this job. You'll need:"; if($ir['strength'] < $r['jrSTRN']) { $s=$r['jrSTRN']-$ir['strength']; print " $s more strength, "; } if($ir['labour'] < $r['jrLABOURN']) { $s=$r['jrLABOURN']-$ir['labour']; print " $s more labour, "; } if($ir['IQ'] < $r['jrIQN']) { $s=$r['jrIQN']-$ir['IQ']; print " $s more IQ, "; } if($ir['Work_Exp'] < $r['jrWORK_EXPN']) { $s=$r['jrWORK_EXPN']-$ir['Work_Exp']; print " $s more IQ, "; } print "before you'll be able to work here! [url='index.php']:'([/url]"; } } } else { switch($_GET['action']) { case 'quit': quit_job(); break; case 'promote': job_promote(); break; default: job_index(); break; } } function job_index() { global $db, $ir,$c,$userid,$h; print "<h2><font color=purple>Your Job</font></h2> You currently work in the {$ir['jNAME']}! You receive \${$ir['jrPAY']} each day at 5pm! You also receive {$ir['jrIQG']} IQ, {$ir['jrSTRG']} Strength, {$ir['jrLABOURG']} Labour AND {$ir['jrWORK_EXPG']} Work Exp! <table width=50% cellspacing=1 border=2 class='table'><tr><td>Strength: {$ir['strength']}</td><td>IQ: {$ir['IQ']}</td><td>Labour: {$ir['labour']}</td></tr><tr><td>Work Exp: {$ir['Work_Exp']}</td><td>Job Rank: {$ir['jrNAME']}</td><td>Your Boss: {$ir['jOWNER']}</td></tr></table> [b]<font color=gold>Job Ranks</font>[/b] <table width=75% cellspacing=1 border=2 class='table'><tr style='background:gray'><th><font color=gold>Title</font></th><th><font color=gold>Pay</font></th><th><font color=gold>Strength Reqd</font></th><th><font color=gold>IQ Reqd</font></th><th><font color=gold>Labour Reqd</font></th><th><font color=gold>Work Exp Reqd</font></th></tr>"; $q=$db->query("SELECT * FROM jobranks WHERE jrJOB={$ir['job']} ORDER BY jrPAY ASC;"); while($r=$db->fetch_row($q)) { print "<tr><td>{$r['jrNAME']}</td><td>\${$r['jrPAY']}</td><td>{$r['jrSTRN']}</td><td>{$r['jrIQN']}</td><td>{$r['jrLABOURN']}</td><td>{$r['jrWORK_EXPN']}</td></tr>"; } print "</table> [url='job.php?action=promote']> Try To Get Promoted<[/url] [url='job.php?action=quit']> Quit<[/url]"; } function job_promote() { global $db,$ir,$c,$userid,$h; $q=$db->query("SELECT * FROM jobranks WHERE jrPAY > {$ir['jrPAY']} AND jrSTRN <= {$ir['strength']} AND jrLABOURN <= {$ir['labour']} AND jrIQN <= {$ir['IQ']} AND jrWORK_EXPN <= {$ir['Work_Exp']} AND jrJOB = {$ir['job']} ORDER BY jrPAY DESC LIMIT 1"); if($db->num_rows($q) == 0) { print "Sorry, you cannot be promoted at this time. [url='job.php']> Back<[/url]"; } else { $r=$db->fetch_row($q); $db->query("UPDATE users SET jobrank={$r['jrID']} WHERE userid=$userid"); print "Congrats, you have been promoted to {$r['jrNAME']} [url='job.php']> Back<[/url]"; } } function quit_job() { global $db,$ir,$c,$userid,$h; $db->query("UPDATE users SET job=0,jobrank=0 WHERE userid=$userid"); print "You have quit your job! [url='job.php']> Back<[/url]"; } $h->endpage(); ?>   Like I said this one works, I am using it on my site and I have now got no problems with it, hope you all like it.
  11. sorry about that :) I will edit straight away, I just learning too, so yes I see what you mean.
  12. [Mccodes V2] Jobs With Work Exp, I took this from the forum, it was done by Karlos, I just added the Work Exp things to it so it gives others something else to work on instead of just the Strength, IQ and Labour. Also this way you can only get work exp from having a job, there for players can't just start a job and them keep getting promoted to the best job of the game. however, I am finding two problems with this, 1) if you click on get a promotion, nothing happens. 2) if you click on quit job, nothing happens. I would like some advise on this, is there something I have missed out, or overlooked. Please Help I am still learning and this is my second mod.....well update, since I didn't write this, just added things to it. Anyway here it is, hope you like it if it gets fixed.... it does work, just those two things don't. Replace your job.php with this   <?php $jobquery = '1'; include_once (DIRNAME(__FILE__) . '/globals.php'); $_GET['interview'] = abs(@intval($_GET['interview'])); if(!$ir['job']) { if(!$_GET['interview']) { echo 'You do not yet have a job. A list of jobs is available below. '; $Select1 = $db->query("SELECT `jID`, `jNAME`, `jDESC` FROM `jobs`"); while($r = $db->fetch_row($Select1)) { echo ' <table width="80%" cellspacing="0" border="1" class="table"> <tr style="text-align:center;"> <th width="30%"><font color=gold>Job Name:</font></th> <td>'.stripslashes($r['jNAME']).'</th> </tr> <tr style="text-align:center;"> <th width="30%"><font color=yellow>Job Desciption:</font></th> <td>'.stripslashes($r['jDESC']).'</th> </tr> <tr style="text-align:center;"> <td colspan="2">[url="'.$_SERVER['PHP_SELF'].'?interview='.@intval($r['jID']).'"]<font color=gold>Go to interview</font>[/url]</td> </table> '; } } else { $r = $db->fetch_row($db->query(sprintf("SELECT j.`jID`, j.`jFIRST`, j.`jOWNER`, jr.`jrID`, jr.`jrNAME`, jr.`jrJOB`, jr.`jrPAY`, jr.`jrIQG`, jr.`jrLABOURG`, jr.`jrSTRG`, jr.`jrWORK_EXPG`, jr.`jrIQN`, jr.`jrLABOURN`, jr.`jrSTRN`, jr.`jrWORK_EXPN` FROM `jobs` j LEFT JOIN `jobranks` jr ON j.`jFIRST` = jr.`jrID` WHERE j.`jID`='%u'", @intval($_GET['interview'])))); echo stripslashes($r['jOWNER']).': So '.stripslashes($ir['username']).', you were looking for a job with us? '.stripslashes($ir['username']).': Yes please! '; if($ir['strength'] >= $r['jrSTRN'] && $ir['labour'] >= $r['jrLABOURN'] && $ir['IQ'] >= $r['jrIQN'] && $ir['Work_Exp'] >= $r['jrWORK_EXPN']) { $db->query(sprintf("UPDATE `users` SET `job`='%u', `jobrank`='%u' WHERE `userid`='%u'", @intval($_GET['interview']), @intval($r['jrID']), @intval($userid))); echo stripslashes($r['jOWNER']).': Okay '.stripslashes($ir['username']).', we\'re good to go, see you tomorrow. '.stripslashes($ir['username']).': Thanks! [url="'.$_SERVER['PHP_SELF'].'"]Check Out Your New Job![/url]'; } else { echo stripslashes($r['jOWNER']).': Sorry '.stripslashes($ir['username']).', you\'re not far enough in the game to work in this job. You\'ll need: <ul>'; if($ir['strength'] < $r['jrSTRN']) { $Diff1 = $r['jrSTRN'] - $ir['strength']; echo '[*]'.@intval($Diff1).' More Strength Needed!'; } if($ir['labour'] < $r['jrLABOURN']) { $Diff2 = $r['jrLABOURN'] - $ir['labour']; echo '[*]'.@intval($Diff2).' More Labour Needed!'; } if($ir['IQ'] < $r['jrIQN']) { $Diff3 = $r['jrIQN'] - $ir['IQ']; echo '[*]'.@intval($Diff3).' More IQ Needed!'; } if($ir['Work_Exp'] < $r['jrWORK_EXPN']) { $Diff3 = $r['jrWORK_EXPN'] - $ir['Work_Exp']; echo '[*]'.@intval($Diff3).' More Work Exp Needed!'; } echo '[/list] Before you\'ll be able to work here! [url="'.$_SERVER['PHP_SELF'].'"]> Look At Other Jobs[/url] [url="index.php"]> Go Home...[/url]'; } } } else { $_GET['act'] = isset($_GET['act']) && is_string($_GET['act']) ? strtolower(trim($_GET['act'])) : ""; switch($_GET['act']) { case 'quit': quit(); break; case 'promote': promote(); break; default: index(); break; } } function index() { global $db, $ir,$c,$userid,$h; $Select2 = NULL; echo ' <h3><font color=purple>Your Job</font></h3> You currently work in the '.stripslashes($ir['jNAME']).'! You receive '.number_format($ir['jrPAY']).' Cash each day at 5pm! You also receive '.number_format($ir['jrIQG']).' IQ, '.number_format($ir['jrSTRG']).' Strength, '.number_format($ir['jrLABOURG']).' Labour and '.number_format($ir['jrWORK_EXPG']).' Work_Exp! <table border="1" width="50%" class="table" cellspacing="0" cellpadding="2"> <tr> <td>Strength: '.number_format($ir['strength']).'</td> <td>IQ: '.number_format($ir['IQ']).'</td> <td>Your Boss: '.stripslashes($ir['jOWNER']).'</td> </tr> <tr> <td>Labour: '.number_format($ir['labour']).'</td> <td>Work Exp: '.number_format($ir['Work_Exp']).'</td> <td>Job Rank: '.stripslashes($ir['jrNAME']).'</td> </tr> </table> [b]<font color=yellow>Job Ranks</font>[/b] <table border="1" width="50%" class="table" cellspacing="0" cellpadding="2"> <tr style="text-align:center;"> <th><font color=gold>Title</font></th> <th><font color=gold>Pay</font></th> <th><font color=gold>Strength Reqd</font></th> <th><font color=gold>IQ Reqd</font></th> <th><font color=gold>Labour Reqd</font></th> <th><font color=gold>Work Exp Reqd</font></th> </tr>'; $Select3 = $db->query(sprintf("SELECT `jrID`, `jrNAME`, `jrJOB`, `jrPAY`, `jrIQN`, `jrLABOURN`, `jrSTRN`, `jrWORK_EXPN` FROM `jobranks` WHERE `jrJOB`='%u' ORDER BY `jrPAY` ASC", @intval($ir['job']))); while($r = $db->fetch_row($Select3)) { echo ' <tr> <td>'.stripslashes($r['jrNAME']).'</td> <td>'.number_format($r['jrPAY']).' Cash</td> <td>'.number_format($r['jrSTRN']).'</td> <td>'.number_format($r['jrIQN']).'</td> <td>'.number_format($r['jrLABOURN']).'</td> <td>'.number_format($r['jrWORK_EXPN']).'</td> </tr>'; } print "</table> [url='job.php?action=promote']> Try To Get Promoted[/url] [url='job.php?action=quit']> Quit[/url]"; } function promote() { global $db,$ir,$c,$userid,$h; $q=$db->query("SELECT * FROM jobranks WHERE jrPAY > {$ir['jrPAY']} AND jrSTRN <= {$ir['strength']} AND jrLABOURN <= {$ir['labour']} AND jrIQN <= {$ir['IQ']} AND jrWORK_EXPN <= {$ir['Work_Exp']} AND jrJOB = {$ir['job']} ORDER BY jrPAY DESC LIMIT 1"); if($db->num_rows($q) == 0) { echo 'Sorry, you cannot be promoted at this time. [url="'.$_SERVER['PHP_SELF'].'"]> Back[/url]'; } else { $r = $db->fetch_row($Select4); $db->query(sprintf("UPDATE `users` SET `jobrank`='%u' WHERE `userid`='%u'", @intval($r['jrID']), @intval($userid))); echo 'Congrats, you have been promoted to '.stripslashes($r['jrNAME']).' [url="'.$_SERVER['PHP_SELF'].'"]> Back[/url]'; } } function quit() { global $db, $ir, $c, $userid, $h; $db->query(sprintf("UPDATE `users` SET `job`='0', `jobrank`='0' WHERE `userid`='%u'", @intval($userid))); echo 'You have quit your job! [url="'.$_SERVER['PHP_SELF'].'"]> Go Back To Job Listings[/url] [url="index.php"]> Go Home[/url]'; } $h->endpage(); ?>   replace staff_jobs.php with this <?php include "sglobals.php"; if($ir['user_level'] > 2) { die("403"); } //This contains shop stuffs switch($_GET['action']) { case 'newjob': newjob(); break; case 'jobedit': jobedit(); break; case 'newjobrank': newjobrank(); break; case 'jobrankedit': jobrankedit(); break; case 'jobdele': jobdele(); break; case 'jobrankdele': jobrankdele(); break; default: print "Error: This script requires an action."; break; } function newjob() { global $db,$ir,$userid; if ( $_POST['jNAME']) { $db->query("INSERT INTO jobs VALUES('','{$_POST['jNAME']}', 0, '{$_POST['jDESC']}', '{$_POST['jOWNER']}')"); $i=$db->insert_id(); $db->query("INSERT INTO jobranks VALUES('', '{$_POST['jrNAME']}', $i, {$_POST['jrPAY']}, {$_POST['jrIQG']}, {$_POST['jrLABOURG']}, {$_POST['jrSTRG']}, {$_POST['jrWORK_EXPG']}, {$_POST['jrIQN']}, {$_POST['jrLABOURN']}, {$_POST['jrSTRN']}, {$_POST['jrWORK_EXPN']})"); $j=$db->insert_id(); $db->query("UPDATE jobs SET jFIRST=$j WHERE jID=$i"); print "Job created! "; } else { print <<<EOF <form action='staff_jobs.php?action=newjob' method='post'> [b]Job Name:[/b] <input type='text' name='jNAME' /> [b]Job Description:[/b] <input type='text' name='jDESC' /> [b]Job Owner:[/b] <input type='text' name='jOWNER' /> <hr>[b]First Job Rank:[/b] [b]Rank Name:[/b] <input type='text' name='jrNAME' /> [b]Pays:[/b] <input type='text' name='jrPAY' /> [b]Gains:[/b] Str: <input type='text' name='jrSTRG' size=6 maxlength=6> Lab: <input type='text' name='jrLABOURG' size=6 maxlength=6> IQ: <input type='text' name='jrIQG' size=6 maxlength=6> Work Exp: <input type='text' name='jrWORK_EXPG' size=6 maxlength=6> [b]Reqs:[/b] Str: <input type='text' name='jrSTRN' size=6 maxlength=6> Lab: <input type='text' name='jrLABOURN' size=6 maxlength=6> IQ: <input type='text' name='jrIQN' size=6 maxlength=6> Work Exp: <input type='text' name='jrWORK_EXPN' size=6 maxlength=6> <input type='submit' value='Create Job' /></form> EOF; } } function jobedit() { global $db,$ir,$userid; if ( $_POST['stage2']) { $db->query("UPDATE jobs SET jNAME='{$_POST['jNAME']}', jDESC='{$_POST['jDESC']}', jOWNER='{$_POST['jOWNER']}', jFIRST={$_POST['jFIRST']} WHERE jID={$_POST['jID']}"); print "Job updated! "; } else if ( $_POST['stage1']) { $q=$db->query("SELECT * FROM jobs WHERE jID={$_POST['jID']}"); $r=$db->fetch_row($q); print <<<EOF <form action='staff_jobs.php?action=jobedit' method='post'> <input type='hidden' name='stage2' value='1'> <input type='hidden' name='jID' value='{$_POST['jID']}'> [b]Job Name:[/b] <input type='text' name='jNAME' value='{$r['jNAME']}'> [b]Job Description:[/b] <input type='text' name='jDESC' value='{$r['jDESC']}'> [b]Job Owner:[/b] <input type='text' name='jOWNER' value='{$r['jOWNER']}'> [b]First Job Rank:[/b] EOF; print jobrank_dropdown($c,'jFIRST',$r['jFIRST']); print <<<EOF <input type='submit' value='Edit' /> </form> EOF; } else { print <<<EOF <form action='staff_jobs.php?action=jobedit' method='post'> <input type='hidden' name='stage1' value='1'> Select a job to edit. EOF; print job_dropdown($c, 'jID', -1); print <<<EOF <input type='submit' value='Edit Job' /> </form> EOF; } } function newjobrank() { global $db,$ir,$userid; if ( $_POST['jrNAME']) { $db->query("INSERT INTO jobranks VALUES('', '{$_POST['jrNAME']}', {$_POST['jrJOB']}, {$_POST['jrPAY']}, {$_POST['jrIQG']}, {$_POST['jrLABOURG']}, {$_POST['jrSTRG']}, {$_POST['jrWORK_EXPG']}, {$_POST['jrIQN']}, {$_POST['jrLABOURN']}, {$_POST['jrSTRN']}, {$_POST['jrWORK_EXPN']})"); print "Job rank created! "; } else { print <<<EOF <form action='staff_jobs.php?action=newjobrank' method='post'> [b]Rank Name:[/b] <input type='text' name='jrNAME' /> [b]Pays:[/b] <input type='text' name='jrPAY' /> [b]Job:[/b] EOF; print job_dropdown($c,"jrJOB", -1); print <<<EOF [b]Gains:[/b] Str: <input type='text' name='jrSTRG' size=6 maxlength=6> Lab: <input type='text' name='jrLABOURG' size=6 maxlength=6> IQ: <input type='text' name='jrIQG' size=6 maxlength=6> Work Exp: <input type='text' name='jrWORK_EXPG' size=6 maxlength=6> [b]Reqs:[/b] Str: <input type='text' name='jrSTRN' size=6 maxlength=6> Lab: <input type='text' name='jrLABOURN' size=6 maxlength=6> IQ: <input type='text' name='jrIQN' size=6 maxlength=6> Work Exp: <input type='text' name='jrWORK_EXPN' size=6 maxlength=6> <input type='submit' value='Create Job Rank' /></form> EOF; } } function jobrankedit() { global $db,$ir,$userid; if ( $_POST['stage2']) { $db->query("UPDATE jobranks SET jrNAME='{$_POST['jrNAME']}', jrJOB = {$_POST['jrJOB']}, jrPAY= {$_POST['jrPAY']}, jrIQG={$_POST['jrIQG']}, jrLABOURG={$_POST['jrLABOURG']}, jrSTRG={$_POST['jrSTRG']}, jrWORK_EXPG={$_POST['jrWORK_EXPG']}, jrIQN={$_POST['jrIQN']}, jrLABOURN={$_POST['jrLABOURN']}, jrSTRN={$_POST['jrSTRN']}, jrWORK_EXPN={$_POST['jrWORK_EXPN']} WHERE jrID={$_POST['jrID']}"); print "Job rank updated! "; } else if ( $_POST['stage1']) { $q=$db->query("SELECT * FROM jobranks WHERE jrID={$_POST['jrID']}"); $r=$db->fetch_row($q); print <<<EOF <form action='staff_jobs.php?action=jobrankedit' method='post'> <input type='hidden' name='stage2' value='1'> <input type='hidden' name='jrID' value='{$_POST['jrID']}'> [b]Job Rank Name:[/b] <input type='text' name='jrNAME' value='{$r['jrNAME']}'> [b]Job:[/b] EOF; print job_dropdown($c,'jrJOB',$r['jrJOB']); print <<<EOF [b]Pays:[/b] <input type='text' name='jrPAY' value='{$r['jrPAY']}' /> [b]Gains:[/b] Str: <input type='text' name='jrSTRG' size=6 maxlength=6 value='{$r['jrSTRG']}'> Lab: <input type='text' name='jrLABOURG' size=6 maxlength=6 value='{$r['jrLABOURG']}'> IQ: <input type='text' name='jrIQG' size=6 maxlength=6 value='{$r['jrIQG']}'> Work Exp: <input type='text' name='jrWORK_EXPG' size=6 maxlength=6 value='{$r['jrWORK_EXPG']}'> [b]Reqs:[/b] Str: <input type='text' name='jrSTRN' size=6 maxlength=6 value='{$r['jrSTRN']}'> Lab: <input type='text' name='jrLABOURN' size=6 maxlength=6 value='{$r['jrLABOURN']}'> IQ: <input type='text' name='jrIQN' size=6 maxlength=6 value='{$r['jrIQN']}'> Work Exp: <input type='text' name='jrWORK_EXPN' size=6 maxlength=6 value='{$r['jrWORK_EXPN']}'> [b]Job:[/b] <input type='submit' value='Edit' /> </form> EOF; } else { print <<<EOF <form action='staff_jobs.php?action=jobrankedit' method='post'> <input type='hidden' name='stage1' value='1'> Select a job rank to edit. EOF; print jobrank_dropdown($c, 'jrID', -1); print <<<EOF <input type='submit' value='Edit Job Rank' /> </form> EOF; } } function jobrankdele() { global $db,$ir,$userid; if ( $_POST['stage1']) { $q=$db->query("SELECT * FROM jobranks WHERE jrID={$_POST['jrID']}"); $jr=$db->fetch_row($q); $_POST['jID']=$jr['jrJOB']; $db->query("DELETE FROM jobranks WHERE jrID={$_POST['jrID']}"); print "Job rank successfully deleted! "; $db->query("UPDATE users u LEFT JOIN jobs j ON u.job=j.jID SET u.jobrank=j.jFIRST WHERE u.job={$_POST['jID']} and u.jobrank={$_POST['jrID']}"); $q=$db->query("SELECT * FROM jobs WHERE jFIRST={$_POST['jrID']}"); if($db->num_rows($q)) { $r=$db->fetch_row($q); print "[b]Warning![/b] The Job {$r['jNAME']} now has no first rank! Please go edit it and include a first rank. "; } } else { print <<<EOF <form action='staff_jobs.php?action=jobrankdele' method='post'> <input type='hidden' name='stage1' value='1'> Select a job rank to delete. EOF; print jobrank_dropdown($c, 'jrID', -1); print <<<EOF <input type='submit' value='Delete Job Rank' /> </form> EOF; } } function jobdele() { global $db,$ir,$userid; if ( $_POST['stage1']) { $db->query("DELETE FROM jobs WHERE jID={$_POST['jID']}"); print "Job rank successfully deleted! "; $db->query("DELETE FROM jobranks WHERE jrJOB={$_POST['jID']}"); print mysql_affected_rows()." job ranks deleted. "; $db->query("UPDATE users SET job=0,jobrank=0 WHERE job={$_POST['jID']}"); } else { print <<<EOF <form action='staff_jobs.php?action=jobdele' method='post'> <input type='hidden' name='stage1' value='1'> Select a job to delete. EOF; print job_dropdown($c, 'jID', -1); print <<<EOF <input type='submit' value='Delete Job' /> </form> EOF; } } function report_clear() { global $db,$db,$ir,$c,$h,$userid; if($ir['user_level'] > 3) { die("403"); } $_GET['ID'] = abs((int) $_GET['ID']); stafflog_add("Cleared player report ID {$_GET['ID']}"); $db->query("DELETE FROM preports WHERE prID={$_GET['ID']}"); print "Report cleared and deleted! [url='staff_users.php?action=reportsview']> Back[/url]"; } $h->endpage(); ?>   In cron_hour.php find: $db->query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN jobs j ON j.jID=u.job LEFT JOIN jobranks jr ON u.jobrank=jr.jrID SET u.money=u.money+jr.jrPAY, u.exp=u.exp+(jr.jrPAY/20) WHERE u.job > 0 AND u.jobrank > 0 AND laston>unix_timestamp()-172800"); $db->query("UPDATE userstats us LEFT JOIN users u ON u.userid=us.userid LEFT JOIN jobs j ON j.jID=u.job LEFT JOIN jobranks jr ON u.jobrank=jr.jrID SET us.strength=(us.strength+1)+jr.jrSTRG-1,us.labour=(us.labour+1)+jr.jrLABOURG-1,us.IQ=(us.IQ+1)+jr.jrIQG-1, WHERE u.job > 0 AND u.jobrank > 0 AND laston>unix_timestamp()-172800");   and replace with: $db->query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN jobs j ON j.jID=u.job LEFT JOIN jobranks jr ON u.jobrank=jr.jrID SET u.money=u.money+jr.jrPAY, u.exp=u.exp+(jr.jrPAY/20) WHERE u.job > 0 AND u.jobrank > 0 AND laston>unix_timestamp()-172800"); $db->query("UPDATE userstats us LEFT JOIN users u ON u.userid=us.userid LEFT JOIN jobs j ON j.jID=u.job LEFT JOIN jobranks jr ON u.jobrank=jr.jrID SET us.strength=(us.strength+1)+jr.jrSTRG-1,us.labour=(us.labour+1)+jr.jrLABOURG-1,us.IQ=(us.IQ+1)+jr.jrIQG-1,us.Work_Exp=(us.Work_Exp+1)+jr.jrWORK_EXPG-1 WHERE u.job > 0 AND u.jobrank > 0 AND laston>unix_timestamp()-172800");   this cron only allows your players to get paid and gain the extra work exp and other stuff, if there login, if there don't play then they don't get paid. but if you want to let your players get paid all time then just remove the timestamp or change it to what ever you would like it to be. INSERT INTO jobsrank jrWORK_EXPG (int) 11 not null default '0' INSERT INTO jobsrank jrWORK EXPN (int) 11 not null default '0' INSERT INTO userstats Work_Exp (int) 11 not null default '0'   and thats it. But Remember to always back up your files before adding or editing new ones.
  13. thanks I will try that will this also stop the attacks some use by using a firefox addon? I don't know too much about this add on or what it is or does but that Jonoh guy messaged me before I banned his IP saying that is what he uses to hack games and gain control of there paypal...... so what out for this guy everyone and keep an eye on your paypal thingy
  14. I have another guy trying to hack my site, he never got far but thanks to all the replies on here I now know where else to check my security. I also know that some say not to post IP's and others say it is ok, so I'm going out on a limb here and I'm going to post them anyway....... if this is not allowed then I would like the site staff to message me and I will then remove them.... but until then I hope this help in the fight to keep out sites safe. hackers info name: jonoh (he could use others) IP's are: 62.193.236.96 and 86.160.148.157 His E-mail is: [email protected] this one did get into my staff panel and change is user level to admin. and even change the paypal thing in the basic settings now I check these each and every time I go online hope this helps someone :)
  15. I have had my game hacked, although the guy that did it did not do too much damage and I am not sure how he did what he did, but I have learned that he has do this on many games. so I have copied his name and his IP and those of you that owns a game can keep a look out for him. incase he signs up to your game and hacks into it. his name is: Markwick and is IP is: 70.87.103.182 and host: b6.67.5746.static.theplanet.com (these could be fake though) he signs up with games and within his first 5mins of being a new member he will gain Billions of game money both on hand and in his bank. he will also give non active users mass amounts of cash for others to mug. Hope no one else gets hacked from this looser. and hopefully we can all work together to stop these people from hacking our game. if we all post there names and what there do up in here. As well as a way to stop them if anyone knows. I fedded, Markwick and also banned his IP, of course I know that if he wanted to he could still find ways to get onto my game, but I am keeping a close look out now. hope he doesn't hack anyone else
  16. mdshare, I'm still learning PHP and would like to use your code, but where would I add it in my files? I know I would add it to any file that I would have that uploads a pic, but where abouts?
  17. Sorted, thanks guys for the help :) I used mike09 method for the parts I wanted it to effect and it works great. so thanks again
  18. Re: [Help] Honor Exchange I meant instead of just getting 200 IQ or 10,000 for the other stats, you would 200 IQ per your level, or 10,000 of the other stats per you level so higher your level the higher stats you would get. thanks replying anyways :)
  19. this is my honor exchange php, it works as it is but I would like to know how I could make it so when players exchange their honors they would get the reward per level. so the higher the level the more you gain.   <?php include "globals.php"; if(!$_GET['spend']) { print "Welcome to the Honor Award Exchange Center! You have [b]{$ir['honors']}[/b] Honor Awards. What would you like to spend your Honor Awards on? [url='honorexchange.php?spend=IQ']IQ - 200 IQ per Honor Award[/url] [url='honorexchange.php?spend=labour3']Trade for Labour Points - 10,000 Labour Points per Honor Award[/url] [url='honorexchange.php?spend=guard3']Trade for Defense - 10,000 Defense per Honor Award[/url] [url='honorexchange.php?spend=agility3']Trade for Agility - 10,000 Speed per Honor Award[/url] [url='honorexchange.php?spend=strength3']Trade for Strength - 10,000 strength per Honor Award[/url] [url='honorexchange.php?spend=money']Money - \$10,000 per Honor Award[/url] "; } else if($_GET['spend'] == 'IQ') { print "Type in the amount of Honor Awards you want to swap for IQ. You have [b]{$ir['honors']}[/b] Honor Awards. One Honor Award = 200 IQ.<form action='honorexchange.php?spend=IQ2' method='post'><input type='text' name='honors' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'IQ2') { $_POST['honors']=(int) $_POST['honors']; if($_POST['honors'] <= 0 || $_POST['honors'] > $ir['honors']) { print "Error, you either do not have enough Honor Awards or did not fill out the form. [url='honorexchange.php?spend=IQ']Back[/url]"; } else { $iqgain=$_POST['honors']*200; $_POST['honors']=strip_tags($_POST['honors']); $_POST['honors']=abs((int)($_POST['honors'])); $db->query("UPDATE users SET honors=honors-{$_POST['honors']} WHERE userid=$userid",$c); $db->query("UPDATE userstats SET IQ=IQ+$iqgain WHERE userid=$userid",$c); print "You traded {$_POST['honors']} Honor Awards for $iqgain IQ."; } } else if($_GET['spend'] == 'labour3') { print "Type in the amount of Honor Awards you want to swap for labour points. You have [b]{$ir['honors']}[/b] Honor Awards. One Honor Award = 10,000 labour points.<form action='honorexchange.php?spend=labour4' method='post'><input type='text' name='honors' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'labour4') { $_POST['honors']=(int) $_POST['honors']; if($_POST['honors'] <= 0 || $_POST['honors'] > $ir['honors']) { print "Error, you either do not have enough Honor Awards or did not fill out the form. [url='honorexchange.php?spend=labour3']Back[/url]"; } else { $labourgain=$_POST['honors']*10000; $_POST['honors']=strip_tags($_POST['honors']); $_POST['honors']=abs((int)($_POST['honors'])); $db->query("UPDATE users SET honors=honors-{$_POST['honors']} WHERE userid=$userid",$c); $db->query("UPDATE userstats SET labour=labour+$labourgain WHERE userid=$userid",$c); print "You traded {$_POST['honors']} Honor Awards for $labourgain labour points."; } } else if($_GET['spend'] == 'guard3') { print "Type in the amount of Honor Awards you want to swap for Defense. You have [b]{$ir['honors']}[/b] Honor Awards. One Honor Award = 10,000 Defense.<form action='honorexchange.php?spend=guard4' method='post'><input type='text' name='honors' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'guard4') { $_POST['honors']=(int) $_POST['honors']; $_POST['honors']=strip_tags($_POST['honors']); $_POST['honors']=abs((int)($_POST['honors'])); if($_POST['honors'] <= 0 || $_POST['honors'] > $ir['honors']) { print "Error, you either do not have enough Honor Awards or did not fill out the form. [url='honorexchange.php?spend=guard3']Back[/url]"; } else { $guardgain=$_POST['honors']*10000; $_POST['honors']=strip_tags($_POST['honors']); $_POST['honors']=abs((int)($_POST['honors'])); $db->query("UPDATE users SET honors=honors-{$_POST['honors']} WHERE userid=$userid",$c); $db->query("UPDATE userstats SET guard=guard+$guardgain WHERE userid=$userid",$c); print "You traded {$_POST['honors']} Honor Awards for $guardgain Defense."; } } else if($_GET['spend'] == 'agility3') { print "Type in the amount of Honor Awards you want to swap for Agility. You have [b]{$ir['honors']}[/b] Honor Awards. One Honor Award = 10,000 Agility.<form action='honorexchange.php?spend=agility4' method='post'><input type='text' name='honors' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'agility4') { $_POST['honors']=(int) $_POST['honors']; if($_POST['honors'] <= 0 || $_POST['honors'] > $ir['honors']) { print "Error, you either do not have enough Honor Awards or did not fill out the form. [url='honorexchange.php?spend=agility3']Back[/url]"; } else { $agilitygain=$_POST['honors']*10000; $_POST['honors']=strip_tags($_POST['honors']); $_POST['honors']=abs((int)($_POST['honors'])); $db->query("UPDATE users SET honors=honors-{$_POST['honors']} WHERE userid=$userid",$c); $db->query("UPDATE userstats SET agility=agility+$agilitygain WHERE userid=$userid",$c); print "You traded {$_POST['honors']} Honor Awards for $agilitygain Agility."; } } else if($_GET['spend'] == 'strength3') { print "Type in the amount of Honor Awards you want to swap for Strength. You have [b]{$ir['honors']}[/b] Honor Awards. One Honor Award = 10,000 Strength.<form action='honorexchange.php?spend=strength4' method='post'><input type='text' name='honors' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'strength4') { $_POST['honors']=(int) $_POST['honors']; if($_POST['honors'] <= 0 || $_POST['honors'] > $ir['honors']) { print "Error, you either do not have enough Honor Awards or did not fill out the form. [url='honorexchange.php?spend=strength3']Back[/url]"; } else { $strengthgain=$_POST['honors']*10000; $_POST['honors']=strip_tags($_POST['honors']); $_POST['honors']=abs((int)($_POST['honors'])); $db->query("UPDATE users SET honors=honors-{$_POST['honors']} WHERE userid=$userid",$c); $db->query("UPDATE userstats SET strength=strength+$strengthgain WHERE userid=$userid",$c); print "You traded {$_POST['honors']} Honor Awards for $strengthgain Strength."; } } else if($_GET['spend'] == 'money') { print "Type in the amount of Honor Awards you want to swap for \$\$\$. You have [b]{$ir['honors']}[/b] Honor Awards. One Honor Award = \$10,000.<form action='honorexchange.php?spend=money2' method='post'><input type='text' name='honors' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'money2') { $_POST['honors']=(int) $_POST['honors']; if($_POST['honors'] <= 0 || $_POST['honors'] > $ir['honors']) { print "Error, you either do not have enough Honor Awards or did not fill out the form. [url='honorexchange.php?spend=money']Back[/url]"; } else { $moneygain=$_POST['honors']*10000; $_POST['honors']=strip_tags($_POST['honors']); $_POST['honors']=abs((int)($_POST['honors'])); $_POST['money']=strip_tags($_POST['money']); $_POST['money']=abs($_POST['money']); $db->query("UPDATE users SET honors=honors-{$_POST['honors']},money=money+$moneygain WHERE userid=$userid",$c); print "You traded {$_POST['honors']} Honor Awards for \$$moneygain."; } } $h->endpage(); ?>   just a thought as my higher level players are saying it is not worth exchanging the honors because they don't get much for it. Also is there a way to buy items for honors? so I could add special items where you can only buy them for so many (set) honors thanks for any help on this
  20. Re: Game Station mod I first posted this on the 22nd of July I have seen other flash games on here but I could never get any of them to work so I made this one. this one works great I have had no probs with it even when adding more games or changing them
  21. Re: Game Station mod cheers mate Also I believe any flash game (as long as you get a code) will work with this mod. however is there a way to show you high scores in your profile, I have had a few members ask me this, but I'm not sure if it can be done
  22. Re: marriage, sharing housing? I've search and tried a few but none work. not for V2 anyway
  23. k I am probably the worst coder on the planet and I have used a lot of stuff on here and not given much back, (due to my lack of coding knowledge). but here is something I coded it is real basic but it brings life to your game. feel free to edit this to suit your game style. first make these files and upload them to your host (you can find the images if you google images, just remember to change the image name in the scripts to match the name of your images. and also upload your images to your images folder on your host server if you don't have one then make one.) call this file gamestation.php <?php include "globals.php"; print"<h2><center><font color=purple>[img=images/arcade.jpg] Game Station</font></center></h2> "; print"<font color=silver>[i]The images may not reflect the true image of the game. Play safe and please[/i][b]<u> No Running in the Arcade.</u>[/b]</font> "; print" <table width=100% border=3 bordercolor=silver class='table'><tr><th><font color=gold>Game Name</font></th><th><font color=gold>Image</th><th><font color=gold>Description</font></th>"; print"<tr><td>[url='blackjack.php']Blackjack[/url]</td><td><a href='blackjack.php'>[img=images/blackjack.jpg]</td><td>Blackjack card game Click on the name or the pic to play</td>"; print"<tr><td>[url='pacman.php']Pacman[/url]</td><td><a href='pacman.php'>[img=images/pacman.jpg]</td><td>Pacman is back! Click on the name or the pic to play</td>"; print"<tr><td>[url='ewoks.php']Ewoks[/url]</td><td><a href='ewoks.php'>[img=images/ewoks.jpg]</td><td>Blast the crap out the of cute little teddies from Star Wars. Click on the name or the pic to play</td>"; print"<tr><td>[url='poker.php']Poker[/url]</td><td><a href='poker.php'>[img=images/poker.jpg]</td><td>Poker, a card game played by millions. Click on the name or the pic to play</td>"; print"</table>"; $h->endpage(); ?>   Call this one blackjack.php <?php include "globals.php"; print "<h2><font color=purple>Blackjack</font></h2> "; print "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='500' height='500'> <param name='movie' value='http://www.freegames4all.net/swf/20323.swf'><param name='quality' value='high'> <embed src='http://www.freegames4all.net/swf/20323.swf' width=500 height=500 align='center' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed> </object>"; $h->endpage(); ?>   Call this file pacman.php <?php include 'globals.php'; print "<h2><font color=purple>Pac-Man</font</h2> "; print"<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' width='470' height='470'> <PARAM name=quality value=high> <PARAM name='SRC' value='http://www.zemnetmedia.com/games/pacman/pacmangame.swf'> <EMBED src='http://www.zemnetmedia.com/games/pacman/pacmangame.swf' width='470' height='470' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'> </EMBED></object> [b]These are the shortcut keys: <font color=red>M</font> - Turn music On/Off <font color=red>P</font> - Pause/ Unpause the game <font color=red>Q</font> - Quit the Game <font color=red>L</font> - Low quality on/ off"; } $h->endpage(); ?>   Call this one ewoks.php <?php include 'globals.php'; print "<h2><font color=purple>Ewoks</font></h2> "; print "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='500' height='500'> <param name='movie' value='http://www.freegames4all.net/swf/20295.swf'><param name='quality' value='high'> <embed src='http://www.freegames4all.net/swf/20295.swf' width=500 height=500 align='center' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed> </object>"; $h->endpage(); ?>   and call this one poker.php <?php include 'globals.php'; print "<h2><font color=purple>Poker</font></h2> "; print "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='500' height='500'> <param name='movie' value='http://www.freegames4all.net/swf/20493.swf'><param name='quality' value='high'> <embed src='http://www.freegames4all.net/swf/20493.swf' width=500 height=500 align='center' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed> </object>"; $h->endpage(); ?>   then add this to explore.php <a href='gamestation.php>Game Station</a>   it is easy to change the games just go to this site http://www.freegames4all.net/ and there is lots of game to choose from so you just edit the code to work with your game. Hope you like it and have fun
  24. Re: Requesting - [Mccodes V2} Shared house mod I added the codes to where they had to go, but I get this error Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/purgato1/public_html/viewuser.php on line 235 this is the code on line 235: if($r['shared'] != 'none') { and here is a part of the full code: [b]Partner:[/b] "; if($ir['married'] > 0) { $spouseq=$db->query("SELECT username FROM users WHERE userid = {$r['married']}"); $spouse=$db->fetch_row($spouceq); print "[url='viewuser.php?u={$r[']<font color='green'>[b]{$spouse['username']}[/b]</font>[/url] "; } else { print "<font color=red>None</font> "; } print " </td> <td> [b]Location:[/b] [url='airport.php']{$r['cityname']}[/url] {$r['citypic']}"; </td></tr> <tr><td> [b]Money:[/b] \${$r['money']} </td> <td> if($r['shared'] != 'none') { print "Property: {$r['hNAME']} [with: [url='viewuser.php?u={$ma[']{$ma['username']}[/url]] "; } else { print "Property: {$r['hNAME']} "; } {$r['hIMAGE']} </td></tr>";   can anyone tell me how to fix this please :)
  25. Re: Requesting - [Mccodes V2} Shared house mod will give it a try, and let you :) Cheers
×
×
  • Create New...