Jump to content
MakeWebGames

LT-DeLuXeR

Members
  • Posts

    12
  • Joined

  • Last visited

Personal Information

  • Location
    Lithuania

LT-DeLuXeR's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Yes lol. Your point?
  2. Yea that could work also, but I figured to go with a special city myself simply if I wanted to go and have fun with players sometimes or something like that I wouldn't have to edit any code, just jump in the safe place whenever I want peace, and simply leave when I want to play for real hehe. ^^
  3. No problems lol, well I personally find this little thing really helpful since I'm not a competitive player, so I don't want to interact in attacks and stuff with players, and this takes a lot less time than actually editing attacking files etc. :)
  4. This little mod doesn't check if you are level 10000, it only checks if you are admin, you can travel here while being admin, if you are any level.
  5. Yeap this can be made better of course, just throwing out a simple one. ^^
  6. Another small edition, I generally wanted to stay away from regular players since I'm not a real player just there to run everything, so I decided to make a small option to just teleport to a level 10000 area, so nobody can touch me whenever I wanted... Anyways, here it goes: 1. Create a new city, whatever name you want, like Admin Island, level 10000, and note down the location ID. Create a file admin_teleport.php <?php Include_once "globals.php"; If($ir['user_level'] == 2) { Echo "<h2><font color=red>Admin Island</h2></font> <font color=green>Teleport to an admin-only secret island to stay away from other players.</font><br /> <a href='admin_teleport_done.php'><b><h1>»Teleport</h1></b></a>"; } Else { Echo "<font color=red><b>You are not skilled to teleport little one!</b></font>"; } $h->endpage(); ?> Create a file admin_teleport_done.php <?php Include_once "globals.php"; If($ir['user_level'] == 2) { Echo "<font color=green><h2>You teleported to the Admin Island.</h2><br> No players will be able to reach you here, whenever you wish to leave just<br> use the travel function in the city.</font><br /> <a href='staff.php'><b><h1>»Back</b></a>"; $db->query("UPDATE users SET location=10 WHERE userid=$userid"); } Else { Echo "<font color=red><b>You are not skilled to teleport little one!</b></font>"; } $h->endpage(); ?> SET location=X Make sure to change the X to your newly created city ID that you made earlier. Open up smenu.php Find: > <a href='staff.php?action=basicset'>Basic Settings</a><br /> Add Below: > <a href='admin_teleport.php'>Admin Teleport</a><br /> And you're done. I know, I know, really basic but useful at least to me a lot and works great for me. Enjoy!
  7. I know this is really basic and easy to make, but I just figured maybe someone can use this, I pulled it off on my game and people love it. :) So here it goes: Insert this sql: ALTER TABLE `users` ADD `gift` int(11) NOT NULL DEFAULT '0'; Create a file gift.php <?php Include_once "globals.php"; echo "<font size=25><font color=red>April Fools<br /> ->YOUR GAME NAME !<br /><br /></font size></font> <iframe width='560' height='315' src='http://www.youtube.com/embed/ILt5HZnPz5o?rel=0&autoplay=1' frameborder='0' allowfullscreen></iframe> <br><br><br><font color=gray>No, seriously, press here and get your prize!</font> <a href='gift2.php'>Gift</a>"; $h->endpage(); ?> Create a file gift2.php <?php Include_once "globals.php"; echo "<font size=25><font color=red>Gotcha again! <br>April Fools<br /> ->YOUR GAME NAME !<br /><br /></font size></font> <iframe width='560' height='315' src='http://www.youtube.com/embed/1orMXD_Ijbs?rel=0&autoplay=1' frameborder='0' allowfullscreen></iframe> <br><br><br><font color=gray>No, seriously, press here and get your prize!</font> <a href='gift3.php'>Gift</a>"; $h->endpage(); ?> Create a file gift3.php <?php Include_once "globals.php"; if($ir['gift'] == 0) { echo "<font size=15><font color=red>Happy Easter!</font size></font><br><br> <font color=green><h3>You received 100k gift!</h3></font><br> <a href='explore.php'>>Back</a>"; $db->query("UPDATE users SET money=money+100000 WHERE userid=$userid"); $db->query("UPDATE users SET gift=1 WHERE userid=$userid"); } else echo "<font color=red>You already got your gift!</font>"; $h->endpage(); ?> Put a link in the city or whenever you want players to access this. <a href='gift.php'>Gift</a><br /> I know it's really simple, and it could be made easier, but oh well it worked great for me and players love it, so maybe someone else can use it also. Cheers!
  8. Tried your download link and yet I still get the same error. I totally have no idea what is wrong. :D But oh well seems like a nice mod. ^^
  9. I tried quote copying etc, but still didn't help, tried to mess around with the code but still couldn't get it to work, not sure what might be wrong.
  10. Parse error: syntax error, unexpected end of file in \gamerules.php on line 168
  11. Thanks for the reply. ^^ Much appreciated. :)
  12. Hello MWG! Been leeching for many years, so decided it's finally time to contribute something hehe. :P It's my first mod post ever, so please be gentle lol. Also, I know this has been already made, but I didn't find anything like mine so decided to post. ;) Open explore.php At the top find: if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); } Below add: $q=$db->query("SELECT * FROM shops WHERE shopLOCATION={$ir['location']}"); echo "<img src='/citypic/{$ir['location']}.png' height='80px' width='550px' style='border: 1px solid #000000;'>"; Now create a new folder named citypic ^ This is where you shall store your city pictures. Name your picture under the city ID. For example, let's say your default city is "London" , so it has the ID 1. So upload to citypic folder a picture named 1.png If you want different size pictures or different format like JPG, just change the values above: (height;width;.png) Hope you like it, enjoy! :)
×
×
  • Create New...