Jump to content
MakeWebGames

Recommended Posts

Posted

<?php

/*-----------------------------------------------------

-- Contra By http://freegoodgames.net

-- Converted to work with MCCodes By Latino Heat

-----------------------------------------------------*/

session_start();

require "global_func.php";

if($_SESSION['loggedin']==0) { header("Location: login.php");exit; }

$userid=$_SESSION['userid'];

require "header.php";

$h = new headers;

$h->startheaders();

include "mysql.php";

global $c;

$is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error());

$ir=mysql_fetch_array($is);

check_level();

$fm=money_formatter($ir['money']);

$cm=money_formatter($ir['crystals'],'');

$lv=date('F j, Y, g:i a',$ir['laston']);

$h->userdata($ir,$lv,$fm,$cm);

$h->menuarea();

print "

Contra

";

print "

 

> Back

";

$h->endpage();

?>

And uses there bandwidth! If you use these, please at least give me a plus one.

Posted

Re: (Free) Contra Game

<?php

/*-----------------------------------------------------

kyles contra

-----------------------------------------------------*/

session_start();

require "global_func.php";

if($_SESSION['loggedin']==0) { header("Location: login.php");exit; }

$userid=$_SESSION['userid'];

require "header.php";

$h = new headers;

$h->startheaders();

include "mysql.php";

global $c;

$is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error());

$ir=mysql_fetch_array($is);

check_level();

$fm=money_formatter($ir['money']);

$cm=money_formatter($ir['crystals'],'');

$lv=date('F j, Y, g:i a',$ir['laston']);

$h->userdata($ir,$lv,$fm,$cm);

$h->menuarea();

print "

<center><table width='500' border=2><tr style bgcolor='#ff0000'><th>CONTRA</th></center></tr><tr><td>";

print "<div><embed src='http://www.puffgames.com/contra/' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='500' height='450'></embed></div></tr><tr><td><center>Back to Explore</center>";

$h->endpage();

?>

 

thats my contra :-D (hope u guys like it) mail me if u want it in v2!

Posted

Re: (Free) Contra Game

try this:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Insert this to your db.

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Not tested yet!

Hope that helps :)

Posted

Re: (Free) Contra Game

Theres a much better way to do this, to where you only have to add the game to the database, and you are done, but I think Deathstar can handle coding it.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...