
CainFool
Members-
Posts
42 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by CainFool
-
Re: [v2] [v1] Time File Was Last Edited if($ir['user_level'] == 2) { $file = $_SERVER["SCRIPT_NAME"]; $break = Explode('/', $file); $pfile = $break[count($break) - 1]; //echo $pfile; echo "This file was last modified on: " .date("d/m/Y",filemtime($pfile)); } Use that if you wish for only Administrators to see it. Just tested, works great. My header script, above it now says: The header down below was last updated 06/08/2009 :)
-
[HELP][V2]I need Mod Help [I Know I'm in Wrong Forum]
CainFool replied to CainFool's topic in Modification Support
Re: [HELP][V2]I need Mod Help [i Know I'm in Wrong Forum] His is criminal-intention Mines is criminal intentions difference, not much, but there's still a difference. -
[HELP][V2]I need Mod Help [I Know I'm in Wrong Forum]
CainFool replied to CainFool's topic in Modification Support
Re: [HELP][V2]I need Mod Help [i Know I'm in Wrong Forum] Alright, here's a brief description what I want to happen. Depending on their cookies, I want a Javascript alert to come up when they login. So it's only going to come up once because my website is already viewed in their cookies. Getting what I mean? -
[HELP][V2]I need Mod Help [I Know I'm in Wrong Forum]
CainFool replied to CainFool's topic in Modification Support
Re: [HELP][V2]I need Mod Help [i Know I'm in Wrong Forum] Sorry for triple post, but i'm getting somewhere. <?php include('globals.php'); $name = mysql_fetch_object($db->query("SELECT `footer` FROM `header`")); echo sprintf("<body onload='javascript:alert(%s);'> ",stripslashes($name->footer)); ?> Comes up with my main game template, with nothing in where the content usually is. Just blank. In my table "footer", I have "testing" wrote in it. Any suggestions? -
[HELP][V2]I need Mod Help [I Know I'm in Wrong Forum]
CainFool replied to CainFool's topic in Modification Support
Re: [HELP][V2]I need Mod Help [i Know I'm in Wrong Forum] Okay here's a little update, <?php $name = mysql_fetch_object($db->query("SELECT `footer` FROM `header`")); echo sprintf("<body onload='javascript:alert(%s);'> ",stripslashes($name->text)); ?> I did some editing there, and now I get this:- Fatal error: Call to a member function query() on a non-object in ***/alert.php on line 2 -
I know I'm in the wrong forum, I just wanted to grab attention here first, but if any moderator wants it moved, move it, I just want some attention as this is a-needed mod for my game. I'm looking to display a javascript alert when users go to loggedin.php, yes? Well if I put it into the header, it will come up on every single page, won't it! I'm not 100% what include_once is, but here is the code I have in my header after include('globals.php'); include_once('alert.php'); And in my alert file, it shows:- <?php echo "<body onload='javascript:alert('testing')'>"; ?> Basically I am going to hook this up to a database so in my Staff Panel I can change "testing" by the database (I can do that) But I think I need include_once explained first. Does that mean that it will only show the page once following your cache? I do need help, yes this is a long post. But when I go onto my game, I get a PHP Error inside the alert.php file, I'm sure it's easy to spot, but if you seen my other modifications I am quite a noob. ::) So if anybody can help me it would be appreciated, thanks! (ps, I can do databases and hook it up, so it's okay.) Note: If you seen in my header text script, you seen I used the table "header" well i'm going to use "footer" (another.. table, is it?) inside "header" and use that and basically use the same stuff from the header text mod. Alright, here's a summary what I need. Whats wrong with my alert.php file include_once explained noob way Thanks! Also if I can't do it by include_once, can you tell me another way?
-
[mcCodes v2] Donator Pack About to Expire Warning
CainFool replied to CainFool's topic in Free Modifications
Re: [mcCodes v2] Donator Pack About to Expire Warning Haha. :D -
[mcCodes v2] Donator Pack About to Expire Warning
CainFool replied to CainFool's topic in Free Modifications
Re: [mcCodes v2] Donator Pack About to Expire Warning Everything you're saying is going to be used in some of my planned mods. (Like the High Security Bank) So credit will go to alot of you. And thanks for the suggestions for my mods, the more the better! -
[mcCodes v2] Donator Pack About to Expire Warning
CainFool replied to CainFool's topic in Free Modifications
Re: [mcCodes v2] Donator Pack About to Expire Warning I forgot to say that if you like this modification, please +1 me! -
[mcCodes v2] Donator Pack About to Expire Warning
CainFool replied to CainFool's topic in Free Modifications
Re: [mcCodes v2] Donator Pack About to Expire Warning If that's what you wish to do by all means. :) Do it! -
[mcCodes v2] Donator Pack About to Expire Warning
CainFool replied to CainFool's topic in Free Modifications
Re: [mcCodes v2] Donator Pack About to Expire Warning Yes I was thinking about making the font slightly bigger than the other font sizes and maybe it blinking. (<blink>mod blabla</blink>) -
Strange isn't it, you have a Donator Package for a year and all of a sudden it just disappears without you knowing. This is a very small modification, very easily done blindfolded. But all it does is warn you a day before your donator pack is set to expire to buy a new one. Find in header.php: print "[b]NB:[/b] You are currently in jail for {$ir['jail']} minutes. "; } after it put: if($ir['donatordays'] ==1) { print "<font color=red>Your Donator Status has only 1 day left until you lose all your special tools.</font>"; } That's it. If you wish to set it to warn you a week before, you may do so. I'm looking to do it for a week, I put in if($ir['donatordays'] !==7) But that does it for every single day you have it. Any help? I'm quite new to making modifications.
-
Re: [mcCodes v2] Header Text [First ever Mod] yes I did get it working eventually.
-
[IN PROGRESS V2] Bank High Sealed Security
CainFool replied to CainFool's topic in General Discussion
Re: [iN PROGRESS V2] Bank High Sealed Security I never knew there was another, I'll look it up and make mines completely different from it's. -
At the moment, Im making my Header Modification alot better, but I felt I should take a break and work on something else. Something really old and daft, the Bank, could be changed to a High Security Bank, which asks you a question and you have to answer it correctly plus a PIN you have to enter to get into your bank account. Neat, yes? Well depends on quality, if it is seriously good, it will be up for sale. and I maybe have only 25 licenses. No price yet, it's still in progress! So far i've done the question table with answer and the embedding, now i'm working on the PIN. I forgot to mention, a new bank look aswell! It's going to be looking really high tech the theme, it's looking crazy already! So stay tuned, as this will be here by in the middle of August. Chall!
-
Re: How can i decrease the brave gain/level? If you're looking to increase the brave maximum you get if you sucessfully do a crime, you can, if you go to edit crime you will see a code under the title, modify that.
-
Re: [mcCodes v2] Header Text [First ever Mod] Look at it again, where it says $text inside the textarea code, Iwant it to come up with the details i've already entered in the mysql table.
-
Re: [mcCodes v2] Header Text [First ever Mod] :roll: i'm actually having slight bugs, i'm sure it's very fixable. In the edit header code, the box submits and all, that's fine. im trying to work out how for it to already display what has been entered into the mysql, any help? I'm sure it's small. function header_announcement() { global $db,$ir,$c,$h,$userid; $q=$db->query("SELECT text FROM header LIMIT 1"); $news=$db->fetch_single($q); print "<h3>Editing Header</h3> <form action='staff_special.php?action=head_submit' method='post'> <textarea rows='7' cols='35' name='newspaper2'>$text</textarea> <input type='submit' value='Change' /></form>"; } I'm nearly sure it's something to do with that, correct if im wrong.
-
Re: [mcCodes v2] Header Text [First ever Mod] Anyway you modify it, you can do it as you wish. Just under your game add print 'Header Script by CainFool'; } :) I will be having many ways of improving it and your ideas will be used, and if it's seriously fantastic, like a months work into it, it will be available for a cheap price. (like, 0.40) lol
-
Re: [mcCodes v2] Header Text [First ever Mod] bump
-
Re: [mcCodes v2] Header Text [First ever Mod] BUMP- come on, post and comment
-
Re: [mcCodes v2] Header Text [First ever Mod] I hope some people use this in their game. :) I would feel awesome, I couldnt sleep the other night so I thought why not make a Mod, I never tried so I tried today, and I completed.
-
Re: [mcCodes v2] Header Text [First ever Mod] True, im alot better with Databases though. :)
-
Re: [mcCodes v2] Header Text That's the page where you edit it, nothing fancy. That's what it will look like below your logo and that's it. credit goes to me, this is my first script so, it's good for beginners, isn't it?
-
Re: [mcCodes v2] Header Text Search for: <input type='submit' value='Give User DP' /></form>"; } add underneath: function header_announcement() { global $db,$ir,$c,$h,$userid; $q=$db->query("SELECT text FROM header LIMIT 1"); $news=$db->fetch_single($q); print "<h3>Editing Header</h3> <form action='staff_special.php?action=head_submit' method='post'> <textarea rows='7' cols='35' name='newspaper2'>$text</textarea> <input type='submit' value='Change' /></form>"; } function header_submit() { global $db,$ir,$c,$h,$userid; $text=$_POST['newspaper2']; $db->query("UPDATE header SET text='$text'"); print "Header Updated."; stafflog_add("Updated game header"); } open up staffmenu.php and add amongst your links: <tr><td>[url='staff_special.php?action=headann']Add Header[/url]</td></tr> And you're done. Screenshots will be here shortly.