Jump to content
MakeWebGames

yaz123

Members
  • Posts

    68
  • Joined

  • Last visited

Everything posted by yaz123

  1. Could you link me pls? can't find it
  2. yaz123

    MTG Style Sheets

    Do you know anyone that has them haunted?
  3. Anyone got MagicTallGuy's style sheets?
  4. *MAGICTALLGUY* Style Sheets MTG's style sheets won't be on google will they? -.-
  5. Anyone got the style sheets that Magictallguy created?
  6. Anyone got a good CSS stylesheet?
  7. Re: marquee with admin function Good Idea! Keeps the users updated from staff :) +1 from me!!
  8. Re: [MC Code v2] Saved Events Add to global_func.php: // Error/Exit Function (Don't Take Credit For This Function (You Can Post Anywhere If Mentioned I Made It)) if (!function_exists('Error')) { function Error($Message) { global $h; echo sprintf("<span style='color: #FF0000;'>Error! %s</span>", stripslashes($Message)); exit($h->endpage()); } } I'm sure iv seen this in MTG's; coding along time ago
  9. Re: [mccodes v2] sendcash.php / Same IP Stop $_POST['money'] = abs(@intval($_POST['money'])); $do_1 = sprintf("UPDATE users SET money = money - %u WHERE userid = %u",abs(@intval($_POST['money'])),($userid)); Why are you double securing?
  10. Re: [V2] Friendslist/Blacklist I will try, I'm new at the Left Join Query's, I'll try my best ;)
  11. Re: [V2] Friendslist/Blacklist You can added them onto friends list/blacklist, but the person cannot see who has added them.. :lol:
  12. Hey, I'm thinking of making a mod which shows people that have added you to your Friends list and Black list, there also will be a link in the view user which shows other members who have added you. I will start on the mod as soon as possible, sorry if the mod has been made before, but I'm still going to make my own :-D!
  13. Re: How to make sure assistants won't ban the admin?   why 2 sprintfs? why 2 queries?   if($_GET['ID'] == 1) { $result = sprintf("UPDATE `users` SET `fedjail` = '10', `user_level` = '1' WHERE `userid` = '%u';",$userid); echo mysql_query($result,$c) ? 'why would you fed the owner? you should not be staff' : 'Lucky!'; $h->endpage(); die(); }       The owners ID is 1, if it finds anyone inputting the ID as one (owner), it will fed and adjust there user level to a member -.-
  14. Re: Funney Error   If you post anything make sure it makes sense -.-, please post the error in pacific detail so people can understand..
  15. Re: admins cant be feded [v2] Or.. Just put it onto the header XD :P $fed = sprintf("UPDATE users SET fedjail = %u WHERE (user_level = %u)", 0, 2); $db->query($fed);
  16. Re: [V2] Crystalbank Mod [V2]   look at this Magictallguy thinks hes so cool yet the version he secured doesnt even work right away oh lordy dude sit down and start suckin that thumb of urs instead of tryin to secure other peoples scripts and knock them the entire time my god people like you are the reason some newbies wont post on CE oh heres a error after taking messing with it abit to get to work Parse error: syntax error, unexpected T_STRING in /home/thugwar/public_html/crystalbank.php on line 118 look dude got that error after 10mins attemptin to make ur so called secured version to work i guess your not so great huh Magictallguy look at this folks he put it like so echo ("You ask to withdraw , ", number_format($gain), $s); echo ("the banking lady grudgingly hands it over. "); echo ("You now have %s crystal%s in the bank. ", number_format($ir['crystalbank']), $s); echo ("> Back"); which caused errors why you may ask well all the " ; he has in there are unneeded so it should of been echo (You ask to withdraw , , number_format($gain), $s) echo (the banking lady grudgingly hands it over. ); echo (You now have %s crystal%s in the bank. , number_format($ir['crystalbank']), $s) echo (> Back) heck i prolly could take the echos out aswell but eh i dont care He's just forgot the sprintf you n00b! :-D
  17. Re: [mccode v2] Bodyguard Mod You need to also make sure that the ID's of the Items are 60 61 62 This can be changed in the Database ;)
  18. Re: [MCcodes All] Staff Members cannot be attacked. else if ($odata['user_level'] > 1) { die("You cannot attack fellow staff members!"); exit; } -------------------------------------------------- I really don't see any point why you should use this :?.. Although Ass + Sec's can view the log's while there in hospital... Well anyway that code should work :)
  19. Re: [mccode v2] Tag Mod (Complete) What the hell is this? :?
  20. Re: [mccode v1] Mccodes V1 Jail   Try this!   <?php // Bust with EXP.....additional jail feature for your game // Coded by TwiztedFake ([email protected]) // This is a free mod, released on CE by TwiztedFake on 3/8/08 // Version 1.0 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(); //General settings used throughout the script, edit to suit your needs $base = 1.1; // General setting for use in the outcome equation, the higher this number is the harder it makes a successful outcome for a jail bust. $baseChance = 10; // This is the base percentage chance, if the equation yields a lower percentage this is used by default. $minEXP = 10; // To prevent any errors and give players a bit of exp if they don't have it lets set a minium EXP $bustCost = 10; // This is the brave needed to bust out, or bust someone else out $baseExpGain = 500; // This is used for the EXP gain/loss from outcome, the higher the number...the more exp gained per bust...gain = level * baseExpGain $baseExpLost = 0; // This sets how much is loss on failure, it is lost = gain * baseExpLost $id = abs((int) $_GET['u']); //Get players Id //Lets check some necessary information before we continue on with the script $z=mysql_query("SELECT * FROM users WHERE userid = $id",$c) or die(mysql_error()); if(!mysql_num_rows($z)) // Make sure an id was selected { print "System Error: Either you didn't select an id or the system failed to pass the information along."; $h->endpage(); die(""); } $user = mysql_fetch_array($z); // Most have been an id defined if we got this far, so lets get there info if($user['ID'] == $ir['userid']) { echo 'Dude you cant\'t bust your self!'; $h->endpage(); exit; } if($ir['userid'] == $id AND !$ir['jail']) //Lets make sure the player is not trying to bribe/bust someone else while they themselves are in jail { print "Error: You can't bust yourself out, your not in jail."; $h->endpage(); die(""); } if(!$user['jail']) // Lets make sure the id in question is in jail { print "Error: The player you selected is not in jail."; $h->endpage(); die(""); } if($ir['userid'] != $id AND $ir['jail']) //Lets make sure the player is not trying to bust someone else while they themselves are in jail { print "Error: You can't bust someone else out while you are in jail"; $h->endpage(); die(""); } if($ir['brave'] < $bustCost) // Lets make sure the player has enough brave to bust { print "Error: You do not have enough brave to attempt a bust."; $h->endpage(); die(""); } // Do all the math stuff before we continue on $suc = (($ir['jailEXP'] + $minEXP) * $base) / ($user['level'] + 0.5); // Figure out the players percenatage of success $gain = $ir['level'] * $baseExpGain; // Figure out the jailEXP gained $lost = $gain * $baseExpLost; // Figure out the jailEXP lost // Lets check the success percentage against the base success if($suc < $baseChance) // if $suc is less than $baseChance, lets use $baseChance instead to improve the outcome { $suc = $baseChance; } // Now lets get on with it and see if the player is successful $chance = rand(1,3); // succeess random if($suc > $chance) // bust was succesful { mysql_query("UPDATE users SET jailEXP = jailEXP + $gain WHERE userid = $userid",$c) or die(mysql_error()); if($ir['userid'] != $id) // success outcome for busting another player out { mysql_query("UPDATE users SET jail = 0 WHERE userid = $id",$c) or die(mysql_error()); event_add($id,"[url='viewuser.php?u=$userid']{$ir['username']}[/url] busted you from jail.",$c); mysql_query("UPDATE users SET brave = brave - $bustCost WHERE userid = $userid",$c) or die(mysql_error()); print "You busted {$user['username']} out of jail."; $h->endpage(); die(""); } else // success outcome for busting yourself out { mysql_query("UPDATE users SET brave = brave - $bustCost, jail = 0 WHERE userid = $userid",$c) or die(mysql_error()); print "You busted out of jail."; $h->endpage(); die(""); } } else // bust failed { $length = rand(15,35); // Jail time length if caught $newEXP = $ir['jailEXP'] - $lost; if($newEXP < 0) { $newEXP = 0.0000; // Lets not let it ever go negative } mysql_query("UPDATE users SET brave = brave - $bustCost, jail = jail + $length, jailEXP = $newEXP WHERE userid = $userid",$c) or die(mysql_error()); if(!$ir['jail'] AND $ir['userid'] != $id) // failed outcome for busting another player out { $reason = "Caught trying to bust {$user['username']}"; mysql_query("UPDATE users SET jailreason='Caught trying to bust {$user['username']} out of jail' WHERE userid = $userid",$c) or die(mysql_error()); print "The guards caught you trying to bust {$user['username']} out of jail. Now you have been thrown in jail for $length minutes."; $h->endpage(); die(""); } else // failed outcome for busting yourself out { mysql_query("UPDATE users SET jailreason='Caught trying to bust out of jail' WHERE userid = $userid",$c) or die(mysql_error()); print "The guards caught you trying to bust out of jail, $length minutes was added to your stay."; $h->endpage(); die(""); } } $h->endpage(); ?>
  21. Re: [mccode v1] Mccodes V1 Jail <?php include (DIRNAME(__FILE__) ."/mysql.php"); include (DIRNAME(__FILE__) ."/../../../../global_func.php"); global $c; if ($IP != $_SERVER['SERVER_ADDR']) { die('Error'); } $sql = sprintf("UPDATE users SET jail = jail - 1 WHERE (jail > %u)", 0, $c); $db->query($sql); ?>
  22. Re: How to make sure assistants won't ban the admin? Should work for V2 :) (Not Tested!) if($_GET['ID'] == 1) { $sql = sprintf("UPDATE users SET fedjail = 10 WHERE (userid = %u)", $userid); $sql2 = sprintf("UPDATE users SET user_level = 1 WHERE (userid = %u)", $userid); $db->query($sql); $db->query($sql2); print "why would you fed the owner? you should not be staff"; $h->endpage(); exit; }
  23. Re: [mccode v1] Mccodes V1 Jail   Not Tested - Reply if it doesn't work   <?php include (DIRNAME(__FILE__) ."/mysql.php"); include (DIRNAME(__FILE__) ."/../../../../global_func.php"); global $c; if ($IP != $_SERVER['SERVER_ADDR']) { die('Error'); } mysql_query("UPDATE users set jail=jail-1 WHERE jail>0",$c); $sql = sprintf("UPDATE users SET jail = jail - 1 WHERE (jail > %u)", 0, $c); $db->query($sql); ?>
  24. Re: I need help with a Mod i made     You should learn how to code PHP before you own a game
  25. Re: [Mccodes V2]Prayer Mod Why dont you make it so they can pray 5 times?   <?php include (DIRNAME(__FILE__) . "/globals.php"); if($ir['jail'] or $ir['hospital']) { die("<font color=red>This page cannot be accessed while in jail or hospital</font>."); } if ($ir['pray'] > 5) { die("<font color=red><font size=5>You have already been five times today, Come back at newday.</font> "); } print "<h3>You are currently at the mosque</h3> "; print "You pray for 10 minutes and feel good about yourself, you get some willingness in you. "; $sql = sprintf("UPDATE users SET will = 20 WHERE (userid = %u)", $userid); $sql1 = sprintf("UPDATE users SET pray = pray + 1 WHERE (userid = %u)", $userid); $db->query($sql); $db->query($sql1); ?>
×
×
  • Create New...