AlabamaHit
Members-
Posts
1,308 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by AlabamaHit
-
Re: viewuser taking ages to load? I think he means using his account. Not viewing his account. If thats so. Its the staff stuff dragging the page??
-
Re: Making a perfect demo account! Then your server is not set up right. Adding slashes on mine does not allow access.. Oh and if you used taht code You posted....take the extra / out. it will Still work. you didn't exit; the script. And please stop arguing about it. I have tested it. If it don't work on yours. Its yoru server or something else not setup right. Also for the sake of Stoping the fighting. Here is 100% Proof. Your wrong. ANd that the script I gave Works. Just fine. Showing Code used in file.. Now picutres LOOK at URL. Normal Your supposed double // Even the classic add folder to end of Mccodes don't work. Now their is the proof...Happy lol :-P
-
Re: Making a perfect demo account! Not everyone has your CSS lol. So that div wont work for everyone lol. But the best way is the array i showed on last page. All you have ot do is add pages to the array. No need to add to the different pages.
-
Re: [V2] Mug feature with Stats! if($ir['location'] != $r['location']) { echo "You have to be in same locaiton."; exit; }
-
Re: Making a perfect demo account! Um...no.lol This works people...I have tried it...and adding a // don't allow them lol
-
Re: [V2] Mug feature with Stats! Untested, combine of the mug and config file. <?php include_once("globals.php"); // //Settings // $prohibited = array(); //Add player IDs to this array who you want to be protected from mugging. $nomug = TRUE; //Set this to true to block NPC's from being mugged. $bravecost = 10; //Set this to the amount of brave you want mugging to cost. $minexp = 0; //Set this to the minimum EXP (figure, not %age) that you want a user to gain from a successful mug. $maxexp = 350;//Set this to the maximum EXP (figure, not %age) that you want a user to gain from a successful mug. $chance = 85; //Set this to the % chance of a successful mug. Must be a positive integer >= 1. // //End of settings // $in = abs((int) $_GET['ID']); if(!$in) { print "Error - no valid player ID to mug specified."; $h->endpage(); exit; } $q_get = sprintf("SELECT userid, username, user_level, fedjail FROM `users` WHERE userid = %u",($in)); $q = $db->query($q_get); if(!$db->num_rows($q)) { print "Error - player ID specified does not exist."; $h->endpage(); exit; } $r = $db->fetch_row($q); if(in_array($in, $prohibited)) { print "Error - this player cannot be mugged."; $h->endpage(); exit; } if($r['user_level'] == 0 && $nomug) { print "Error - NPCs cannot muggeded."; $h->endpage(); exit; } if($in == $userid) { print "Error - you cannot mugged yourself don't be crazy!"; $h->endpage(); exit; } if($r['fedjail']) { print "Error - this player is banned and cannot be mugged"; $h->endpage(); exit; } if($ir['brave'] < $bravecost) { print "Error - you need {$bravecost} nerve to mug someone."; $h->endpage(); exit; } $rsf = rand(1,100); $exga = rand($minexp,$maxexp); if($rsf <= $chance) { $do1 = sprintf("UPDATE users SET exp = exp + %u, brave = brave - %u WHERE userid = %u",($exga),($bravecost),($userid)); $db->query($do1); $stole=(int) (rand($r['money']/20,$r['money']/30)); if($stole<0){$stole=0;} if($stole>0) { $do2 = sprintf("UPDATE users SET money = money + %u, mugs = mugs + 1, muggain = muggain + %u WHERE userid = %u",($stole),($stole),($userid)); $do3 = sprintf("UPDATE users SET money = money - %u, mugloss = mugloss + %u WHERE userid = %u",($stole),($stole),($in)); $db->query($do2); $db->query($do3); } event_add($in, "[url='viewuser.php?u=$userid']{$ir['username']}[/url] mugged you for \$$stole! Click [url='mug.php?ID={$userid}']here[/url] to try to take your revenge!", $c); echo "You succesfully mugged {$r['username']} and stole \$$stole."; } else { $do4 = sprintf("UPDATE users SET brave = brave - %u WHERE userid = %u",($bravecost),($userid)); $db->query($do4); echo "You failed to mug {$r['username']}."; } $h->endpage(); ?>
-
Re: Auto ban mod [V2] Why auto ban? Just block it....
-
Re: Making a perfect demo account! Umm.....No lol. I did test that. It does work, it only gives 1 / And yeah it goes in header.php :-P
-
Re: Making a perfect demo account! Something like this I think would be alot better... $page = array("/preferences.php", "/mailbox.php");//Just exmaples...Add whatever. if($ir['userid'] == DEMO_ACCOUNT_ID && in_array($_SERVER['SCRIPT_NAME'], $page)) { echo "Sorry, this is not allowed for demo account."; echo " <br/ >"; echo "[url='index.php']> Go Back[/url]"; exit; }
-
Re: always running from a fight Yeah, I agree there. I seen you recoded it so I'm sure it's right. Probarly he/she changed something in the other attack files, and deleted the part to update attcking to 0. At least this is what it think lol
-
Re: always running from a fight this sounds like an error in another page. Not the attack.php, but in the attackwon.php, attacklost.php, etc... Basically, in the header.php if you are in a session attacking this case. And click a page you lose exp. So what I "think" is the problem is somehow in the those pages. You have removed the spot to update it. It should be updating users attacking to 0. I believe that is where your problem lies. Not in your attack.php..(Keep in mind I just read your problem i didnt look at your attack.php and this is just a thought.) Don't hold me to it lol.
-
Re: +9999--99999999 ( Bug ) lol, i have been waiting for someone to say that. That is nothing but a quick fix..that not security. What MTG gave you will secure up you page. If you want to secure your site. Do it on the pages. No one page fix will ever work.
-
Re: Just an idea (Bodyguard Mod) its been done free already. So I don't think anyone would get mad lol
-
Re: check these out What the hell......You advertising porn? lol
-
Re: Fearless-Dojo Got great advice for you. Delete the game from the internet.
-
Re: [McCodes V2] Streets Mod No that would go over 100. it would be $db->query("UPDATE users SET turns + 5 WHERE turns <= 95");
-
Need help getting original hospital mod back pls
AlabamaHit replied to firecamp's topic in Game Support
Re: Need help getting original hospital mod back pls use it from the source code? or are we supposed to beleive that you paid for a scritp uploaded it and dleted it? If you don't have it...You might get lucky Search the forums. THier might be a modified one. ANd if thats a no go...maybe someone can help you fix yours.,.. -
Re: Gang applications notifications just add an event in it..where the query adds the app to the gang.. (This is where i get everyone mad) If you can't figure that out..then you don't need a game. No....being young is NOT and excuse. NO your learning is NOT an excuse either. If your learning then LEARN don't run a game.
-
Re: yet another problem Yeah it was just minor...i hate the small stuff like that lol makes it hard to find lol
-
Re: yet another problem <?php include "globals.php"; if(!$_GET['spend']) { print "Welcome to the Points temple! You have [b]{$ir['crystals']}[/b] Points. What would you like to spend your Points on? [url='usepoints.php?spend=refill']Energy Refill - {$set['ct_refillprice']} Points[/url] [url='usepoints.php?spend=IQ']IQ - {$set['ct_iqpercrys']} IQ per Point[/url] [url='usepoints.php?spend=money']Money - ¥".number_format($set['ct_moneypercrys'])." per Point[/url] [url='usepoints.php?spend=searches']Refill Searches -15 points[/url] "; } else { if($_GET['spend'] == 'refill') { if($ir['crystals'] <$set['ct_refillprice']) { print "You don't have enough Points!"; } else if($ir['energy'] == $ir['maxenergy']) { print "You already have full energy."; } else { $db->query("UPDATE users SET energy=maxenergy,crystals=crystals-{$set['ct_refillprice']} WHERE userid=$userid"); print "You have paid {$set['ct_refillprice']} Points to refill your energy bar."; } } else if($_GET['spend'] == 'IQ') { print "Type in the amount of Points you want to swap for IQ. You have [b]{$ir['crystals']}[/b] Points. One Point = {$set['ct_iqpercrys']} IQ.<form action='usepoints.php?spend=IQ2' method='post'><input type='text' name='crystals' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'IQ2') { $_POST['crystals']=(int) $_POST['crystals']; if($_POST['crystals'] <= 0 || $_POST['crystals'] > $ir['crystals']) { print "Error, you either do not have enough Points or did not fill out the form. [url='usepoints.php?spend=IQ']Back[/url]"; } else { $iqgain=$_POST['crystals']*$set['ct_iqpercrys']; $db->query("UPDATE users SET crystals=crystals-{$_POST['crystals']} WHERE userid=$userid"); $db->query("UPDATE userstats SET IQ=IQ+$iqgain WHERE userid=$userid"); print "You traded {$_POST['crystals']} Points for $iqgain IQ."; } } else if($_GET['spend'] == 'money') { print "Type in the amount of Points you want to swap for money. You have [b]{$ir['crystals']}[/b] Points. One Point = \$".number_format($set['ct_moneypercrys']).".<form action='usepoints.php?spend=money2' method='post'><input type='text' name='crystals' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'money2') { $_POST['crystals']=(int) $_POST['crystals']; if($_POST['crystals'] <= 0 || $_POST['crystals'] > $ir['crystals']) { print "Error, you either do not have enough Points or did not fill out the form. [url='usepoints.php?spend=money']Back[/url]"; } else { $iqgain=$_POST['crystals']*$set['ct_moneypercrys']; $db->query("UPDATE users SET crystals=crystals-{$_POST['crystals']},money=money+$iqgain WHERE userid=$userid"); print "You traded {$_POST['crystals']} Points for \$".number_format($iqgain)."."; } } else if($_GET['spend'] == 'searches') { if($ir['crystals'] < 15) { echo "You don't have enough Points!"; } else { echo "You have paid 15 Points to refill searches."; $do = sprintf("UPDATE users SET turns = 50, crystals = crystals - 15 WHERE userid = %u",($userid)); $db->query($do); } } } $h->endpage(); ?>
-
Re: yet another problem lol i see that now lol stupid semi colons lol
-
Re: yet another problem if($_GET['spend'] == 'searches') { if($ir['crystals'] < 15); { echo "You don't have enough Points!"; } else { echo "You have paid 15 Points to refill searches."; $do = sprintf("UPDATE users SET turns = 50, crystals = crystals - 15 WHERE userid = %u",($userid)); $db->query($do); } }
-
Re: Injection attempt. No
-
Re: Injection attempt. There are 5 files. and 6 Edits to do.
-
Re: Login & Register [$15] Leave my comment out? I was just telling you that your giving it away with posting pages like that.