Jump to content
MakeWebGames

Curt

Members
  • Posts

    525
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Curt

  1. very nice illusions.. im glad u included two examples for those that dont know how to use CSS :)
  2. lol...i actually was thinking about this the other night :P...lol it wouldnt be too bad of a feature, but online attacks would be a risk, because people would think you are offline... but i guess that would be a chance you would have to take for appearing offline :P.... also i havent tried to do it, but i dont think it would be too difficult :D
  3. its not too difficult to add more features to your hall of fame...ive added quite a few new additions to mine..ill show u a quick example below.. first you make a link to the new info..an example would be :   [url='halloffame.php?action=crimes&filter={$filter}']Crimes[/url]   notice the action=crimes part..this is important because it defines the function you will be using.. next find :   switch($_GET['action']) {   this is where they define the functions for each listing in the HOF...you will need to add a new switch. an example would be :   case "crimes": ## this is the name defined in the link hof_crimes(); ## this is the function it defines break;   now last you have to add the actual function, an example would be : function hof_crimes() { global $db,$ir,$c,$userid, $myf; print "Showing the 20 users with the most Crimes Passed <table width=75% cellspacing=1 class='table'><tr style='background:gray'> <th>Pos</th> <th>User</th> <th>Crimes Passed</th> </tr>"; $q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 $myf ORDER BY u.crimesd DESC,u.userid ASC LIMIT 20"); $p=0; while($r=$db->fetch_row($q)) { $p++; if($r['userid'] == $ir['userid']) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>[$t{$r['gangPREF']}] {$r['username']} [{$r['userid']}]$et</td> <td> {$r['crimesd']} </td> </tr>"; } print "</table>"; }   $q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 $myf ORDER BY u.crimesd DESC,u.userid ASC LIMIT 20");   this is the query that gets the HOF info you will be using : ORDER BY u.crimesd ## crimesd is the data i added to the users table to store how many crimes someone has passed..you will need to edit this to what ever data you will be using..   you can use that as a layout to add new data to the HOF just change the required info... also for the above function to work you would need to add a few new fields to your users table.. and you would also need to edit the docrime.php so that when ever someone does a crime it updates the crimes data in the users table... so dont load that in thinking it will work :P...its purely an example and is to be used as a layout :P... also im not the best of teachers, so if its unclear to you sorry :P but I hope that helps you cheers
  4. hmm since you haven't added any new query updates to the file i would suggest you simply copy over your current file with the default day cron and see if that fixes it :) cheers
  5. lol...no worries m8 :) nice mod :) cheers
  6. or you could simply add a line of code if the item being upgraded is equiped it removes it :P... would be better than making a 9mm unequippable..but the important thing is you are offering help :D cheers
  7. yep :D thats what i was talking about :)
  8. not bad :D You could combine those querys seeing as they all update data in the users table :P...but i guess thats ur coding preference.. cheers
  9. the ; is to close the array :)
  10. instead of changing it to (int)11 change it to (bigint)65 that should let u get stats above the '2147483647' cap... btw when u edit your self through the admin panel it will not go over cap cause you have to change those files too, but if you change it in the database it should stick... cheers
  11. Just to clarify i was not offering to secure his game...i just was asking how much hes paying cause no is gonna do it for free... also, LOL...your PHP coding experience doesnt go by how many posts you have on this forum..AHAHAH cheers
  12. how much you paying ?... its a timely job to go through all pages..
  13. well as for the poker mod you simply need to convert it to v2 which is simple... change this part : session_start(); require "globals.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);   into this :   include "globals.php";   now about the security there is two routes you could take... 1) Search through the forums and learn as much about security as you can...and secure it yourself 2) Pay someone to secure your game for you.. i guarantee you that no one will secure your game for free...and if someone offers to do so..be cautious be very cautious :P cheers
  14. what version of mccodes are you using ?
  15. just to clarify...i went through all my pages and secured all $_GET & $_POST variables....so i dont think this is a sql injection...but hey i could be wrong... i might have missed one somewhere...
  16. i thought that might have been the case so i checked the v1 files and i still dont see a createhouses.php...:P not by default anyway...he might be using a mod...
  17. just to clarify, you get this error when you try to buy a house ?....or when u try to make one in the staffpanel ?...lol first off .. /createhouses.php8 <<< that 8 on the end doesnt belong... also createhouses.php is not a standard page with the default mccodes...so not sure where u got that from... to buy a house the page is called : estate.php cheers
  18. I had a player donate lots of cash to his gang ( A lot more than he had )....I noticed from reports from other players... I questioned the player about it and he said it was from the gang, i checked gang event logs and sure enough he was donating billions.... I just wondering if anyone else has experienced this ?...and if a fix is available...ill be going over the code to see if i can find a problem in the mean time... ill keep u guys updated if i figure it out.. cheers
  19. LOL...crons would be a very nice addition to your site if you dont already have them :P
  20. lol...you have to decide how you want your game to be...do you want to have houses with lots of will ?...or do you wanna keep will relatively low ?.. you could make houses with increments of 25 - 50...that would keep the will at good amount ;) cheers
  21. lol...thanks for the tip immortalthug :P im glad you guys like it :) cheers
  22. This is a simple mod so your players can spy on other players stats, money in bank, and points... lol...the reason it shows points is because it doesnt show in my hof...:P coded from scratch... enjoy :D spy.php <?php include "globals.php"; $q=$db->query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid={$_GET['ID']}"); $odata=$db->fetch_row($q); $_GET['ID'] = abs((int) $_GET['ID']); if ($_GET['ID'] == "") { echo " THAT PERSON DOES NOT EXSIST."; return; } if ($_GET['ID'] == $ir['userid']) { echo " WHY WOULD YOU SPY ON YOURSELF ? "; return; } if ($_GET['ID'] != $odata['userid']) { echo " THAT PERSON DOES NOT EXSIST."; return; } echo "<h1> Spying on {$odata['username']} </h1><hr>"; $cost = $odata['level'] * 1000; ## COST TO SPY ( $1000 * level) echo " It will cost you \$ {$cost} to spy on {$odata['username']} "; echo " "; echo "Do you wanna spy ?"; echo " "; echo "<form method='POST'> <input type='hidden' name='spy' value='spy'> <input type='submit' value='SPY'> </form> "; if ($_POST['spy']) { $cost = $odata['level'] * 1000; if ($cost > $ir['money']) { echo " You do not have enough money to spy on {$odata['username']}. [url='viewuser.php?u={$_GET['] Back to Profile [/url]"; } else { $query1 = sprintf("UPDATE `users` SET money = money - %u WHERE `userid`= %u", $cost, $userid); $db->query($query1); $strCHANCE = rand(1,2); if ($strCHANCE == 1) { echo "STRENGTH : {$odata['strength']} "; } else { echo "STRENGTH : ?????? "; } echo " "; $spdCHANCE = rand(1,2); if ($spdCHANCE == 1) { echo "SPEED : {$odata['agility']} "; } else { echo "SPEED : ?????? "; } echo " "; $defCHANCE = rand(1,2); if ($defCHANCE == 1) { echo "DEFENSE : {$odata['guard']} "; } else { echo "DEFENSE : ?????? "; } echo " "; $bankCHANCE = rand(1,2); if ($bankCHANCE == 1) { if ($odata['bankmoney'] == -1) { echo "BANK : NO BANK ACCOUNT "; } else { echo "BANK : \$ {$odata['bankmoney']} "; } } else { echo "BANK : ?????? "; } echo " "; $pointsCHANCE = rand(1,2); if ($pointsCHANCE == 1) { echo "POINTS : {$odata['crystals']} "; } else { echo "POINTS : ?????? "; } } } $h->endpage(); ?> add this link to your viewuser page : Spy on User
  23. lol..this could be the reason why... last line : ?></center></div> but i could be wrong..
  24. no offense to the capcha idea..but i think games that has too many capchas annoy the players which leads them away...just my opinion.. cheers :D
  25. wow this sounds very interesting...:P too bad i just launched my game on november 4th and i only have 36 players..(7 active :P)... cheers and best of luck to your project
×
×
  • Create New...