tittlemouse Posted April 5, 2007 Share Posted April 5, 2007 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. Quote Link to comment Share on other sites More sharing options...
hamster01 Posted April 5, 2007 Share Posted April 5, 2007 Re: arcade mod v1 lol. This arcade mod isnt so god compared to the one made for e107 I know how that one works XD Quote Link to comment Share on other sites More sharing options...
tittlemouse Posted April 5, 2007 Author Share Posted April 5, 2007 Re: arcade mod v1 i did that myself and ill post more games on it later. Quote Link to comment Share on other sites More sharing options...
CraigF Posted April 5, 2007 Share Posted April 5, 2007 Re: arcade mod v1 you didnt do it yourself you were asking for LOADS of help!! and it still wont work properly Quote Link to comment Share on other sites More sharing options...
tittlemouse Posted April 5, 2007 Author Share Posted April 5, 2007 Re: arcade mod v1 look i did and just because u cannont code. and if u can i challange you to a codeing contest no cheating no help Quote Link to comment Share on other sites More sharing options...
spellbyte ® Posted April 5, 2007 Share Posted April 5, 2007 Re: arcade mod v1 i think that if you want to enter any sort of contest that involves words you might want to improve your spelling codeing=coding Quote Link to comment Share on other sites More sharing options...
hamster01 Posted April 5, 2007 Share Posted April 5, 2007 Re: arcade mod v1 look i did and just because u cannont code. and if u can i challange you to a codeing contest no cheating no help lol, :lol: can i be the judge? Quote Link to comment Share on other sites More sharing options...
tittlemouse Posted April 5, 2007 Author Share Posted April 5, 2007 Re: arcade mod v1 look i did and just because u cannont code. and if u can i challange you to a codeing contest no cheating no help lol, :lol: can i be the judge? sorry 4 the spelling. Quote Link to comment Share on other sites More sharing options...
oxidati0n Posted April 5, 2007 Share Posted April 5, 2007 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 Quote Link to comment Share on other sites More sharing options...
Decepti0n Posted April 5, 2007 Share Posted April 5, 2007 Re: arcade mod v1 The ?> is implied at the end of the page Quote Link to comment Share on other sites More sharing options...
oxidati0n Posted April 5, 2007 Share Posted April 5, 2007 Re: arcade mod v1 The ?> is implied at the end of the page well yeah obviously you should know what I mean. <?php CONTENT ?> Yeah. Quote Link to comment Share on other sites More sharing options...
Decepti0n Posted April 5, 2007 Share Posted April 5, 2007 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 Quote Link to comment Share on other sites More sharing options...
oxidati0n Posted April 5, 2007 Share Posted April 5, 2007 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. Quote Link to comment Share on other sites More sharing options...
Ghetto Posted April 5, 2007 Share Posted April 5, 2007 Re: arcade mod v1 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! Quote Link to comment Share on other sites More sharing options...
oxidati0n Posted April 5, 2007 Share Posted April 5, 2007 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. Quote Link to comment Share on other sites More sharing options...
spellbyte ® Posted April 5, 2007 Share Posted April 5, 2007 Re: arcade mod v1 you don't even need <?php just using You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. will suffice Quote Link to comment Share on other sites More sharing options...
tittlemouse Posted April 5, 2007 Author Share Posted April 5, 2007 Re: arcade mod v1 it works on my site Quote Link to comment Share on other sites More sharing options...
CraigF Posted April 5, 2007 Share Posted April 5, 2007 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 Quote Link to comment Share on other sites More sharing options...
mikeymike Posted April 7, 2007 Share Posted April 7, 2007 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# Quote Link to comment Share on other sites More sharing options...
Decepti0n Posted April 7, 2007 Share Posted April 7, 2007 Re: arcade mod v1 I think you'd need to edit the game itself :| Quote Link to comment Share on other sites More sharing options...
mikeymike Posted April 7, 2007 Share Posted April 7, 2007 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 Quote Link to comment Share on other sites More sharing options...
CraigF Posted April 7, 2007 Share Posted April 7, 2007 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 Quote Link to comment Share on other sites More sharing options...
canibalstew Posted May 4, 2007 Share Posted May 4, 2007 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 Quote Link to comment Share on other sites More sharing options...
stryker Posted May 6, 2007 Share Posted May 6, 2007 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.