Jump to content
MakeWebGames

carlg

Members
  • Posts

    81
  • Joined

  • Last visited

Everything posted by carlg

  1. Re: [V2] cars_mod staff_cars i would have made it for v1 but there is 2 problems 1 i dont use v1 and 2 i would not do it for you eney way due to the fact that u acused me of haceing your game
  2. Re: [V2] cars_mod staff_cars a lot of it is copy and paste but i did change it to work with the cars mod so yes i did make the mod
  3. Re: [mccode] Putt Putt Golf How would i go about adding scores
  4. could i have a little help with xss explote please as some 1 thinks it is funney to make my game go to gay porn sites
  5. Re: PHAOS COMBINED WITH MCCODES good ider hacker u have my msn m8
  6. Re: Search For Gang v2 i think  
  7. Re: [V2] cars_mod staff_cars ok i have tested all the funshons and this is working the only thing that is not working it dleating a users car
  8. Re: [V2] cars_mod staff_cars it is working for me on my comp i will have a nothere look at it as soon as i get home and i will post asap
  9. Re: [V2] cars_mod staff_cars ok i havce updated the first post now u can see the users garage and give them cars aswell now
  10. Re: [V2] cars_mod staff_cars this mod is just for staff and it is not the cars mod it self u have to buy that of mccodes.com
  11. Re: [mccode] mailbox with smilies http://www.mafiaslave.com/smilie.rar   there are 100`s of them
  12. Re: Profile Music i added this to it to make it bigger once i new it played videos   {echo "<embed src='{$r['music']}' width='150' height='150'>";}
  13. here is a nothere little mod first make a file called common.php and add <?php function checklogin() { session_start(); if(!isset($_SESSION['adminok'])) header("location: slogin.php"); } ?>   then make a file caled slogin.php   <?php session_start(); include "sglobals.php"; global $db,$ir,$c,$h,$userid; $msg = ""; if (isset($_POST['Submit'])) { $password = $_POST['password']; if($password == "test") /// change this to what u would like the password to be { $_SESSION['adminok'] = "ok"; $_SESSION['password'] = "password"; print"welcolm back {$ir['username']}!!!<META HTTP-EQUIV=Refresh CONTENT='2; URL=staff.php'>"; } else { $db->query("UPDATE users SET staffincorrect=staffincorrect+1 WHERE userid=$userid"); stafflog_add("tryed admin loging page and failed"); $msg = "Password incorrect.. This is has been loged!! "; } } ?> <?php echo $msg?> <?php print " <form name='form1' method='post' action=''> <p align='center'> Staff panel Login</font> Please enter corrent password to login</p> <table width='48%' border='1' align='center' cellpadding='1' cellspacing='1' > <tr bgcolor='#CCCCCC'> <td colspan='2'><font size='' face='Verdana, Arial, Helvetica, sans-serif'>[b]Login here[/b]</font></td> </tr> <tr> <td><font size='2' face='Verdana, Arial, Helvetica, sans-serif'>Password</font></td> <td><font size='2' face='Verdana, Arial, Helvetica, sans-serif'> <input name='password' type='password' id='password'> </font></td> </tr> <tr> <td> </td> <td><input type='submit' name='Submit' value='Submit'></td> </tr> </table> </form>"; ?>   In all your staff files (staff.php staff_special.php etc.) find: <?php (Thats the very first line of the file) Add this above it:   <?php include("common.php"); checklogin(); ?>   then add ALTER TABLE `users` ADD `staffincorrect` INT( 11 ) NOT NULL DEFAULT '0'; from there you can add in to your header if thay try so meny times it will ban them
  14. Re: guess the 4 digit coed script     ncie lol i have to think about changeing my ways then lol
  15. Re: guess the 4 digit coed script   lol there is no need to dich people that cant spell i chose not to spell right cus it pisses people off and thank you for the error in the cron
  16. Re: Profile Music this is a very nice mod it playes videos to http://www.mafiaslave.com/viewuser.php?u=1 u will need to regster to see it but that is cool
  17. Re: guess the 4 digit coed script well i dont have v1 so i would not know
  18. Re: guess the 4 digit coed script here it is for v1 <?php 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['gess'] >= 10) { die("Sorry, you have already guessed 10 numbers today. Come back tomorrow."); } mysql_query("SELECT * FROM users WHERE gess='$gess' AND userid='$userid'"); print"Do you thing you are luckey enoth to guess this code. If u gess the code right u shall win 1.2 mill just for guessing 4 numbes you have used {$ir['gess']} of 10 guesses"; ?> <html> <body> <form method="POST" action="gess1.php"> <select name="n1"> <option>0</option> <option>1</option> <option>2</option> <option>3</option> <option>4</option> <option>5</option> <option>6</option> <option>7</option> <option>8</option> <option>9</option> </select> <select name="n2"> <option>0</option> <option>1</option> <option>2</option> <option>3</option> <option>4</option> <option>5</option> <option>6</option> <option>7</option> <option>8</option> <option>9</option> </select> <select name="n3"> <option>0</option> <option>1</option> <option>2</option> <option>3</option> <option>4</option> <option>5</option> <option>6</option> <option>7</option> <option>8</option> <option>9</option> </select> <select name="n4"> <option>0</option> <option>1</option> <option>2</option> <option>3</option> <option>4</option> <option>5</option> <option>6</option> <option>7</option> <option>8</option> <option>9</option> </select> <input type="submit" value="Submit"> </p> </form> </body> </html> then make a file called gess1.php <?php 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['gess'] >= 10) { die("Sorry, you have already guessed 10 numbers today. Come back tomorrow."); } $n1 = !isset($_POST['n1'])? NULL : $_POST['n1']; $n2 = !isset($_POST['n2'])? NULL : $_POST['n2']; $n3 = !isset($_POST['n3'])? NULL : $_POST['n3']; $n4 = !isset($_POST['n4'])? NULL : $_POST['n4']; $welard = $n1 . $n2 . $n3 . $n4; $code = rand(1000, 9999); // this is the random code genarter //$code = 1337; //and if u wish u can pick the code but not very good as soon as some 1 has gessed it they will tell every 1 els i use for debug $asd = strcmp($welard, $code); if ($asd === 0) { mysql_query("UPDATE users SET money=money+1200000 WHERE userid=$userid"); mysql_query("UPDATE users SET gess=gess+1 WHERE userid=$userid"); echo "[b]gratz u gess the code out of 10k of numbers u have been given 1.2 mill [url='gess.php']Back[/url][/b]"; } else echo "[b]nope sorry, try again[/b] [url='gess.php']Back[/url]"; mysql_query("UPDATE users SET gess=gess+1 WHERE userid=$userid"); ?> then add this to your day cron mysql_query("UPDATE users SET daysold=daysold+1, gess=0"); after that u need to add ALTER TABLE `users` ADD `gess` INT( 11 ) NOT NULL DEFAULT '0'; to your db and thats it here is a screen shot i think this would work for v1 i am not sure if i converted it right thoe but tht gives a ider
  19. it is me agen plezz dont dich my script i am still lerning so here it is first u make a file with the name gess.php and put this in to it <?php include "globals.php"; if($ir['gess'] >= 10) { die("Sorry, you have already guessed 10 numbers today. Come back tomorrow."); } $db->query("SELECT * FROM users WHERE gess='$gess' AND userid='$userid'"); print"Do you thing you are luckey enoth to guess this code. If u gess the code right u shall win 1.2 mill just for guessing 4 numbes you have used {$ir['gess']} of 10 guesses"; ?> <html> <body> <form method="POST" action="gess1.php"> <select name="n1"> <option>0</option> <option>1</option> <option>2</option> <option>3</option> <option>4</option> <option>5</option> <option>6</option> <option>7</option> <option>8</option> <option>9</option> </select> <select name="n2"> <option>0</option> <option>1</option> <option>2</option> <option>3</option> <option>4</option> <option>5</option> <option>6</option> <option>7</option> <option>8</option> <option>9</option> </select> <select name="n3"> <option>0</option> <option>1</option> <option>2</option> <option>3</option> <option>4</option> <option>5</option> <option>6</option> <option>7</option> <option>8</option> <option>9</option> </select> <select name="n4"> <option>0</option> <option>1</option> <option>2</option> <option>3</option> <option>4</option> <option>5</option> <option>6</option> <option>7</option> <option>8</option> <option>9</option> </select> <input type="submit" value="Submit"> </p> </form> </body> </html> then make a file called gess1.php <?php include "globals.php"; if($ir['gess'] >= 10) { die("Sorry, you have already guessed 10 numbers today. Come back tomorrow."); } $n1 = !isset($_POST['n1'])? NULL : $_POST['n1']; $n2 = !isset($_POST['n2'])? NULL : $_POST['n2']; $n3 = !isset($_POST['n3'])? NULL : $_POST['n3']; $n4 = !isset($_POST['n4'])? NULL : $_POST['n4']; $welard = $n1 . $n2 . $n3 . $n4; $code = rand(1000, 9999); // this is the random code genarter //$code = 1337; //and if u wish u can pick the code but not very good as soon as some 1 has gessed it they will tell every 1 els i use for debug $asd = strcmp($welard, $code); if ($asd === 0) { $db->query("UPDATE users SET money=money+1200000 WHERE userid=$userid"); $db->query("UPDATE users SET gess=gess+1 WHERE userid=$userid"); echo "[b]gratz u gess the code out of 10k of numbers u have been given 1.2 mill [url='gess.php']Back[/url][/b]"; } else echo "[b]nope sorry, try again[/b] [url='gess.php']Back[/url]"; $db->query("UPDATE users SET gess=gess+1 WHERE userid=$userid"); ?> then add this to your day cron $db->query("UPDATE users SET gess=0"); after that u need to add ALTER TABLE `users` ADD `gess` INT( 11 ) NOT NULL DEFAULT '0'; to your db and thats it and once agen please dont dich my script here is a screen shot
  20. Re: [mccode] mailbox with smilies nice mod +1 is there a way to just click the smiley and it inserts the code in to the text box i think this would look better than :) = :cool any 1?
  21. Re: Not A Problem Just Wondering... this all depens on what u are selting from the db
  22. it is ok i will figger it out in the end
  23. Re: i wonder if anyone can help ? for the level   if($ir['level']< 99) { print "You need to be at least level 99 to access this page."; $h->endpage(); exit;
  24. ok i am instaling Email validating but i am have it a prblem it sends the email to me with the code in to i click it and i get QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '', unix_timestamp(), '', -1, '',' at line 1 Query was INSERT INTO users (username, login_name, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, lastip_signup) VALUES( 'testing', md5(''), 1, , 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '', unix_timestamp(), '', -1, '', '')   here is the code that i am useing   $db->query("INSERT INTO users (username, login_name, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, lastip_signup) VALUES( '{$username}', md5('{$_POST['password']}'), 1, $sm, 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', -1, '$IP', '$IP')"); $i=$db->insert_id(); $db->query("INSERT INTO userstats VALUES($i, 10, 10, 10, 10, 10)"); $db->query("INSERT INTO pdetails VALUES($i, 'N/A', 'N/A', 0, 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'OFF'") or die(mysql_error());   any ides how to fix this?
  25. it was bugging me on makeing car buy going in to phpmyadmin so i have made this mod first make a file called staff_cars.php and copy and paste this in to it <?php include "sglobals.php"; if($ir['user_level'] > 3) { die("sorry nope go away"); } switch($_GET['action']) { case 'givecar': give_car_form(); break; case 'givecarsub': give_car_submit(); break; case "addcar": addcar(); break; case "editcar": editcar(); break; case "delcar": delcar(); break; case 'garagebeg': garage_user_begin(); break; case 'garageuser': garage_user_view(); break; case 'delusercar': user_car_delete(); break; default: print "Error: This script requires an action."; break; } function addcar() { global $db, $ir, $c, $h, $userid; $name=$_POST['name']; $desc=$_POST['desc']; if($desc and $name) { $q=$db->query("SELECT * FROM cars_types WHERE carname='{$name}'"); if($db->num_rows($q)) { print "Sorry, you cannot have two car`s with the same name."; $h->endpage(); exit; } $db->query("INSERT INTO cars_types VALUES('NULL','$name','$desc', '{$_POST['carCOST']}','{$_POST['carACC']}','{$_POST['carHAN']}','{$_POST['carsPD']}','{$_POST['carsHD']}','{$_POST['carBUYABLE']}')"); print "Ship {$name} added to the game."; stafflog_add("Created Ship $name"); } else { print "<h3>Add car</h3><hr /> <form action='staff_cars.php?action=addcar' method='post'> car`s Name: <input type='text' name='name' /> car`s Description: <input type='text' name='desc' /> car`s cost: <input type='text' name='carCOST' /> car`s Acceleration: <input type='text' name='carACC' /> car`s Handling: <input type='text' name='carHAN' /> car`s Speed: <input type='text' name='carsPD' /> car`s Shield: <input type='text' name='carsHD' /> car`s carBUYABLE if 1=yes and 0=no: <input type='text' name='carBUYABLE' /> <input type='submit' value='Add car' /></form>"; } } function editcar() { global $db, $ir, $c, $h, $userid; switch($_POST['step']) { case "2": $name=$_POST['name']; $desc=$_POST['desc']; $q=$db->query("SELECT * FROM cars_types WHERE carname='{$name}' AND carid!={$_POST['id']}"); if($db->num_rows($q)) { print "Sorry, you cannot have two cities with the same name."; $h->endpage(); exit; } $name=$_POST['name']; $q=$db->query("SELECT * FROM cars_types WHERE carid={$_POST['id']}"); $old=$db->fetch_row($q); $db->query("UPDATE cars_types SET carname='{$_POST['name']}', carDESC='{$_POST['desc']}',carCOST='{$_POST['carCOST']}',carACC='{$_POST['carACC']}',carHAN='{$_POST['carHAN']}',carsPD='{$_POST['carsPD']}',carsHD='{$_POST['carsHD']}',carBUYABLE='{$_POST['carBUYABLE']}'"); print "Ship $name was edited successfully."; stafflog_add("Edited Ship $name"); break; case "1": $q=$db->query("SELECT * FROM cars_types WHERE carid={$_POST['car']}"); $old=$db->fetch_row($q); print "<h3>Editing a car</h3><hr /> <form action='staff_cars.php?action=editcar' method='post'> <input type='hidden' name='step' value='2' /> <input type='hidden' name='id' value='{$_POST['car']}' /> car`s Name: <input type='text' name='name' value='{$old['carNAME']}'/> car`s Description: <input type='text' name='desc' value='{$old['carDESC']}'/> car`s cost: <input type='text' name='carCOST' value='{$old['carCOST']}'/> car`s Acceleration: <input type='text' name='carACC' value='{$old['carACC']}'/> car`s Handling: <input type='text' name='carHAN' value='{$old['carHAN']}'/> car`s Speed: <input type='text' name='carsPD' value='{$old['carsPD']}'/> car`s Shield: <input type='text' name='carsHD' value='{$old['carsHD']}'/> car`s carBUYABLE if 1=yes and 0=no: <input type='text' name='carBUYABLE' value='{$old['carBUYABLE']}'/> <input type='submit' value='Edit Planet' /></form>"; break; default: print "<h3>Editing a cars</h3><hr /> <form action='staff_cars.php?action=editcar' method='post'> <input type='hidden' name='step' value='1' /> Item: ".car_dropdown($c,'car')." <input type='submit' value='Edit car' /></form>"; break; } } function delcar() { global $db,$ir,$c,$h,$userid; if($_POST['car']) { $q=$db->query("SELECT * FROM cars_types WHERE carID={$_POST['car']}"); $old=$db->fetch_row($q); if($old['id']==1) { die("This car cannot be deleted."); } $db->query("DELETE FROM cars_types WHERE carID={$old['carID']}"); print "Ship {$old['carname']} deleted."; stafflog_add("Deleted the car {$old['carname']}"); } else { print "<h3>Delete car</h3><hr /> Deleting a Ship is permanent Be sure of removing Ships <form action='staff_cars.php?action=delcar' method='post'> Planet: ".car_dropdown($c, "car")." <input type='submit' value='Delete car' /></form>"; } } function report_clear() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 3) { die("403"); } $_GET['ID'] = abs((int) $_GET['ID']); stafflog_add("Cleared player report ID {$_GET['ID']}"); $db->query("DELETE FROM preports WHERE prID={$_GET['ID']}"); print "Report cleared and deleted! [url='staff_users.php?action=reportsview']> Back[/url]"; } function garage_user_begin() { print "<h3>Viewing User garage</h3> You may browse this user's garage. <form action='staff_cars.php?action=garageuser' method='post'> User: ".user_dropdown($c,'user')." <input type='submit' value='View garage' /></form>"; } function garage_user_view() { if(!$_GET['st'] ) { $_GET['st']=0; } $start=abs((int) $_GET['st']); $cpp=20; global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 3) { die("403"); } $d=$db->query("SELECT username FROM users WHERE userid='{$_POST['user']}'"); $un=$db->fetch_single($d); $q=$db->query("SELECT cpcPLAYER FROM cars_playercars WHERE cpcPLAYER='{$_POST['user']}'", $c); $cars=mysql_num_rows($q); $pages=ceil($cars/$cpp); print "Pages: "; for($i=1; $i<=$pages; $i++) { $st=($i-1)*$cpp; if($st == $start) { print "[b]$i[/b] "; } else { print "[url='garage.php?st=$st']$i[/url] "; } } print " <table width=100% border=6> <tr style='background:#cc9966'><th>Car</th><th>Acceleration</th> <th>Handling</th><th>Speed</th><th>Shield</th><th>In Challenge?</th><th>delete</th></tr>"; $q=mysql_query("SELECT cp.*, ct.* FROM cars_playercars cp LEFT JOIN cars_types ct ON cp.cpcCAR=ct.carID WHERE cp.cpcPLAYER='{$_POST['user']}' LIMIT $start, $cpp", $c); $count=0; $cars=array(); while($r=$db->fetch_row($q)) { $count++; $acc=$r['cpcACCLV']*$r['carACC']; $han=$r['cpcHANLV']*$r['carHAN']; $spd=$r['cpcSPDLV']*$r['carSPD']; $shd=$r['cpcSHDLV']*$r['carSHD']; $q2=mysql_query("SELECT * FROM challenges WHERE chCHRCAR={$r['cpcID']} AND chSTATUS='open'", $c); if($db->num_rows($q2) == 1) { $challenge="<font color='red'>Yes</font>"; } else { $challenge="<font color='green'>No</font>"; } print "<tr><td>{$r['carNAME']} </td> <td>Lv{$r['cpcACCLV']} ($acc)</td> <td>Lv{$r['cpcHANLV']} ($han)</td> <td>Lv{$r['cpcSPDLV']} ($spd)</td> <td>Lv{$r['cpcSHDLV']} ($shd)</td><td>$challenge</td> <td><a href='#'>Delete</td> </tr>"; $cars[$r['cpcID']]="{$r['carNAME']} - {$r['cpcACCLV']}/{$r['cpcHANLV']}/{$r['cpcSPDLV']}/{$r['cpcSHDLV']}"; } if($count == 0) { print "<tr><th colspan=6>No Cars In this players Garage</th></tr>"; } print "</td></tr></table>"; } function give_car_form() { global $db,$ir,$c; if($ir['user_level'] > 3) { die("403"); } print "<h3>Giving cars To User</h3> <form action='test.php?action=givecarsub' method='post'> User: ".user_dropdown($c,'user')." Cars: ".car_dropdown($c,'car')." <input type='submit' value='car Given ' /></form>"; { function give_car_submit() { global $db,$ir,$c; if($ir['user_level'] > 3) { die("403"); } $db->query("INSERT INTO cars_playercars VALUES('',{$_POST['user']},{$_POST['car']},1,1,1,1);",$c) or die(mysql_error()); print "You gave {$_POST['qty']} of car ID {$_POST['car']} to user ID {$_POST['user']}"; stafflog_add("Gave {$_POST['qty']} of car ID {$_POST['car']} to user ID {$_POST['user']}"); } } } $h->endpage(); ?>   then open global_func.php and find ?> and add this before it function car_dropdown($connection,$ddname="car",$selected=-1) { global $db; $ret="<select name='$ddname' type='dropdown'>"; $q=$db->query("SELECT * FROM cars_types ORDER BY carNAME ASC"); if($selected < 1) { $ret.="<option value='0' selected='selected'>-- None --</option>"; } else { $ret.="<option value='0'>-- None --</option>"; } while($r=$db->fetch_row($q)) { $ret.="\n<option value='{$r['carID']}'"; if ($selected == $r['carID']) { $ret.=" selected='selected'";$first=1; } $ret.=">{$r['carNAME']}</option>"; } $ret.="\n</select>"; return $ret; }   then add these links to your smenu.php staff_cars.php?action=garagebeg staff_cars.php?action=givecar staff_cars.php?action=addcar staff_cars.php?action=editcar staff_cars.php?action=delcar please not i am stilling lerning as i go so there will be bug`s and thanks to Ghetto for your help in this ok this is the update and yes it is a copy and paste edited
×
×
  • Create New...