-
Posts
2,491 -
Joined
-
Last visited
-
Days Won
196
Content Type
Profiles
Forums
Events
Everything posted by Dayo
-
Full Game Security - $150-$300 Requsted Mods - Advanced - about $25ea Layout Designer - Somthing like / Operation Warhead - this is on game site tremplates think it was about 40/50euro i got mine from there and coded it with GL, unfortently i havent had time to work on themercenary.net :(
-
looks good, the title says IMP battle looks like the P is behind the face other then that looks ok
-
the main thing is your global files/themes i learned by trial and error, then fixing the errorsthere are a few tutorials on the net when i get homeill post them 4 u
-
yea my spelling would be bad i was on my phone and as you said only a few ppl use it, how many mccodes games r there? the relese was delaed due to working 6 days a week but i have tonight and thursday to code most of it ill be adding a live version soon
-
go on mate show me 1 forum trhat is fully intergrated with mccodes other then MTGs and the crappy one that comes with mccodes. yea you can have SMF IPB but i bet you they will be used 1/2 as much as a intergrated one ...
-
ahh for this you will have to edit gym and attack system to alow for the 50% increse so go throgh and look for the bit that checks energy and add an if/else statment
-
just looked at the code not sure if this is right echo "Which way would you like to go? [url='maze.php?action=right']<center>Go Right</center>[/url] [url='maze.php?action=right']<center>Go Left</center>[/url] "; plus ild advise you change this mt_rand is better then rand plus there is no need for two if statments just 1 if/else if($_GET['action'] == 'right') { $rand=rand(1,2); $money=$ir['mjackpot']*5; if($rand == 1) { $db->query(sprintf("UPDATE `users` SET `mjackpot`= `mjackpot` *%d WHERE (`userid`=%d)", 5, $userid)); echo "<font color=lime>Congratulations! you took the right path and your jackpot was increased to $$money</font> [url='maze.php?action=right']<center>Go Right</center>[/url] [url='maze.php?action=left']<center>Go Left</center>[/url] [url='maze.php?action=money']<center>Take the money and run</center>[/url]"; } if($rand == 2) { $db->query(sprintf("UPDATE `users` SET `mazeturns`= %d WHERE (`userid`=%d)", 0, $userid)); echo "You took the wrong path :( come back tomorrow :) [url='index.php']<center>Go Home</center>[/url]"; } } to this if($_GET['action'] == 'right') { $rand=mt_rand(1,2); $money=$ir['mjackpot']*5; if($rand == 1) { $db->query(sprintf("UPDATE `users` SET `mjackpot`= `mjackpot` *%d WHERE (`userid`=%d)", 5, $userid)); echo "<font color=lime>Congratulations! you took the right path and your jackpot was increased to $$money</font> [url='maze.php?action=right']<center>Go Right</center>[/url] [url='maze.php?action=left']<center>Go Left</center>[/url] [url='maze.php?action=money']<center>Take the money and run</center>[/url]"; } else { $db->query(sprintf("UPDATE `users` SET `mazeturns`= %d WHERE (`userid`=%d)", 0, $userid)); echo "You took the wrong path :( come back tomorrow :) [url='index.php']<center>Go Home</center>[/url]"; } }
-
woops thanks ill add that now
-
try if (isset($_GET['msg'])) { mysql_query("INSERT INTO chat(`name`, `msg`, `time`) VALUES ('".$name."', '".$text."', UNIX_TIMESTAMP())"); } as this checks if the user has typed anything, otherwise they can hit the send button loads of times and spam your DB
-
*you should be ashamed of yourself boy :P *jks* we all make mistakes, has ne1 tryed this yet?
-
did you mean this Crim? ... $max_energy = ( !empty($ir['donatordays']) ) ? $ir['maxenergy']+($ir['maxenergy']/2) : $ir['maxenergy'] ; $db->query('UPDATE `users` SET `maxenergy` = '.$max_energy.' WHERE `userid` = '.$userid); that would not wotrk on each page visit ... BOOM max energy timesed by 1.5 next page happens again ... and again ... and so on try just putting this in ur header (no sql) $ir['maxenergy'] = ( !empty($ir['donatordays']) ) ? $ir['maxenergy']+($ir['maxenergy']/2) : $ir['maxenergy'] ; you will have to add that to the cron that updates energy but edit to $r['maxenergy'] or whatever it is ^^
-
god its like TC ppl try to ripit and fail doing so, think of something original not a 'clone' script
-
oh ok, thanksill edit that
-
this is how the forum class is layed out (please not it is missing the staff functions and a few others)
-
semo will be up when finished, looking at the screenshots of the MTGs it looks more like a message board, dosent have that 'forum' feel here is just a small screen shot of the veiw thread (ill get a better screenshot later) if i did decide to make it a paid mod it would be fairly cheap (not 30-40 as you said)
-
try this <?php $d2=mysql_query("SELECT COUNT(*) as cnt FROM mail WHERE mail_to={$ir['userid']} AND mail_read=0",$c) or die(mysql_error()); $r=mysql_fetch_array($d2); if($r['cnt'] != 0) { echo '<script type="text/javascript"> var r=confirm("You have new Mail\n Veiw?") if (r==true) { window.location = "http://www.yourdomain.com/mail.php"; } else {} </script>';} ?>
-
Mine is a completly new script there is nothing taken from mccodes intact ir can reli be intergrated into any web game/site (may do that you just asign a few varables and it's done) oh yea my one has that pagnation too
-
does his intergrate with gangs? but anyway im gona release it for free with the gangs (imgona do it so they can buy a catagory and the forums and once the gang is deleted the catagory is, along with the forums)
-
im gona add something like this to my lite recode but it is gona have ajax so as soon as a user clicks submit it pops up
-
you would have to clear the `mailingto` feild every so often as the list would only get bigger
-
Can I have a link to mtgs forum cos if there is one out already I may do it quite cheap plus maby even free
-
also i forgot to mention it is coded so you could add a forum anywhere in your game lets say you wanted a bugs.php here is a snipet of code you would use include 'forum_class.php'; $forum=new forum; $forum->veiw('catid'); //that would output the catagory with the forums within the catagory $forum->veiw('catid', 'forumid, forumid2'); //that would output the catagory with the specified forum(s)
-
features include: add remove catagorys/forums bb code/smilys (made by myself) sticky/announcment posts staff forums (may implement gang forums (gang leader has 1catagory that they can have upto 3 forums and (s)he has the ability to delet posts)) moderation options:- move/delet/edit/hide layout is css/tableles (comes with several color schemes for difftrent color games) only 4 files (may make it 3): forum.php (handles forum_class.php) forum_class.php (all the functions that prosess the forum are here) forum_style.css signature/avatar SECURE!!! (if you want to try and exploit it ill set up a running version before i sell) ill add print screens of what i have so far when i get home like i said this is not complete yet just need to make a few ajustments and make the css work on all browsers (having trouble with IE :rolleyes:) also if you have any ideas just post below and ill see what i can do
-
How much would you pay for a mccodes forum (v1or2) I've been making one from scratch and I'm thinkng of selling it. It will be fast and secure what's do you think
-
It will be ready some time in march (I'm thinking about adding a suprise to the scripts too :P)