Jump to content
MakeWebGames

on_fire

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Everything posted by on_fire

  1. Astra you noob   } $h->endpage(); ?>   NOT   } } $h->endpage(); ?> Remove }'s at the end of the code if u keeo getting the same error
  2. Dabs it would be good if it worked lmao dabs test b4 u post i added it and look Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/crimina3/public_html/preferences.php on line 178
  3. Profile Signatures Astra Find: ?> Replace with: } ?>
  4. Dude u are a noob I edit it and code on the spot as i said
  5. Yea i kinda firued LMAo dude u are waked in the head its cause i havent finished writing the script iam coding it as i got ill post the rest now
  6. Delte users find: case 'massmailer': massmailer(); break; Add After it: case 'deluser': deluser_begin(); break; case 'deluserform': deluser_form(); break; case 'delusersub': deluser_sub(); break; find: [[url='admin.php?action=edituser']Edit User[/url]] after add: [[url='admin.php?action=deluser']Delete User[/url]] Find: } function adnewspaper_submit() { global $ir,$c,$h,$userid; $l=fopen("admin.news","w"); fwrite($l,stripslashes($_POST['newspaper'])); fclose($l); print "Admin Pad updated!"; } After it Add: function deluser_begin() { global $ir,$c,$h,$userid; print "Deleteing User Here you can delete a user. User: ".user_dropdown($c,'user')." OR enter a user ID to Delete: User: "; } function deluser_form() { global $ir,$c,$h,$userid; if(($userid != 1 && ( $_POST['user']==1)) || ($userid != 1 && $userid != 2 && $_POST['user']==2)) { if($_POST['user'] != 2 ||$_POST['user'] != 1) die("No deleting Co-Owner!"); else die("No deleting the owner j00 fool."); } $d=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us on u.userid=us.userid WHERE u.userid={$_POST['user']}",$c); $itemi=mysql_fetch_array($d); print "Deleting User Are you sure? Delete user {$itemi['username']}? "; } function deluser_sub() { global $ir,$c,$h,$userid; if(($userid != 1 && ( $_POST['user']==1 || $_POST['user']==2)) || ($userid != 1 && $userid != 2 && $_POST['user']==2)) { if($_POST['user'] == 2) die("Sorry You Aint Got Access To Delete The Owner!"); else die("Sorry You Aint Got Access To Delete The Owner."); } if($_POST['yesorno']=='No') { print ("User not deleted. [url='admin.php']>Back to main admin page.[/url]"); } else if($_POST['yesorno']=='Yes') { mysql_query("DELETE FROM users WHERE userid={$_POST['userid']}",$c); mysql_query("DELETE FROM userstats WHERE userid={$_POST['userid']}",$c); mysql_query("DELETE FROM inventory WHERE inv_userid={$_POST['userid']}",$c); mysql_query("DELETE FROM fedjail WHERE fed_userid={$_POST['userid']}",$c); print ("User Deleted. [url='admin.php']>Back to main admin page.[/url]"); } function deluser_begin() { global $ir,$c,$h,$userid; print "Deleteing User Here you can delete a user. User: ".user_dropdown($c,'user')." OR enter a user ID to Delete: User: "; } function deluser_form() { global $ir,$c,$h,$userid; if(($userid != 1 && ( $_POST['user']==1)) || ($userid != 1 && $userid != 2 && $_POST['user']==2)) { if($_POST['user'] != 2 ||$_POST['user'] != 1) die("No deleting Co-Owner!"); else die("No deleting the owner j00 fool."); } $d=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us on u.userid=us.userid WHERE u.userid={$_POST['user']}",$c); $itemi=mysql_fetch_array($d); print "Deleting User Are you sure? Delete user {$itemi['username']}? "; } function deluser_sub() { global $ir,$c,$h,$userid; if(($userid != 1 && ( $_POST['user']==1 || $_POST['user']==2)) || ($userid != 1 && $userid != 2 && $_POST['user']==2)) { if($_POST['user'] == 2) die("Sorry You Aint Got Access To Delete The Owner!"); else die("Sorry You Aint Got Access To Delete The Owner."); } if($_POST['yesorno']=='No') { print ("User not deleted. [url='admin.php']>Back to main admin page.[/url]"); } else if($_POST['yesorno']=='Yes') { mysql_query("DELETE FROM users WHERE userid={$_POST['userid']}",$c); mysql_query("DELETE FROM userstats WHERE userid={$_POST['userid']}",$c); mysql_query("DELETE FROM inventory WHERE inv_userid={$_POST['userid']}",$c); mysql_query("DELETE FROM fedjail WHERE fed_userid={$_POST['userid']}",$c); print ("User Deleted. [url='admin.php']>Back to main admin page.[/url]"); }
  7. To instal this mod u are gonna need to edit a few files firstly lets start with viewuser.php open it up and find: } if($ir['donatordays'] > 0) { print " [[url='friendslist.php?action=add&ID={$r[']Add Friends[/url]] [[url='blacklist.php?action=add&ID={$r[']Add Enemies[/url]]"; } print " "; print ""; } $h->endpage(); } } ?> replace with: } if($ir['donatordays'] > 0) { print " [[url='friendslist.php?action=add&ID={$r[']Add Friends[/url]] [[url='blacklist.php?action=add&ID={$r[']Add Enemies[/url]]"; } print " "; print " </pre> <table width="100%">Profile Signature"; if($r['signature']) { print "{$r['signature']}"; } else { print "[b]This User has no Profile Signature[/b]"; } print "</table>";<br>}<br>$h->endpage();<br>}<br>}<br Run this sql: ALTER users ADD `signature` text NOT NULL,   now we need to mod pref's so users can change there profile signatures ect to do this we need to 1) Insert a link 2) add the function 3) add the case find: [url='preferences.php?action=namechange']Name Change[/url] Add after it: [url='preferences.php?action=signaturechange']Profile Signature[/url]   find: case 'picchange2': do_pic_change(); break; case 'picchange': pic_change(); break; Add After it: case 'signature2': do_signature_change(); break; case 'signature': signature_change(); break; find: } function do_name_change() { global $ir,$c,$userid,$h; if($_POST['newname'] == "") { print "You did not enter a new name. [url='preferences.php?action=namechange']> Back[/url]"; } else { $_POST['newname']=str_replace(array("<", ">", "\\\'"), array("<", ">", "'"), $_POST['newname']); mysql_query("UPDATE users SET username='{$_POST['newname']}' WHERE userid=$userid",$c); print "Username changed!"; } Add this after: function signature_change() { global $ir,$c,$userid,$h; print "Profile Signature Change New Profile Signature: {$ir['signature']} [b]Current Profile Signature :[/b]{$r['signature']}"; } function do_signature_change() { global $ir,$c,$userid,$h; if($_POST['newsignature'] == "") { print "You did not enter a new signature. > [url='preferences.php?action=signature']Back[/url]"; } else { mysql_query("UPDATE users SET signature='{$_POST['newsignature']}' WHERE userid=$userid",$c); print "Profile Signature changed!";
  8. Umm dabs Why dose it lin to buggetstreets.php i replaced all the text lmao saves pepole time having to change it them selfs streets.php <?php //Budget streets mod //Author: on_fire / Dambs //Converted for Lite by Dabomstew 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']); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm); $h->menuarea(); echo "[b]You are currently searching the streets[/b] "; if ($_GET['action'] != 'explore') { echo "Well. Here you are, standing in the middle of the street. Wanna take a few steps and see what you find? You have {$ir['turns']} turns left for today and will be topped up to 100 at newday. "; echo " <form method=post action=streets.php?action=explore><input type=hidden name=action value=explore><input type='text' name='steps' value='{$ir['turns']}'> <input type=submit value='Explore'></form>"; } else { $steps=abs((int) $_POST['steps']); for($i=0;$i<$steps;$i++) { if ($ir['turns'] < 1) { echo("You dont have enuff steps to explore the streets any more. come back at newday "); }else{ $chance = rand(1,8); mysql_query("update users set turns=turns-1 where userid=$userid",$c); if ($chance == 1) { $amnt=rand(50,200); if($ir['money'] > $amnt) { echo "As you walk the streets you see a hobo he asks you for \$$amnt you tell him to piss off he smakes you over the head and takes the \$$amnt anyway. "; mysql_query("update users set money=money-{$amnt} where userid=$userid",$c); $ir['money']-=$amnt; } else { echo "As you walk the streets you see a hobo he asks you for 1$ you tell him to piss off he smakes you over the head and looks in your wallet. Finding it almost empty he just runs off with it. "; mysql_query("update users set money=0 where userid=$userid",$c); $ir['money']=0; } } if ($chance == 2) { echo "Nothing here. "; } if ($chance == 3) { $gained=rand(20,90)*$ir['level']; echo "You found a bag of cash on the side walk you open it up and find [b]\$$gained[/b] was inside. "; mysql_query("update users set money=money+$gained where userid=$userid",$c); } if ($chance == 7) { echo "You see a guy getting mugged, but you decide to keep walking. You don't want to be in his shoes anytime soon. "; } if ($chance == 4) { echo "While exploring the streets you found some cash, but a hobo came quickly behind you and whacked you over the head. You lurch in suprise and the hobo takes the cash and runs off."; } if ($chance == 5) { $gain = rand(50,200)*(floor($ir['level']/2)+1); echo "While searching the streets you found [b]\$$gain[/b]. "; mysql_query("update users set money=money+$gain where userid=$userid",$c); } if ($chance == 6) { $gain = rand(50,100)*(floor($ir['level']/2)+1); echo "While searching the streets you found [b]\$$gain[/b]. "; mysql_query("update users set money=money+$gain where userid=$userid",$c); } if ($chance == 8) { echo "Nothing here. Just a few drunk bums. "; } $ir['turns']--; echo"you have [b]{$ir['turns']}[/b] steps left "; } } if($ir['turns']==0) { echo "Sorry, all turns used! "; } else { echo " <form method=post action=streets.php?action=explore><input type=hidden name=action value=explore><input type='text' name='steps' value='{$ir['turns']}'> <input type=submit value='Explore'></form>"; } } $h->endpage; ?>
  9. Lmao Dabs u killed my buzz i wana gonna post the querys ect but thx eny ways umm iam gonna work on something else nw seeing u stole it :)
  10. (Dabs fixed my post yay) <?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['jailtime']>0 || $ir['hospital']>0) die("You are currently unable to look around the streets."); print "[b]You are currently searching the streets[/b] "; if ($action == 'explore') { print "Well. Here you are, standing in the middle of the street. Wanna take a few steps and see what you find? "; print " "; } else { if ($ir[turns] <= 1.) { print "You dont have enuff steps to explore the streets come back at newday"; }else{ $chance = rand(1,8); mysql_query("update users set turns=turns-1 where userid=$userid",$c); if ($chance == 1) { $hospital=(rand(1,5))*$ir[level]; print "As you walk the streets you see a hobo he asks you for 1$ you tell him to piss off he smakes you over the head sending you to hospital for $hospital minute(s)"; mysql_query("update users set hospital=$hospital where userid=$userid",$c); mysql_query("update users set steps=steps-1 where userid=$userid",$c); } if ($chance == 2) { print "Nothing here."; } if ($chance == 3) { $gained=rand(20,90)*$ir[level]; print "You found a bag of cash on the side walk you open it up and find [b]$gained[/b] dollars were inside."; mysql_query("update users set money=money+$gained where userid=$userid",$c); } if ($chance == 7) { print "You see a guy getting mugged, but you decide to keep walking. You don't want to be in his shoes anytime soon."; } if ($chance == 4) { print "While exploring the streets you found one First Aid Lotion"; mysql_query("INSERT INTO inventory VALUES('',4,$userid,1)",$c); } if ($chance == 5) { $gain = rand(5,20); print "While searching the streets you found [b]$gain[/b] crystals."; mysql_query("update users set exp=exp+$expgain where userid=$userid",$c); } if ($chance == 6) { $gain = rand(5,20); print "While searching the streets you found [b]$gain[/b] crystals."; mysql_query("update users set crystals=crystals+$gain where userid=$userid",$c); } if ($chance == 8) { print "Nothing here. Just a few drunk bums."; } if ($chance == 9) { print "You found 1 First Aid Lotion"; mysql_query("INSERT INTO inventory VALUES('',4,$userid,1)",$c); } $turnsleft = ($ir['turns']-1); print " > Continue Searching "; print"you have [b]$turnsleft[/b] steps left"; } } $h->endpage; ?> You will also need to alter the users tabel u can do so by running this query ALTER users ADD turns if this dosent work for u mail me [email protected] for more info ill be posting a better version soon but for now use this one also you can add and remove the amout or what u find while searching and the chance by editing the php code and querys
×
×
  • Create New...