Jump to content
MakeWebGames

seanybob

Members
  • Posts

    666
  • Joined

  • Last visited

Everything posted by seanybob

  1. add to jail.php (somewhere where you want it to display) if($ir['jailtime']>0 || $ir['user_level']==2) {include_once("jailshout.php");} create file jailshout.php <? if(isset($_POST['Submit'])) { ?></pre> <table width="100%" border="0" cellspacing="1" bgcolor="#333333"><? $dataf = "jailshouts.txt"; $name = $ir['username']; $message = $_POST['message']; $fo=fopen("$dataf","r"); $stuff=file_get_contents("$dataf"); fclose($fo); $message = stripslashes($message); $comfile = file($dataf); if ($message != "") { $file = fopen("$dataf","w"); $stuff2 = "[i]$name[/i]: [b]$message[/b]"; $stuff3=$stuff2.$stuff; $write = fwrite($file,"$stuff3"); fclose($file); } ?></table><? } ?><br><br><br><table width="100%" border="0" cellspacing="1"> </table> <br><br><br><br><br><table width="100%" cellpadding="0" cellspacing="1">[i][b]Shouts[/b][/i]::<? include("jailshouts.txt"); ?></table> <b create a blank text file called jailshouts.txt add to a daily cron $fo=fopen("jailshouts.txt","w"); fclose($fo); Basically, it adds a shoutbox to the bottom of your jail. People can post in it, it is stored in a text file (NOT DATABASE)... every day (if you added the cron) the file is reset to blank, so the shoutbox is cleared. If anyone wants to edit this to make it so its posted to a database, feel free to add that here! To make this work for hospital... do everything the same, just rename everything to hosp or hospital :)
  2. star wars text movie Start / Run and type: telnet towel.blinkenlights.nl
  3. Re: MySQL fetch array   doh! missed that ;P
  4. Re: MySQL fetch array theres a working bug report system somewhere on these boards... looking at that code you posted, only thing that i can see that may be a prob is this '{$_GET['ID']}'==bugid switch it around bugid=='{$_GET['ID']}'
  5. Re: mcdonalds rap   ahaha excellent
  6. so i was cruising the net, and saw this... I thought it would be stupid, but as I have no life, and just went to mcdonalds, i figured what the hey. http://www.ebaumsworld.com/2006/11/joe- ... s-rap.html i cant believe they took them seriously... listen to the whispers at the end too, its great
  7. Re: HOW DO U PUT A BACKGROUND ON YOUR GAME LOL aye caramba... turn off your caps lock por favor also it would be in header.php (if i remember correctly)
  8. Re: SOMEON HAS HACKED MY GAME NEED HELP change the donation for you? why not um... just open donator.php and change his email to yours... unless I'm missing something here?
  9. Re: bug report mod couple people asked me to re-up this code, as it was messed up in the shift from phbb to smf... so voila, there ya go
  10. Re: New 2.0 code help if your making a code and need help ask!!!!!!   if($ir['blunts'] >= 99) { print("Sorry, you Dont Have enough Blunts to Come here."); } K, I'll start here... if they have 99 or MORE blunts, they cant come here? I'm thinking you meant if($ir['blunts'] < 100) { die("Sorry, you Dont Have enough Blunts to Come here."); } Now I'm just gonna tweak around the rest of your file here...   switch($_GET['action']) { case 'creditbluntform': creditb_user_form(); break; case 'creditbluntsub': creditb(); break; case 'index': credit_index(); break; default: credit_index(); break; } function credit_index() { print "<h3>Blunt Exchange </h3> You can Exchange blunts for a Donator Package. [b]100[/b] Blunts for a \$3 donator Package. You have [b]{$ir['blunts']}[/b] in hand!!!<font> <form action='bluntex.php?action=creditb' method='post'> Blunts: <input type='text' name='blunts' /> <input type='submit' value='Credit User' /></form>"; } function creditb() { global $db,$ir,$c,$h,$userid; if($ir['blunts'] < 100) { die("You don't have enough Blunts "); } else { $db->query("UPDATE users u LEFT JOIN userstats us ON userid=userid SET money=money+5000, crystals=crystals+50, IQ=IQ+50, donatordays=donatordays+30 WHERE userid=$userid"); print"You have paid 100 blunts to recieve a \$3 Donator Pack."; } $d=30; print "Blunt Exchange credited."; $d=$db->query("SELECT username FROM users WHERE userid='{$_POST['user']}'"); $un=$db->fetch_single($d); stafflog_add("Gave ID {$_POST['user']} a \$3 donator pack (Pack {$_POST['type']})"); } I didn't mess with your queries, just fixed a couple things in the upper parts of the code. Your queries may or may not work, I'm outta time to check :)
  11. Re: quantify items automatically sry canibal I was irrated earlier :) no worries m8? as for that, it means you are missing a curly brace } somewhere... I would scour your code, matching up all the curlies to find the missing one m8
  12. Re: quantify items automatically aye friggin caramba... please people... if you are getting errors... saying o hey i get an error on line 125 doesn't help us help you! now this helps: 124 if(noob==0) 125 { 126 print"error no noobs present";   post the line that the error is said to be on, as well as the line before and after. thank you v.v
  13. Re: How To make custom dps ?? just edit the donator pages (donator.php if I remember correctly) and also admin.php (give user donator pack function) That's all I used to use for my dp's, but there's a bit more to change if you use an automatic system
  14. Re: User "sifter" cron   nope, LITE and v1.1 didnt when i got those
  15. cron that will run once a day that will send a email to the user (via email not game mail) if they have not logged on for 2 weeks saying that if they don't log in with in the next 2 weeks their account will be removed then after that their account will be removed from the database. 25$ send payment to [email protected] and the script will be sent to you within 24 hours
  16. Re: no encryption depending where it is... you may need to keep the quotes   '{$_POST['password']}'
  17. Re: no encryption   shoot me... please... its hopeless...
  18. Re: no encryption open register.php and login.php (or maybe authenticate.php, i forget) control + f search for md5 you will see something like   just take off the md5 so it will look like this now that i think about it... pretty sure its only in register and authenticate
  19. Re: no encryption   Sure you can. Copy your encrypted password into their user info. Then you can login as them with your password and change it. or... send em an email with a special code that they can use to reset their password... simple stuff
  20. Re: Silly question... im just pulling this from viewuser, u could tear stuff out to make it more efficient $q=mysql_query("SELECT u.*,us.*,c.*,h.*,g.*,f.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN cities c ON u.location=c.cityid LEFT JOIN houses h ON u.maxwill=h.hWILL LEFT JOIN gangs g ON g.gangID=u.gang LEFT JOIN fedjail f ON f.fed_userid=u.userid WHERE u.userid={$_GET['u']}",$c); $r=mysql_fetch_array($q); print"{$r['cityname']}";
  21. Re: Disable referrals on a user     psh... whatever ;P hehhee
  22. Re: Disable referrals on a user nah, instead do something like this if($_POST['ref']!=10 && $_POST['ref']!=11 && $_POST['ref']!=12 && $_POST['ref']!=13)
  23. Re: Disable referrals on a user why not just... Find mysql_query("UPDATE users SET crystals=crystals+100 WHERE userid={$_POST['ref']}",$c); event_add($_POST['ref'],"For refering $username to the game, you have earnt 100 valuable crystals!",$c);   replace with something like that i would imagine
  24. Re: Disable referrals on a user tomo-I would suggest just opening up your register.php go to the line that adds crystals to the referer when the user signs up. add a simple check if($referers userid == 514) blah else add crystals   where 514 is the ID # of the person you wish to stop.
  25. Re: how do u turn dps 2 items ya i did try it, and it worked perfectly. went through all the code first (naturally) nothing evil is hidden in it or anything edit: its possible i changed some of his code to mesh it with mine, but i wouldnt remember. still its a good place to start
×
×
  • Create New...