Jump to content
MakeWebGames

[mccode] arcade mod v1


tittlemouse

Recommended Posts

here is my arcade mod v1. you can add games and modify it as much as you want.

arcade.php

<?php

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

-- Hitman-Country beta

-- Made by thomas

-- a arcade mod

-- arcade.php

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

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 "Welcome to the arcade please select a game. games cost 1 token each.,

Virus ";

$h->endpage();

?>

 

 

virus.php

 

<?php

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();

if($ir['tokens'] > 0)

{

print "

Virus

 

type='application/x-shockwave-flash' width='550' height='400'>

 

> Back

";

}

else

{

print "Sorry you have no tokens, please come back when your tokens have refilled!

> Back";

}

mysql_query("UPDATE users SET tokens=tokens-1 WHERE userid=$userid",$c);

 

open header.php and look for

 

Code:

Level: {$ir['level']}

 

after it add

 

Code:

Tokens: {$ir['tokens']}

 

Open: cron_day.php

Find:

Code:

mysql_query("DELETE FROM fedjail WHERE fed_days=0",$c);

Add After:

Code:

mysql_query("UPDATE users SET tokens=100", $c);

 

Run this sql query:

Code:

ALTER TABLE users ADD tokens INT(11) NOT NULL DEFAULT 100;

 

i will psot more games for it as i do them.

Link to comment
Share on other sites

Re: arcade mod v1

I'll play you all a contest. :) I can't guarantee you'll be happy with the results. I'm joking have a contest, But basicly if you can code that the "virus.php" is bugged.

1) It deducts tokens even when you don't have enough tokens

2) The PHP ?> closing bracket has not been found so it aint even a working script.

Yeah by the look of spelling your just a young kid, Dude you should know PHP isnt a quick thing, It's hard to learn and by the look of it you started learning yesterday. :P

Link to comment
Share on other sites

Re: arcade mod v1

 

You're unable to view this code.

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

 

Run that, it works^

I know what you mean, i mean when its parsed, it stops at the ?> tag or the end of the page. Still, the tokens thing is a problem lol

Yeah. But I'm not being harsh on a newbie.

Link to comment
Share on other sites

loll

 

i did that myself and ill post more games on it later.

you chat so much shit. every 5 minutes my msn was going off with you asking for help with it!

Well lol give him some sense, I'd laugh if anyone used it.

The worst thing i hate is when people say they make stuff when they dont.

Distribution of my mods are not a problem for me, I get emailed there IP/server so they get tracked down. :) Best thing is they can't remove it because the PHP is encrypted.

Link to comment
Share on other sites

Re: arcade mod v1

I am not great at coding but i am good, atleast i can spell and actually put codes in the right place and my insults arent "Your mum is waiting for you" haha.

Im not wasting my time with you, i have a life, i dont sit here wishing i was cool

Link to comment
Share on other sites

Re: arcade mod v1

how would you go about keeping a high score for each game just with your players playing it? i would guess you would need them to enter the score manually and go by the honor system. i just need it to keep the top 10 scores and no repeats by the same user id#

Link to comment
Share on other sites

Re: arcade mod v1

the way i figured it would have to be set up is the score list would be seperate from the actual flash game. it wouldnt be listed on the actual flash game. just on the same page as the flash game, or i could make a page to hold all of the scores for each game. it should be able to log their user id since they have to be logged in to play the game. i dont care if it has to go by the honor system and the players have to manually enter the score. i would delete anything ridiculous

Link to comment
Share on other sites

Re: arcade mod v1

you could do it by level they got to, so they play and when they lose they have the game level code and they then go to a page where they type that code in and the page knows the level codes (use google :P) and then if its right it will reward them aswell as put it through to the scores

Link to comment
Share on other sites

  • 4 weeks later...

Re: arcade mod v1

 

Code:

You're unable to view this code.

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

Run that, it works^

I know what you mean, i mean when its parsed, it stops at the ?> tag or the end of the page. Still, the tokens thing is a problem lol

 

where would you put this at in the virus page or the acage page

Link to comment
Share on other sites

Re: loll

 

i did that myself and ill post more games on it later.

you chat so much shit. every 5 minutes my msn was going off with you asking for help with it!

Well lol give him some sense, I'd laugh if anyone used it.

The worst thing i hate is when people say they make stuff when they dont.

Distribution of my mods are not a problem for me, I get emailed there IP/server so they get tracked down. :) Best thing is they can't remove it because the PHP is encrypted.

LMMFAO

decryptions ius easy, don't brag that it can't be done, otherwise someone is going to decrypt it just to show you that it can be done.

.........N00B

Link to comment
Share on other sites

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...